Skip to content

feat(#1511): investigation(test): classify the 76 prose-gate test files — execute, checksum or keep — with the command each execute-class gate should run - #1553

Merged
admarble merged 4 commits into
mainfrom
feature/1511-investigation-test-classify-the-76-prose-gate-test
Oct 19, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/1511-investigation-test-classify-the-76-prose-gate-test

Conversation

@admarble

@admarble admarble commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

I wrote the classification table for #1511 in docs/internal/graph-2026-10-fundamentals/prose-gates.md, the only file changed. No test was edited. The branch feature/1511-investigation-test-classify-the-76-prose-gate-test is pushed and is 0 commits behind origin/main. I opened no PR: under sequant run the orchestrator opens it.

Result: Totals: execute 12, checksum 11, keep 53. Of the 53 keep rows, 34 are not prose gates at all.

The biggest finding is that the proseGate metric over-counts. In 34 of the 76 files, SKILL.md appears only as a fixture name, a mocked path, a comment or an error string. Those 34 files hold 22,206 of the 30,693 counted lines. The real population is 42 files and 8,487 lines. The spec had estimated about 15 such files. The doc records this as a follow-up and does not change health-report.ts.

How it was done:

  • I wrote the rubric (selection rule, three classes, keep > execute > checksum precedence, the "not a prose gate" rule) and committed it before any file was read.
  • Four parallel agents classified the 76 files in batches balanced by line count, each with only the rubric.
  • I spot-checked four rows against the test files: qa-verdict-comment, loop-context-source, release-skill-security-table and mutation-verification.
  • For the self-agreement check, a fresh agent re-classified 8 rows blind. The 8 were chosen by a recorded sha1 rule, with a swap so every class was included.

AC verification

AC Description Status Evidence (command output)
AC-1 Every prose-gate file has a row ✅ rows=76 files=76. The set of paths also matches the heuristic's file list exactly.
AC-2 Every row has a class ✅ 0
AC-3 Every execute row names a command ✅ 0
AC-4 Totals stated ✅ 1
AC-5 Self-agreement reported ✅ 1. Re-read: 7 of 8 rows agreed.

The one disagreement was release-skill-security-table: first pass said execute, the re-read said checksum. I checked the skill: Step 4.67 ends in a runnable grep -qE "^\| ${new_minor}\.x \|" SECURITY.md verify block. So the row stays execute, and the doc explains why. It also tells F-12 to open the skill section before deleting any checksum row.

Findings for #1512 and D-3, recorded in the doc:

  • 11 files are pure checksum. F-12 can delete them whole.
  • 12 files can be converted to execute, in three groups:
    • 3 checkout-lock tests that can share one harness.
    • 3 tests that run a hand-copied npx tsx -e snippet instead of the one in the skill. These are the highest-value conversions, because the copy can drift from the skill without failing.
    • 6 tests that each need one command.
  • 19 keep files that hold a real parsed contract also carry 10 to 20 checksum phrases each. If D-3 deletes checksum assertions there, it has to be one assertion at a time, never the whole file.

Checks

  • Affected tests: npx vitest run --changed origin/main printed "No affected test files found" (expected for a docs-only diff). The one test that reads a docs/internal file reads a different doc, so it is unaffected.
  • Health lint: npm run lint:health printed "no metric rose above the baseline". The baseline was not regenerated because no metric changed.
  • Not run: build and lint, because nothing in TypeScript changed.
  • CHANGELOG: no entry, since this is an internal investigation doc and the issue's "May touch" names only this file.
  • Mutation markers: none, because no gate test was added.
  • Not applicable: CLI wiring check and Quality Plan alignment (the spec's plan was followed: rubric first, parallel batches, a WIP commit per stage, the AC-1 double-count trap avoided).

Pre-PR Confidence Check

  • Weakest part: the classes are judgment calls. 7 of 8 is good agreement, but the one miss shows the rubric is easy to misapply when only the test is read and not the skill section.
  • **Cove

Fixes #1511

QA verdict: NEEDS_VERIFICATION — acceptance criteria met, pending external verification (e.g. CI or a manual test). See the QA review comment.

Runner verification (2026-10-19)

The runner re-ran AC-1..AC-5 verbatim at 1413f03 (main merged in):

  • AC-1: rows=76 files=76
  • AC-2: 0
  • AC-3: 0
  • AC-4: 1 (execute 12, checksum 11, keep 53)
  • AC-5: 1 (7 of 8 agreed)

CI test passed. This PR is docs only.

The table's finding that 34 of the 76 counted files are not prose gates (SKILL.md appears only as a path) is input for #1512. Per the owner's 2026-10-19 ruling, proseGate.lines rises of this kind are absorbed into the baseline. No issue redefines the metric yet: #1512 converts and deletes gates but keeps the count definition (its AC-1 caps the file count at keep + execute), so path-only files stay counted. (Corrected 2026-10-19: an earlier version of this text said #1512 fixes the metric.)


🤖 Generated with Claude Code

@admarble
admarble merged commit f1ab2b2 into main Oct 19, 2026
9 of 10 checks passed
@admarble
admarble deleted the feature/1511-investigation-test-classify-the-76-prose-gate-test branch October 19, 2026 22:05
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.

investigation(test): classify the 76 prose-gate test files — execute, checksum or keep — with the command each execute-class gate should run

1 participant