Keep trading quotes fresh and wait for pricing observations #1475

Merged
PlasticDigits merged 2 commits from fix/1473-pricing-warmup into main 2026-10-11 12:40:55 +00:00
Owner

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 earlier a653582f… 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 remains 90ae4cf2829046ff39cb12291c89a728321c84d7fe34df15c1b666e77fd80fba; 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.

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](https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/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 earlier `a653582f…` 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](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/ff2ee8f8d71cf132de9d342eb918b486ba7f3d5d/docs/qa/issue-1473/WARMUP.md), [results](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/ff2ee8f8d71cf132de9d342eb918b486ba7f3d5d/docs/qa/issue-1473/RESULTS.md) and [agent checklist](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/ff2ee8f8d71cf132de9d342eb918b486ba7f3d5d/docs/qa/issue-1473/README.md) 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 remains `90ae4cf2829046ff39cb12291c89a728321c84d7fe34df15c1b666e77fd80fba`; the final docs-only commit adds review crosslinks. All six mandatory hosted jobs and exact-head log markers passed in [pipeline 410](https://ci.cl8y.com/repos/7/pipeline/410/1): 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`.
fix(trading): wait for pricing data and expire cached quotes
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending
93ceffa287
Observe local publications with bounded generation recovery.
Keep displayed and submitted quotes within original expiry.
Retain bounded live diagnostics and prior failed evidence.
docs(qa): link pricing data follow-up review
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ff2ee8f8d7
Connect the checklist, invariants and results to PR #1475.
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!1475
No description provided.