Repository navigation
Heterogeneous 3+7 order-four boundary across two distinct source banks - #2098
Merged
Mister-Meeseeks merged 1 commit intoOct 15, 2026
Conversation
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.
Scope
recursive-interfaces, cardpersistent-boundary(scope key026be4b6e61971d51838), chooser OS nonceba18ac446df7d55ddc50d91395fd9a57, priority revision 3. Basee112d71c8d7bb32435debcc54df932593dd8223a, branchresearch/agent-38-persistent-boundary-ba18ac44. Package:research/z4-hetero-two-bank-seedba18/.Card selection note (pair-collision): the first-choice card
centre-path-sharingmatches already-claimed recent objects (centre-sharing claims in #1166 at 12:58 and 13:03 UTC on 2026-10-14), so the second-choice cardpersistent-boundarywas taken. This is recorded inTASK.json.Object. The one uncovered cell of the pinned PR 1391 order-four typed boundary interface: two consecutive root echoes with heterogeneous reader schedules across two distinct source banks. Type A has three children reading source octets
[0,1,2]of bankX; type B has seven children reading[2,1,0,2,1,0,2]of bankY; one arbitrary dirty output octet and one 24-coordinate arbitrary dirty workspace must both be restored exactly. Predecessors cover 5|5 identical calls on two banks with a midpoint handoff (research/z4-distinct-source-seed55) and heterogeneous 3|7 calls on one shared source (research/z4-heterogeneous-pair-seed3x7, #1768); neither covers this cell, where the charged 48-ADD source handoff sits at an asymmetric 3|7 boundary. Claim: #1166 (comment)Result
One joint ten-child phase-indexed typed echo with the handoff
W += P^t(Y-X)after child 2 replaces the two separate calls. Exact maps pass on all 80 basis columns in both directions.Saving: 144 primitives and 288 reads (8.5%), all costs charged (both forward and literal-inverse child bodies, per-call 48-ADD copy/restore wrappers, the 48-ADD handoff, and both traversals of every phase boundary).
Boundary law (exact for this alphabet). The workspace boundary charge has period 4 under the exact recurrence
F_0(t)=A(t),F_(j+1)(s)=min_t F_j(t)+A((s-t-1) mod 4), terminal phase 0, withA = [(0,0),(54,6),(36,12),(54,6)]:g(k) = g(k mod 4), cross-checked against exhaustive coverage at 64 + 1,024 + 16,384 + 1,048,576 phase paths (k = 3, 5, 7, 10) and for k = 1..16. Consequentlyseparate(k1,k2) - joint(k1,k2) = 2(g(k1)+g(k2)-g(k1+k2)), which at total 10 is 144 primitives exactly when both child counts are odd and 0 when both are even. Both sides are confirmed by emitted words: the heterogeneous 3|7 pair realizes the full 144 (invoice identical to the 5|5 case), and a 2|8 pair with the same banks and child family passes both maps with zero saving.Evidence and reproduction
Observed (CPython 3.12, Windows):
verify.pyre-checks the pinned PR 1391/PR 1410 input blobs and the selected-record hash at base, the 12 typed-child identitiesQ^(-t)R_b P^t = R_band gate counts, recurrence-versus-exhaustive agreement, the exact 5|5 predecessor figures (positive control), the 3|7 and 2|8 exact maps and invoices, and six negative controls (midpoint-instead-of-3|7 switch, wrong handoff phase, mutated A reader, omitted B call, missing terminal Y restoration, missing literal inverse), each rejected by the exact map.RESULT.jsonmust match the recomputation byte-for-byte on a second run (it does).Limitations and remaining obligations
scripts/research_package.py --package research/z4-hetero-two-bank-seedba18without--check-only) was not launched here; the sameverify.pywas run twice under CPython 3.12 with identical output.Credit
Aaron Wang, with help from opencode (substantial AI assistance; no independent human review claimed). Predecessor credit: Cinna Davis (1337isnot1337) for the order-four child family (PR 1391), the same-source persistent boundary (PR 1410),
research/z4-persistent-pair-seed57,research/z4-paired-frame-restoration-seed56andresearch/z4-distinct-source-seed55(typed two-bank 5|5); 1337isnot1337 forresearch/z4-heterogeneous-pair-seed3x7(#1768). The selected-result context is Rohan Arun's #1094 on Jeremy Kothe's PR 1087 construction. All predecessor inputs are pinned byte-for-byte ininputs/andSOURCES.json.Workflow note:
makeis not installed on this host, so the selected record'smake frontier1094-verifycold replay was not run;scripts/research_baseline.pyprintedPASS_RESEARCH_BASELINE_BINDINGS_ONLYfor orientation.