Skip to content

sfs: twin browser, and the rest of the DOOM study's subway-map scope - #18

Merged
squid-protocol merged 1 commit into
mainfrom
sfs-subway-gaps-twin-browser
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
sfs-subway-gaps-twin-browser

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Twin browser

report.html now carries the function-level evidence behind the descent heatmap. For every pair sharing ≥2% structure it lists each twin: function, file and size on both sides, distance, exact clone, same name.

  • Navigation: a pair picker, or click a descent cell. report.html#pair=A|B deep-links to a pair, so the write-up can link to the evidence.
  • Filters: text, folder (by-folder breakdown), different names only, exact clones only.
  • DOOM: 123 pairs and 44,186 twins in 2.8 MB of embedded JSON (3.7 MB page). Example: #pair=eternity|doom-wasm shows 192 of 195 twins in Chocolate's textscreen/, plus renamed twins such as M_StringConcat ↔ TXT_StringConcat.
  • --no-browser and --browser-min-shared control it.

Subway maps: the rest of gitgalaxy#5620's call-graph scope

  • Per-repository taxonomy overrides, tried before the shared path rules. DOOM overrides cover Mocha/Kocoa Doom's single-letter packages (unmapped share 35%/33% → 10%; wiring 0.59/0.52 → 0.81/0.75), managed-doom, helion and room4doom, and mark doomsday's and gzdoom's vendored and tooling trees as "other".
  • Mapping-free check: each repository's raw call-graph shape (mean degree, largest component, clustering, reciprocity, hub share, leaf/root shares, in-degree Gini, assortativity), its distance from the reference, and a Spearman check against wiring similarity. DOOM: ρ = −0.77, n = 42, p = 2×10⁻⁹, so the subway maps aren't an artefact of the subsystem mapping.
  • Maps ordered by declared lineage (--declared-lineage); the fallback share and graph metrics appear in the table, subway.csv and subway.json.

Tests

46 pass, including real-scan parity; ruff is clean. I regenerated the full 44-port DOOM report and checked the browser and maps in headless Chrome.

🤖 Generated with Claude Code

Twin browser (report.html): for every pair sharing >= 2% structure, the twins
behind the descent number - function, file and size on both sides, distance,
exact clone, same name - with a pair picker, text/folder/different-name/exact
filters, a by-folder breakdown, click-a-descent-cell, and #pair=A|B deep links.
--no-browser / --browser-min-shared.

Subway maps, completing gitgalaxy#5620's call-graph scope:
- per-repository taxonomy overrides (tried before the shared path rules);
  DOOM overrides for Mocha/Kocoa Doom packages, managed-doom, helion, room4doom,
  and vendored/tooling trees in doomsday and gzdoom
- mapping-free graph shape per repository (mean degree, largest component,
  clustering, reciprocity, hub share, leaf/root shares, in-degree Gini,
  assortativity), shape distance from the reference, and a Spearman mapping
  check (DOOM: rho = -0.77, n = 42)
- maps ordered along --declared-lineage; fallback share and graph metrics in
  the table, subway.csv and subway.json

46 tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <[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