Restore small-market quote readiness and offline swap budgets #1481

Merged
PlasticDigits merged 2 commits from fix/1479-1480-execution-readiness into main 2026-10-12 06:07:05 +00:00
Owner

KENA-like $25 pools could report positive liquidity while failing executable-reference admission at the shared $100 threshold. Separate the user-authorized $10 economic total-TVL floor from the unchanged $100 independent hub backing depth, and classify scheduled structural exclusions distinctly from missing/stale data. References now bind canonical source/asset identity, original anchor time and quorum; progress separates search from executable eligibility.

Locally reviewed swaps also used legacy gas budgets below measured current settlement costs. Add generic, bounded offline legacy/v1 budgets, share the plan across Swap/Trade fees/Max/native reserve/signing, reject split-path signed fee changes, and preserve original quote expiry. Existing price-impact, taxes, positive floors and no-resend behavior remain guarded. Scheduled hub/mark/quorum/census reads now use one read-only repeatable-read snapshot, preventing mixed price scales during publication. Swap rechecks fee coverage and current cached native principal+fee reserve at mutation entry, including queued submissions.

Validation and complete acceptance checklists:

  • #1479 results, agent checklist, SM1479 invariants.
  • #1480 results, agent checklist, OB1480 invariants.
  • Funded first/retest: 24 settlements and 48 rejected-floor rollback transactions per round, decoded exact signed fees/messages and independent net arithmetic, unchanged reserves/LP/CW20 principal on rejection, ≥20% measured gas headroom in plain core routes.
  • Additional owned taxed-route/invoice and mixed 6/18/9-decimal 1%/5%/30% net-floor checks passed. Type checking, lint, all commit hooks and canonical entry/signing/recovery regressions passed. Final stable entrypoints: #1479 and #1480 PASS WITH SKIPS; #1452 PASS; #1473 PASS WITH SKIPS. The full controlled 4,250-case desktop/phone matrix had zero failures, 3,948 useful quotes, zero provider calls and a 212.6 ms maximum against 750 ms. Owned tmpfs runtime isolation is recorded; earlier normal-host FAILs remain retained.

Physical wallets, original reporter details, calibrated native/tax/hook/book worst cases, independent thin-token historical manipulation evidence and full deployed acceptance remain incomplete. Both issues retain incomplete acceptance; executed earlier failures and scope limits are retained in the results. Backend/frontend will be independently attested after deployment.

References #1479 and #1480; full acceptance remains incomplete.

KENA-like $25 pools could report positive liquidity while failing executable-reference admission at the shared $100 threshold. Separate the user-authorized $10 economic total-TVL floor from the unchanged $100 independent hub backing depth, and classify scheduled structural exclusions distinctly from missing/stale data. References now bind canonical source/asset identity, original anchor time and quorum; progress separates search from executable eligibility. Locally reviewed swaps also used legacy gas budgets below measured current settlement costs. Add generic, bounded offline legacy/v1 budgets, share the plan across Swap/Trade fees/Max/native reserve/signing, reject split-path signed fee changes, and preserve original quote expiry. Existing price-impact, taxes, positive floors and no-resend behavior remain guarded. Scheduled hub/mark/quorum/census reads now use one read-only repeatable-read snapshot, preventing mixed price scales during publication. Swap rechecks fee coverage and current cached native principal+fee reserve at mutation entry, including queued submissions. Validation and complete acceptance checklists: - [#1479 results](docs/qa/issue-1479/RESULTS.md), [agent checklist](docs/qa/issue-1479/README.md), [SM1479 invariants](skills/AGENTS_SMALL_MARKET_REFERENCE.md). - [#1480 results](docs/qa/issue-1480/RESULTS.md), [agent checklist](docs/qa/issue-1480/README.md), [OB1480 invariants](skills/AGENTS_OFFLINE_SWAP_BUDGET.md). - Funded first/retest: 24 settlements and 48 rejected-floor rollback transactions per round, decoded exact signed fees/messages and independent net arithmetic, unchanged reserves/LP/CW20 principal on rejection, ≥20% measured gas headroom in plain core routes. - Additional owned taxed-route/invoice and mixed 6/18/9-decimal 1%/5%/30% net-floor checks passed. Type checking, lint, all commit hooks and canonical entry/signing/recovery regressions passed. Final stable entrypoints: #1479 and #1480 PASS WITH SKIPS; #1452 PASS; #1473 PASS WITH SKIPS. The full controlled 4,250-case desktop/phone matrix had zero failures, 3,948 useful quotes, zero provider calls and a 212.6 ms maximum against 750 ms. Owned tmpfs runtime isolation is recorded; earlier normal-host FAILs remain retained. Physical wallets, original reporter details, calibrated native/tax/hook/book worst cases, independent thin-token historical manipulation evidence and full deployed acceptance remain incomplete. Both issues retain incomplete acceptance; executed earlier failures and scope limits are retained in the results. Backend/frontend will be independently attested after deployment. References #1479 and #1480; full acceptance remains incomplete.
fix: restore small-market quotes and offline swap budgets
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending
3d9ab090f6
Separate economic reporting and hub backing floors, preserve original reference cohorts, and share measured offline fee budgets across review and signing.
docs: link execution-readiness review and final source receipts
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
e012086186
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!1481
No description provided.