Skip to content

Signal display names: what each keyword signal actually counts (#8009, stack 1/5) - #8013

Closed
squid-protocol wants to merge 1 commit into
mainfrom
feat/8009-signal-display-names
Closed

squid-protocol wants to merge 1 commit into
mainfrom
feat/8009-signal-display-names

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What this does

Gives every keyword signal a readable name that matches what its rule actually counts. Several column names mislead:

column what it actually counts display name
struct_linear return, def, void, export keywords Structural Keywords
state_safety_neg sprintf, strcpy, void*, TS any Unsafe Constructs
state_heat_triggers goto, #define, getattr Metaprogramming
struct_args call and definition sites with arguments Calls & Signatures With Arguments

The full list is in #8009.

  • SIGNAL_DISPLAY_NAMES in analysis_lens.py (section 7c): rule key → (persisted column, display name), for all 97 SIGNAL_SCHEMA signals.
  • signal_display_name() accepts either spelling (structural_boundaries or struct_linear).
  • docs/signals.md: the reader-facing table. For every signal it lists the column, rule key, display name, function and file population share (v2.12.0 population DB, 8.17M functions) and the rule's typical matches.
  • tests/core_engine/test_signal_display_names.py: every signal has exactly one entry; columns equal RecordKeeper.SHORT_KEY_MAP; names are unique; the doc lists every column.

Display layer only, following the #2991 Option-A precedent. DB columns, JSON keys and the golden-mastered FRIENDLY_MAP labels are unchanged, and nothing the engine emits changes (no golden diff).

Class / Sibling gaps

The class is "a persisted signal name that misdescribes its rule". Every member is handled here: all 97 SIGNAL_SCHEMA signals get a display name, not just the 11 misleading ones, so consumers have one lookup.

Sibling gaps (stacked PRs, in order):

Checks

  • New contract tests: pass. Tree-wide guards: pass. time_ratchet: 0 over the limit. audit_check: all clear.
  • pr_gates --fast: 8/9 gates pass. affected fails only on test_committed_fidelity_table_is_fresh_against_the_corpus. That is a local keyword-rosetta checkout mismatch (fidelity_table.py vs /nvme-data/projects/keyword-rosetta), and neither file is touched here.
  • --ratchets: not run, because no golden, ledger or baseline input changes.

Doc-refs fixes: none.

Part of #8009

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY

…docs/signals.md (#8009)

Display layer only (#2991 Option-A precedent): one entry per SIGNAL_SCHEMA
signal, rule key -> (persisted column, display name), so struct_linear reads
as Structural Keywords and state_safety_neg as Unsafe Constructs. Columns,
JSON keys and the golden-mastered FRIENDLY_MAP labels are unchanged.
Contract test pins coverage, recorder-column parity, uniqueness and the doc.

Part of #8009

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 15:53
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

Superseded by #8024 (the stack squashed into one PR to save CI capacity, at the owner's request).

squid-shepherd Bot pushed a commit that referenced this pull request Nov 7, 2026
…rlap leaks, TS ui/generics, function-level scope (#8009, #8010, #8011, #8012) (#8024)

Squash of the five-PR stack (#8013, #8015, #8019, #8021, #8022), combined at the
owner's request to save CI capacity.

- #8009: SIGNAL_DISPLAY_NAMES + signal_display_name() + docs/signals.md; the LLM
  brief shows display names beside raw keys and no longer calls linear 'paths'.
- #8010: C size_t out of safety; Python/embedded_python pass only as
  except...: pass (one site); PHP exit/die out of debug_prints.
- #8011: TS ui_framework treats <Foo> as JSX only with attribute/self-close/
  closing tag; class/interface extends is not generics.
- #8012: FUNCTION_LEVEL_ABSENT_SIGNALS marks the 36 always-zero function columns.
Golden masters re-blessed per slice, every difference attributed.

Fixes #8011


Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant