Align ATERM discovery record induction (+0.03042 fuzzy) #1149

Merged
coah80 merged 1 commits from agent/aterm-discovery-tail-swap-20261004 into main 2026-10-04 01:42:08 +00:00
coah80 commented 2026-10-04 01:41:39 +00:00 (Migrated from github.com)

Change

Move the existing recordIndex increment immediately before the adjacent BSSID-cursor advance. No other source expression, type, scope, memory operation or call changes.

Independent verification on f7a1067224

  • Discovery 98.28897 -> 98.31939; unit 97.73922 -> 97.74089
  • 261 actual instructions / 1044 bytes unchanged; target 263 / 1052. This remains a partial fuzzy match
  • Entire 43576-byte ELF differs in only seven bytes, all within three owned addi words at +0x1AC/+0x1B0/+0x1B8. Distinct self-updated r15/r27/r24 preserve final values, with no CR/XER change; intervening r0 operation and every other instruction unchanged
  • Candidate improves record-owner scheduling but does not fully reproduce target's separate scalar-index/BSSID schedule; no exact claim
  • All symbol names/entries, headers, relocations and allocated nontext bytes identical. All25 siblings including Association unchanged
  • All20 existing exact functions, exact code12200/19204, data18584/18864 and link measures preserved. Only ATERM changes across1027 objects; report differences are fuzzy improvements only
  • Fresh bounded whole-function PPC/reference proof:2076 cases /6228 baseline/candidate/original executions per run; full261/261/263 instruction coverage
  • Previous2008 cases plus68 multi-record cases through scan count7. Exact calls/read-write/formatter-store traces, allocated final state, ABI preservation and original-DOL helper checks pass
  • Model limits remain explicit: modeled external SDK/callback contracts, valid buffers/descriptors, no hardware/formal/all-input claim; third-allocation failure and malformed copies excluded
  • Default43U, explicit ok, unchanged DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d, pool and literal gates pass. Existing Discovery/RunConfig generic literal size skips remain; separate actual Discovery proof covers this change

Exactly three worker compiles: baseline, candidate, selected. Parent independently rebuilt, checked all1027 objects/full report and replayed the exact included standalone proof. Tested tree28f9b61d3f0bed89a5086a4a813ee52a462b1504; object SHA256 d29024892430ec1a464fe399dd4d6d04b2a175e3a435b7a9153a8610b19caff9.

Includes attempt log and repeatable proof. No original binaries or DOL uploaded. Draft for human review; no merge or auto-merge requested.

Note

Align ATERMDiscoverAccessPoints record increment with BSSID cursor advance

Moves the record-index increment in the ATERMDiscoverAccessPoints scan-loop tail so it runs immediately before the BSSID cursor advance instead of after it. No other statements or expressions in the loop change.

  • Adds an evidence and replay document at aterm-discovery-tail-swap-20261004.md recording scope, object-comparison results, and audit rerun commands.
  • Adds aterm_discovery_tail_swap_audit.py, a bounded PPC interpreter with simulated memory, modeled external callbacks, and a sequential reference model. It runs generated audit cases against baseline and candidate function bodies and asserts identical observable results, memory state, and full instruction coverage.

Macroscope summarized a43223a.

## Change Move the existing recordIndex increment immediately before the adjacent BSSID-cursor advance. No other source expression, type, scope, memory operation or call changes. ## Independent verification on f7a1067224fe9fb17b7aea9c4fe5d62e7d0ecb99 - Discovery 98.28897 -> 98.31939; unit 97.73922 -> 97.74089 - 261 actual instructions / 1044 bytes unchanged; target 263 / 1052. This remains a partial fuzzy match - Entire 43576-byte ELF differs in only seven bytes, all within three owned addi words at +0x1AC/+0x1B0/+0x1B8. Distinct self-updated r15/r27/r24 preserve final values, with no CR/XER change; intervening r0 operation and every other instruction unchanged - Candidate improves record-owner scheduling but does not fully reproduce target's separate scalar-index/BSSID schedule; no exact claim - All symbol names/entries, headers, relocations and allocated nontext bytes identical. All25 siblings including Association unchanged - All20 existing exact functions, exact code12200/19204, data18584/18864 and link measures preserved. Only ATERM changes across1027 objects; report differences are fuzzy improvements only - Fresh bounded whole-function PPC/reference proof:2076 cases /6228 baseline/candidate/original executions per run; full261/261/263 instruction coverage - Previous2008 cases plus68 multi-record cases through scan count7. Exact calls/read-write/formatter-store traces, allocated final state, ABI preservation and original-DOL helper checks pass - Model limits remain explicit: modeled external SDK/callback contracts, valid buffers/descriptors, no hardware/formal/all-input claim; third-allocation failure and malformed copies excluded - Default43U, explicit ok, unchanged DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d, pool and literal gates pass. Existing Discovery/RunConfig generic literal size skips remain; separate actual Discovery proof covers this change Exactly three worker compiles: baseline, candidate, selected. Parent independently rebuilt, checked all1027 objects/full report and replayed the exact included standalone proof. Tested tree28f9b61d3f0bed89a5086a4a813ee52a462b1504; object SHA256 d29024892430ec1a464fe399dd4d6d04b2a175e3a435b7a9153a8610b19caff9. Includes attempt log and repeatable proof. No original binaries or DOL uploaded. Draft for human review; no merge or auto-merge requested. <!-- 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] > ### Align `ATERMDiscoverAccessPoints` record increment with BSSID cursor advance > Moves the record-index increment in the `ATERMDiscoverAccessPoints` scan-loop tail so it runs immediately before the BSSID cursor advance instead of after it. No other statements or expressions in the loop change. > > - Adds an evidence and replay document at [aterm-discovery-tail-swap-20261004.md](https://github.com/coah80/wii-ipl/pull/1149/files#diff-1046f721697928f80ded6a5b4ab285a7060b4f8d3d48a306ed1b008877080bd0) recording scope, object-comparison results, and audit rerun commands. > - Adds [aterm_discovery_tail_swap_audit.py](https://github.com/coah80/wii-ipl/pull/1149/files#diff-ca45fa0e786566a7a69888aeb3055c68afa37ed6c89fb4a764c599faf10020aa), a bounded PPC interpreter with simulated memory, modeled external callbacks, and a sequential reference model. It runs generated audit cases against baseline and candidate function bodies and asserts identical observable results, memory state, and full instruction coverage. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized a43223a.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-04 01:42:06 +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.