Repository navigation
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
Closed
squid-protocol wants to merge 1 commit into
squid-protocol wants to merge 1 commit into
Conversation
) 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
Contributor
|
No description provided. |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack 5/5. Base is #8021. Review last.
What this does
36
function_datasignal 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:sec_*/threat_*signals) runs file-wide;llm_vector_storeandllm_local_computeare import-based, and imports sit outside function bodies;sec_extension_mismatch,sec_tainted_injection, and the removedprompt_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:
FUNCTION_LEVEL_ABSENT_SIGNALSinanalysis_lens.py: rule key → reason ("file-level only: …" / "never set: …");docs/signals.mdlisting every such column, plus a provenance note that the doc's typical matches predate 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 / TypeScript ui_framework fires on type assertions (<NamedTypeNode>expr) via the JSX-component alternative #8011 fixes;tests/core_engine/test_function_level_scope_8012.py: every entry is a real signal with a reason, and the doc lists each column.Nothing the engine emits changes (no golden diff). Dropping these columns from
function_datachanges the archetype feature dimension, so that waits for the next retrain (the #4114 precedent).Checks
audit_check: all clear.pr_gates --fast: 8/9 gates pass.affectedfails only on the local keyword-rosetta fidelity-table mismatch, as on the rest of the stack.Class / Sibling gaps
The class is "a
function_datacolumn 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