Commit Graph

279 Commits

Author SHA1 Message Date
Conor Bronsdon 487afe1612 docs: require Conor and Codex credit for assisted commits
Co-authored-by: Codex <codex@openai.com>
2026-09-12 11:22:46 -06:00
Conor Bronsdon 693438c019 Merge pull request #262 from conorbronsdon/fix/linear-punctuation-runs
fix: keep punctuation-prefix sentence scanning linear
2026-09-12 10:02:26 -07:00
Codex bbc8bb23c5 fix: scan punctuation prefixes in linear time 2026-09-12 10:56:22 -06:00
Conor Bronsdon 14c16db5f0 Merge pull request #260: remove quadratic scans from analyzeText
fix: remove quadratic scans from analyzeText on whitespace-heavy input
2026-09-12 09:53:39 -07:00
Conor Bronsdon 1f299b5e37 fix: remove quadratic scans from analyzeText on whitespace-heavy input
Four regexes rescanned a long whitespace or blank-line run from every
position, so a document ending in blank lines or carrying a large masked
comment block took seconds instead of milliseconds:

- the sentence splitter behind highlight regions, replaced with a
  single-pass scan that yields the same spans as the former regex
- its boundary-whitespace trim in rendered-Markdown mode, now trimStart
  and trimEnd arithmetic instead of a `\s*$` match
- the Markdown table delimiter test, now run on the trimmed line
- the line-anchored `Interesting part:` opener, whose leading `\s*`
  crossed newlines under /m and is now `[ \t]*`

The #190 fixture still scaled quadratically after #196 because masked
comments become whitespace, which the sentence splitter then choked on.
64000 masked comments now analyze in under a second.

Regression tests compare sentence boundaries against the former regex on
every boundary shape and assert linear growth by ratio rather than by a
wall-clock budget. Bundled detector copies regenerated.

Closes #235

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LmCsufeKSGpesBP7w4Xf4j
2026-09-12 16:51:58 +00:00
Conor Bronsdon c5a8b05e53 Merge pull request #196 from sharadvc/cursor/html-comment-masking-linear-bcc0
perf: make HTML comment masking linear in comment count
2026-09-12 09:08:06 -07:00
Conor Bronsdon 3202951c0a fix: make rendered comment masking single-pass 2026-09-12 10:05:04 -06:00
Conor Bronsdon 652a391223 Merge origin/main into cursor/html-comment-masking-linear-bcc0 2026-09-12 10:04:56 -06:00
Conor Bronsdon babbff082a Merge pull request #198: harden fork workflows before relaxing approvals
ci: harden fork workflows before relaxing approvals
2026-09-12 08:53:05 -07:00
Conor Bronsdon 2a90c01f42 Merge pull request #193: preserve source offsets through preprocessing
fix: preserve source offsets through detector preprocessing
2026-09-12 08:52:27 -07:00
Conor Bronsdon 857a241de2 ci: validate plugin workflow changes 2026-09-12 09:49:05 -06:00
Conor Bronsdon 0269482872 ci: harden fork workflow permissions 2026-09-12 09:48:01 -06:00
Conor Bronsdon f760a6b56f fix: harden source offset composition
Compose retained source coordinates across blockquote and normalization passes. Cover interleaved and overlapping removals, preserve staged roleplay semantics, and avoid quadratic preprocessing.

Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
2026-09-12 09:40:22 -06:00
Conor Bronsdon 3c5ae126fe Merge pull request #192 from MehulNegi/fix/187-detector-ci-paths
ci: run detector tests for CLI changes
2026-09-12 08:23:55 -07:00
Sharad. eeff687e42 fix: linear HTML comment masking in rendered Markdown mode
Run maskCode once per document and advance a single comment-open scan.
Refresh code or list-aware views only when a removed comment contained
backticks or list markers, preserving #123 edge cases.

