Keep trading quotes fresh and wait for pricing observations #1475
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!1475
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1473-pricing-warmup"
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?
Revisiting an amount could reuse a local quote after original expiry because React Query still considered it fresh for ten seconds. Swap and Trade now bind cache admission, visible receive output and submit state to original expiry, including receive-sizing quotes, and refresh local arithmetic with bounded cadence. Failed refreshes retain ordinary forward retry cadence instead of accelerating to one second; every receive-sizing error stops automatic interval retries.
Typed missing or stale observations show an indeterminate loading bar until a validated executable quote arrives. Recovery observes independently published local generations, supports responses without a generation and keeps only 64 attempted generations per intent. Amount/direction changes cancel obsolete waits. Dust, protection, unsupported semantics, accounting and trading restrictions remain distinct; there is no fabricated price, completion percentage or ETA. The existing reference depth floor and quote protection remain unchanged. This generic behavior covers KENA and other supported identities without an address-specific pricing workaround.
The live QA helpers preserve partial FAIL receipts, exit nonzero for failed completed trials, and recognize native indeterminate progress and visible blocked outcomes without requiring a blank input below the viewport to be visible. These helper corrections do not establish the cause of the initial transport failure or the unresolved 889 ms API delay.
Addresses #1473; follows PR #1474. The issue stays open while current acceptance remains incomplete. The temporary 750 ms browser criterion remains explicit; socket 500 ms, economic percentages, original 4/20/180-second windows, request/work limits and zero request-triggered RPC are unchanged.
Current final source fingerprint:
90ae4cf2829046ff39cb12291c89a728321c84d7fe34df15c1b666e77fd80fba. The selected changed-frontend scope passed 427 tests across 24 files twice, including six actual QueryClient cases and receive/forward cadence checks; TypeScript build, modified-file ESLint/Prettier and whitespace checks passed. The earliera653582f…core trials passed 423 frontend, 774 indexer, 81 socket, 10 Python and 8 DOM checks, but their complete 4,250-case headless browser trials each executed one latency FAIL: 762.4 ms and 857.4 ms. Those failures retain FAIL; no CPU/GC/graphics/application cause has been established by bounded profiling.Two complete 4,250-case first/retest cycles passed in actual headed Chrome on an owned Xvfb display, with the same named 750 ms criterion, original-event clock and two confirmed visible frames. The receipt contains 3,948 useful results, 302 blocked outcomes, zero failures, zero provider RPC and 1,992 quote GETs; p50/p95/p99/max were 97.6/158.5/198.4/657.2 ms. Six measurements exceeded the former 500 ms criterion. This scoped functional and headed result does not erase the retained headless/live/network failures or establish complete deployed acceptance. Any aggregate with executed failures remains FAIL for that stated scope.
Existing initial 7b deployment/source evidence and all failed live/browser/network scopes remain separate. Follow-up invariants, results and agent checklist describe exact scopes. Current source checks do not substitute separately attested full live acceptance. Historical economic pins, complete settlement/device scope and the unresolved #1396 host-bridge failure remain documented; no issue closure is claimed.
Final review head:
ff2ee8f8d71cf132de9d342eb918b486ba7f3d5d. Frozen source fingerprint remains90ae4cf2829046ff39cb12291c89a728321c84d7fe34df15c1b666e77fd80fba; the final docs-only commit adds review crosslinks. All six mandatory hosted jobs and exact-head log markers passed in pipeline 410: frontend 3,240 tests/363 files plus production build, contracts 999, indexer library 774 and isolated Postgres 84; two expressly ignored benchmark/credential fixture cases remain excluded. Normal merge main revision:ea627f7b0e8d5ebc9fde2bb5b243f451cf159f4d.