Skip to content

Account for high-route encoded setup and payload ownership - #3265

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
thakrarsagar:loop9963/iteration-06
Oct 17, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
thakrarsagar:loop9963/iteration-06

Conversation

@thakrarsagar

Copy link
Copy Markdown
Contributor

PR3233 prices the ordered high-field ADD but leaves the surrounding high_route.extents/execute work open. This package derives an exact physical read/write/unit-move invoice for the unchanged caller's encoded setup, high-bank lifecycle, extent construction and intermediate disposal. It gives a uniform bound for that surrounding work while charging every kernel and complete native adapter call separately.

For high modulus Q>1, the complete high-bank lifecycle costs 10K + 65 bit_length(Q) + 159, with the numerical-role count K explicit. Input width is also explicit. A reversed ADD retains three caller-owned payload banks at the relevant return cuts and pays both native swaps plus all three intermediate clearances; the borrowed original source and callee workspace are additional.

Evidence on Linux x86_64 / CPython 3.12.15:

  • Ten unchanged-source fixtures cover all six compiled operation kinds, width one, multiple fibres/radices and an empty active route. Exact formulas, a raw physical meter and a separate observer agree; an independent q-adic endpoint oracle checks the result.
  • The V=81 ordered/reversed words cost 59,701/175,505 total operations, of which 8,951/10,599 are setup and disposal outside the paid data calls.
  • Seven controls pass normally and with -I -O -Werror. They check legal input-width and bank-size increments, inactive high operations, reversed ownership, an extra read, missing bank erasure, changed source bytes and a missing-swap fault distinguished by a one-hot payload.
  • python3.12 -B scripts/research_package.py --package research/high-route-setup-invoice passes. Metadata/source pins, staged whitespace checks and all 32 committed publication/source bytes pass at ac651ec18e62edf0baf3846cc4bf0a11d335c2b4.

The written proof is conditional on successful execution and the named callee endpoint/head contracts. Fixture B1 calls use the elementary branch; this does not establish fitted all-width native correctness or a uniform tariff for the charged data calls. Finite-control costs, total backing, caller stock, selected cold replay and supplier admission remain outside scope. No new kappa or selected-frontier change. TASK.json records the changed stock-card scope and open next questions.

Canonical coordination: #2319 (comment). The submission check covered 309 open PRs and 2,095 Discussion records with complete pagination. Canonical main/fork are synchronized and the branch is rebased on 463113d675af7410ac91d53a4fed51ec6494eb9a.

Credit Jose Manuel/jmbarrancoml and David Arias for the reached implementation and caller, Nick Petalas for the prefix/scaling invoices and handoff, commdata2338 for PR3233's ordered ADD, Arham Tahir for the countdown identity, ywz65 and Ross Richardson for earlier audits, and the retained PR2157/PR589/source lineage. Prepared by thakrarsagar with substantial OpenAI Codex assistance, including separate proof derivation and review; this is not independent human or proof-assistant review. Apache-2.0.

@Mister-Meeseeks
Mister-Meeseeks merged commit 87866a0 into CrocSwap:main Oct 17, 2026
2 checks passed
@thakrarsagar
thakrarsagar deleted the loop9963/iteration-06 branch October 18, 2026 08:08
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