Skip to content

fix(packs): pack test counts truth sites listed as folded evidence as covered - #165

Merged
lucasbraum merged 1 commit into
lucasbraum/promote-verified-packsfrom
lucasbraum/score-folded-evidence
Oct 16, 2026
Merged

lucasbraum merged 1 commit into
lucasbraum/promote-verified-packsfrom
lucasbraum/score-folded-evidence

Conversation

@lucasbraum

Copy link
Copy Markdown
Collaborator

Stacked on #160 (base is its branch; retarget to main once #160 merges).

What

predictedSites (packs/tooling/pack-test.ts) now takes the repository's expected sites. When an anchored finding lists one as downstream evidence, that site counts as covered, at the truth's own rule and severity. Examples: TypeScript 6 types: [] errors folded into one changed-defaults finding per tsconfig, and #136's TS7006 option cascades. So covered sites add true positives to the breaking and overall tallies and to their own rule. They don't inflate the behavior-note tally. Evidence the truth doesn't name stays unscored, as before. No ground-truth changes.

Re-score: typescript (--write, once)

Before After
Breaking precision 100% 100%
Breaking recall 17% (240 / 1,399) 99% (1,379 / 1,399)
Breaking FP 0 0
Behavior notes P / R 20% / 50% 20% / 50% (unchanged)
Gate verified verified

The 20 remaining breaking misses are the second-round and same-change lines RESEARCH.md already lists. README table, RESEARCH.md and verification.json are updated; the change to docs/packs.md is one sentence. Packs whose records include anchored evidence may show changed numbers on the next run. The scorer only adds true positives, so no false positive count or gate verdict can change.

Checks

  • vitest run in core: 1,857 passed. The predictedSites evidence test now also covers a named evidence site.
  • pnpm lint (pre-existing warnings only), typecheck, docs:packs --check, public:check pass.

🤖 Generated with Claude Code

… covered

A ground-truth site that an anchored finding lists as evidence (TypeScript 6
`types` errors folded into changed-defaults, #136's option cascades) now
scores as covered, at the site's own rule and severity. Evidence the truth
does not name stays unscored. Ground truth unchanged.

Re-scored typescript: breaking recall 17% -> 99% (1,379 of 1,399), 0 FP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lucas Braum <lucasbraum@gmail.com>
@lucasbraum
lucasbraum merged commit 90c45cb into lucasbraum/promote-verified-packs Oct 16, 2026
28 checks passed
@lucasbraum
lucasbraum deleted the lucasbraum/score-folded-evidence branch October 16, 2026 03:14
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