Skip to content

chore(checks): graduate word-limit and self-containment to block - #76

Merged
chrispezza merged 1 commit into
mainfrom
chore/graduate-word-limit-self-containment
Oct 13, 2026
Merged

chrispezza merged 1 commit into
mainfrom
chore/graduate-word-limit-self-containment

Conversation

@chrispezza

Copy link
Copy Markdown
Collaborator

Summary

Part of #64. Two of the five warn-level checks graduate. Fifteen of eighteen checks now block.

  • self-containment. It flagged every unprefixed prompts/… or scripts/… path in plugin text. That would have caught a sentence like "look at scripts/deploy.sh in the target repo", which the reverse pass could reasonably say. It now flags a path only when it points into the plugin's own bundle. A typo inside a real bundled directory still counts.
  • word-limit. No logic change. New tests cover the counting rule and the finding text.

Why now, when the issue says 2026-10-19

That date applies to the three checks added on 2026-10-12. These two were added in July and have had zero findings in every CI run since 2026-07-27. They were held for specific reasons, recorded in ADRs 0009 and 0011:

  • self-containment: "confirm on real edits or tighten first". Both done.
  • word-limit: wait for a clean cycle that includes prompt edits. Not met: no prompt has changed since 0.5.0. It is replaced with unit tests and a headroom measurement, and ADR 0009 says so.

What block means for word limits

Median headroom is 41 words across 101 prompts. Two prompts have none: identify-core-objective (150 of 150) and format-hypothesis-statement (149 of 150). The next edit that adds words to either will fail CI until the prompt is trimmed or its limit is raised by a recorded decision.

Not in this PR

adr-index, adr-amendment-link and claude-md-scope stay at warn. They are one day old and ADR 0012 requires seven clean days or a real catch.

Test plan

  • python -m unittest discover -s checks/tests — 48 tests pass
  • python checks/run_checks.py --ci --require-validator — 0 findings
  • CI green

ADR impact

  • Existing ADRs amended by appended, dated sections: 0009, 0011

🤖 Generated with Claude Code

Both met ADR 0012's 7-clean-day rule in July and were held on 2026-10-12 for
specific reasons. Those are now addressed.

- self-containment: only flag unprefixed prompts/ and scripts/ paths that
  point into the plugin's own bundle, so text about a repository under audit
  is not a finding; add tests; graduate
- word-limit: add tests for the counting rule and the finding text; record
  headroom at graduation; graduate
- Append the amendment and graduation entries to ADRs 0009 and 0011

adr-index, adr-amendment-link and claude-md-scope were added on 2026-10-12
and stay at warn until they have seven clean days.

Refs #64

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chrispezza
chrispezza merged commit 953fcd4 into main Oct 13, 2026
2 checks passed
@chrispezza
chrispezza deleted the chore/graduate-word-limit-self-containment branch October 13, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant