Repository navigation
test(#4108): signal-coverage floor over the golden masters - #4115
Merged
Merged
Conversation
The golden-master diff can only catch a regression in a signal the crucible exercises: 17 structural signatures fire on no crucible file, so a broken rule for any of them is blessed in silently. tests/tools/signal_coverage.py counts, per signature, the files it fires on in each committed fixture and checks the zero set against tests/signal_coverage_baseline.json, where each zero carries its reason (corpus gap / placeholder kept for SIGNAL_SCHEMA positions / by-design / no detector). tests/test_signal_coverage.py fails when a signal that had coverage drops to zero, or a baselined zero starts firing (ratchet it out). Corpus-free: it reads the committed fixtures. Investigation found one real detection gap -- feature_flags has no detector at all though it feeds the debt family -- filed as #4114. The rest are corpus gaps (need crucible samples, a cross-repo change) or deliberate placeholders. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #4108 (the engine-side half; corpus additions are cross-repo, see below).
Problem
The golden-master diff can only catch a regression in a signal the crucible exercises. 17 structural signatures fire on no crucible file (counted over all 3,256 files, including markdown), so a rule that breaks for any of them gets blessed into the golden master with no diff.
What this adds
tests/tools/signal_coverage.py(report/check): counts, for each signature, how many crucible files it fires on in each committed fixture.tests/signal_coverage_baseline.json: the 17 zero-coverage signals, each with the reason it is zero.tests/test_signal_coverage.py(default suite, corpus-free, about 2 s). It fails when:Why each of the 17 is zero
ReactFeatureFlags)SIGNAL_SCHEMApositionsThe investigation checked every one against the crucible source (e.g. no
sklearn/torch/openaiimports in the rule languages, no```mermaidfences, noverify=False). Only Feature Flags is an engine defect.Not in this PR
docs/ecosystem.md; Golden master signal coverage: 20 signals never fire on the crucible (mostly security/AI), so regressions in them are invisible #4108 stays open for it. Each sample that lands removes a line from the baseline, and the floor enforces that.FRIENDLY_LABELSentry. That's cosmetic, and renaming would churn every fixture key, so it's left out.No engine change and no golden re-bless.
🤖 Generated with Claude Code