Local cached quote engine and pinned signing (#1452) #1455
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/cl8y-dex-terraclassic!1455
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-1452-local-quotes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Swap requests previously waited for chain simulation and reference solves, then could select a thin route that failed the caller's protection. This change returns generation-bound local quotes, ranks delivered output subject to actual spread, and pins reviewed operations and positive floors through signing. It addresses #1452; full issue acceptance remains incomplete.
The indexer publishes independently scheduled, bounded snapshots of liquidity, books, identity/configuration, known actor context, hooks, wrapper conversion and independent references. Direct/two-hop candidates establish a baseline; bounded deeper local work can improve it. Amount/target results and topology skeletons are cached separately. Request middleware, cache hits, progress and quote preparation perform no chain validation or simulation. Unknown required semantics fail explicitly.
Swap/Trade consume the local metadata, preserve exact native gross authorization and receive-target floors, keep the baseline through failed refresh, and use offline gas budgets. Exact decimal protection handles 0.14% and 0.29%. Unsupported pay/10 advice and overlapping quote-related chain polling were removed. Escrow-backed book output can exceed AMM reserves; fully filled pure-book quotes support empty AMMs. Known wallet blocks survive census eviction and trigger bounded runtime quarantine on capacity exhaustion. A topology-cache lock regression is corrected. Existing 30% Expert handling, the nonwaivable 99% guard, wallet budgets and on-chain settlement controls remain.
Validation of the final source (commits
bf056511and30ae2024):make verify-issue-1452: 14 PASS, 0 FAIL, 0 source-check SKIP, including first run and retest with unchanged source fingerprint.Issue checklist:
Remaining implementation scope: community-tax forwards, deducting-hook inverse, explicit manual-split POST and direct zero-hop wrap/unwrap remain unsupported. Unknown actor context uses conservative full fees and cannot represent fresh wallet-specific approval. The bounded retained-actor cache keeps 2,048 contexts and refreshes 120 recent plus 8 historical wallets per pass; quarantine recovery requires a complete authoritative inventory, presently unavailable. Large configuration populations can exceed the 180-second initialization budget; incremental admission is unfinished. Native retail routes retain pool-only semantics. Ancillary balance/account and actual broadcast network reads are outside the disconnected-browser corpus. Independent reserve-feed/provider recovery stays coordinated with #1453. Do not close #1452 or describe this branch as production-ready.
Agent review: follow the checklist, run
make verify-issue-1452in this worktree with isolated QA credentials, inspect meaningful selection/network/floor assertions, fix failures and retest. Unavailable checks may be explicit SKIP with reason and remaining scope while marking review PASS WITH SKIPS when executed checks pass. Failed assertions remain FAIL; skipped deployment is not deployment evidence. Results and failure receipts and LQ1452 agent invariants document the supported scope and source modules.WIP: Local cached quote engine and pinned signing (#1452)to Local cached quote engine and pinned signing (#1452)