Skip to content

LLM brief: signature lexicon names signals by display name and rule key (Part of #8009) - #8378

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8009 (slice 2 remainder). Slice 2's main rendering already landed (#8320 Structural Signatures lines, #8343 audit JSON labels); this covers the brief's static lexicon that was still left on hand-typed aliases.

What changed

  • gitgalaxy/recorders/llm_recorder.py: the "STRUCTURAL SIGNATURE LEXICON" bullets and core directive 3 are built from _LEXICON_GROUPS (rule key + gloss) and render **Display Name** (rule_key), the same pairing the Structural Signatures lines use. The retired aliases linear, flux, danger, safety_neg, freeze_hits, graveyard no longer appear in the brief prose.
  • tests/tools_recorders/test_llm_brief_lexicon_sync_8009.py (new): every lexicon key is a signal; the lexicon plus an explicit not-glossed set equals the brief's four signature groups (a new grouped signal fails until classified); each entry renders display name and key; no retired alias is named in the brief prose.
  • Golden regen (both fixtures, 12_scan_output_snapshots/llm_brief.json): the diff is exactly the 5 lexicon/directive lines, nothing else.

Class / Sibling gaps

Class: brief text that names a signal by a hand-typed alias or gloss instead of the canonical SIGNAL_DISPLAY_NAMES entry. All four lexicon bullets and directive 3 are handled in this PR, each pinned by the new test.

Sibling gaps: (1) llm_recorder section 7 "Top I/O Latency Risks" shows a bare Hits: count with no signal name; (2) "Highest Design Slop" labels ("Orphaned Functions", "Duplicates") are prose, not display names; (3) audit_recorder function-level label "Reflection Hits" (golden-mastered, needs its own regen); (4) dna_hits SQLite rows keep raw rule keys (storage, intentionally unchanged). Not done here: different lines, and (3) needs a separate golden.

Remaining slices: the three prose/label items above, then column renames at the next archetype retrain (issue plan item 3).

Gates

New test + test_llm_brief_signal_display_names.py + test_signal_display_names.py (19 passed); audit_check.py all clear; ruff format clean; crucible_check.py --update --yes via golden-lock (both legs, only the llm_brief lines moved). pr_gates --ratchets not run.

Lessons for agents

  • A bare cat > file with no heredoc in a Bash call blocks on stdin and hangs the call; write scratch scripts with the Write tool.

🤖 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.

1 similar comment
@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 20:57
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 12, 2026 20:57
@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