Fixes conorbronsdon/avoid-ai-writing#190

Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
2026-09-12 13:34:48 +00:00
sreevx 2ee4740ead fix: preserve source offsets through detector preprocessing 2026-09-12 15:51:10 +05:30
Mehul Negi e9cb048568 ci: run detector tests for CLI changes 2026-09-12 11:47:53 +05:30
Conor Bronsdon 6663722563 Update CONTRIBUTING.md 2026-09-11 22:23:39 -07:00
Conor Bronsdon d9adf2c815 docs: require changelog entries for user-facing changes (#186)
Align CONTRIBUTING.md, CLAUDE.md, and the PR checklist on impact-based release notes, Unreleased entries, and release-time versioning. Exempt routine documentation and maintenance without user-facing effect, and remove the three corresponding Unreleased notes from #185.

Reviewed by GPT-5.6 Sol / Codex. Tests, self-scan, count check, SSOT, detector, and plugin-skill-sync passed.
2026-09-11 21:21:01 -07:00
Conor Bronsdon c201053ad2 Merge pull request #185: contributor guidance and pattern-count corrections
Integrate PRs #181 and #183 with required changelog entries and the newcomer issue policy. Original contributor commits are preserved.

Reviewed by GPT-5.6 Sol / Codex; npm test, self-scan, pattern count, SSOT, detector, and plugin-skill-sync checks passed.
2026-09-11 21:17:01 -07:00
Conor Bronsdon 4fe42a2991 docs: integrate pattern-count guidance and reserve newcomer issues
Preserve contributor commits from PRs #181 and #183, record their required changelog entries, and document one good-first issue for a contributor's first PR.

Reviewed with GPT-5.6 Sol / Codex.
2026-09-11 21:15:12 -07:00
Conor Bronsdon 67a77a8c0c Merge pull request #184 from sharadvc/cursor/align-contextmode-docs-c74e
docs: align contextMode comments with runtime behavior
2026-09-11 21:06:00 -07:00
Sharad. 0c2a93675c docs(corpus): fix v3.22 label and weight attribution (#182)
Attribute the Minimal AI signals band to detector/patterns.js and
record the v3.22.0 ISSUE_WEIGHTS range as 2-15.

Fixes conorbronsdon/avoid-ai-writing#171

Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
2026-09-11 21:00:08 -07:00
Sharad. 04449643ff docs: name references/patterns.md in pattern-count check descriptions
Fixes conorbronsdon/avoid-ai-writing#169

The guard script already derives counts from references/patterns.md;
update the CI step label, promo-drift issue text, and .ssot.yaml
diagram so contributor-facing docs match the implementation.
2026-09-12 03:12:07 +00:00
Sharad. 6c89503ed1 docs(detector): align contextMode comments with runtime behavior
Remove the nonexistent marketing boost from patterns.js comments.
Document all four accepted modes in CATEGORIES.md; only technical
changes flagging today. Regenerate mirrored detector copies.

Fixes conorbronsdon/avoid-ai-writing#173

Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
2026-09-12 03:12:07 +00:00
Sharad. 799acd5ba6 Document pattern-count updates for catalog rule changes
CONTRIBUTING.md explains when to bump the README pattern-category
bullet and the checked CLAUDE.md literal. The PR template adds a
matching checklist item. CLAUDE.md clarifies README as canonical
and its own quote as a CI-checked copy.

Fixes conorbronsdon/avoid-ai-writing#170
2026-09-12 03:09:58 +00:00
Conor Bronsdon e7faf81f2c Merge pull request #176 from JavierQuinan/feat/detector-ci-precommit-gates
feat: package detector as CI and pre-commit gates
2026-09-11 16:19:17 -07:00
Francisco Quinteros dc6203230e test: cover corpus-backed default threshold 2026-09-11 15:18:53 -07:00
Francisco Quinteros db0bee571e docs: record measured gate threshold 2026-09-11 15:18:43 -07:00
Francisco Quinteros 73f437bd77 docs: document gate threshold measurement 2026-09-11 15:18:38 -07:00
Francisco Quinteros 67079c8ea2 docs: explain corpus-backed gate default 2026-09-11 15:18:32 -07:00
Francisco Quinteros 7121cf9505 fix: align pre-commit threshold with corpus baseline 2026-09-11 15:18:14 -07:00
Francisco Quinteros 465de68448 fix: align action with corpus-backed threshold 2026-09-11 15:18:09 -07:00
Francisco Quinteros 83e94038ed fix: use corpus-backed gate threshold default 2026-09-11 15:18:03 -07:00
Francisco Quinteros 1a8e89eedb docs: document oversized gate input failure 2026-09-11 15:02:01 -07:00
Francisco Quinteros b22a32373b test: cover oversized and dash-prefixed gate inputs 2026-09-11 15:01:37 -07:00
Francisco Quinteros 1bf7a684fa fix: terminate pre-commit gate options before filenames 2026-09-11 15:01:27 -07:00
Francisco Quinteros 5ca5a35656 security: pass action inputs through environment 2026-09-11 15:01:21 -07:00
Francisco Quinteros 8f804ab751 fix: fail closed when detector declines long files 2026-09-11 15:01:12 -07:00
Francisco Quinteros 431120956e docs: list supported action contexts 2026-09-11 14:09:33 -07:00
Francisco Quinteros 9a47ea406a fix: accept all detector context profiles 2026-09-11 14:09:30 -07:00
Francisco Quinteros cd2bdf649a docs: note detector automation gates 2026-09-11 14:09:10 -07:00
Francisco Quinteros 777997a31d docs: explain deterministic gate contract 2026-09-11 14:09:07 -07:00
Francisco Quinteros 9500836083 docs: add CI and pre-commit gate usage 2026-09-11 14:09:04 -07:00
Francisco Quinteros 70975835b5 chore: publish detector gate CLI 2026-09-11 14:08:33 -07:00
Francisco Quinteros d6d37dc5f4 feat: add pre-commit detector hook 2026-09-11 14:08:23 -07:00
Francisco Quinteros 9d80b67a26 feat: package detector as GitHub Action 2026-09-11 14:08:19 -07:00
Francisco Quinteros 5193da7589 test: cover detector gate CLI 2026-09-11 14:08:16 -07:00
Francisco Quinteros 1045805ef4 feat: add deterministic detector gate CLI 2026-09-11 14:08:13 -07:00
Conor Bronsdon 9e952c1616 docs: add Chain of Thought badge 2026-09-11 14:03:42 -07:00