Fix recurring native quote unavailability and slow recovery #1505
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#1505
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The final native sustained run on deployed application revision
14055610ebe86fd3640ff85e8adc15e16785c6ddretained a setup timeout and a 12.536-second reverse-phone recovery. Monitoring across that run recorded 21 backend HTTP503 errors, including six in the warmed interval. Missing observations, circuit-open and historical-height failures appear in the evidence; the provider/root cause is not established.Done when the affected native directions recover through refresh/expiry without stale executable display, with targeted original-input measurements meeting the existing 500ms initialized socket and 750ms useful-browser budgets. Preserve offline requests, original expiry, provider/work limits and fail-closed signing.
The Trade entry, Swap layout, metrics and source-level lifecycle fixes are already merged and deployed through #1501/#1502. Do not repeat that implementation or turn this into another exhaustive acceptance sweep.
Sources: #1473, #1489, #1499; release results and retained failures.
Split from #1504 at the user's request. Original issues #1449–#1500 remain closed. Historical failures remain evidence; use focused regression checks for actual changes. Wallet/device checks and broad verification-only acceptance chores are excluded.
Merged PR #1509 into main at
c3e216842fe3bac00e2c71bb967950e004b3a6cf; both local checkouts are synchronized. Independent wrapper prerequisites now overlap within the original provider/deadline limits, and original expiry synchronously revokes display/payload. Typed native poll/rejection/request correlation and corrected browser clocks are documented in NR1505.make verify-issue-1505,1499,1464first/retest; production build and secret scanning. Hosted CI464 passed contracts999, frontend3470, indexer library841, isolated PostgreSQL84 tests, with two existing ignored cases recorded separately.Both Coolify deployments have started. The issue remains open until its body and comments' actual live criteria pass. Source/live boundaries and checklists are in the focused results; wallet/device and exhaustive matrix checks are excluded by this issue.
PR #1510 merged normally into main at
1c21064a91dcd51943a96f03108bf47ae8b31c22. CI467 passed every required stage, including843 library and84 isolated PostgreSQL tests; both Coolify deployments and exact revision attestation passed.Live acceptance remains FAIL, so this issue stays open and implementation continues:
The new typed logs expose a concrete timeout mismatch: the router's extra2s wrapper cap can cancel an admitted2.5s provider attempt. The next change keeps the existing provider/work limits and original whole-poll deadline while running this optional read alongside the remaining producer work. The native-input stale cases are being traced separately. No expiry extension, retained-field splicing, signing relaxation, forced merge or fabricated CI status was used.
PR #1513 merged normally as
cfc1ba4b01f68f4aa804aa33d86c9048c8ce378a. Main and the worktree are synchronized; the entire merge tree matches the final tested head. Both Coolify deployments have started.The two previous deployed failures remain preserved in the results. This issue remains open while the new deployment is checked.
Live FIRST on deployed
cfc1ba4b01f68f4aa804aa33d86c9048c8ce378aremains FAIL. The socket run recorded 145 useful results and one reverse HTTP 503, with 2.602-second sampled recovery; useful initialized results stayed within 309.04ms. The complete desktop browser window separately recorded 38 useful responses and two native-input HTTP 503s. Initial useful paint was 387ms, with no observed expiry or ownership flags. The incomplete browser run was stopped; no unchanged retest was used.All three selected request IDs now correlate with reference-only stale witnesses, retaining the original
10:10:55.323 UTCreference clock. The next raw-pool cycle had completed all 22 pools before the failures, while quote consumers still held the older reference. The browser adopted the newer original reference clock afterward. The preceding router prerequisite sample was complete in 18/18 polls.A deterministic original-clock regression reproduces the pool/mark timer phase gap. The next implementation adds one coalesced completion wake from the owned pool cycle and separates critical atomic marks from accounting work. It preserves original expiry, reference qualification, provider limits and fail-closed execution. Isolated database controls are in progress. Exact database commit timing was not available from the retained production logs, so it is not claimed as proven.
Main CI471 also passed, separately from this live failure. This issue stays open; the failed receipts are retained in the focused results for the next fix and deployment loop.
PlasticDigits referenced this issue2026-10-15 11:28:34 +00:00
PR #1514 merged normally into main at
358475f4cf71a3089f88259ee27339850512bacd. Both checkouts are synchronized; the entire merge tree matches the tested branch head. Both Coolify deployments have started.The previous deployed failures remain in the focused results. The issue remains open until its live criteria pass.
Live FIRST on deployed
358475f4cf71a3089f88259ee27339850512bacdis FAIL. Both deployments, exact revision attestation and deployment logs passed. The 190-second socket run recorded 135 useful responses and 11 missing-observation HTTP 503s, with up to 10.382-second sampled recovery. Initialized useful responses stayed within 306.331ms. The completed desktop browser window separately recorded 24 useful responses and one native-input 503, at 372ms initial useful paint and no observed expiry/ownership flags. Remaining windows and unchanged retests were stopped.The new correlation distinguishes two patterns: incomplete tax/cap observations in the first two error clusters, and wrapper-only stale witnesses after a scheduled chain check exited immediately in the third cluster. No reference-stale witness appears in those selected failed requests. A subsequent poll recovered with its own original timestamp. The producer still has a two-second tax/cap subdeadline shorter than a permitted provider attempt; the identity path also exits immediately on zero-attempt circuit denial even when recovery could fit its existing deadline. Controlled regressions and bounded fixes are being implemented; the exact production reason for the unlogged cap loss is not claimed as proven.
The issue remains open. No old-field splicing, freshness extension, provider/work-limit increase, forced merge or fabricated verification status is being used. Previous failures remain retained.
PR #1516 is merged as
bcfaa77f7940fa4385436abb1b68c54cdf623402. Both checkouts are synchronized; the entire merged tree matches tested head0525b001.Results and retained failures link the invariants, agent guidance and source receipts. Both Coolify deployments are being started. This is an implementation update; #1505 remains open until deployed criteria pass. The original issues remain closed and excluded wallet/device/exhaustive acceptance work is not added here.
M5 is exactly deployed on both services at
bcfaa77f7940fa4385436abb1b68c54cdf623402, with independent backend warmup completed. PR CI 481 and main CI 482 are fully green: contracts 999, frontend 3,470, library 879 plus one ignored, and PostgreSQL 86 plus one ignored. Deployment logs have no build-error markers.Live FIRST remains FAIL. The 190-second socket cohort passed 146 useful native results, with an initialized maximum of 316.041ms. Browser FIRST's first three 190-second windows passed 35/35 useful each, but CL8Y→USTC phone received an active HTTP 503
missing_observations, IDc659a12239334730, at 18:35:10.499 UTC. Its preceding useful quote had 706ms of original validity remaining. Recovery was sampled 10.895 seconds later. No expiry or validation flags were observed, but this is not positive expiry-callback acceptance.Bounded log correlation shows poll 96 hit the original 7.9-second publication margin with one mapping and both caps absent, replacing the preceding complete view. Queued-versus-active delay and which mapping was missing remain unknown. Keeping the preceding view alone cannot bridge its original expiry to the next complete poll. Investigation has returned to implementation without extending expiry, provider budgets or signing permissions.
A separate 600-read observer cap stopped the last phone window at 139.626 seconds, 19.790 seconds after the real 503. It does not cause or excuse that application failure. Its observation budget needs a documented correction so all four 190-second windows can complete. No RETEST or expiry control ran; all owned browsers and processes exited.
#1505 remains open. Earlier failures are preserved; original issues and excluded wallet/device/exhaustive chores remain unchanged.
PR #1517 is merged as
0b002042fbf6dd37f1e8577acbd995b367fe2b30. Main and the worktree are synchronized; the entire merge tree matches tested headffab872e.Both services are being deployed. Results and invariants preserve the previous actual 503 separately from the previous observer cap. #1505 remains open pending deployed acceptance. Original issues stay closed; excluded wallet/device and exhaustive acceptance work remains excluded.
M6 is exactly deployed on both services at
0b002042fbf6dd37f1e8577acbd995b367fe2b30, with independent warmup complete, clean deployment logs, and fully green PR/main CI 483/484 (999 contract, 3,470 frontend, 882 library and 86 PostgreSQL tests passed; two existing ignored cases recorded separately).Live FIRST is FAIL, so #1505 remains open and implementation continues:
missing_observations503, ID016dc250827b0354, at 20:36:45.621 UTC. Sampled recovery took 10.882 seconds. The final phone window was stopped; no unchanged RETEST or expiry control ran. All owned browser/Node processes exited.The selected server witness is reference-only, 448ms past its original 20-second expiry. Nearby wrapper polls have both mappings/caps, tax and router complete. Reference commits at 20:36:39.741 and 20:36:44.745 still carried the original 20:36:25.032 clock. The preceding pool cycle completed 21/22, with a historical-height failure on a documented CL8Y/cUSTC reference candidate; the current winning source and exact historical provider-admission sequence are not proven. No freshness extension is being used.
The browser blanked output at 20:36:45.098, 66ms after original expiry and before the 503. This is sampled revocation evidence, not direct callback instrumentation. The observer used 435/800 reads at the failed-window checkpoint, so its budget did not cause the failure.
Source review identified a separate reproducible candidate: a scheduled read can return a failed provider result while another unattempted provider is briefly capacity-denied, abandoning unspent original time/attempt allowance. A real-HTTP old-code control is being built before changing this bounded continuation. Any fix must preserve exact-height/chain attestation, shared admission, original deadlines, actual attempt limits and direct/request behavior. Historical busy-alternative causality is not asserted. Previous failures remain retained; original issues and excluded wallet/device/exhaustive work stay unchanged.
PR #1518 adds scheduled fallback within the original unused provider allowance and propagates producer deadlines into transport/positive-result acceptance. Original freshness, provider limits, typed-negative invalidation, height lag policy, offline requests and signing checks remain enforced. Invariants and agent guidance are crosslinked in the results.
Merged revision:
5f486532a7. Deployment/live checks follow; #1505 remains open. Earlier actual live failures remain FAIL. Wallet/device, funded signing and exhaustive acceptance remain outside this focused follow-up.The seventh deployed revision
5f486532a73e6effb93a053a8d02029f78c07d4e(PR #1518) passed source verification, genuine CI485/486, exact Coolify attestation and log inspection, independent 180-second warmup, and socket FIRST: 146 executable selected responses with maximum initialized latency 306.77ms. Browser FIRST remains FAIL.503 missing_observationsat 00:06:09.907 UTC, correlated ID4463924d8b8a2c6d. Sampled recovery of 10,888ms does not remove this failure.All owned Node/Chrome processes exited. Exact-ID monitoring and one separately bounded producer-context query identify a fresh partial wrapper observation missing the USTC tax cap. Its read waited 4,218ms in the denomination queue before the original deadline. The live record does not prove the underlying provider delay or that a global slot was idle; a real-HTTP source control is testing that dispatch mechanism. The failure is not labeled reference or wrapper expiry without a stale witness.
Prior failures remain retained. #1505 stays open; implementation resumes before another deployment or acceptance run. No unchanged rerun will be used to seek green. Wallet/device, funded signing and exhaustive acceptance remain outside this focused follow-up.
PR #1521 merges as
b34187f33f1e167ab9741c7135081496ba1daaf6. Native dispatch now allows remaining reads to borrow an unused share only after the peer finishes its fixed three-read plan. Every read still acquires the original global two-read gate. Provider attempts, pacing, logical read count, deadlines, original freshness, known-negative validation and offline requests remain enforced.The real-HTTP OLD control measured 3,382ms of idle global capacity and lost the cap at the original deadline. The fixed control completes all 13 healthy data requests. This proves the source defect; the earlier production failure's exact provider sequence and idle interval remain unproven. Results, invariants and retained failures document that distinction.
Deployment and live verification follow. #1505 remains open; M7's actual live failure remains FAIL. No unchanged rerun is used to seek green. Wallet/device, funded signing and exhaustive acceptance remain outside this focused follow-up.
The eighth deployment
b34187f33f1e167ab9741c7135081496ba1daaf6(PR #1521) passes source checks, genuine CI489/490, exact Coolify deployment/log attestation, independent warmup and socket FIRST. Browser FIRST remains FAIL.503 missing_observationsresponses, IDs27b594f64a04ae0cand27b594f64a04ae0d. Exact correlated server rejections are 01:49:15.270541 and 01:49:15.561715 UTC; their fast 290.27/290.99ms completion does not count as useful success.The earlier progress statement that all four initialized API checks passed was incorrect and has been explicitly corrected. The driver retained the actual failures, but did not persist initialization results until a later window checkpoint and omitted absolute API clocks. A follow-up observer patch now checkpoints actual results before Chrome launch and records numeric request/response/server timing, preserving the original measurement versions, limits and scoring. OLD omission controls fail; fixed offline controls pass. It is not yet deployed.
Bounded exact-ID logs plus one separate four-read context link the failures to fresh partial poll 53: both mappings, tax, router and the ULUNA cap were present, but the USTC cap was absent. Forward successes carry that same poll's original clock. The previous complete view expired before both rejections; the next complete view arrived at 01:49:21.049. Retaining old data only until its original expiry cannot bridge the gap. The long prerequisite prefix is measured, but its specific provider/admission cause remains unproven. A deterministic OLD control is testing prerequisite versus router admission before the next implementation.
#1505 stays open. Earlier failures remain FAIL; no unchanged live rerun will be used to seek green. Wallet/device, funded signing and exhaustive acceptance remain outside this focused follow-up.
PR #1524 merged normally at
4c21b49025f29c2862dedc26c2308ce3295e332a. Main and the worktree are synchronized, with the tested application and verification fingerprints preserved.Both common treasury reads now acquire their existing permits and pass the original deadline guard before router admission. Router work then overlaps settlement under the original limits. A permitted router-first source control loses required native output; the corrected control is useful without extra reads, provider capacity, deadlines or freshness. That control does not establish the exact historical provider order.
The observer now checkpoints actual initialization outcomes before Chrome and validates supplemental timing metadata. A separate CI repair adds five exact, independently verified public-identifier exceptions; all other scanner settings remain unchanged. Its immutable trusted-policy rollout at
1b43914ematches bundle e189b210… and rejects unsigned requests. CI491 remains FAIL and its skipped application jobs remain unexecuted.Results and retained failures and agent invariants keep source, policy, application deployment and live acceptance separate. #1505 stays open. Historical native failures remainFAIL; no unchanged live rerun seeks green. Wallet/device, funded signing and exhaustive acceptance remain excluded.
The ninth deployment
4c21b49025f29c2862dedc26c2308ce3295e332a(PR #1524) passed source verification, genuine PR/main CI492/493, both exact Coolify deployments, deployment logs, independent backend warmup and socket FIRST. Natural browser FIRST passed; unchanged RETEST failed, so #1505 stays open and implementation resumes.503 missing_observationsresponses, IDse4d6b2b79601545e,e4d6b2b796015461,e4d6b2b796015464. Sampled recovery was 12.067 seconds; it does not remove the failure. The last phone window stopped deliberately after 19.928 seconds. All 323/800 calls are accounted; its unavailable final guard remains unknown.Bounded exact-ID monitoring plus one separate four-read/40-second context link the rejections to poll199: its USTC rate-limit read hit the original 7.9-second publication margin, leaving the USTC mapping absent while tax, router and ULUNA cap remained present. Full polls198/200 bound the gap. Keeping the preceding whole view only until its original expiry would still leave 5.644 seconds before the next complete publication. The exact historical provider/peer order remains unproven; the next source control must distinguish that from dispatcher scheduling. No freshness extension or retained-field splicing is used.
Grafana/Loki collections retained fixed read/line budgets; Prometheus was conditionally unavailable because no datasource is provisioned. Earlier failures remain FAIL. No unchanged rerun will seek green. Wallet/device, funded signing and exhaustive acceptance remain outside this focused issue.
PR #1525 merged normally as
0bdd28b81d766f83c2796773c84f3ad30ee026c2. Both local checkouts are synchronized; the entire merged tree matches tested head251a9e7d.The scheduled wrapper now starts with the mapper query's mandatory fresh endpoint attestation, removing its redundant preceding identity-only request. Every actual data attempt and alternative still verifies its exact endpoint under the original deadlines, admission and health rules. Healthy identity/provider attempts reduce 14→13 without additional attempts; the thirteen logical data reads remain. NR1505-14, source proof, results and agent guidance document the boundary.
Uniform identity latency makes the actual OLD control lose required caps; the fixed control is useful within the unchanged margin. Optional floor capabilities remain unknown in that slow control and are never promoted. Production poll199 instead lost a rate/mapping; its historical identity/provider timing remains unproven. No expiry extension, retained-field splicing, capacity increase or signing relaxation was added.
The ninth deployment's natural FIRST PASS and actual RETEST FAIL remain retained. #1505 stays open pending deployed acceptance. No unchanged rerun will seek green after a failure. Wallet/device, funded signing and broad acceptance sweeps remain excluded.
Implementation review (2026-10-18; source/history and existing evidence only, no tests or live probes run): the #1505 source changes are implemented and merged, including PR #1509 (
c3e21684), subsequent recovery fixes, treasury admission ordering in #1524 (4c21b490), and redundant wrapper identity-preflight removal in #1525 (0bdd28b8). The latest merge is an ancestor of the reviewed checkout,67dc275e78842fa6944b3062a2029b3c85afadcb.Confirmed in current source:
indexer/src/db/queries/hub_prices.rs; server-generated quote correlation is present inindexer/src/api/quote_trace.rs.frontend-dapp/src/hooks/useLocalQuoteExpired.ts; the browser observer persists actual initialized API outcomes before Chrome inscripts/qa/live-trading-lifecycle-1499.cjs.This confirms source implementation, not completed issue acceptance. The retained results still record the #1524 browser RETEST failure (three native-output 503s; 12.067-second sampled recovery). The latest #1525 update leaves exact deployment and focused socket/browser FIRST/RETEST plus positive expiry-callback acceptance pending. No later passing acceptance evidence was found in the issue comments or focused results reviewed. Keep #1505 open; this note does not relabel historical failures or claim the live completion criteria passed.
Merged PR #1542 into main
5b623a04f35bb6b44d3e64df0014e458cad653fc; genuine CI526 passed. That exact backend is live; the served frontend remains2df4a471a9ca98a8672d911b67d4bd8134f411fd. #1505 remains open: bounded progress does not establish sustained recovery or erase earlier failures.Hub mark cohort committedevent. Missing-prerequisite diagnostics now identify fixed candidate stages while sharing the original eight witness slots with stale diagnostics, only on final HTTP503, without actor/asset/provider values or invented clocks. This trace is now deployed, but cannot retrospectively identify the historical cause.tower_http::trace::on_failureHTTP503 events, not upstream reqwest errors. No route/request-purpose context survives in these lines; they cannot be assigned to user traffic versus readiness probes. This is not an error-free result. Prometheus is explicitly SKIP: no datasource is provisioned.Results and retained failures, missing-stage proof, owned handoff scope/history and NR1505 invariants preserve these boundaries. No new outage is authorized. Wallet/device, funded signing and broad acceptance sweeps remain excluded from this focused issue.
Final release evidence and checked acceptance lists: #1543, release checklist in #1543. The exact serving backend remains
5b623a04; this final publication changes documentation only.