Repository navigation
Compose selected-child returns with local invocation frames - #2574
Merged
Mister-Meeseeks merged 1 commit intoOct 16, 2026
Merged
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.
PR2534's completed selected-child wrapper checks the root parking floor and all registered work tapes, so it cannot return while a parent still has parked data or a live foreign tape. This adds a local invocation-frame contract with a conditional proof for every finite sequential call tree. The predecessor's flat-scope result remains valid.
The wrapper protects both ancestor parking and its own parked packets, transfers ownership through nested returns, and adds exactly
12(W+S)charged moves and2W+3Sreads/writes/erases per invocation, excluding the callee. These costs add over the call tree. The retained actual selected f=2 Compact leaf runs inside three callers, forward/inverse, on all 4,096 records; eight selected wrappers preserve dirty state and match the independent exact oracle. Eight controls distinguish return/ownership failures from raw Python access outside the stated premise.Native CPython 3.12.7 registered replay and Git-free source/receipt controls pass; native 3.14.5 optimized primary gives the same receipt. Separate-agent review passed the primary plus 128 sequential-two-child cases and 384 tariff checks. Sources are authenticated and compiled directly from pinned bytes. Main remains
0fdd7d82de03e43c9e5a1000dfbcd380d1b687d2; predecessor PR2534 remainsf961dcb12061c3959058aed883f48b55f365eb80at the 14:57Z pre-submission refresh. Cached Discussion evidence is timestamped and may miss newer claims.This is a caller composition result under completed-callee/access premises. It does not construct a numerical nonleaf C supplier, fixed-tape allocator/controller, whole-supplier hosting, 73-axis payload, all-size precision theorem or new kappa. No rollback or hostile-code isolation is claimed. Retained PR2250/2287/2483/2534 code and credit are unchanged; substantial OpenAI Codex assistance and separate AI review are disclosed.
Reproduce:
python3.12 -I -B scripts/research_package.py --package research/selected-invocation-frames.Canonical investigation: #2534 (comment)