Repository navigation
Signal names and rule accuracy: display names, brief labels, rule leaks, TS ui/generics, function-level scope (#8009-#8012) - #8024
Conversation
…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
|
No description provided. |
|
PR #8024 @ c13aa26: 1 failed check(s) == rosetta-audit (failure) -- real |
|
rosetta-audit: the one regression is intended — keyword-rosetta |
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_NAMESinanalysis_lens.pymaps everySIGNAL_SCHEMAsignal (97 of them): rule key → (persisted column, display name).signal_display_name()accepts either spelling, sostruct_linearreads as Structural Keywords (return/def/void/export) andstate_safety_negas Unsafe Constructs.docs/signals.mdlists every column with its rule key, display name, function and file population share (v2.12.0 population DB, 8.17M functions) and typical matches.linearmeans "paths".FRIENDLY_MAPlabels are unchanged.2. Rule-overlap leaks (#8010)
Each of these tokens was counted by two rules, so the two signals co-occurred by definition.
size_tout ofsafety(a type name; safety contract C1)passis not a bypass;except …: passis one bypass siteexit/dieout ofdebug_prints(they stay inpanics_and_aborts)extendsout ofgenerics(conditional types and<T extends U>still count)3. TS
ui_framework(#8011)<Foo>exprtype assertions are no longer JSX.<Foocounts only with an attribute, a self-close or a closing tag.4. Function-level scope (#8012)
FUNCTION_LEVEL_ABSENT_SIGNALSdeclares the 36function_datacolumns that are zero for every function, with a reason for each. They are listed indocs/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:llm_brief.jsononly: 162 signal-rendering linesmainhas moved since the stack branched (0fddad92e→c63ad4eee), but no golden-master file and no file this PR touches changed onmainin between. The squash merged cleanly.Checks (run on the stack slices)
pr_gates --ratchets: 9/9 pass on the Same token counted by two keyword rules (C size_t = safety+pointers, PHP exit = debug_prints, Python pass = safety_bypasses): pair co-occurrence partly definitional #8010 and TypeScript ui_framework fires on type assertions (<NamedTypeNode>expr) via the JSX-component alternative #8011 slices.pr_gates --fast: 8/9 gates pass on every slice.affectedfails only ontest_committed_fidelity_table_is_fresh_against_the_corpus. That is a local keyword-rosetta checkout mismatch, and the regenerated table is identical on every branch, so this PR adds no drift.audit_checkall clear; the new contract and rule tests, plus the classifier freshness test, pass (65).Class / Sibling gaps
Classes handled here:
embedded_pythontwin, after sweeping every language;Sibling gaps (not here):
export,??, Rustwhere/#[test]/panic!, C#=>): owner calls;FRIENDLY_MAPkey and path renames (Signal display names: 11 signal column names misdescribe what their rules count (struct_linear = structural keywords, not linear code) #8009);spin_lock*,readl/writel,kmalloc,Interlocked*): C sync_locks/io/alloc rules miss kernel vocabulary (spin_lock*, mutex_lock, readl/writel, kmalloc/kfree): kernel C reads as lock- and I/O-free #8016.Closes #8011
Part of #8009, #8010, #8012
Supersedes #8013, #8015, #8019, #8021, #8022
🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY