fix(indexer): preserve independent complete pool and hybrid views #1472

Merged
PlasticDigits merged 3 commits from fix/1464-complete-view-fallback into main 2026-10-11 04:13:01 +00:00
Owner

Newer completed pool observations could invalidate an older, still-compatible hybrid view; hybrid expiry could also remove usable pool quotes. After #1469, this produced two measured 503→200 browser retry tails of about 10.6 seconds despite fast successful fetches. Those failed trials remain recorded.

The fix publishes independent whole pool/hybrid views with separate monotonic watermarks. Zero-book budgets prefer the complete pool; declared positive book budgets require the original compatible hybrid. Candidates retain the exact chosen tuple for response/order checks, and either lane changes cache and reviewed-generation identity. Shared allocation caps, authoritative negatives, four-second fee phases and original twenty-second observation expiry remain intact. Requests trigger zero RPC. A default-parallel regression also exposed an existing mutex-test vacancy race; it now verifies eventual ownership/reentry without assuming other fixtures cannot acquire the lock.

Final review head: 242215d598. Application source is byte-identical to reviewed b018ec2a4f; Rust fingerprint cc7f622dc7656cd000e4c207008badc1be5bc9634a014b3ba49c40716a13d49b. The last commit records public evidence only.

Validation:151 PASS / 0 FAIL / 12 explicit source-stage skips across eleven verifiers. Two corrected default-parallel library runs each passed 764 tests. The separate authenticated-runtime LOGIN and local/three-provider identity checks passed twice. Five protocol verifiers passed 53/0/3; two independent owned SDK53 nodes each passed 6 tax, 5 native/invoice, 16 guard and 6 exact-floor cases. Three funded fixtures passed 54/54 actual smart queries at unchanged 3M and 54 probe transactions; probe gas 743658–2139981 includes wrapper/transaction overhead. All owned chains/volumes and runtime credentials were cleaned up. Initial source-change, mutex-test and QA shared-memory failures remain in the receipts with fixes and passing reruns; none were converted to skips. QA-only PostgreSQL parallelism was bounded after SQL 53100; production settings/schema/ACL were untouched.

  • AC1 source: four-direction useful execution corpus, exact integer inputs and positive matching floors.
  • AC2–AC3 source: transient checkpoint/API recovery, fatal integrity and cancellation.
  • AC4–AC5 source: independent original views, shared bounds/negatives and accurate blockers.
  • AC7–AC8 source: zero request RPC, cache/receive/reviewed-operation races and nonwaivable protection.
  • AC9 source: all six prerequisite commands, five applicable protocol commands, invariants/docs/skills crosslinks and explicit agent skip policy.
  • Exact final-head hosted pipeline #403: all six actual jobs passed with matching-head PASS log markers; library 764/0 and Postgres 84/0, with two ignored checks kept explicit.
  • Merged as 72084767e3; entire merge tree matches final tested head. Deployment h1qseybgoeyjm02gufruve4j finished 2026-10-11 04:17:16 UTC, three healthy markers, zero compiler errors; public health independently confirms this revision.
  • Initialized common-path desktop/phone browser first/retest: 48/48 useful, 48 HTTP 200, zero retry/write/budget/skip events, all positive matching exact hop/final floors. First p50/p95/max 339.2/354.1/361.1 ms; retest 333.6/352.6/391.6 ms. Retest starts 207.136 seconds after first completion. All browser quote sockets were actually reused.
  • 300-second sampled metadata window: 31/31 exact revision samples, zero read errors/counter resets/halts/task exits/all-circuits-open events; CEX references fresh in 16/16 samples. Final post-retest health remains ok at the same revision.
  • Full cached-engine-to-settlement and hooked/AutoLP artifact parity, historical migration baseline and physical-device acceptance remain unverified.
  • Complete active production redundancy and induced outage remain unverified. One provider stayed verified/closed for all 31 samples; others recovered intermittently. Bounded deferrals/checkpoint retention and pair timeout/missing-fee/historical-height/expiry diagnostics remain recorded. No error-free-provider or complete-hybrid-coverage claim.

Observed net fair-reference deviation across the two browser runs is 1.7385–5.3453%. It includes costs and stays distinct from per-hop market spread, selected protection and reviewed floors. Exact fee/tax/wrap decomposition and realized settlement slippage were not measured; no all-in ≤1% or within-selected-percent claim.

