test(#3090): stop exempting violations under categories that do not fit
An allow-test-rule annotation citing a category that does not apply is worse than no annotation, because it reads as reviewed. Eight were confirmed by reading the assertions each one covered, and auditing the rest found five more plus one refutation — a converter test whose wording described the wrong mechanism while the covered assertion genuinely was deployed-text. The instructive one used the CANONICAL string for the same mistake: STATE.md command output labelled as a deployed artifact. A canonical string is not evidence the category fits, which is why normalising strings alone would have laundered the problem rather than fixed it. Every mapping the audit had inferred rather than code-verified was spot-checked before rewriting, and the ones that turned out not to fit were re-annotated rather than relabelled. Fourteen STATE.md assertions had a typed extractor available all along and now use it; their annotations came out because nothing needs exempting. Eight assertions genuinely need a production change first — CLI stdout and stderr with no structured mode — and are tagged pending-migration-to-typed-ir citing #3090, which is what that category is for. It had zero real uses before this, while one file carried a real citation to migration issue #2974 under a non-canonical tag. Six annotations covered assertions that do no text matching at all. An exemption for a violation that does not exist is noise that makes the real ones harder to audit; those are removed. atomic-write-coverage gains the annotation it always warranted — its own docstring describes a structural-regression-guard while the file carried none. Fifty-nine non-canonical strings across roughly thirty files are normalised, and the allow-test-rule allowlist is regenerated to match. 472 annotations became 463: every one now uses a canonical category, and the two remaining non-canonical strings are ESLint RuleTester fixtures, not annotations. Refs #3057 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[
|
||||
"tests/agent-classification-parity.test.cjs :: runtime-contract-is-the-product — docs/AGENTS.md section layout + docs/INVENTORY.md table ARE the classification surface being validated",
|
||||
"tests/agent-classification-parity.test.cjs :: source-text-is-the-product — docs/AGENTS.md section layout + docs/INVENTORY.md table ARE the classification surface being validated",
|
||||
"tests/agent-frontmatter.test.cjs :: source-text-is-the-product",
|
||||
"tests/agent-required-reading-consistency.test.cjs :: source-text-is-the-product",
|
||||
"tests/agent-size-budget.test.cjs :: source-text-is-the-product",
|
||||
@@ -15,16 +15,13 @@
|
||||
"tests/autonomous-interactive.test.cjs :: source-text-is-the-product",
|
||||
"tests/autonomous-to-flag.test.cjs :: source-text-is-the-product",
|
||||
"tests/chain-flag-plan-phase.test.cjs :: source-text-is-the-product",
|
||||
"tests/changeset-cli.test.cjs :: reads a product workflow .md file (not CJS source) to verify",
|
||||
"tests/changeset-cli.test.cjs :: source-text-is-the-product",
|
||||
"tests/check-update-config-dir.test.cjs :: structural-regression-guard",
|
||||
"tests/ci-test-scope.test.cjs :: CLI usage banner presence is a user-facing contract.",
|
||||
"tests/ci-test-scope.test.cjs :: CLI usage failure text is user-facing contract for this parser guard.",
|
||||
"tests/claude-md.test.cjs :: source-text-is-the-product",
|
||||
"tests/claude-skills-migration.test.cjs :: source-text-is-the-product",
|
||||
"tests/cleanup-branch-pruning.test.cjs :: source-text-is-the-product",
|
||||
"tests/cline-install.test.cjs :: source-text-is-the-product",
|
||||
"tests/cline-support.test.cjs :: source-text-is-the-product",
|
||||
"tests/clock-seam.test.cjs :: line 159 reads the STATE.md temp file written by readModifyWriteStateMd — this is a runtime output file assertion, not a source-grep; the API returns void so a file read-back is the only way to verify the transform was applied",
|
||||
"tests/code-review-agent-skills.test.cjs :: source-text-is-the-product",
|
||||
"tests/code-review-command.test.cjs :: source-text-is-the-product",
|
||||
"tests/code-review-pipeline-regression.test.cjs :: source-text-is-the-product",
|
||||
@@ -47,18 +44,15 @@
|
||||
"tests/discuss-phase-power.test.cjs :: source-text-is-the-product",
|
||||
"tests/docs-parity-live-registry.test.cjs :: source-text-is-the-product",
|
||||
"tests/drift-detection.test.cjs :: source-text-is-the-product",
|
||||
"tests/edge-probe-docs-fixtures.test.cjs :: runtime-contract-is-the-product — the rendered reference/SPEC/ADR vocab surfaces are the runtime contract; this pins their bijection to the code (docs-parity)",
|
||||
"tests/edge-probe-planner-contract.test.cjs :: runtime-contract-is-the-product — plan-phase.md's planner prompt is the deployed runtime contract under assertion",
|
||||
"tests/edge-probe-spec-phase-contract.test.cjs :: runtime-contract-is-the-product — spec-phase.md Step 5.5 is the deployed workflow runtime contract under assertion",
|
||||
"tests/edge-probe-docs-fixtures.test.cjs :: source-text-is-the-product — the rendered reference/SPEC/ADR vocab surfaces are the runtime contract; this pins their bijection to the code (docs-parity)",
|
||||
"tests/edge-probe-planner-contract.test.cjs :: source-text-is-the-product — plan-phase.md's planner prompt is the deployed runtime contract under assertion",
|
||||
"tests/edge-probe-spec-phase-contract.test.cjs :: source-text-is-the-product — spec-phase.md Step 5.5 is the deployed workflow runtime contract under assertion",
|
||||
"tests/edit-phase.test.cjs :: source-text-is-the-product",
|
||||
"tests/eslint-rules.test.cjs :: <source-grep reason> must still error",
|
||||
"tests/eslint-rules.test.cjs :: pending migration",
|
||||
"tests/eslint-rules.test.cjs :: source-text-is-the-product",
|
||||
"tests/execute-phase-active-flags.test.cjs :: source-text-is-the-product",
|
||||
"tests/execute-phase-step-5-5-deviation-doc.test.cjs :: source-text-is-the-product",
|
||||
"tests/execute-phase-wave.test.cjs :: behavioral — calls gsd-tools and asserts structured output",
|
||||
"tests/execute-phase-wave.test.cjs :: behavioral — exercises config-set validation, not source text",
|
||||
"tests/execute-phase-wave.test.cjs :: behavioral — exercises gsd-tools wave-defaulting logic",
|
||||
"tests/execute-phase-wave.test.cjs :: source-text-is-the-product",
|
||||
"tests/execute-phase-worktree-artifacts.test.cjs :: source-text-is-the-product",
|
||||
"tests/explore-command.test.cjs :: source-text-is-the-product",
|
||||
@@ -66,9 +60,9 @@
|
||||
"tests/forensics.test.cjs :: source-text-is-the-product",
|
||||
"tests/frontmatter-cli.test.cjs :: source-text-is-the-product",
|
||||
"tests/gates-taxonomy.test.cjs :: source-text-is-the-product",
|
||||
"tests/git-base-branch.test.cjs :: runtime-contract-is-the-product",
|
||||
"tests/git-base-branch.test.cjs :: runtime-contract-is-the-product — the workflow .md content IS",
|
||||
"tests/gsd-check-update-worker-platform-gate.test.cjs :: structural assertion on spawn-options shape; the behavior",
|
||||
"tests/git-base-branch.test.cjs :: source-text-is-the-product",
|
||||
"tests/git-base-branch.test.cjs :: source-text-is-the-product — the workflow .md content IS",
|
||||
"tests/gsd-check-update-worker-platform-gate.test.cjs :: structural-regression-guard",
|
||||
"tests/gsd-researcher-app-aware.test.cjs :: source-text-is-the-product",
|
||||
"tests/gsd-researcher-flow-diagram.test.cjs :: source-text-is-the-product",
|
||||
"tests/gsd-settings-advanced.test.cjs :: source-text-is-the-product",
|
||||
@@ -80,21 +74,19 @@
|
||||
"tests/install-minimal-hooks.test.cjs :: source-text-is-the-product",
|
||||
"tests/install-nested-layout.test.cjs :: source-text-is-the-product",
|
||||
"tests/install-runtime-artifacts.test.cjs :: source-text-is-the-product",
|
||||
"tests/install.test.cjs :: runtime-contract-is-the-product",
|
||||
"tests/install.test.cjs :: source-text-is-the-product",
|
||||
"tests/intel.test.cjs :: source-text-is-the-product — agents/gsd-intel-updater.md IS the",
|
||||
"tests/intel.test.cjs :: source-text-is-the-product — readFileSync assertions target API-SURFACE.md, which is the generated product of intelApiSurface; asserting on its text content is the only way to verify correct generation.",
|
||||
"tests/inventory-headings-countfree.test.cjs :: runtime-contract-is-the-product — INVENTORY.md heading format is the shipped doc surface being locked",
|
||||
"tests/inventory-headings-countfree.test.cjs :: source-text-is-the-product — INVENTORY.md heading format is the shipped doc surface being locked",
|
||||
"tests/ios-scaffold-safety.test.cjs :: source-text-is-the-product",
|
||||
"tests/issue-2639-codex-toml-neutralization.test.cjs :: source-text-is-the-product",
|
||||
"tests/issue-429-comment-text-gate.test.cjs :: source-text-is-the-product",
|
||||
"tests/issue-498-update-backup-runtime-dir.test.cjs :: structural assertion on the deployed update.md backup bash;",
|
||||
"tests/issue-57-runtime-install-no-drift.test.cjs :: delegation-presence guard. Catches wholesale removal of the registry",
|
||||
"tests/issue-57-runtime-install-no-drift.test.cjs :: structural guard over bin/install.js source. Behavioral assertions",
|
||||
"tests/issue-498-update-backup-runtime-dir.test.cjs :: source-text-is-the-product",
|
||||
"tests/issue-57-runtime-install-no-drift.test.cjs :: structural-regression-guard",
|
||||
"tests/issue-607-installer-dry-run.install.test.cjs :: integration-test-input",
|
||||
"tests/issue-607-legacy-cleanup.test.cjs :: integration-test-input",
|
||||
"tests/issue-787-cline-hooks-agents.test.cjs :: source-text-is-the-product",
|
||||
"tests/issue-815-update-next-channel.test.cjs :: reads product workflow/command markdown to verify the --next RC channel contract — not a source-grep test",
|
||||
"tests/issue-815-update-next-channel.test.cjs :: source-text-is-the-product",
|
||||
"tests/locking-bugs-1909-1916-1925-1927.test.cjs :: architectural-invariant",
|
||||
"tests/mcp-tool-inheritance.test.cjs :: source-text-is-the-product",
|
||||
"tests/milestone-summary.test.cjs :: source-text-is-the-product",
|
||||
@@ -111,7 +103,6 @@
|
||||
"tests/path-replacement.test.cjs :: source-text-is-the-product",
|
||||
"tests/phase-dependency-levels.test.cjs :: source-text-is-the-product",
|
||||
"tests/phase.test.cjs :: source-text-is-the-product",
|
||||
"tests/phase.test.cjs :: state-md-is-the-runtime-contract — regression tests for",
|
||||
"tests/phase6-capability-docs.test.cjs :: source-text-is-the-product",
|
||||
"tests/phase6-capstone-conformance.test.cjs :: source-text-is-the-product",
|
||||
"tests/phase6-planning-capabilities.test.cjs :: source-text-is-the-product",
|
||||
@@ -127,7 +118,6 @@
|
||||
"tests/product-name-purity.test.cjs :: source-text-is-the-product",
|
||||
"tests/profile-output.test.cjs :: source-text-is-the-product",
|
||||
"tests/progress-forensic.test.cjs :: source-text-is-the-product",
|
||||
"tests/prompt-budget-cli.test.cjs :: prompt-content-is-the-product",
|
||||
"tests/prompt-thinning.test.cjs :: source-text-is-the-product",
|
||||
"tests/quick-session-management.test.cjs :: source-text-is-the-product",
|
||||
"tests/qwen-skills-migration.test.cjs :: source-text-is-the-product",
|
||||
@@ -137,12 +127,11 @@
|
||||
"tests/release-coverage-scope.test.cjs :: source-text-is-the-product",
|
||||
"tests/release-tarball-smoke-workflow.test.cjs :: source-text-is-the-product",
|
||||
"tests/release-tarball-smoke.install.test.cjs :: integration-test-input",
|
||||
"tests/research-agent-profiles.test.cjs :: <runtime-contract-is-the-product> research agent .md content is the governed surface",
|
||||
"tests/research-agent-profiles.test.cjs :: source-text-is-the-product research agent .md content is the governed surface",
|
||||
"tests/review-default-reviewers-workflow.test.cjs :: source-text-is-the-product",
|
||||
"tests/roadmap.test.cjs :: source-text-is-the-product",
|
||||
"tests/run-tests-harness.test.cjs :: run-tests.cjs is a CLI test harness whose only IR is its",
|
||||
"tests/runtime-launcher-parity.test.cjs :: structural parity/drift guard — asserts literal presence/absence of the canonical gsd_run launcher and the retired $GSD_SDK / `/gsd-tools` tokens across workflow markdown; there is no typed IR for \"this source file does not contain substring X\".",
|
||||
"tests/runtime-name-policy.test.cjs :: runtime-contract-is-the-product — FALLBACK_ALIASES source text IS the",
|
||||
"tests/runtime-launcher-parity.test.cjs :: structural-regression-guard",
|
||||
"tests/runtime-name-policy.test.cjs :: source-text-is-the-product — FALLBACK_ALIASES source text IS the",
|
||||
"tests/scan-command.test.cjs :: source-text-is-the-product",
|
||||
"tests/secret-scan-lint.security.test.cjs :: source-text-is-the-product",
|
||||
"tests/secure-phase.test.cjs :: source-text-is-the-product",
|
||||
@@ -166,7 +155,7 @@
|
||||
"tests/workflow-compat.test.cjs :: source-text-is-the-product",
|
||||
"tests/workflow-guard-registration.test.cjs :: structural-regression-guard",
|
||||
"tests/workflow-maintainer-skip.test.cjs :: source-text-is-the-product",
|
||||
"tests/workflow-shell-pinning.test.cjs :: file-scope prefilter, not a test assertion — we need to",
|
||||
"tests/workflow-shell-pinning.test.cjs :: source-text-is-the-product",
|
||||
"tests/workflow-size-budget.test.cjs :: source-text-is-the-product",
|
||||
"tests/workspace.test.cjs :: source-text-is-the-product",
|
||||
"tests/worktree-cleanup.test.cjs :: source-text-is-the-product",
|
||||
|
||||
Reference in New Issue
Block a user