diff --git a/.2119/verdicts/REQ-003.1.8--f0911761e205.json b/.2119/verdicts/REQ-003.1.8--f0911761e205.json deleted file mode 100644 index 05a81bf..0000000 --- a/.2119/verdicts/REQ-003.1.8--f0911761e205.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "reviewId": "REQ-003.1.8--f0911761e205", - "requirementId": "REQ-003.1.8", - "hash": "f0911761e205", - "verdict": "pass", - "summary": "Genuine test with a proper contrast case: a non-covering shared fixture is edited; with shared_evidence configured the computed reviewId changes, and without it the reviewId is unchanged — proving the shared file joins the hash only when opted in, through the real computeReviewTargets pipeline (not keyword matching).", - "timestamp": "2026-07-10T19:09:33.305Z" -} diff --git a/.2119/verdicts/REQ-003.1.8.json b/.2119/verdicts/REQ-003.1.8.json new file mode 100644 index 0000000..9159f20 --- /dev/null +++ b/.2119/verdicts/REQ-003.1.8.json @@ -0,0 +1,8 @@ +{ + "reviewId": "REQ-003.1.8--80dff4a08fef", + "requirementId": "REQ-003.1.8", + "hash": "80dff4a08fef", + "verdict": "pass", + "summary": "Genuine verification: boundaries.test.ts and evidence-groups.test.ts flip both requirements' review IDs when shared_evidence content changes (real loadConfig/computeReviewTargets/walk), and the gate-level run of dist/cli.js check exits 1 naming REQ-001.1.1 and REQ-001.1.2 after the universal helper is weakened; opt-out control proves the config key gates the coupling (residual: no multi-file glob-match case in evidence)", + "timestamp": "2026-10-21T20:35:30.650Z" +} diff --git a/.2119/verdicts/REQ-003.2.2.json b/.2119/verdicts/REQ-003.2.2.json index b15f960..134389f 100644 --- a/.2119/verdicts/REQ-003.2.2.json +++ b/.2119/verdicts/REQ-003.2.2.json @@ -1,8 +1,8 @@ { - "reviewId": "REQ-003.2.2--ba3a7f951d2b", + "reviewId": "REQ-003.2.2--9e0c907928e0", "requirementId": "REQ-003.2.2", - "hash": "ba3a7f951d2b", + "hash": "9e0c907928e0", "verdict": "pass", - "summary": "pass/fail write stable plain JSON after repairing final unignore rules, and init installs the same trackable verdict path", - "timestamp": "2026-08-03T17:05:00.760Z" + "summary": "pass/fail write plain JSON via writeVerdict to .2119/verdicts/.json and init installs the !.2119/verdicts gitignore section (ensureReviewStorageRules); git check-ignore shows verdict paths unignored and the cli/stable-verdict-files suites pass", + "timestamp": "2026-10-21T20:44:22.446Z" } diff --git a/.2119/verdicts/REQ-003.4.2.json b/.2119/verdicts/REQ-003.4.2.json index 32291ef..8582559 100644 --- a/.2119/verdicts/REQ-003.4.2.json +++ b/.2119/verdicts/REQ-003.4.2.json @@ -1,8 +1,8 @@ { - "reviewId": "REQ-003.4.2--3e386c0febf7", + "reviewId": "REQ-003.4.2--af48b53575b4", "requirementId": "REQ-003.4.2", - "hash": "3e386c0febf7", + "hash": "af48b53575b4", "verdict": "pass", - "summary": "Risks section states the self-pass residual risk plainly and names the committed-verdict, hash-invalidation, and CI re-run mitigations", - "timestamp": "2026-08-08T09:06:52.659Z" + "summary": "README Risks section plainly states nothing prevents an implementing agent from running 2119 pass on its own work and names all three mitigations: committed and auditable verdicts, hash invalidation (no stale reuse), and CI re-running the same check", + "timestamp": "2026-10-21T19:49:19.942Z" } diff --git a/.2119/verdicts/REQ-003.8.2.json b/.2119/verdicts/REQ-003.8.2.json index c0ecc90..f86b938 100644 --- a/.2119/verdicts/REQ-003.8.2.json +++ b/.2119/verdicts/REQ-003.8.2.json @@ -1,8 +1,8 @@ { - "reviewId": "REQ-003.8.2--6e3c630dbed4", + "reviewId": "REQ-003.8.2--689bee9ba93e", "requirementId": "REQ-003.8.2", - "hash": "6e3c630dbed4", + "hash": "689bee9ba93e", "verdict": "pass", - "summary": "test-quality, direct-judgment, audit, and evidence-scoping instructions still expose every expected pass/fail distinction in corpus cases 001-014", - "timestamp": "2026-08-03T17:05:00.892Z" + "summary": "template in src/review.ts still routes all 12 expected-fail corpus cases to a catch clause (001-003,009,010 counterexample obligation, 004 grammar clause, 008-009 tautology clause, 005/011 bad-requirement clause, 006-007 audit mutant obligation, 014 scope clause) and passes both controls 012-013; load-bearing clauses pinned by tests/rigor.test.ts", + "timestamp": "2026-10-21T20:51:52.811Z" } diff --git a/.2119/verdicts/REQ-005.2.6.json b/.2119/verdicts/REQ-005.2.6.json index c2cce7c..34a9766 100644 --- a/.2119/verdicts/REQ-005.2.6.json +++ b/.2119/verdicts/REQ-005.2.6.json @@ -1,8 +1,8 @@ { - "reviewId": "REQ-005.2.6--cf4818fa400c", + "reviewId": "REQ-005.2.6--2844acfa23b8", "requirementId": "REQ-005.2.6", - "hash": "cf4818fa400c", + "hash": "2844acfa23b8", "verdict": "pass", - "summary": "Verify-tag docs state arbitrary-shell execution and package.json-script trust equivalence beside the [verify] semantics", - "timestamp": "2026-08-08T09:06:58.759Z" + "summary": "README's [verify] bullet in 'The spec format' states verbatim: 'Verify commands execute arbitrary shell from spec files: they carry the same trust level as package.json scripts' — both required clauses present", + "timestamp": "2026-10-21T20:20:04.050Z" } diff --git a/.2119/verdicts/REQ-008.1.2.json b/.2119/verdicts/REQ-008.1.2.json index 392d17f..5b3d029 100644 --- a/.2119/verdicts/REQ-008.1.2.json +++ b/.2119/verdicts/REQ-008.1.2.json @@ -1,8 +1,8 @@ { - "reviewId": "REQ-008.1.2--4d6b2a51f53e", + "reviewId": "REQ-008.1.2--073281a5c07d", "requirementId": "REQ-008.1.2", - "hash": "4d6b2a51f53e", + "hash": "073281a5c07d", "verdict": "pass", - "summary": "README header block prominently states 2119 is not a test runner, CI replacement, or security boundary with the design.md link, before the adoption section", - "timestamp": "2026-08-08T09:07:04.379Z" + "summary": "pass: README line 12 (hero, before adoption instructions) states 2119 is not a test runner, not a CI replacement, and not a security boundary, linking docs/design.md (file present); the expanded three-item non-goals list also precedes '## Use it in your repo' (line 56)", + "timestamp": "2026-10-21T18:42:29.896Z" } diff --git a/.2119/verdicts/REQ-008.2.1.json b/.2119/verdicts/REQ-008.2.1.json index 649bc3f..7734736 100644 --- a/.2119/verdicts/REQ-008.2.1.json +++ b/.2119/verdicts/REQ-008.2.1.json @@ -1,8 +1,8 @@ { - "reviewId": "REQ-008.2.1--2cd0a760d9fd", + "reviewId": "REQ-008.2.1--c29cd479f51f", "requirementId": "REQ-008.2.1", - "hash": "2cd0a760d9fd", + "hash": "c29cd479f51f", "verdict": "pass", - "summary": "scaling.md covers all seven mandated topics with concrete recipes: pinning, separate CI gates, CODEOWNERS, independent-runner, explicit evidence globs, shared_evidence, and no-verify policy", - "timestamp": "2026-08-08T07:57:34.368Z" + "summary": "docs/scaling.md covers all seven mandated topics: exact pinning (--save-exact, rfc2119@), npm test and 2119 check as separate CI gate steps, CODEOWNERS for /specs/ and /.2119/verdicts/, the independent-runner recipe (bot-run review, fresh sessions, committer-identity branch protection), explicit evidence globs over bare [review] for critical requirements, shared_evidence for tests/helpers and tests/fixtures, and check --no-verify policy for untrusted contributions", + "timestamp": "2026-10-21T18:46:20.875Z" } diff --git a/.2119/verdicts/REQ-008.2.2.json b/.2119/verdicts/REQ-008.2.2.json index 7690ba1..01a00f1 100644 --- a/.2119/verdicts/REQ-008.2.2.json +++ b/.2119/verdicts/REQ-008.2.2.json @@ -1,8 +1,8 @@ { - "reviewId": "REQ-008.2.2--aa836f47efc5", + "reviewId": "REQ-008.2.2--276bca206b6d", "requirementId": "REQ-008.2.2", - "hash": "aa836f47efc5", + "hash": "276bca206b6d", "verdict": "pass", - "summary": "README's Diversify-then-audit bullet and scaling.md's cross-provider audit section both advise periodic sweeps plus targeted audits of challenging or high-consequence requirements", - "timestamp": "2026-08-08T09:07:17.187Z" + "summary": "README 'Diversify, then audit' bullet and docs/scaling.md 'Periodic adversarial audits (cross-provider)' section both advise periodic cross-provider review --audit sweeps (README: 'Run an audit sweep periodically with a model from a different provider'; scaling guide: monthly QA cadence dispatched to a different provider) and targeted audits for particularly challenging or high-consequence requirements individually.", + "timestamp": "2026-10-21T19:35:05.358Z" } diff --git a/.2119/verdicts/REQ-010.2.1--d99f97668eda.json b/.2119/verdicts/REQ-010.2.1--d99f97668eda.json deleted file mode 100644 index 6fccd66..0000000 --- a/.2119/verdicts/REQ-010.2.1--d99f97668eda.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "reviewId": "REQ-010.2.1--d99f97668eda", - "requirementId": "REQ-010.2.1", - "hash": "d99f97668eda", - "verdict": "pass", - "summary": "Pass: isolated cases reject an added requirement and changes to statement, keyword, coverage mode, verify command, evidence globs, and review-instruction path, while an identical sibling remains unaffected.", - "timestamp": "2026-07-22T05:49:14.818Z" -} diff --git a/.2119/verdicts/REQ-010.2.1.json b/.2119/verdicts/REQ-010.2.1.json new file mode 100644 index 0000000..a9f3600 --- /dev/null +++ b/.2119/verdicts/REQ-010.2.1.json @@ -0,0 +1,8 @@ +{ + "reviewId": "REQ-010.2.1--8995f428224f", + "requirementId": "REQ-010.2.1", + "hash": "8995f428224f", + "verdict": "pass", + "summary": "Pass: check --changed variants mark a requirement affected by each contract field alone - statement (spin->rotate), keyword (MUST->SHALL), coverage mode ([manual] dropped), verify command, [review] evidence globs, instructions path - and when added to the baseline, while identical sibling FIX-001.1.2 in the same changed spec stays unaffected; ignored group-evidence helper guard keeps glob comparison sound.", + "timestamp": "2026-10-21T23:26:46.896Z" +} diff --git a/.2119/verdicts/REQ-013.1.1.json b/.2119/verdicts/REQ-013.1.1.json new file mode 100644 index 0000000..8c95943 --- /dev/null +++ b/.2119/verdicts/REQ-013.1.1.json @@ -0,0 +1,8 @@ +{ + "reviewId": "REQ-013.1.1--7d912618bdf4", + "requirementId": "REQ-013.1.1", + "hash": "7d912618bdf4", + "verdict": "pass", + "summary": "Covering test 'parses evidence_groups into named groups sorted by name' (tests/evidence-groups.test.ts:71-78) drives the production loadConfig (src/config.ts:62-92) over a fixture .2119.yml and asserts typed named groups (parser, storage) each mapping declared tests/evidence glob lists; scalar/non-mapping and empty-list forms are rejected (REQ-013.1.2 cases), the absent-key default [] cannot equal the asserted two-group observation, and configs lacking the key load green suite-wide (tests/cli.test.ts:60-65) plus this repo's own .2119.yml under CI check. Misdeclaration would flow into evidenceGroupParts (src/review.ts:33-56) and silently preserve approvals over weakened helpers.", + "timestamp": "2026-10-21T20:59:35.845Z" +} diff --git a/.2119/verdicts/REQ-013.1.2.json b/.2119/verdicts/REQ-013.1.2.json new file mode 100644 index 0000000..d5bb0a8 --- /dev/null +++ b/.2119/verdicts/REQ-013.1.2.json @@ -0,0 +1,8 @@ +{ + "reviewId": "REQ-013.1.2--1eba2d81d71a", + "requirementId": "REQ-013.1.2", + "hash": "1eba2d81d71a", + "verdict": "pass", + "summary": "Genuine behavioral verification: both REQ-013.1.2 tests (tests/evidence-groups.test.ts) fail under four source mutations — silent empty-mapping read, group name dropped from the error, empty lists accepted, missing keys silently defaulted; the unit test drives real loadConfig over an on-disk YAML file covering all four missing/empty arms and requires evidence_groups[\"storage\"] in the message; the gate test proves the identical project passes check first, then requires the built dist/cli.js subprocess to exit non-zero naming the group; a two-group probe confirms the error names the actually-rejected group.", + "timestamp": "2026-10-22T05:17:59.162Z" +} diff --git a/.2119/verdicts/REQ-013.2.1.json b/.2119/verdicts/REQ-013.2.1.json new file mode 100644 index 0000000..5f4a276 --- /dev/null +++ b/.2119/verdicts/REQ-013.2.1.json @@ -0,0 +1,8 @@ +{ + "reviewId": "REQ-013.2.1--2092158e2b58", + "requirementId": "REQ-013.2.1", + "hash": "2092158e2b58", + "verdict": "pass", + "summary": "Verified via five source mutants: first-file-only hashing, first-glob-only hashing, first-tests-glob-only applicability, all-covering-files applicability, and content-free hashing each fail a distinct REQ-013.2.1 test (tests/evidence-groups.test.ts), and the e2e gate test shows a weakened storage.ts helper flips 'check' to exit 1 naming only REQ-001.1.1; production path check.ts:73 -> review.ts:97,33-55 -> hash.ts:31 reads real config and file content.", + "timestamp": "2026-10-22T04:49:27.984Z" +} diff --git a/.2119/verdicts/REQ-013.2.2.json b/.2119/verdicts/REQ-013.2.2.json new file mode 100644 index 0000000..ddcc008 --- /dev/null +++ b/.2119/verdicts/REQ-013.2.2.json @@ -0,0 +1,8 @@ +{ + "reviewId": "REQ-013.2.2--e5c08361d79e", + "requirementId": "REQ-013.2.2", + "hash": "e5c08361d79e", + "verdict": "pass", + "summary": "Genuine: declaration-only edits to both tests and evidence globs invalidate (tests/evidence-groups.test.ts:255,268; mutants omitting decl/tests/evidence from the hash each fail there), removal stales the dependent verdict through the real dist/cli.js gate (:360-362), addition/reorder covered (:228,:219) with no churn to the unrelated requirement.", + "timestamp": "2026-10-22T05:43:49.999Z" +} diff --git a/.2119/verdicts/REQ-013.3.1.json b/.2119/verdicts/REQ-013.3.1.json new file mode 100644 index 0000000..71bdc82 --- /dev/null +++ b/.2119/verdicts/REQ-013.3.1.json @@ -0,0 +1,8 @@ +{ + "reviewId": "REQ-013.3.1--e1d7fd220856", + "requirementId": "REQ-013.3.1", + "hash": "e1d7fd220856", + "verdict": "pass", + "summary": "Verified by end-to-end tests driving the real gate (node dist/cli.js check and check --changed) on a fully green fixture project: adding declared group 'typo' with unmatched evidence glob helpers/nope/** and separately with unmatched tests glob tests/missing/** each flips check to exit 1 with stderr naming 'evidence group \"typo\"' and the literal unmatched glob (src/check.ts:130-143 pushes rule REQ-013.3.1 over both tests and evidence fields against walk(root)), and check --changed --json reports a violation with rule REQ-013.3.1 mentioning the group; both disjuncts, the group/glob naming clause, and the not-silently-green clause are each covered, with baseline check asserted status 0 before mutation", + "timestamp": "2026-10-21T21:46:43.015Z" +} diff --git a/.2119/verdicts/REQ-013.4.1.json b/.2119/verdicts/REQ-013.4.1.json new file mode 100644 index 0000000..2b0a58a --- /dev/null +++ b/.2119/verdicts/REQ-013.4.1.json @@ -0,0 +1,8 @@ +{ + "reviewId": "REQ-013.4.1--d165ba857092", + "requirementId": "REQ-013.4.1", + "hash": "d165ba857092", + "verdict": "pass", + "summary": "Verified in tests/evidence-groups.test.ts: editing the inapplicable parser group's helper (helpers/parser.ts) leaves REQ-001.1.1's review ID unchanged while REQ-001.1.2's changes; gate check and check --changed report only REQ-001.1.1 stale; removing the inapplicable storage group leaves REQ-001.1.2's ID unchanged. Mutation check: dropping the applicability filter in evidenceGroupParts (src/review.ts) fails all of these tests.", + "timestamp": "2026-10-21T22:45:23.799Z" +} diff --git a/README.md b/README.md index 094c063..a29e848 100644 --- a/README.md +++ b/README.md @@ -331,6 +331,10 @@ review_model: "opus" # advisory, platform-specific; default recommends # "a capable, cost-effective model" shared_evidence: [] # globs of shared fixtures/helpers hashed into every # test-quality review (see docs/scaling.md) +evidence_groups: # optional scoped helper invalidation: per-feature + storage: # groups mapping covering test-file globs to helper/ + tests: ["tests/storage/**"] # fixture globs hashed only into reviews + evidence: ["helpers/storage.ts"] # those tests cover (see docs/scaling.md) comment_leaders: [] # extra comment leaders for annotation lines, beyond # //, #, *, /*, --, ;, %,