Separate transport/economics receipt remains FAIL for cold/new TLS: 13/13 useful actual new sockets measured 845.221–1021.733 ms; all 11 actual reused sockets were useful at 294.757–433.311 ms. Cold/new TLS remains outside the currently accepted initialized browser scope and is deferred; the measured failures are preserved. Physical phone/cellular, full settlement parity and #1456 accounting/history acceptance remain separate.

Agent instructions and evidence: checklist, results, agent invariants.

Run recorded commands serially against the recorded source with isolated QA capabilities, then independently attest deployed SHA before initialized useful-result first/retest through multiple freshness/configuration cycles. Count full input-to-first-useful timing including 503s/retries; report cold/new connections separately. Unavailable checks may be explicit SKIP with overall PASS WITH SKIPS when all executed checks pass; executed failures remain FAIL. Leave skipped acceptance unchecked. No workstation/VPN location data, private endpoints, credentials, actors or raw bodies belong in evidence.

Original <250 ms optimization is deferred by user direction; current initialized target is ≤500 ms. Production trials are read-only with no signing/broadcast or induced outage. #1456 history and broader rollout scope stays separate.

Production evidence attachments for merged revision 72084767e3:

All ten JSON files were checked for operational privacy before upload and independently downloaded without credentials to verify identical bytes. The cold/new transport FAIL and remaining operational skips remain recorded.

Newer completed pool observations could invalidate an older, still-compatible hybrid view; hybrid expiry could also remove usable pool quotes. After #1469, this produced two measured 503→200 browser retry tails of about 10.6 seconds despite fast successful fetches. Those failed trials remain recorded. The fix publishes independent whole pool/hybrid views with separate monotonic watermarks. Zero-book budgets prefer the complete pool; declared positive book budgets require the original compatible hybrid. Candidates retain the exact chosen tuple for response/order checks, and either lane changes cache and reviewed-generation identity. Shared allocation caps, authoritative negatives, four-second fee phases and original twenty-second observation expiry remain intact. Requests trigger zero RPC. A default-parallel regression also exposed an existing mutex-test vacancy race; it now verifies eventual ownership/reentry without assuming other fixtures cannot acquire the lock. Final review head: 242215d59811fb74d0f3e11407850e6c16837cfa. Application source is byte-identical to reviewed b018ec2a4f4b77bfcecf535197f9a87831850a32; Rust fingerprint cc7f622dc7656cd000e4c207008badc1be5bc9634a014b3ba49c40716a13d49b. The last commit records public evidence only. Validation:151 PASS / 0 FAIL / 12 explicit source-stage skips across eleven verifiers. Two corrected default-parallel library runs each passed 764 tests. The separate authenticated-runtime LOGIN and local/three-provider identity checks passed twice. Five protocol verifiers passed 53/0/3; two independent owned SDK53 nodes each passed 6 tax, 5 native/invoice, 16 guard and 6 exact-floor cases. Three funded fixtures passed 54/54 actual smart queries at unchanged 3M and 54 probe transactions; probe gas 743658–2139981 includes wrapper/transaction overhead. All owned chains/volumes and runtime credentials were cleaned up. Initial source-change, mutex-test and QA shared-memory failures remain in the receipts with fixes and passing reruns; none were converted to skips. QA-only PostgreSQL parallelism was bounded after SQL 53100; production settings/schema/ACL were untouched. - [x] AC1 source: four-direction useful execution corpus, exact integer inputs and positive matching floors. - [x] AC2–AC3 source: transient checkpoint/API recovery, fatal integrity and cancellation. - [x] AC4–AC5 source: independent original views, shared bounds/negatives and accurate blockers. - [x] AC7–AC8 source: zero request RPC, cache/receive/reviewed-operation races and nonwaivable protection. - [x] AC9 source: all six prerequisite commands, five applicable protocol commands, invariants/docs/skills crosslinks and explicit agent skip policy. - [x] Exact final-head hosted pipeline #403: all six actual jobs passed with matching-head PASS log markers; library 764/0 and Postgres 84/0, with two ignored checks kept explicit. - [x] Merged as 72084767e3a85fcfedb94a83bb027b3454e0ad82; entire merge tree matches final tested head. Deployment h1qseybgoeyjm02gufruve4j finished 2026-10-11 04:17:16 UTC, three healthy markers, zero compiler errors; public health independently confirms this revision. - [x] Initialized common-path desktop/phone browser first/retest: 48/48 useful, 48 HTTP 200, zero retry/write/budget/skip events, all positive matching exact hop/final floors. First p50/p95/max 339.2/354.1/361.1 ms; retest 333.6/352.6/391.6 ms. Retest starts 207.136 seconds after first completion. All browser quote sockets were actually reused. - [x] 300-second sampled metadata window: 31/31 exact revision samples, zero read errors/counter resets/halts/task exits/all-circuits-open events; CEX references fresh in 16/16 samples. Final post-retest health remains ok at the same revision. - [ ] Full cached-engine-to-settlement and hooked/AutoLP artifact parity, historical migration baseline and physical-device acceptance remain unverified. - [ ] Complete active production redundancy and induced outage remain unverified. One provider stayed verified/closed for all 31 samples; others recovered intermittently. Bounded deferrals/checkpoint retention and pair timeout/missing-fee/historical-height/expiry diagnostics remain recorded. No error-free-provider or complete-hybrid-coverage claim. Observed net fair-reference deviation across the two browser runs is 1.7385–5.3453%. It includes costs and stays distinct from per-hop market spread, selected protection and reviewed floors. Exact fee/tax/wrap decomposition and realized settlement slippage were not measured; no all-in ≤1% or within-selected-percent claim. Separate transport/economics receipt remains FAIL for cold/new TLS: 13/13 useful actual new sockets measured 845.221–1021.733 ms; all 11 actual reused sockets were useful at 294.757–433.311 ms. Cold/new TLS remains outside the currently accepted initialized browser scope and is deferred; the measured failures are preserved. Physical phone/cellular, full settlement parity and #1456 accounting/history acceptance remain separate. Agent instructions and evidence: [checklist](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/fix/1464-complete-view-fallback/docs/qa/issue-1464/README.md), [results](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/fix/1464-complete-view-fallback/docs/qa/issue-1464/verification.md), [agent invariants](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/fix/1464-complete-view-fallback/skills/AGENTS_PROVIDER_RECOVERY.md). Run recorded commands serially against the recorded source with isolated QA capabilities, then independently attest deployed SHA before initialized useful-result first/retest through multiple freshness/configuration cycles. Count full input-to-first-useful timing including 503s/retries; report cold/new connections separately. Unavailable checks may be explicit SKIP with overall PASS WITH SKIPS when all executed checks pass; executed failures remain FAIL. Leave skipped acceptance unchecked. No workstation/VPN location data, private endpoints, credentials, actors or raw bodies belong in evidence. Original <250 ms optimization is deferred by user direction; current initialized target is ≤500 ms. Production trials are read-only with no signing/broadcast or induced outage. #1456 history and broader rollout scope stays separate. Production evidence attachments for merged revision 72084767e3a85fcfedb94a83bb027b3454e0ad82: - [deployment-1472.json](https://git.cl8y.com/attachments/affac64a-2b04-430b-ac2e-6e1332f9dbc2) - [hosted-403.json](https://git.cl8y.com/attachments/a45b3f0a-8f8b-4af4-b3e6-ed974bee0aea) - [deployed-1472-browser.json](https://git.cl8y.com/attachments/8093c9b9-9bd8-45e4-a9bc-d7235ed2b6c6) - [deployed-1472-browser-retest.json](https://git.cl8y.com/attachments/8e376b02-3d7c-484f-aaa2-cde92ca13848) - [deployed-1472-initialization.json](https://git.cl8y.com/attachments/6037373d-13e6-4c86-9a1b-7f0e917b430e) - [deployed-1472-transport.json](https://git.cl8y.com/attachments/b457972f-f562-4dd3-ad52-b95f38cd639f) - [deployed-1472-fair-costs.json](https://git.cl8y.com/attachments/8152b37a-1a26-46cc-8f6e-d54b02c4f3fc) - [deployed-1472-observations.json](https://git.cl8y.com/attachments/747e7ea3-3bb4-48ca-8771-c844ad748897) - [deployed-1472-metadata-summary.json](https://git.cl8y.com/attachments/e7af5b5c-85e5-4ed4-96de-6baca4f4aae3) - [deployed-1472-classified-logs.json](https://git.cl8y.com/attachments/0989f9bd-8812-46cf-8a1d-68ad2a528f31) All ten JSON files were checked for operational privacy before upload and independently downloaded without credentials to verify identical bytes. The cold/new transport FAIL and remaining operational skips remain recorded.
fix(indexer): keep complete pool and hybrid views independent
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
6ffd2a2b98
test(indexer): assert registry reentry under parallel contention
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
b018ec2a4f
docs(qa): record verified independent quote views
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
242215d598
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!1472
No description provided.