Skip to content

test(#4108): signal-coverage floor over the golden masters - #4115

Merged
squid-protocol merged 2 commits into
mainfrom
fix/4108-signal-coverage-floor
Oct 2, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/4108-signal-coverage-floor

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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:
    • a signal that had coverage drops to zero (it lost its only regression guard, usually a broken rule being blessed), or
    • a baselined zero starts firing (ratchet it out of the baseline), or
    • a baselined signal disappears or is renamed.

Why each of the 17 is zero

Reason Signals
No detector (filed #4114) Feature Flags: it feeds the debt family but nothing writes it, though the crucible has real flag usage (React's ReactFeatureFlags)
Placeholder kept for SIGNAL_SCHEMA positions Prompt Injection, Agentic Rce (#1020), Sec Tainted Injection (#3101)
By design Local Inference & Tensor Math (only the model-weight-file path writes it)
Corpus gap AI Orchestration, Cloud LLM API, Vector DBs, Traditional ML, Deep Learning, Hardware Bridge, Mermaid/PlantUML diagrams, Unicode payload smuggling, bitwise/crypto math, safety bypasses, extension mismatch, worm pattern

The investigation checked every one against the crucible source (e.g. no sklearn/torch/openai imports in the rule languages, no ```mermaid fences, no verify=False). Only Feature Flags is an engine defect.

Not in this PR

No engine change and no golden re-bless.

🤖 Generated with Claude Code

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]>
@squid-protocol squid-protocol added testing Unit, integration, and E2E pipeline verification security Security-relevant dependency updates and patches labels Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 80bfe4d into main Oct 2, 2026
27 checks passed
@squid-protocol
squid-protocol deleted the fix/4108-signal-coverage-floor branch October 2, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security Security-relevant dependency updates and patches testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant