Finish local funded quote modes and incremental admission #1458

Merged
PlasticDigits merged 4 commits from fix/issue-1452-followup into main 2026-10-09 23:44:23 +00:00
Owner

Local quotes previously rejected funded tax routes, manual splits and hook inverse sizing, and configuration admission waited for a full census. This adds execution-aligned local v1 tax arithmetic, exact manual plans, bounded hook inverse, incremental admission and epoch-protected inventory recovery. Both CW20 and native signers now use the pinned funding version and reject changed budgets, maker caps, hints, recipients or floors.

Deploy a compatible indexer before the frontend: the client requires the exact declared-plan metadata anchor. Older metadata fails closed.

Related #1452 and merged #1455. This PR does not claim complete issue or deployed acceptance.

Verification:

  • make verify-issue-1452: 14 PASS / 0 FAIL / 0 SKIP, unchanged source through test/retest; 659 library tests plus the explicit benchmark, 79 API tests, 339 frontend tests and 40 controlled browser measurements per pass.
  • Full frontend unit suite: 3,097 PASS. Unchanged contract workspace: 999 PASS.
  • Zero quote-stage provider calls. Initialized socket maxima: 21.0 ms misses / 61.3 ms warm and concurrent; final desktop/phone browser maxima at most 61.2 ms.
  • Related floor/book verifiers pass; tax, launch-guard, DB isolation, funded reverse and liquidity verifiers pass with recorded external skips. Actual LocalTerra funding/rollback/invoice checks and both 3M query/probe runs passed.
  • Human Git identity, normal hooks, staged secret scan and clean worktree.
  • Complete deployed/reference-network/device acceptance.
  • Direct zero-hop signing: external treasury/mapper messages cannot enforce the reviewed receive floor; local estimates remain explicitly nonexecutable.
  • AutoLP/cooldown modeling, tax wallets absent the scheduled actor census, complete composed inverse and largest populated-graph acceptance.

Reviewing agent: read the linked invariants, use a disposable QA database, run the verifier and related checks, inspect exact signed payloads and accounting, and record revision/time/counts/generations/all latency samples. Correct executed failures and retest. An unavailable check may be explicit SKIP with overall PASS WITH SKIPS when every executed check passes; skipped acceptance stays unchecked and runtime protections cannot be waived.

Full results and issue criteria, agent checklist, LQ1452 invariants. The receipts retain earlier executed failures and the exact unsupported/skip scope. Existing deployment/history/device work remains on #1456.

Hosted CI status is unavailable (fj actions tasks returned not found); no successful remote CI status is claimed.

Local quotes previously rejected funded tax routes, manual splits and hook inverse sizing, and configuration admission waited for a full census. This adds execution-aligned local v1 tax arithmetic, exact manual plans, bounded hook inverse, incremental admission and epoch-protected inventory recovery. Both CW20 and native signers now use the pinned funding version and reject changed budgets, maker caps, hints, recipients or floors. Deploy a compatible indexer before the frontend: the client requires the exact declared-plan metadata anchor. Older metadata fails closed. Related #1452 and merged #1455. This PR does not claim complete issue or deployed acceptance. Verification: - [x] `make verify-issue-1452`: 14 PASS / 0 FAIL / 0 SKIP, unchanged source through test/retest; 659 library tests plus the explicit benchmark, 79 API tests, 339 frontend tests and 40 controlled browser measurements per pass. - [x] Full frontend unit suite: 3,097 PASS. Unchanged contract workspace: 999 PASS. - [x] Zero quote-stage provider calls. Initialized socket maxima: 21.0 ms misses / 61.3 ms warm and concurrent; final desktop/phone browser maxima at most 61.2 ms. - [x] Related floor/book verifiers pass; tax, launch-guard, DB isolation, funded reverse and liquidity verifiers pass with recorded external skips. Actual LocalTerra funding/rollback/invoice checks and both 3M query/probe runs passed. - [x] Human Git identity, normal hooks, staged secret scan and clean worktree. - [ ] Complete deployed/reference-network/device acceptance. - [ ] Direct zero-hop signing: external treasury/mapper messages cannot enforce the reviewed receive floor; local estimates remain explicitly nonexecutable. - [ ] AutoLP/cooldown modeling, tax wallets absent the scheduled actor census, complete composed inverse and largest populated-graph acceptance. Reviewing agent: read the linked invariants, use a disposable QA database, run the verifier and related checks, inspect exact signed payloads and accounting, and record revision/time/counts/generations/all latency samples. Correct executed failures and retest. An unavailable check may be explicit SKIP with overall PASS WITH SKIPS when every executed check passes; skipped acceptance stays unchecked and runtime protections cannot be waived. [Full results and issue criteria](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/53853c9fb508620a0312a634f08d9e786c39199a/docs/qa/issue-1452/FOLLOWUP-RESULTS.md), [agent checklist](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/53853c9fb508620a0312a634f08d9e786c39199a/docs/qa/issue-1452/README.md), [LQ1452 invariants](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/53853c9fb508620a0312a634f08d9e786c39199a/skills/AGENTS_LOCAL_SWAP_QUOTES.md). The receipts retain earlier executed failures and the exact unsupported/skip scope. Existing deployment/history/device work remains on #1456. Hosted CI status is unavailable (`fj actions tasks` returned not found); no successful remote CI status is claimed.
Bind local tax and manual plans through signing, support bounded hook inverse and wrapper sizing, and publish scheduled configuration slices safely. Migrate API and page fixtures and record verification with explicit remaining scope.
Record exact local quote revision and provider probe receipts
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
8462ba9892
Link local quote implementation and agent checks to the follow-up PR
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
53853c9fb5
test: wait for settled swap and pair-picker state
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
c923aab015
Author
Owner

Merge sanity update: make verify-issue-1452 passed 14/0/0; 659 library tests plus discovery benchmark, 79 socket/API tests and 339 focused frontend tests pass on both runs, with zero quote-stage provider calls. Full frontend unit run now passes 3097/3097 after commit c923aab0 fixes three asynchronous assertion races; make verify-issue-1398 passed 7/0/0, including the full contract workspace. Related tax/guard/provider/liquidity/database verifiers are running on isolated fixtures before merge. Problems and historical failures are recorded on #1452; #1459 tracks remaining unsupported semantics, and #1456 tracks deployment/live acceptance plus stale local artifact provenance. No deployed acceptance is claimed.

Merge sanity update: make verify-issue-1452 passed 14/0/0; 659 library tests plus discovery benchmark, 79 socket/API tests and 339 focused frontend tests pass on both runs, with zero quote-stage provider calls. Full frontend unit run now passes 3097/3097 after commit c923aab0 fixes three asynchronous assertion races; make verify-issue-1398 passed 7/0/0, including the full contract workspace. Related tax/guard/provider/liquidity/database verifiers are running on isolated fixtures before merge. Problems and historical failures are recorded on #1452; #1459 tracks remaining unsupported semantics, and #1456 tracks deployment/live acceptance plus stale local artifact provenance. No deployed acceptance is claimed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-dex-terraclassic!1458
No description provided.