Skip to content

Golden master signal coverage: 20 signals never fire on the crucible (mostly security/AI), so regressions in them are invisible #4108

Open

Description

@squid-protocol

Problem

The golden master can only catch regressions in signals the crucible actually exercises. In the committed fixture, these signals are 0 on every one of the 3,003 crucible code files:

AI Orchestration Frameworks, Agentic RCE, Architectural Diagrams (Mermaid/PlantUML), Cloud LLM API Integrations, Deep Learning & Neural Networks, Feature Flags, Hardware Bridge, Hyperlinked Literature References, Instructional Code Examples, Invisible Unicode Payload Smuggling, Local Inference & Tensor Math, Low-Level Bitwise / Cryptographic Math, Prompt Injection, Safety & Constraint Bypasses, Sec Extension Mismatch, Sec Tainted Injection, Self-Referential File Copy/Overwrite (Worm Pattern), Structured Literature Headers, Traditional Machine Learning, Vector Databases (RAG).

And these fire on fewer than 0.5% of files (≤ 15): Hardcoded Payload Artifacts, Auth Middleware, Cryptography, Embedded Credentials & Keys, Global Environment Mutation, Inline Assembly Blocks, Non-Standard / Steganographic Imports, Public API Declared Near Raw DB Sink, System Config Mutation, Vectorized Math & Tensor Operations.

A change that silently breaks any of these (most of them security signals) passes the golden check.

Proposal

  1. Add a CI-checked coverage floor: a small script that reads the golden fixture and lists signals with zero (or < N) firing files, and fails if a signal that had coverage drops to zero. A baseline-gated list, like the other audits.
  2. Close the gaps with real public code in language-crucible (an AI/LLM app, a RAG service, a feature-flagged service, docs with Mermaid/links). Where real code can't carry a pattern, add planted cases to keyword-rosetta. That needs a crucible release and pin bump, so this is cross-repo (see docs/ecosystem.md).
  3. Check first whether any of the zeros are genuinely broken detection rather than corpus gaps. Some of these names (e.g. "Hyperlinked Literature References" on a corpus with markdown) look suspicious.

Found during #4100 (PR #4105).

Activity

  1. added
    testing
    priority: high
    security
    on Oct 2, 2026
  2. added a commit that references this issue on Oct 2, 2026
  3. squid-protocol commented on Oct 2, 2026

    @squid-protocol
    OwnerAuthor

    Step 3 findings: which zeros are broken detection and which are corpus gaps

    Checked against origin/main 46acb01, the committed golden fixture, and the v2.9.0 corpus DB.

    signal class evidence action
    prompt_injection dead by design The detector was removed in #1020. The name is kept as an always-zero placeholder because the K-Means features are positional (analysis_lens.py SIGNAL_SCHEMA comment; SURFACE_FAMILY_EXEMPT "always-zero"). Exclude it from the coverage expectation. Delete it when the archetypes are next retrained.
    agentic_rce dead by design Same as above (#1020). Same as above.
    sec_tainted_injection dead by design The compute was removed in #3101/#3102 (~0% precision). The name is frozen as an always-zero placeholder until the rescan and retrain. Same as above.
    sec_extension_mismatch broken The binary-sensor gate in galaxyscope.py:507 tests for the aperture reason "Blacklisted Extension", which 3477c48 renamed to "Denied Extension", so scan_binary() never runs. The text-spoof path in signal_processor needs a .txt/.md/.log/.csv file detected as an executable language, which detection never produces (probed). #4126. No PR: re-enabling the sensor would flag 10.5% of denied-extension files in the corpus pool, almost all false positives, so it needs a decision.
    feature_flags broken (no detector) n/a #4114 (handled separately)
    lit_links / lit_headers / lit_code_blocks not zero: a measurement artifact The 3,003 "code files" in this issue are the files with Coding LOC > 0, which is archetype_drift's selection. All 129 crucible Markdown files have Coding LOC 0, and the lit_* rules exist only in markdown.py. Over all 3,256 golden files they fire on 33 / 101 / 8 files, so the golden already covers them. The coverage floor should count over all parsed files, or at least include Markdown.
    lit_diagrams detector works; corpus gap The crucible v1.6.0 has no ```mermaid / ```plantuml fence. A probe README fires lit_diagrams=1 (with links=2, headers=2, code_blocks=4), and the rule fires on 103 corpus files. Note that docs/ is in IGNORED_DIRECTORIES, so most real Mermaid never reaches the rule. Fill it with real public code in the crucible (a README with a Mermaid block, step 2). No rosetta plant needed.

    prompt_injection and agentic_rce turned out to be dead by design rather than corpus gaps, so planting them in keyword-rosetta wouldn't help: no detector exists to fire on them.

  4. squid-protocol commented on Oct 4, 2026

    @squid-protocol
    OwnerAuthor

    Progress: PR #4259 (merged d5d9862) cut language-crucible v1.7.0 (#36 + #37 + #38), bumped the pin, set LANGUAGE_CRUCIBLE_REF=v1.7.0 and re-blessed both golden legs. Signals that never fire on the crucible went from 17 to 6. Now firing: AI Orchestration Frameworks, Mermaid Diagrams, Cloud LLM API Integrations, Deep Learning, Hardware Bridge, Local Inference & Tensor Math, Bitwise/Crypto Math, Safety & Constraint Bypasses, Worm Pattern, Traditional ML, Vector Databases (RAG).

    Still dark:

    Keeping this open for those two plants (and the placeholders' decision).

  5. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Siblings from #4982 / PR #5080: Non-Standard Unicode / Homoglyphs joins this list. Its only crucible hits were typosquat-radar false positives that #4982 removed, so it is now baselined at zero in tests/signal_coverage_baseline.json. Needed: a planted import line with a Cyrillic/Greek/math-alphanumeric character in keyword-rosetta, then drop the baseline entry.

    • Non-Standard Unicode / Homoglyphs (planted case in keyword-rosetta)
  6. added
    scope:infra
    on Oct 16, 2026
  7. added
    needs:crucible
    on Oct 18, 2026
  8. 118 remaining items

  9. squid-protocol commented on Nov 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4108-20261124T2139Z (host nyx) ended without a PR. Step 1 already on main (#8304/#8578/#8646); no PR. Step 2 is cross-repo crucible work, needs owner; do not relaunch #4108 as filler. claim:nyx is churn's own lease.

  10. squid-protocol commented on Nov 26, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4108-20261126T1736Z (host nyx) ended without a PR. step 1 already on main (signal_coverage.py, #8304/#8578/#8646); no PR. Step 2 cross-repo, step 3 baseline check remain

  11. added a commit that references this issue on Nov 26, 2026
  12. squid-protocol commented on Nov 26, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4108-20261126T1823Z (host nyx) ended without a PR. PR #9397 merge; remaining: fixture-probe 21 thin signals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engineneeds:cruciblepriority: highscope:infrasecuritytesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions