Skip to content

DOOM lineage: landmark matcher falls back to the prefix-less name (Part of #6097) - #6703

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-landmark-prefix
Oct 26, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-landmark-prefix

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6097: landmark matcher drops p_/r_ prefixes.

lineage.canonical() matched landmark functions on the full normalised name, so a port that dropped linuxdoom's prefix (UseSpecialLine, draw_column) found 0 of its landmarks. It now falls back to the bare name when no function keeps the full name. The bare name must be longer than 6 characters, so Ticker (every subsystem's) never matches on its own. A full-name match always wins over a larger prefix-less one. Vendored and other-game trees are still excluded. found_as in canonical_functions.csv shows which name matched.

Class / Sibling gaps

Class: landmark lookups that assume linuxdoom's exact prefixed names. Handled: the 12 CANONICAL landmarks (canonical()). Sibling gaps: survival() matches baseline functions by nname (full normalised name), so it has the same prefix blind spot for name_present/args_match. It needs a different mechanism (a ranked fallback over about 1.8k baseline functions, with more ambiguity) and would move survival numbers; not done here. Neither it nor this change needs a burned estate program (DOOM study only).

Facts checked: Ticker/Responder collide across subsystems once prefixes are dropped, hence the length floor. G_Ticker is unmatched for a fully prefix-less port; Responder can pick another subsystem's function when the port drops all prefixes (largest LOC wins; found_as shows it).

Gates: pr_gates --fast 7/7; test_doom_lineage.py, test_doom_study_report.py and the tree-wide guards pass. No golden, ratchet or engine change (tests/tools only). Ratchets not run.

Checklist: done [c:26a6195d]

Remaining slices

Scorer source-extension set (Fortran, Crystal, F#, COBOL); vendored code in distributions; 20 ports with no fidelity; per-subsystem distributions and plots.

🤖 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 26, 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 26, 2026 02:19
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 26, 2026 02:22
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 360f199 into main Oct 26, 2026
61 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6097-landmark-prefix branch October 26, 2026 02:28
squid-shepherd Bot pushed a commit that referenced this pull request Oct 30, 2026
…prose (follow-up to #6097) (#7147)

* DOOM study: rescan at 6c7c6c1, one scan for every table, refresh the prose (follow-up to #6097)

Rescanned all 44 licensed ports at main 6c7c6c1 (42/44 PERFECT; callgraph
passes everywhere after #7019) and regenerated the sfs subway table on the same
scans, so no table mixes scan dates any more.

Prose: drop the defect and "not done" text that #6700/#6703/#6705/#6749 fixed,
state the sqldoom/cssdoom #5876 ruling, explain the median-0 complexity of the
JVM/Rust ports (method size, measured), fix the dist range and date line.
study_report.py: the scorecard's last column was "functions now" but counts only
ctags-language files (doom-fx read 1, dartdoom 0); relabel it and say so.

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

* DOOM study: read wiring similarity against its floor; cross-subsystem wiring (follow-up to #6097)

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

* DOOM study: subway table reads cross wiring over a shuffled null; negative controls

study_report.py shows sfs's cross_wiring, its shuffled-placement null and the gap
when subway.csv has them (sfs PR #21), sorted by the gap; old CSVs keep the old table.
Prose: raw wiring flatters (doomf77 0.91 is +0.05 over null); doom-scheme and gore
keep cross wiring +0.51/+0.50 over null like chocolate-doom; JVM/C#/Fortran ports
and reimplementations show none. Negative controls (WinQuake, Quake II, Lua at the
same engine) give the null levels; graph-shape distance does not separate them.

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

* DOOM study: restructure as findings first, tables as appendices; twin cross-check, controls, blind placement

Findings lead (twins 93% precise vs source text at 6c7c6c1; textscreen shared sideways;
Scheme/Go wiring above chance and blind placement kappa 0.50/0.31/0.26; names kept,
bodies rewritten; extraction accuracy), then what this does not show, then Appendices
A-G (the generated tables, unchanged) and a new hand-quoted Appendix H (twin
cross-check, descent, unrelated programs).

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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