Fix completion gate total after overlapping extent correction #771

Merged
coah80 merged 1 commits from agent/bittle/completion-code-total into main 2026-10-02 07:57:20 +00:00
coah80 commented 2026-10-02 07:56:03 +00:00 (Migrated from github.com)

Why

#769 correctly shortened PFPATH_MatchFileNameWithPattern from 0x31c to 0x310, removing 12 double-counted bytes overlapping PFPATH_putShortName. The generated report now totals 2,995,176 code bytes, but the strict completion checker still requires 2,995,188. Consequently the existing complete-report schema regression test fails even when its synthetic report marks every function/section complete.

Change

Update the single expected-code-total constant by those proven 12 bytes and add a regression that explicitly rejects the obsolete overlapping total. This does not accept arbitrary totals, round percentages, relax per-unit/section checks, alter matching metadata, or change the DOL hash requirement.

Verification on b84b3c0d57

  • Reproduced prior failure: overall total_code: 2995176 != 2995188 and matching category-total failure.
  • Workflow guard suite now 8/8 passes, including synthetic complete-report acceptance and rejection of the old overlapping denominator.
  • The real incomplete report STILL fails the strict completion assertion for actual unmatched/unlinked code/data; this is not a completion claim.
  • Existing literal 36, jump-table 27 and pool 8 tests pass.
  • Full 43U all_source/progress/report/ok build passes; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
  • Diff/worktree checks pass. No source/build flags/progress measures change.
  • Published tree 663cbd33c0 matches tested local tree.

Draft for review; no merge performed.

Note

Update EXPECTED_TOTAL_CODE to 2995176 after overlapping extent correction

Changes the expected total code count in check_decomp_complete.py from 2995188 to 2995176. Adds a regression test in test_workflow_guards.py that asserts validation rejects the old 2995188 total. Risk: reports with total_code 2995188 now fail check_report validation.

Macroscope summarized c6fbcbe.

## Why #769 correctly shortened PFPATH_MatchFileNameWithPattern from 0x31c to 0x310, removing 12 double-counted bytes overlapping PFPATH_putShortName. The generated report now totals 2,995,176 code bytes, but the strict completion checker still requires 2,995,188. Consequently the existing complete-report schema regression test fails even when its synthetic report marks every function/section complete. ## Change Update the single expected-code-total constant by those proven 12 bytes and add a regression that explicitly rejects the obsolete overlapping total. This does not accept arbitrary totals, round percentages, relax per-unit/section checks, alter matching metadata, or change the DOL hash requirement. ## Verification on b84b3c0d579c520be71051ce33d22965cab6965d - Reproduced prior failure: `overall total_code: 2995176 != 2995188` and matching category-total failure. - Workflow guard suite now 8/8 passes, including synthetic complete-report acceptance and rejection of the old overlapping denominator. - The real incomplete report STILL fails the strict completion assertion for actual unmatched/unlinked code/data; this is not a completion claim. - Existing literal 36, jump-table 27 and pool 8 tests pass. - Full 43U all_source/progress/report/ok build passes; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. - Diff/worktree checks pass. No source/build flags/progress measures change. - Published tree 663cbd33c07fce16ccf62a73e350912ed6dcf1e0 matches tested local tree. Draft for review; no merge performed. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Update `EXPECTED_TOTAL_CODE` to 2995176 after overlapping extent correction > Changes the expected total code count in [check_decomp_complete.py](https://github.com/coah80/wii-ipl/pull/771/files#diff-40b9b0f9d80df58a34763b21558dfb2fa7a17b758a948d7568b8b9715472a3f7) from 2995188 to 2995176. Adds a regression test in [test_workflow_guards.py](https://github.com/coah80/wii-ipl/pull/771/files#diff-fd66ff7903cc79d67f9bf73cf1ead706756741fdfb286c8e86d25c635f55574d) that asserts validation rejects the old 2995188 total. Risk: reports with `total_code` 2995188 now fail `check_report` validation. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized c6fbcbe.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-02 07:57:17 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.