fix(indexer): preserve independent complete pool and hybrid views #1472
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!1472
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1464-complete-view-fallback"
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?
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 reviewedb018ec2a4f; 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.
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.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.