Skip to content

Reconstruct five object profile pairs - #2144

Merged
andrewboudreau merged 3 commits into
mainfrom
cpp/profile-reconstruction-wave12
Sep 2, 2026
Merged

Reconstruct five object profile pairs#2144
andrewboudreau merged 3 commits into
mainfrom
cpp/profile-reconstruction-wave12

Conversation

@andrewboudreau

Copy link
Copy Markdown
Collaborator

Stacked on #2141. Reconstructs the registry-facing factory/profile pairs for SM_LIFT, CASKET, TH_DOWN_B, CV_SHUTTER, and CV_NEWS_LIFT: daObjSm_Lift_c_classInit / g_profile_SM_LIFT; daObjCasket_c_classInit / g_profile_CASKET; daObjTh_Fall_Block_c_classInit / g_profile_TH_DOWN_B; daObjCvShutter_c_classInit / g_profile_CV_SHUTTER; daObjCvNewsLift_c_classInit / g_profile_CV_NEWS_LIFT. These preserve the separation between ROM RTTI class identity and existing community implementation aliases such as SkiLift, Coffin, FallBlockBbh, ShutterHmc, and WorkElevator. FallBlockBbh remains in its existing actor-domain directory. Exact original SM64DS spellings are not claimed, and no source-owned profile descriptor data is invented. Validation: all five factories match 2004/b56 with strict relocation checks; all 21 affected sources are VERIFIED; five history-preserving path moves keep attribution intact; 98/98 reconstructed TUs compile; 11,088/11,088 source functions and 4/4 source data claims reproduce; 106/106 modules exact; repository reference, attribution, compatibility, language-mode, and dead-reference gates pass.

@tangos-validator

tangos-validator Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ PR validation — Passed

Committed merge introduces no reconstruction or attribution regression.

Full merge validation

Check Result
Committed test merge yes
Byte-verified functions 10,655 / 11,347 (93.90%, +0)
Byte-verified code bytes 1,989,784 / 2,211,124 (89.99%, +0)
Claimed, not byte-verified 562 functions, 115,896 bytes (+0)
Perfect source moves 0 R100
Enrolled ranges (delinks complete) 11,059 functions, 2,053,148 bytes (92.86%, +0) -- differs from byte-verified by +404
Contributor credit 0 added, 0 changed, 0 lost
Relocation check 21 checked; 21 VERIFIED
Port reference check 405 checked; 0 stale
Module fidelity 106/106 exact; 100.000000% compared bytes
Code linked from verified source 11,088 functions, 2,067,148 bytes (93.49%)
Module bytes from source 2,067,148 / 3,049,600 (67.8%); 811,492 (26.6%) are data no delink entry reaches
ROM data reproduced from source 589 symbol(s) exact, 172 partial, 5 differ

Byte-verified means the range carries complete in a delinks.txt, so the ROM build compiled it and compared it to the cartridge. The 562 claimed functions have a src/ file named after the symbol with no NONMATCHING banner, and nothing compiles them -- dsd fills their addresses with the ROM's own bytes. Both together are the 11,217 this project calls matched.

Per-file link-check detail

All 21 changed file(s) compile to the ROM byte-for-byte with correct relocation targets.

File Symbol Result Slots checked
src/_ZN10ShutterHmc13InitResourcesEv.cpp _ZN10ShutterHmc13InitResourcesEv ✅ verified 1
src/_ZN10ShutterHmc16CleanupResourcesEv.cpp _ZN10ShutterHmc16CleanupResourcesEv ✅ verified 1
src/_ZN10ShutterHmc8BehaviorEv.cpp _ZN10ShutterHmc8BehaviorEv ✅ verified 1
src/_ZN10ShutterHmcD0Ev.cpp _ZN10ShutterHmcD0Ev ✅ verified 1
src/_ZN10ShutterHmcD1Ev.cpp _ZN10ShutterHmcD1Ev ✅ verified 1
src/_ZN7SkiLift13InitResourcesEv.cpp _ZN7SkiLift13InitResourcesEv ✅ verified 1
src/_ZN7SkiLift15OnHitByMegaCharER6Player.cpp _ZN7SkiLift15OnHitByMegaCharER6Player ✅ verified 1
src/_ZN7SkiLift16CleanupResourcesEv.cpp _ZN7SkiLift16CleanupResourcesEv ✅ verified 1
src/_ZN7SkiLift6RenderEv.cpp _ZN7SkiLift6RenderEv ✅ verified 1
src/_ZN7SkiLift8BehaviorEv.cpp _ZN7SkiLift8BehaviorEv ✅ verified 1
src/_ZN7SkiLiftD0Ev.cpp _ZN7SkiLiftD0Ev ✅ verified 1
src/_ZN7SkiLiftD1Ev.cpp _ZN7SkiLiftD1Ev ✅ verified 1
src/actors/FallBlockBbh/_ZN12FallBlockBbh13InitResourcesEv.cpp _ZN12FallBlockBbh13InitResourcesEv ✅ verified 1
src/actors/FallBlockBbh/_ZN12FallBlockBbh16CleanupResourcesEv.cpp _ZN12FallBlockBbh16CleanupResourcesEv ✅ verified 1
src/actors/FallBlockBbh/_ZN12FallBlockBbhD0Ev.cpp _ZN12FallBlockBbhD0Ev ✅ verified 1
src/actors/FallBlockBbh/_ZN12FallBlockBbhD1Ev.cpp _ZN12FallBlockBbhD1Ev ✅ verified 1
src/actors/FallBlockBbh/daObjTh_Fall_Block_c_classInit.c daObjTh_Fall_Block_c_classInit ✅ verified 1
src/daObjCasket_c_classInit.c daObjCasket_c_classInit ✅ verified 1
src/daObjCvNewsLift_c_classInit.cpp daObjCvNewsLift_c_classInit ✅ verified 1
src/daObjCvShutter_c_classInit.c daObjCvShutter_c_classInit ✅ verified 1
src/daObjSm_Lift_c_classInit.c daObjSm_Lift_c_classInit ✅ verified 1

The private worker commits a test merge, builds the stock ROM profile, compares every executable module, measures matched and source-built code, checks contributor lineage, and verifies affected relocations. The mod profile is opt-in and is not part of this merge gate.

@andrewboudreau
andrewboudreau marked this pull request as ready for review September 2, 2026 05:04
Base automatically changed from cpp/profile-reconstruction-wave11 to main September 2, 2026 07:43
…ction-wave12

# Conflicts:
#	include/ShutterHmc.h
#	notes/data/c-cpp-classification.tsv
@andrewboudreau
andrewboudreau merged commit 6a88739 into main Sep 2, 2026
9 checks passed
@andrewboudreau
andrewboudreau deleted the cpp/profile-reconstruction-wave12 branch September 2, 2026 08:07
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