Skip to content

docs/media: animations of what the engine reads (4-language function tour + call-graph zoom-out), rendered from real engine output - #8036

Merged
squid-shepherd[bot] merged 13 commits into
mainfrom
docs/media-explainers
Nov 8, 2026
Merged

squid-shepherd[bot] merged 13 commits into
mainfrom
docs/media-explainers

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

What this does

Shows people what the engine does. Adds animations under docs/media/, each rendered from real engine output, with the generators beside them.

What the engine reads in one function (scripts/media/function_explainer.py):

  • Shows: the function in a terminal, the detected language, then each keyword family highlighted and flowing into the function record with its count. Then a size/comment pass, and the yes/no keyword fingerprint with the archetype.

  • Grounded in the engine:

    • it scans the file with this checkout's engine and takes the function's DB row;
    • it locates each counted rule match on the engine's comment-free code stream (docstrings and string literals masked as the engine does);
    • it refuses to render if any highlighted count differs from the engine's.
  • Examples:

    language function source
    C gzeof zlib, zlib license, attributed in-frame
    Python _has_generator_banner ours
    Java storeHostChecked ours, cobolrt
    COBOL MAIN-PARA ours, cics-crucible fixture FXTSQ.cbl

From one function to the whole call graph (scripts/media/callgraph_explainer.py):

  • Shows: the scan's graph output (calls_out_to plus imports) for zlib. It starts on gzread() and its calls, follows the second hop, zooms to gzread.c, then to the whole codebase.
  • Numbers: 25 files, 187 functions, 291 resolved calls (97 across files), then 33 #include links in a second colour.

README: the C explainer under the headline table, linking the tour and the call graph. docs/media/README.md has provenance and exact regenerate commands.

Design notes:

  • Colours: 8 categorical colours, validated for a dark surface (CVD and contrast). Every colour is also labelled by name.
  • Sizes: GIFs 0.2–2.1 MB; MP4s 0.25–0.55 MB.
  • Dependencies: Pillow, numpy and ffmpeg, docs tooling only; no engine dependency added.

Added: five more explainers (all from real data)

GIF what it shows source
lattice how function shapes are built: a single-column Yes/No fingerprint; a real growth-tree chain of 7 shapes, each adding one keyword family (54,516 → 177,180 → 170,862 → 84,383 → 54,854 → 54,522 → 33,581 functions, levels 2–8); then the whole 200-shape family (49.7% of 6.9M functions; 196 of 199 steps add one family) temporal-crucible population lattice
agents-same-job Java chess (every file labelled; files green, functions blue) by Sonnet (22 fns), Haiku (60 fns, 54% private helpers), Codex (34 fns): call graphs + shape mix; caption carries the WILD caveat agent-habits scans
doom-ports DOOM's wiring kept by Scheme/Go translations as well as a C fork (+0.51/+0.50 vs +0.51); Java/Kotlin/C# kept none docs/wiki/museum-of-code/doom-dna/data.json
copyfinding OpenSSL v3_utl.c → BoringSSL C++ by structure: 4 → 18 → 19 of 27 found first; leads with the general 11% → 44% over 572 current copies, the LAY study's 94% labelled as its CVE subset LAY scorer, recomputed (scripts/media/copyfinding_data.py)
proof-ladder COUSR01C at L5 · mutants accounted for: 94/94 statements, 25/25 scenarios, 9/9 paragraphs, 20/20 branches net, 623/623 survivors accounted (raw kill 48%); burned estate, GnuCOBOL+models oracle evidence report (generated 37b095760) + det-mutation ledgers

Every number was spot-checked against its source; docs/media/README.md documents each with caption caveats.

Found along the way

The Python branch rule counts the .match( method call as a match statement: #8034.

Checks

  • pr_gates --fast: 9/9 pass.
  • audit_check: all clear (ruff, format, mypy, dead-key, doc-refs).

Class / Sibling gaps

none: every member handled (docs-only plus two standalone generator scripts; no engine code changed).

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY

squid-protocol and others added 13 commits November 7, 2026 15:08
…n 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
…nds; 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
…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
…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
…ttice 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
…ne '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
…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
@squid-protocol
squid-protocol marked this pull request as ready for review November 8, 2026 00:03
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 00:04
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit fb20c5d into main Nov 8, 2026
64 checks passed
@squid-shepherd
squid-shepherd Bot deleted the docs/media-explainers branch November 8, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant