Complete cached quote coverage and protected direct wrapper signing #1463

Merged
PlasticDigits merged 2 commits from fix/issue-1459-quote-semantics into main 2026-10-10 06:01:22 +00:00
Owner

Direct native wrap/unwrap estimates could not enforce their reviewed receive floor, and cached tax-wallet/inverse coverage remained incomplete after #1458. This change enables protected direct signing only after scheduled observations confirm the companion protocol, admits uncensused wallets through bounded independent ingestion, and repairs composed inverse rounding dips.

Refs #1459. Companion protocol: ustr-cmm #62, commit 519c2766e5be0a3788a4c920ad879b641a50aa74. Production rollout remains on #1456.

  • C1: explicit protected treasury/mapper variants enforce the actual recipient balance delta, with exact serialization, positive reviewed wallet floors and atomic rollback. Legacy/unknown capabilities stay nonexecutable. Protected offline gas budgets are 800k/1.2M.
  • C2: preserve the issue's explicit unsupported-admission alternative for nonzero cooldown/AutoLP, including manager exemption. Required asset failures invalidate every retained related pair before slower publication.
  • C3: scheduled holder pagination and configured zero-balance wallet enrollment extend the actor census. Independent ledgers retain original expiry and negative/quarantine state across pair refresh, cancellation and provider/DB failures. In-flight and deeper publications recheck current epoch/generation.
  • C4: bounded whole-route inverse refinement handles independent hook-floor collisions and proves supported first-reaching economic inputs with independent integer tests. Exhaustion fails closed and preserves healthy alternatives.

Quote, preparation and signing introduce no request-triggered discovery or smart queries. Gross v1 funding, caps, launch guards, spread/reference protection and positive floors remain enforced.

Validation: verify-issue-1452 14/0/0; 1398 7/0/0; 1381 13/0/1; 1390 15/0/1; 1422 10/0/1; 1396 28/0/2 (PASS/FAIL/SKIP). Final full frontend: 3,105 tests; unchanged contracts: 999 tests. Each quote pass ran 686 library tests plus the explicit benchmark, 81 disposable-DB API tests, 412 focused frontend tests and 40 actual browser measurements. All final controlled initialized measurements were <250ms, with zero quote-stage provider calls. The source fingerprint remained unchanged after commit hooks.

Two fresh LocalTerra wrapper fixtures verified wrong-floor rollback and exact native-net delivery (497,500 nominal → 495,013 actual); measured gas was about 459k wrap and 501k unwrap. Actual funded/native/invoice/launch-guard flows and repeated unchanged 3M smart queries passed. Earlier executed fixture failures were corrected and retested, never changed into skips.

Overall PASS WITH SKIPS for local source verification. Unverified scope: production deployment/provenance, loaded/reference-network/connected-wallet/device acceptance, independently reviewed frozen pre-fix artifacts, host published-bridge transport and disabled IPv6. Dynamic cooldown/AutoLP and authoritative token-context recovery after capacity exhaustion remain explicitly unsupported. Skips do not waive runtime guards or complete deployed acceptance.

Agent checklist and skip policy · Results and raw receipts · QC1459 invariants.

Reviewing agents should run the linked commands, inspect payload/rollback/budget/expiry assertions, and retest corrections on unchanged source. An unavailable item may be explicit SKIP with attempted command and concrete missing capability while marking overall PASS WITH SKIPS when all executed checks pass; leave that criterion unchecked. Executed failures remain FAIL.

Direct native wrap/unwrap estimates could not enforce their reviewed receive floor, and cached tax-wallet/inverse coverage remained incomplete after #1458. This change enables protected direct signing only after scheduled observations confirm the companion protocol, admits uncensused wallets through bounded independent ingestion, and repairs composed inverse rounding dips. Refs #1459. Companion protocol: [ustr-cmm #62](https://git.cl8y.com/code/ustr-cmm/pulls/62), commit `519c2766e5be0a3788a4c920ad879b641a50aa74`. Production rollout remains on #1456. - [x] C1: explicit protected treasury/mapper variants enforce the actual recipient balance delta, with exact serialization, positive reviewed wallet floors and atomic rollback. Legacy/unknown capabilities stay nonexecutable. Protected offline gas budgets are 800k/1.2M. - [x] C2: preserve the issue's explicit unsupported-admission alternative for nonzero cooldown/AutoLP, including manager exemption. Required asset failures invalidate every retained related pair before slower publication. - [x] C3: scheduled holder pagination and configured zero-balance wallet enrollment extend the actor census. Independent ledgers retain original expiry and negative/quarantine state across pair refresh, cancellation and provider/DB failures. In-flight and deeper publications recheck current epoch/generation. - [x] C4: bounded whole-route inverse refinement handles independent hook-floor collisions and proves supported first-reaching economic inputs with independent integer tests. Exhaustion fails closed and preserves healthy alternatives. Quote, preparation and signing introduce no request-triggered discovery or smart queries. Gross v1 funding, caps, launch guards, spread/reference protection and positive floors remain enforced. Validation: `verify-issue-1452` 14/0/0; `1398` 7/0/0; `1381` 13/0/1; `1390` 15/0/1; `1422` 10/0/1; `1396` 28/0/2 (PASS/FAIL/SKIP). Final full frontend: 3,105 tests; unchanged contracts: 999 tests. Each quote pass ran 686 library tests plus the explicit benchmark, 81 disposable-DB API tests, 412 focused frontend tests and 40 actual browser measurements. All final controlled initialized measurements were <250ms, with zero quote-stage provider calls. The source fingerprint remained unchanged after commit hooks. Two fresh LocalTerra wrapper fixtures verified wrong-floor rollback and exact native-net delivery (497,500 nominal → 495,013 actual); measured gas was about 459k wrap and 501k unwrap. Actual funded/native/invoice/launch-guard flows and repeated unchanged 3M smart queries passed. Earlier executed fixture failures were corrected and retested, never changed into skips. Overall PASS WITH SKIPS for local source verification. Unverified scope: production deployment/provenance, loaded/reference-network/connected-wallet/device acceptance, independently reviewed frozen pre-fix artifacts, host published-bridge transport and disabled IPv6. Dynamic cooldown/AutoLP and authoritative token-context recovery after capacity exhaustion remain explicitly unsupported. Skips do not waive runtime guards or complete deployed acceptance. [Agent checklist and skip policy](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/d3d5c550/docs/qa/issue-1459/README.md) · [Results and raw receipts](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/d3d5c550/docs/qa/issue-1459/RESULTS.md) · [QC1459 invariants](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/d3d5c550/skills/AGENTS_LOCAL_QUOTE_COVERAGE.md). Reviewing agents should run the linked commands, inspect payload/rollback/budget/expiry assertions, and retest corrections on unchanged source. An unavailable item may be explicit SKIP with attempted command and concrete missing capability while marking overall PASS WITH SKIPS when all executed checks pass; leave that criterion unchecked. Executed failures remain FAIL.
fix(quotes): enforce wrapper floors and complete cached coverage
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
d3d5c55059
docs(quotes): link implementation and verification receipts
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
6f90f7107e
PlasticDigits deleted branch fix/issue-1459-quote-semantics 2026-10-10 06:01:22 +00:00
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!1463
No description provided.