Repository navigation
DOOM study: lineage-based subsystem assignment (Part of #6097, slice 3) - #6846
Merged
Merged
Conversation
…lone (Part of #6097) A function goes to the linuxdoom subsystem of its namesake (prefix optional); file-name prefix is the fallback. --assign prefix keeps the old placement. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Oct 28, 2026
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.
Part of #6097, slice 3 of 5 (after #6833): lineage-based subsystem assignment for the per-subsystem distributions.
Checklist: partial [c:5b53dc02] -- plots, study_report wiring (needs a real scan of the non-C ports) and the sfs-side pieces (undefined in the issue: owner to specify) remain.
What changed
lineage.name_index/assign_subsystem: a port function gets the subsystem of the linuxdoom function it descends from (same normalised name,p_/r_prefix optional), else the file-name placement. OnlyX_Name/XX_Namelinuxdoom functions are indexed (main,Initsay nothing); a name defined in two subsystems is ambiguous and dropped; a bare (prefix-less) name needs more than 6 characters and must not equal a full name (same guard as the landmark matcher).subsystem_distribution.py:--assign lineage(default) /prefix(old behaviour); the report header says which. Renamed-file ports (Renderer.cs,game/play.rs) no longer land wholly inother.--assign prefix, index ambiguity / unprefixed / short names.Class / Sibling gaps
Class: ways a port function can be tied to a linuxdoom subsystem. Handled: same-name (full), same-name (prefix dropped), file prefix. Not here: exact body-hash match (renamed AND moved functions; needs clone body reads per port, a different mechanism); names that change the stem (
DrawforR_DrawColumn) have no signal.survival()still uses the full normalised name only (prefix blind spot, sibling gap from #6703).Remaining slices
Plots; study_report wiring (needs a real scan including non-C ports); sfs-side pieces (ask owner).
Facts checked:
pytesttests/tools/test_doom_subsystem_distribution.py, test_doom_lineage.py, test_doom_study_report.py, tests/test_source_reads.py, test_change_classifier.py: 62 passed.pr_gates.py --fast: 9/9 pass (ruff 0.17.1).--ratchetsnot run: tools only, no parsing or golden-relevant code touched.2ac09c8ae, C ports only; no non-C scan on this box): other % prefix -> lineage: chocolate-doom 28.4 -> 28.2, doomgeneric 11.0 -> 11.0, doom-ascii 4.9 -> 4.9. C ports keep their file names, so the gain is for renamed-file ports, which only the synthetic test covers so far.Lessons for agents
cat > filewithout a heredoc in a chained command blocks on stdin and leaves an empty file; write PR bodies with the Write tool.🤖 Generated with Claude Code