Skip to content

Function-level signal scope: mark the 36 always-zero function_data columns (#8012, stack 5/5) - #8022

Closed
squid-protocol wants to merge 1 commit into
fix/8011-ts-ui-framework-assertionsfrom
docs/8012-function-level-signal-scope
Closed

squid-protocol wants to merge 1 commit into
fix/8011-ts-ui-framework-assertionsfrom
docs/8012-function-level-signal-scope

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Stack 5/5. Base is #8021. Review last.

What this does

36 function_data signal columns are zero for every function in the v2.12.0 population DB (8,173,786 functions), because their signals never reach the per-function hit vector:

  • the security lens (15 sec_* / threat_* signals) runs file-wide;
  • literature sensors run on documentation files;
  • naming and indent style, the declaration census, duplicate detection and the unreferenced-by-name census are file-level;
  • llm_vector_store and llm_local_compute are import-based, and imports sit outside function bodies;
  • four signals are never set at all: sec_extension_mismatch, sec_tainted_injection, and the removed prompt_injection / agentic_rce.

Consumers read those zeros as measurements; one study reported "0% of outliers carry threat signals" before the cause was found. This PR:

Nothing the engine emits changes (no golden diff). Dropping these columns from function_data changes the archetype feature dimension, so that waits for the next retrain (the #4114 precedent).

Checks

Class / Sibling gaps

The class is "a function_data column that is structurally zero". All 36 are listed and evidenced from the population DB. Sibling gaps:

Part of #8012

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY

)

36 signals are zero for every function in the v2.12.0 population DB (8.17M
functions): the security lens, literature sensors, naming/indent style and
the cross-file censuses run file-wide, and four signals are never set. The
map gives the reason for each, and docs/signals.md marks them, so a function-level
0 reads as 'not measured here'. Dropping the columns waits for the retrain.

Part of #8012

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 7, 2026
@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
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 7, 2026
@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