Skip to content

Signal names and rule accuracy: display names, brief labels, rule leaks, TS ui/generics, function-level scope (#8009-#8012) - #8024

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
feat/8009-8012-signal-names-rule-fixes
Nov 7, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
feat/8009-8012-signal-names-rule-fixes

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What this does

One PR for the five-PR stack (#8013, #8015, #8019, #8021, #8022), squashed at the owner's request because CI is capacity-limited.

This PR exceeds the 5-hand-written-file limit (11 hand-written files). The owner asked for one combined PR to save CI runs.

The work came out of temporal-crucible's population keyword studies: reading function fingerprints in detail exposed misleading signal names and rule leaks.

1. Signal display names (#8009)

  • SIGNAL_DISPLAY_NAMES in analysis_lens.py maps every SIGNAL_SCHEMA signal (97 of them): rule key → (persisted column, display name). signal_display_name() accepts either spelling, so struct_linear reads as Structural Keywords (return/def/void/export) and state_safety_neg as Unsafe Constructs.
  • docs/signals.md lists every column with its rule key, display name, function and file population share (v2.12.0 population DB, 8.17M functions) and typical matches.
  • The LLM brief shows display names beside the raw keys. Its lexicon no longer tells readers linear means "paths".
  • This is a display layer only (The risk_* vectors measure activity, not risk — rename, reframe, or split (evidence: the full #2982 validation record) #2991 precedent): DB columns, JSON keys and FRIENDLY_MAP labels are unchanged.

2. Rule-overlap leaks (#8010)

Each of these tokens was counted by two rules, so the two signals co-occurred by definition.

language change
c size_t out of safety (a type name; safety contract C1)
python, embedded_python bare pass is not a bypass; except …: pass is one bypass site
php exit / die out of debug_prints (they stay in panics_and_aborts)
typescript class / interface extends out of generics (conditional types and <T extends U> still count)

3. TS ui_framework (#8011)

<Foo>expr type assertions are no longer JSX. <Foo counts only with an attribute, a self-close or a closing tag.

4. Function-level scope (#8012)

FUNCTION_LEVEL_ABSENT_SIGNALS declares the 36 function_data columns that are zero for every function, with a reason for each. They are listed in docs/signals.md. Dropping them waits for the archetype retrain.

Golden masters

Re-blessed slice by slice with golden-lock.sh … crucible_check.py --update --yes, both legs. Every difference is attributed:

slice differences per leg where
brief 1 llm_brief.json only: 162 signal-rendering lines
#8010 2,150 file-level diffs on .py 1,195 / .c 427 / .h 81 / .php 75, plus Cython repo rollups
#8011 554 file-level diffs all on .ts (474)

main has moved since the stack branched (0fddad92e → c63ad4eee), but no golden-master file and no file this PR touches changed on main in between. The squash merged cleanly.

Checks (run on the stack slices)

Class / Sibling gaps

Classes handled here:

  • signal names: all 97 signals;
  • tokens counted by two rules: all four leaks, plus the embedded_python twin, after sweeping every language;
  • the TS JSX alternative: only TS and JS carry it, and JS is correct;
  • always-zero function columns: all 36.

Sibling gaps (not here):

Closes #8011
Part of #8009, #8010, #8012
Supersedes #8013, #8015, #8019, #8021, #8022

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY

…rlap leaks, TS ui/generics, function-level scope (#8009, #8010, #8011, #8012)

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

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

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

PR #8024 @ c13aa26: 1 failed check(s)

== rosetta-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42388966323/job/128452303099
repro: no local equivalent; read the check page
errors:
REG c FAIL c: 1 mismatch(es)
pre haskell FAIL haskell: 8 mismatch(es)
pre hlasm FAIL hlasm: 3 mismatch(es)
pre shell FAIL shell: 6 mismatch(es)
##[error]c: this build moves the control corpus -- FAIL c: 1 mismatch(es)
##[error]Process completed with exit code 1.
log tail:
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/6dcc2243-8794-4973-bd3c-0bbafb8f1657' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy-baseline
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/f2235e81-8ce0-47d3-9946-9fb063a78fb3' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 7, 2026
@squid-protocol squid-protocol added the rosetta:rebless-owed Intentionally moves keyword-rosetta counts; audit warns, corpus re-blesses after merge label Nov 7, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

rosetta-audit: the one regression is intended — keyword-rosetta c/a.c expects safety 2 because it counted size_t, which #8010 removes from C safety (safety contract C1). Labelled rosetta:rebless-owed; the corpus re-blesses against engine main after merge (docs/self_scan/ROSETTA_AUDIT.md). haskell/hlasm/shell are pre-existing corpus drift.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 16:17
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd
squid-shepherd Bot merged commit f32857e into main Nov 7, 2026
74 of 75 checks passed
@squid-shepherd
squid-shepherd Bot deleted the feat/8009-8012-signal-names-rule-fixes branch November 7, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rosetta:rebless-owed Intentionally moves keyword-rosetta counts; audit warns, corpus re-blesses after merge 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.

TypeScript ui_framework fires on type assertions (<NamedTypeNode>expr) via the JSX-component alternative

1 participant