Skip to content

Compose selected-child returns with local invocation frames - #2574

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
ywz65:ywz65/20261015-r007-source-handoff
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
ywz65:ywz65/20261015-r007-source-handoff

Conversation

@ywz65

@ywz65 ywz65 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

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 and 2W+3S reads/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 remains f961dcb12061c3959058aed883f48b55f365eb80 at 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)

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.

2 participants