Repository navigation
visibility - #13
Merged
Merged
visibility#13
Conversation
squid-protocol
added a commit
that referenced
this pull request
Aug 30, 2026
…er shapes validated (#2513) Closes out the tri-skill validation pass (harden-language-extraction, harden-strict-signatures, tri-comparison-ledger-sweep) on sqlite, the newest crucible language category (PR #13/#17). **Real bug #1 (recall):** sqlite was never added to detector.py's _CLASS_START_NAMED_EXTRACTION_LANGS, so its already-hardened epic #813/#836 class_start regex (CREATE TABLE) never reached named-entity output -- class_data stayed permanently empty (0 of 73 real tables) despite the regex itself working. Added sqlite to the allowlist. **Real bug #2 (precision):** the newly-populated class names came out with their SQLite quote characters still attached ("User" instead of User) for any double/backtick/bracket-quoted table -- class_start's capture group includes the quotes by design (epic #813/#836 kept them in a single group to preserve the "group 2 == inheritance parent" convention every other allowlisted language relies on). Added a sqlite-scoped quote-strip in splice() so the stored name is the bare identifier, matching ctags/SQLite itself. **Real bug #3 (dependency-graph precision):** _dependency_capture's `.import`/`.read`/`.load` alternative captured the first whitespace- delimited token unconditionally -- SQLite CLI's real `.import` accepts leading flags (`-csv`, `-colsep ","`, `-skip N`, ...), so `.import -csv file1.csv t4` captured the flag `-csv` itself as the "dependency path", a real false positive. Fixed by requiring the captured token not start with `-` (trades a miss for never a wrong path, matching this signal's existing bias elsewhere in the file). Verified against the live tri-comparison gatherer (not just the regex in isolation): class existence is now 73/73 (100% recall) against ctags' 66/73, a strict superset -- the 7 gitgalaxy-only occurrences are all independently confirmed real tables ctags' SQL parser misses (virtual tables, tables after a leading `BEGIN;`, backtick-quoted identifiers). Function existence (262 gitgalaxy `*_Statement` satellites vs. ctags' 0 `f`/`p` tags) is a genuine different-question case, same "closest function-shaped construct this language has" precedent as css's at-rules -- SQLite has no CREATE FUNCTION/PROCEDURE syntax for ctags to find. Both docs/self_scan/tri_comparison_ledger.json shapes recorded as `validated` with full investigation writeups (class: credit gitgalaxy; function: no credit, since crediting would misstate "ctags should have agreed" rather than "nothing for ctags to find"). Chart/report regenerated --all --write per repo convention; only sqlite's two shapes changed (verified via structural diff against main), no other language disturbed. audit_strict_coverage.py confirms sqlite's strict-signature suite (epic #1069) already has zero gaps (43/43 applicable signatures, 81 cases) -- harden-strict-signatures needed no changes. Filed #2512 separately (not fixed here, out of this PR's scope): two aperture heuristics (infra_path_pattern's `generated`/`scripts` segments, the content-based "Machine-Generated Source Code Signature" gate) silently exclude 33 of the sqlite corpus's 73 git-tracked .sql files from ever being scanned -- a real corpus-utilization gap, but pre-existing and orthogonal to this pass's extraction-correctness fixes. Verification: crucible_check.py clean on both venvs (no golden-master diff), audit_check.py clean, full extraction+strict+detector+core_engine suites pass (166 sqlite gauntlet/strict tests + 1 new detector-level allowlist/quote-strip test, 859 passed across the broader suite). Claude-Session: https://claude.ai/code/session_014BKXKcW29F3pTm7To2wMwS Co-authored-by: Claude Sonnet 5 <[email protected]>
squid-protocol
added a commit
that referenced
this pull request
Aug 31, 2026
…der corpus (#2524) The assembly crucible corpus grew 3->16 folders (253 new files, PR #13) since the last tri-comparison investigation (2026-08-27, 3 folders). Re-ran the full gather-and-diff per the tri-comparison-ledger-sweep skill's own guidance for a substantially-grown corpus rather than trusting the already-`validated` status. Real confirmed engine defect found and fixed: assembly's lexical_family ("line_exclusive") only ever recognized `;`/`#` line comments -- but `.S` files are routed through the C preprocessor and routinely carry genuine `/* ... */` block comments (BSD/FreeBSD kernel license headers, Emacs modelines, register-usage doc comments) that were never stripped at all. func_start matched label-shaped text INSIDE the unstripped comment: `Result:` (linux_1_0_kernel's stack-layout doc comment) and `r9:`/`r10:`/`r11:` (freebsd_kernel_arch's register-usage doc comment), 5 occurrences corpus-wide. Fixed with a new `_strip_asm_block_comments` prism.py pre-processing pass, run BEFORE `;`/`#` line-stripping -- deliberately, confirmed by direct corpus measurement rather than assumed: 121 real `/* ... */` blocks in this corpus contain a bare `;`/`#` internally (copyright prose, URLs, Emacs modelines like `/*-*- mode:unix-assembly; indent-tabs-mode:t; ... -*-*/`), so stripping line comments first would truncate every one of those blocks at its first internal `;`/`#`, corrupting the search for the block's real closing `*/`. The reverse risk (a `;`/`#` comment containing an unclosed `/*`) was checked and occurs zero times in this corpus. Same shielded-alternation idiom as the generic REGEX_MATRIX stripper (LITERAL_MASK_PATTERN tried first, so `.ascii "a /* b"` passes through unharmed) and the same ReDoS-accepted `/\*.*?\*/` shape every "standard_block" C-family language already uses. 4 new regression tests (basic strip, the line-comment-ordering hazard, literal-shielding, ReDoS). Verified: exactly 5 fewer func_start matches corpus-wide post-fix (1144 -> 1139), matching the confirmed count precisely. Both golden masters re-blessed -- the diff is large but fully expected (removing 5 phantom "functions" shifts per-directory documentation/tech-debt/cognitive-load averages for the affected folders, and the whole corpus's 3D topological layout reflows globally the same way any structural-mass change does). Both assembly tri-comparison ledger shapes re-validated at ~70x the prior sample size (2899 total slots vs. the old corpus's much smaller one) -- same disposition as before (no credit/debit on the ctags-only shape; credit gitgalaxy on the gitgalaxy-only shape), but with two newly-confirmed mechanisms behind the much bigger ctags-only count: ctags' generic Asm parser tagging a bare macro- invocation keyword as a literal "label" (NASM's own `%macro x 1+.nolist` instruction-set self-test files, tagged up to 192 times in one file; cpm65_6502's `zproc`/`zendproc`/`.label` procedure-macro convention, same mechanism), and tagging ordinary instruction mnemonics as repeated "labels" on FASM-dialect files (raspberrypi_baremetal's `format`/`include`/`code64` directives desync ctags' line-start heuristic entirely). GitGalaxy correctly excludes all of these -- func_start requires a real `name:` declaration head none of them have. One new confirmed GitGalaxy-correct mechanism credited: GAS's `funcname.localname:` dot-scoped local-label convention (do_e820.jmpin etc.), which ctags structurally can't parse -- same "GitGalaxy correct, ctags can't" bucket as the existing NASM-local-label precedent. One residual, deliberately-not-chased false positive documented in the verdict (a single `#define SYSCALL(name) ... name: ...` C-preprocessor macro template misread as a real label -- narrow, one occurrence, disproportionate to fix). Claude-Session: https://claude.ai/code/session_014BKXKcW29F3pTm7To2wMwS Co-authored-by: Claude Sonnet 5 <[email protected]>
squid-protocol
added a commit
that referenced
this pull request
Sep 14, 2026
…le_data (#3017) #2985 asked for the SecurityLens's granular counts to be persisted to the scan DB. Checked first: 15 of the 17 lens outputs are ALREADY file_data columns, and two of the three signals the issue names by hand (sec_tainted_injection, sec_bitwise_ops) have been columns all along. The real gap is two names: sec_db_hooks raw DB sink sensor (THREAT_SIGNATURES #13) sec_amplified_sql_injection spatial confirmation of a public api -> that sink Both are computed per file and folded into logic_data["equations"], but hit_vector is built as [raw_signals.get(k) for k in SIGNAL_SCHEMA] -- so a key with no schema entry is computed on every file of every scan and then dropped before any recorder sees it. No audit-JSON row, no DB column. On this repo that discarded 71 db-sink hits across 9 files per scan. Both names are appended at the END of SIGNAL_SCHEMA (its order feeds the K-Means archetype classifier positionally) and recorded as threat_db_sinks / threat_sql_injection. The three pre-existing unmapped sec_* columns are left alone on purpose: mapping them now would rename a shipped column out from under the temporal-crucible queries this schema exists to serve. The issue's migration assumption did not hold. "existing DBs unaffected (new columns default)" was false: a rescan over a pre-change DB died with "table file_data has no column named threat_db_sinks" and wrote nothing at all, because _ensure_columns (#2994) only covered tier_cols while the INSERTs name every hit column explicitly. The heal now covers hit_cols on repo_data/file_data/ function_data; verified by rescanning over a DB built by the previous code. Dimension safety: SIGNAL_SCHEMA grows 95 -> 97, but raw_vector skips every ARCHETYPE_EXCLUDED_SIGNALS member and every sec_ name, so the live feature vector stays at 83 dims and still matches the pre-trained SCALER_MEDIANS/ centroids. That filter is hoisted out of an inline literal into a named constant + is_archetype_feature(), and the dimension test now derives its width from it instead of a hard-coded "- 19" this change would have silently invalidated. Golden masters re-blessed (both modes). The diff was scoped exhaustively rather than from crucible_check's capped output: 5636 differences = 5635 new signature rows (2 per parsed file) + the repo-level "Threat Signatures Monitored" 11 -> 12, with ZERO unexplained movers. Additive only -- no existing signal value moved and no topological coordinate churned. Also fixes CLAUDE.md's diff-scoping recipe, which claimed "same flags as tests/test_golden_crucible.py" but omitted GITGALAXY_DISABLE_GIT_HISTORY=1 that the test sets. Following it as written yields ~8,500 phantom differences and a wasted rescan cycle; this PR is what hit it. Tests: two contract guards, both confirmed to fail without the fix. The first (every lens count is a SIGNAL_SCHEMA name) is the guard that would have caught this class of omission in the first place. Full suite: 8873 passed. audit_check: all clear. Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This was referenced Sep 14, 2026
Closed
squid-protocol
added a commit
that referenced
this pull request
Oct 3, 2026
…xt before a packed field); a z/OS RDW decoder for codev's VBRCFILE; CBACT01C results doc Results on carddemo-readacct (base run, 6 environments): codev #13/#14 proven; eval arms A and B, #229, #168 and #214 write every data file byte for byte (#214 not under ar-EG/th-TH); #167 partial (VB records unframed); #220 crashes on the overpunch. docs/research/devin-cbact01c-harness.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
squid-protocol
added a commit
that referenced
this pull request
Oct 3, 2026
…records, register A1/C10/L3/F3; Devin's CBACT01C ports judged (#4198) * WIP (deferred, not for merge): CBACT01C case, COBDATFT model, variable-length records, C10 sign tolerance, Devin CBACT01C ports Deferred by the coordinator mid-way (usage window). State: carddemo-readacct proves for our det port (13 runs, 16/16 paragraphs, 41/44 branches); register entries C10 / L3 / F3 not yet written; no sweep run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ * oracle register: C10 (zoned sign tolerance, scoped), F3 (RECFM=VB exercised), L3 (WORKING-STORAGE with no VALUE), A1 (COBDATFT) The case notes cite A1 for the COBDATFT model, L3 for its two unwritten bytes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ * tests: variable-length framing and comparison (F3), the C10 tolerance's bounds, RECORD VARYING parsing, COBDATFT as a library call Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ * devin_port: fix the hex-packed decoder (it never advanced past the text before a packed field); a z/OS RDW decoder for codev's VBRCFILE; CBACT01C results doc Results on carddemo-readacct (base run, 6 environments): codev #13/#14 proven; eval arms A and B, #229, #168 and #214 write every data file byte for byte (#214 not under ar-EG/th-TH); #167 partial (VB records unframed); #220 crashes on the overpunch. docs/research/devin-cbact01c-harness.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ * ruff format: det gen.py / program.py (formatting only) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
2 of 4 tasks
squid-protocol
added a commit
that referenced
this pull request
Nov 7, 2026
…nts, DOOM ports, copy-finding, COBOL->Java ladder) - galaxy: gzeof's shape (#13 of the population lattice, 54,522 functions) and the 200-shape lattice, with GitGalaxy's real week-to-week shape moves - agents-same-job: agent-habits Java chess by Sonnet / Haiku / Codex, call graphs + shape mix, with the WILD caveat - doom-ports: DOOM's DNA wiring kept per port vs shuffled baseline (docs/wiki/museum-of-code/doom-dna/data.json) - copyfinding: OpenSSL -> BoringSSL C++ by structure, ranks recomputed with the LAY scorer; leads with the general 44% (572 copies), the study's 94% labelled as the CVE subset - proof-ladder: COUSR01C at L5 from the published evidence report, levels never called proven docs/media/README.md documents each with sources and caption caveats. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
squid-protocol
added a commit
that referenced
this pull request
Nov 7, 2026
…ime) replaces galaxy; clearer file green; agents files labelled and contained - lattice: single-column Yes/No fingerprint; a real growth-tree chain (#14 -> #1 -> #2 -> #5 -> #12 -> #13 -> #26), each step one family with its real function count and level; then the whole 200-shape family. Refuses non-one-family steps. - call graph + agents: files in a distinct green (34,197,94) vs blue functions - agents: file circles computed from final dot positions (always contain their dots), separated in screen space, every file labelled (the 1-function files are real shell scripts: build.sh, engine) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Nov 8, 2026
…tour + call-graph zoom-out), rendered from real engine output (#8036) * docs/media: animations of what the engine reads (function explainer in C/Python/Java/COBOL, call-graph zoom-out) + generators Rendered from real engine output: scripts/media/function_explainer.py scans the file, takes the function's DB row, locates every counted keyword-rule match on the engine's comment-free code stream and refuses to render if a highlight count differs from the engine's; scripts/media/callgraph_explainer.py animates the scan's graph output (calls_out_to + imports) from one function to the whole codebase. README gets the C explainer under the headline table. zlib sources attributed (zlib license); the other examples are ours. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media: separate size/comments and fingerprint bands, larger legends; galaxy styling for the call graph Function explainer: the record panel now has three non-overlapping bands (legend rows at 19/28 px, size & comments, fingerprint). Call graph: deep-navy sky, glowing per-file clusters in cool tones, glowing cyan calls / violet cross-file calls / pink imports, amber traced path, larger legend and status text. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media: call graph in four plain colours (functions blue, files green, calls red, imports yellow) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media: five more explainers from real data (galaxy, same-job agents, DOOM ports, copy-finding, COBOL->Java ladder) - galaxy: gzeof's shape (#13 of the population lattice, 54,522 functions) and the 200-shape lattice, with GitGalaxy's real week-to-week shape moves - agents-same-job: agent-habits Java chess by Sonnet / Haiku / Codex, call graphs + shape mix, with the WILD caveat - doom-ports: DOOM's DNA wiring kept per port vs shuffled baseline (docs/wiki/museum-of-code/doom-dna/data.json) - copyfinding: OpenSSL -> BoringSSL C++ by structure, ranks recomputed with the LAY scorer; leads with the general 44% (572 copies), the study's 94% labelled as the CVE subset - proof-ladder: COUSR01C at L5 from the published evidence report, levels never called proven docs/media/README.md documents each with sources and caption caveats. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media: lattice explainer (shapes built one keyword family at a time) replaces galaxy; clearer file green; agents files labelled and contained - lattice: single-column Yes/No fingerprint; a real growth-tree chain (#14 -> #1 -> #2 -> #5 -> #12 -> #13 -> #26), each step one family with its real function count and level; then the whole 200-shape family. Refuses non-one-family steps. - call graph + agents: files in a distinct green (34,197,94) vs blue functions - agents: file circles computed from final dot positions (always contain their dots), separated in screen space, every file labelled (the 1-function files are real shell scripts: build.sh, engine) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media: no intro slides + GitGalaxy corner mark on every film; lattice ends with real-size unlabelled dots, alternate parentage and a closing title - scripts/media/_brand.py: plain 'GitGalaxy' bottom-right on every frame; every generator's title card removed - lattice: after the chain, dots are unlabelled and sized by functions sharing the shape; light grey dotted lines show the 219 alternate-parent links (148 of 200 shapes), the chain's own alternates highlighted; closing title '6.9 million functions · 571 repositories · 56 languages · 14 shape families' (counts from the population DB) - attribution lines shortened so they never run into the corner mark Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media lattice: closing title at the bottom without a box, headline 'half (49.7%) fall into the 200 shapes drawn'; purple shapes; subtle grey alternate parents Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media lattice: portrait 1280x1440, packed level columns (no overlap), every circle the same purple and transparency at the end Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media lattice: after the example path, the left panel shows the final results; the chain fades into the plain lattice (no history); legend shows only what is on screen Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media function films: constant title 'How GitGalaxy Reads a Function' on every frame Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * docs/media: new illustration 'Did someone copy your function?' (made-up sea of repos/files/functions, 50 misses, then a renamed match) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY * README: fingerprint-match illustration under the function film; proof-ladder film in CICS to Java; call-graph film in Graph validation Co-Authored-By: Claude Opus 5.5 <[email protected]> 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.
Description of Structural Changes
Visual Observatory Testing
The Differential Scan Acknowledgement