Skip to content

Audit JSON: key Structural Signatures by signal display name, with golden regen (Part of #8009) - #8343

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8009-20261112T0526Z
Nov 12, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8009-20261112T0526Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8009 (slice 2, audit half; the LLM brief half landed in #8320 and its test).

The audit JSON's "7. Structural Signatures (Net Mitigated Signals)" node was keyed by FRIENDLY_MAP labels, or by title-cased rule keys where FRIENDLY_MAP had no entry. About 80 labels therefore disagreed with signal_display_name and the LLM brief. AuditRecorder now builds those labels with signal_display_name(key). Stored columns, JSON keys elsewhere and FRIENDLY_MAP are unchanged.

Class / Sibling gaps

Class: an audit JSON signal label that differs from the canonical display name (SIGNAL_DISPLAY_NAMES). Every SIGNAL_SCHEMA key is covered by one change in audit_recorder.py and pinned by test_audit_signature_labels_8009.py, which checks schema order, unique labels and unchanged values. The 11 signals named in the issue were already relabelled in FRIENDLY_MAP, so they do not move here.
Sibling gaps:

  • FRIENDLY_MAP still holds the old wording for about 40 keys, which other format_label callers could still show. Left alone because a different mechanism (golden-mastered risk labels) shares it.
  • Column renames wait for the next archetype retrain (feature_flags signal has no detector: always 0, yet it feeds the debt risk family #4114 precedent).
  • docs/signal_coverage_verdicts.md still quotes old labels in prose (not regenerated here: the 5-file cap).

Golden drift (attributed)

Both fixtures: the 97 per-signal split files under 7_structural_signatures_net_mitigated_signals/ are renamed to the new label slugs. I checked old against new per file path: every value is identical in both fixtures. The only content change is the label text (and path metadata of time_date_logic.json, "Time Date Logic" -> "Time & Date Logic"). 12_scan_output_snapshots/llm_brief.json did not move.

Cross-repo

Anything outside this repo that reads the audit JSON by the old label string (population-analyses and similar) will need the new names. No companion PR; I found no reader in this repo besides the files updated here.

Gates

pr_gates --fast 9/9 pass; signal_coverage.py check OK; the new test, test_signal_display_names*, test_audit_recorder.py and test_zero_coverage_signals_4108.py pass. crucible_check.py --update --yes run via golden-lock.
Hand-written files (5): audit_recorder.py, test_zero_coverage_signals_4108.py, test_audit_signature_labels_8009.py, .claude/skills/add-signal/SKILL.md, tests/signal_coverage_baseline.json (regenerated key rename).

Remaining slices

Prose in docs/signal_coverage_verdicts.md; FRIENDLY_MAP alignment; column renames at retrain.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 12, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 12, 2026 05:44
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 12, 2026 05:44
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant