Skip to content

README hero: animated scan-flow film from a real scan (+ generator) - #8107

Merged
squid-shepherd[bot] merged 15 commits into
mainfrom
docs/hero-sankey-gif
Nov 8, 2026
Merged

squid-shepherd[bot] merged 15 commits into
mainfrom
docs/hero-sankey-gif

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Adds docs/media/scan-flow.gif (plus .mp4 and the .png final frame) and its generator, scripts/media/scan_flow_explainer.py. This is the owner's proposed README hero: an animated version of the old Sankey diagram.

scan flow

What it shows

The film follows one real scan of language-crucible/data at 197cbc5, with engine main at f965fcae3:

  1. A terminal runs pip install gitgalaxy and galaxyscope language-crucible/data/. The scan's log lines appear at the moment the scan wrote them.
  2. The repo is drawn with one tile per file (3,737), grouped into folders. Each tile is coloured by the language the engine read it as, or grey if the scan left it out.
  3. The files flow through the three stages that leave files out:
    • path and extension rules: −336
    • content guards: −30
    • statistical audit: −7
      They then split into one band per language (3,364 files read, 64 languages and formats), pass through one engine, and end at the 7 reports written.
  4. A bar along the bottom runs the scan's real wall clock, taken from the log timestamps. It ends at 100% in 42.4 s and states how much faster the film plays.

Why the old diagram is replaced

docs/wiki/assets/sankey_v4.3.1.png was drawn by hand in SankeyMATIC and has some wrong paths. It routes left-out files through a "Binary Anomaly Detector" into "Final Reports". The X-Ray audit actually walks the whole tree on its own and never takes the excluded queue as input. The diagram also leaves out the statistical-audit stage. The new film is generated from scan output only. The generator refuses to render if:

  • an exclusion reason has no stage;
  • read plus left out does not equal the files on disk;
  • the master DB disagrees with the audit;
  • the log lacks PIPELINE_SUCCESS.

Found along the way (not fixed here)

Alternate: rainbow cut (--style rainbow)

rainbow

  • Languages: one equal stripe per language (64, red → violet), with the names staggered in three columns and real counts in each label.
  • Grey branch: opened into the reasons the engine recorded.
  • Gold branch: what still checks left-out files.
    • X-Ray's binary sweep and the API map walk the disk themselves. Here they found 63 anomalies, and 377 shadow / 10 ghost APIs.
    • Both are repo-level counts only, landing in the audit manifest, the database and brief §10.7.
    • SARIF holds read files only: 543 results, 0 on a left-out file.
    • The 2 model-weight files are header-audited and put back into the scan.

Both cuts now have the same timing:

  • the reveal runs linearly, like the clock;
  • the dots travel as one bolus and land on the reports the frame before the clock reads 100%;
  • the reports ring once;
  • the final screen holds 35 s.

README

The hero now has two parts:

  • What it does: scan-flow-rainbow.gif, at full width and linked to itself so a click opens it at full size.
  • How it does it: function-c.gif.

The made-up fingerprint-match.gif illustration leaves the hero. Its link to the measured copy-finding moves into the function film's caption. The rest of the README is unchanged; the larger restructure is being drafted separately. All 65 README-reading test files pass: 1,732 passed, 3 skipped.

Regenerate: see the scan_flow_explainer.py line in docs/media/README.md#regenerate.

🤖 Generated with Claude Code

squid-protocol and others added 5 commits November 8, 2026 09:28
Replaces the hand-drawn SankeyMATIC diagram (docs/wiki/assets/sankey_v4.3.1.png) with a film generated
from a real scan of language-crucible/data at 197cbc5:
- the pip install + galaxyscope terminal, with log lines appearing on the scan's own clock;
- one tile per file, grouped by folder, coloured by the language the engine read it as (grey = left out);
- a flow through the three stages that leave files out (path/extension rules, content guards,
  statistical audit), one band per language, one engine, then the 7 reports written;
- a bottom bar running the real wall clock (log timestamps), ending at 100% in 42.4 s.

scripts/media/scan_flow_explainer.py refuses to render if an exclusion reason has no stage, if read +
left out != files on disk, if the master database disagrees with the audit, or if the log lacks
PIPELINE_SUCCESS.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- --style rainbow: one equal stripe per language (64, red -> violet, names staggered in three
  columns with real counts), grey branch opened into reason families, and a gold branch for what
  still checks left-out files (X-Ray 63 anomalies, API map 377 shadow / 10 ghost APIs; repo-level
  counts in the audit, database and brief; SARIF = read files only; model weights audited and put back).
- Both cuts: the reveal is linear like the clock, the dots travel as one bolus behind the front and
  land on the reports the frame before the clock reads 100%, the reports ring once, and the final
  screen holds 7 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ilm second (how it does it)

The made-up fingerprint illustration leaves the hero; its caption link to the measured
copy-finding (OpenSSL inside BoringSSL) moves into the function film's caption.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol changed the title docs(media): animated scan-flow film from a real scan (README hero candidate) README hero: animated scan-flow film from a real scan (+ generator) Nov 8, 2026
squid-protocol and others added 8 commits November 8, 2026 10:30
Hero, What it does (scan-flow film), How it does it (function film), Where it came from (the
BLAST origin story), How we validated it (functions, graphs, Rosetta, the pre-registered null
result, read as an upper bound). The live README is unchanged beyond the hero films.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lator wiki reading list

- docs/how-it-works.md: every docs/media film in story order (one scan, one function, call graph,
  function shapes, copy-finding, DOOM, three AI models, COBOL to Java), a line or two each with its
  caveats, and a "(continued ->)" link to the wiki deep-dive for each.
- README_MOCKUP.md: "(continued ->)" links per section (gates, prism/detector, the BLAST philosophy
  claim, the Museum of Code index, methodology/graph accuracy/blind spots), a short CICS-to-Java
  teaser with four wiki links; drops the BLAST teardown link (overclaims "absolutely flawless").
