Skip to content

Signal display names: 11 signal column names misdescribe what their rules count (struct_linear = structural keywords, not linear code) #8009

Open

Description

@squid-protocol

Problem

The function_data / file_data signal column names describe something other than what their rules count. Research on the v2.12.0 population DB (8.17M functions, engine b64f42bf) read several of them wrongly before checking the rules. Audit: temporal-crucible docs/signal_name_audit.md (PR squid-protocol/temporal-crucible#85). It traces each rule through RecordKeeper.SHORT_KEY_MAP and lists each rule's most frequent matches on the engine code stream of language-crucible files.

column rule key FRIENDLY_MAP label what it actually matches proposed display name
struct_linear structural_boundaries Sequential Logic Declarations return, void, def, import, export, struct, => Structural Keywords
state_safety_neg safety_bypasses Type/Safety Bypasses sprintf, strcpy, (T *) casts, void *, catch (...), TS any Unsafe Constructs
state_heat_triggers reflection_metaprogramming Metaprogramming & Reflection C goto, #define; Python getattr, @classmethod Metaprogramming (Macros, Reflection, goto)
struct_args args Function Parameters call and definition sites with arguments Calls & Signatures With Arguments
state_flux state_mutation State Mutations i++, x =, .push( State Mutation
state_bailout_hits panics_and_aborts Fatal Aborts & Exceptions raise, throw, abort, exit, C return -1 Error Exits (raise/throw/abort)
state_halt_hits thread_sleeps Thread Sleeps sleep, setTimeout Sleeps & Timed Waits
def_freeze_hits immutability_locks Immutable Data Declarations const, readonly, final Immutability (const/readonly/final)
def_safety safety Defensive Programming Constructs assert, try, isinstance, ?.; C also size_t Defensive Checks
arch_api api Exposed API / Public Exports export, public, non-_ Python def, C non-static / typedef / extern Public / Exported Surface
def_encapsulation encapsulation Private / Encapsulated Scopes private, protected, C static, Python _name Private Scope (private/static/_name)

The signals themselves are sound; only the names mislead. struct_linear as "linear code" is the costliest misreading: the column is present in 85% of functions because it counts return.

Plan (#2991 Option-A precedent: display layer, stored names unchanged)

  1. Slice 1: SIGNAL_DISPLAY_NAMES in analysis_lens.py.
    • One entry per SIGNAL_SCHEMA key: (DB column, display name).
    • signal_display_name() accepts either a rule key or a column.
    • docs/signals.md reference.
    • A drift test against SHORT_KEY_MAP.
    • Emits nothing new, so no golden change.
  2. Slice 2: render display names in the LLM brief's "Structural Signatures" lines and the audit JSON labels. Both are golden-mastered (12_scan_output_snapshots/llm_brief.json, 7_structural_signatures_net_mitigated_signals/*), so that slice carries the golden regen.
  3. Column renames: only at the next archetype retrain (feature-dimension parity; feature_flags signal has no detector: always 0, yet it feeds the debt risk family #4114 precedent).

Siblings filed separately: shared tokens counted by two rules; TS ui_framework on type assertions; function-level columns that are always zero.

Activity

  1. added
    enhancement
    schema
    core-engine
    scope:core
    on Nov 7, 2026
  2. squid-protocol commented on Nov 10, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 8009-20261110T0248Z (host nyx) ended without a PR. Slices 1-2 already on main via #8024 (display names, docs/signals.md, drift test, brief labels golden). Slice 3 (column renames) deferred to next archetype retrain; issue left open, nothing queued.

  3. squid-protocol commented on Nov 11, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 8009-20261111T0652Z (host nyx) ended without a PR. Slice 1 + brief names already merged in #8024; remaining: audit JSON labels slice queued

  4. 238 remaining items

  5. squid-protocol commented on Nov 27, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 8009-20261127T0611Z (host nyx) ended without a PR. No PR: slice 1-2 merged; only owner-deferred DB column renames (slice 3, tied to archetype retrain) remain. Issue left open.

  6. squid-protocol commented on Nov 27, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host nyx, lease renewed 2026-11-27T13:24Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:nyx label.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    claim:nyxcore-engineenhancementpriority: mediumschemascope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions