Skip to content

DOOM per-subsystem distributions: every metric, vendored code dropped (Part of #6097) - #6833

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-20261027T2321Z
Oct 27, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-20261027T2321Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6097. Checklist: partial [c:b68f4dd4] -- LOC/fan-out/token mass/args per subsystem and the vendored drop are done; plots, lineage-based subsystem assignment, study_report wiring and the sfs-side pieces are left.

Slice 2 of the per-subsystem distributions (slice 1: #6744). subsystem_distribution.py now summarises every metric of distribution.FIELDS (complexity, loc, func_fan_out, token_mass, args) per linuxdoom subsystem: median, p90 and the port/linuxdoom median ratio each (complexity also the share >= 10), one md table per metric and a wide CSV. It drops vendored code with the same engine detector test as distribution.py (needs the port clone under <work>/repos/<port>, like distribution.py; a port without one is skipped). Tooling only: no engine, golden or ledger input.

Class / Sibling gaps

Class: per-subsystem distribution of the per-function engine metrics for the licensed ports. Handled: all five metrics (complexity and the four added here share one mechanism, one FIELDS loop, each covered by a test; args covers the old text-list form too) and vendored exclusion.

Sibling gaps (DOOM study work; no burned-estate program needs them):

  • Subsystem by landmark/lineage name match instead of file prefix, so renamed-file ports get real rows (different mechanism, reuses lineage.py).
  • Plots of the per-subsystem tables (new module + a plotting dependency decision).
  • study_report.py / docs/research/doom-port-study.md do not include these tables yet.
  • sfs-side pieces (not defined in the issue; needs the owner to say what they are).

Remaining slices

  1. Lineage-based subsystem assignment (subsystem_distribution.py, lineage.py, test).
  2. Plots (new subsystem_plots.py + test).
  3. Wire the tables into study_report.py and docs/research/doom-port-study.md (needs a real scan run).
  4. sfs-side pieces once defined.

Evidence

  • 6 tests in test_doom_subsystem_distribution.py (synthetic scan DBs): grouping, all metrics and ratios (incl. text args), vendored drop, other share, skips, baseline required, CLI outputs. test_doom_distribution.py, source-reads, generated-branch and change-classifier guards pass.
  • pr_gates.py --fast: 9/9 (pinned ruff 0.17.1, mypy 2.4.0).
  • NOT run: a real 30-port scan (none exists for this engine SHA), --ratchets (tooling only).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 27, 2026 23:28
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 27, 2026 23:31
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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