- gitgalaxy/tools/cobol_to_java/README.md: "Further reading (wiki)" table; each row says what is
  stale in that page (2026-10-02 snapshot, older ticket format, compile check only). No status
  numbers (#5280).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…i pages brought in line

- scan_flow_explainer --theme light (default): white surface like the README's other charts; the
  terminal window stays dark; _brand.brand takes an optional mark colour. Both films re-rendered.
- museum-of-code/teardown-of-apollo-11.md: redone from a fresh scan (Apollo-11 247dd7d, engine
  3bb2250): 171 AGC files, 4,786 labelled routines, 4,270 links; how routines are found by position;
  what was left out and why (incl. Luminary's Pinball); retired risk/drift scores removed; a
  "what it can't tell you" and a reproducible "check my work". The history exhibit is kept.
- 01-01, 01-03, 01-06, 03-01, 03-06, 03-08, 03-10, teardown-of-blast: throughput, language counts,
  Kubernetes size and graph-accuracy claims now match the README; risk framing -> surface readings
  that describe, not predict; "blAST" expanded one way everywhere (Bypassing LLMs and ASTs, a nod
  to BLAST); dead link and placeholder removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…proven"

- 05-19 retitled "Ported COBOL-to-Java Programs and Their Evidence" (mkdocs nav, index and
  in-wiki link text follow); its 2026-10-02 counts are labelled a snapshot under the L1-L5 levels,
  the holes rule, the progress page and the burned-estate / blind-trial (#8073) note; containers,
  WEB, DOCUMENT and counters are now described as modelled (checked in cics_task_*).
- 05-20 and the equivalence cookbook: the blind trial began 2026-11-07; the PR #4492 notes now
  point at the *-generated cases on main.
- scaffold cookbook, 01-04 legacy bridge, the five forge cookbooks, map-cobol-monoliths:
  "guarantees", "100%", "perfectly", "byte-for-byte without hallucinations" and "mathematically
  proven" become what the tools do; the decoder and build forges have no CLI, so their pages say
  they run inside cobol-to-java; invalid COMP-3 throws PackedDecimalDataException (S0C7) rather than
  decoding to zero; the service forge leaves TODOs for unresolved calls.
- translator README: the decoder handles EBCDIC and COMP-3 (no zoned decoding in that forge).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner direction (2026-11-08): everything dark, like the docs/media films.
- scan_flow_explainer: --theme dark is the default again; both films re-rendered dark.
- progress_slide (progress.svg): the dark palette always applies, on the films' #0f1117 surface.
  GitHub shows the SVG through <img>, where prefers-color-scheme follows the viewer's OS, so the
  light variant (and its scheme switch) is gone; the test now asserts the dark house style.
- tri_comparison_chart / graph_coverage_chart: neutrals mapped to the dark palette (series colours
  unchanged). The committed SVGs are re-coloured only, with no data change; their history workflows
  regenerate them on the next run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps a second README-shaped file out of the repo root; its links are rewritten relative to docs/
(all resolve). The swap into README.md is a follow-up once the text is final.
The chart generators' house-style comments no longer spell a docs/ path, which the
docs-read-by-tests scan read as a dependency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as ready for review November 8, 2026 17:31
The previous commit carried only the rename. The mockup's links are rewritten relative to docs/
(all resolve). The chart generators' house-style comments no longer spell a docs/ path, which the
docs-read-by-tests scan (tests/tools/change_classifier.py) read as a dependency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 17:32
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 8, 2026 17:40
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

PR #8107 @ 6be475c: 2 failed check(s)

== Analyze (python) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42505427899/job/128806901032
repro: no local equivalent; read the check page
errors:
expect-error: false
##[error]Process completed with exit code 1.
log tail:
CODEQL_THREADS: 4
CODEQL_ACTION_SARIF_RESULTS_OUTPUT_DIR: codeql-results
CODEQL_UPLOAD_SARIF__LANGUAGE_PYTHON__CODEQL: CODEQL_UPLOAD_SARIF__LANGUAGE_PYTHON__CODEQL
CODEQL_ACTION_ANALYZE_DID_COMPLETE_SUCCESSFULLY: true
GH_TOKEN: ***
PR: 8107
REPO: squid-protocol/gitgalaxy
##[endgroup]
### CodeQL: 3 new result(s), 3 blocking (fails this PR)
PR analysis 426 results, main's 423. New means not on main, in a file this PR changed.
- py/uninitialized-local-variable: 2
- py/implicit-string-concatenation-in-list: 1
| Level | Rule | Where |
|---|---|---|
| error | py/uninitialized-local-variable | scripts/media/scan_flow_explainer.py:1239 |
| error | py/uninitialized-local-variable | scripts/media/scan_flow_explainer.py:1239 |
| warning | py/implicit-string-concatenation-in-list | scripts/media/scan_flow_explainer.py:1327 |
##[error]Process completed with exit code 1.
Post job cleanup.
Post job cleanup.
Existing job run UUID is 60ce043c-b4c3-4d6d-a9af-544132c644ef.
CodeQL job status was success.
Sending status report for init-post step.
Status report sent for init-post step.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/82bcf54a-acbe-463b-8682-ef2584e33fd5' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== CodeQL (failure) -- real
https://github.com/squid-protocol/gitgalaxy/runs/128807960142
repro: no local equivalent; read the check page
log tail:

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 8, 2026
… one constant

CodeQL py/uninitialized-local-variable: scan_dir/log looked unbound after ap.error() (it never
returns, but CodeQL cannot tell), so the checks now run first and the branch is a plain if/else.
py/implicit-string-concatenation-in-list: the ffmpeg palette filter is one GIF_FILTER constant.
Output unchanged (final frame re-rendered identical).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (4e31b3b) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 8, 2026 17:56
@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 8, 2026
@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 marked this pull request as ready for review November 8, 2026 19:23
@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 8, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 19:24
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd
squid-shepherd Bot merged commit 7158a31 into main Nov 8, 2026
90 of 116 checks passed
@squid-shepherd
squid-shepherd Bot deleted the docs/hero-sankey-gif branch November 8, 2026 20:43
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.

2 participants