Restore bounded native observation recovery #1516

Merged
PlasticDigits merged 1 commit from fix/1505-native-observation-recovery into main 2026-10-15 18:14:19 +00:00
Owner

Native quotes could lose healthy tax/cap observations because caller phase limits and already-running LCD deadlines expired while reads were still queued. Scheduled identity/data scans could also skip a whole native poll when circuits denied every attempt. The producer now owns a two-read FIFO dispatcher and bounded zero-attempt recovery within the existing deadlines. Known mapper/treasury pauses revoke cached/native quotes with the existing semantic rejection.

An admitted identity timeout now charges provider failure before deadline-bounded metadata invalidation, so a blocked cleanup lock cannot outlive the original total budget or lose/double-count quarantine. Fresh expected-chain attestation remains mandatory.

Combined snapshot helpers now await advisory-transaction cleanup before returning, including partial denial and original SQL errors. Deterministic controls show the former next-pass zero-RPC/coalescing defect and the fixed ownership boundary. The verifier also propagates every nested command failure instead of relying on Bash errexit inside a conditional.

Preserved: ten-second cadence, eight-second outer deadline, 7.9-second publication margin, original 20/180-second expiry, thirteen healthy data reads, existing two-permit/four-RPS provider lane, ordinary backoff/attempt caps, exact economics/floors and offline request paths. Transport futures are boxed before async capture; stack limits are unchanged.

  • Wrapper 29, LCD recovery 15, pause/cache and Combined cleanup controls pass first and retest.
  • Full LCD module: 108 passed plus one existing ignored test twice; old metadata-lock control fails beyond its original deadline.
  • Full book suite: 25 passed twice; final full library: 879 passed plus one existing ignored test twice.
  • Final native verifier: 14 runnable groups passed, zero failures; deployed scope recorded separately. Clippy succeeds with existing warnings.
  • Final identity, offline quote, lifecycle, liquidity-feed and provider-recovery verifiers pass first/retest. Source fingerprints match before/after; explicit scope skips and preceding infrastructure receipts are recorded in source evidence.
  • Hosted CI 481 passes on 0525b001: contracts 999, frontend 3,470, library 879 plus one ignored, PostgreSQL 86 plus one ignored; zero failures.
  • Exact Coolify deployment, logs and focused native socket/browser FIRST and RETEST.

Follow-up for #1505; keep the issue open until its deployed criteria pass. Historical failures, diagnostic limitations, original-error precedence and source/live boundaries remain recorded in docs/qa/issue-1505/RESULTS.md and the linked NR1505/LQ1452/QL1499/PR1464/LF1453/NET1392 guidance.

Native quotes could lose healthy tax/cap observations because caller phase limits and already-running LCD deadlines expired while reads were still queued. Scheduled identity/data scans could also skip a whole native poll when circuits denied every attempt. The producer now owns a two-read FIFO dispatcher and bounded zero-attempt recovery within the existing deadlines. Known mapper/treasury pauses revoke cached/native quotes with the existing semantic rejection. An admitted identity timeout now charges provider failure before deadline-bounded metadata invalidation, so a blocked cleanup lock cannot outlive the original total budget or lose/double-count quarantine. Fresh expected-chain attestation remains mandatory. Combined snapshot helpers now await advisory-transaction cleanup before returning, including partial denial and original SQL errors. Deterministic controls show the former next-pass zero-RPC/coalescing defect and the fixed ownership boundary. The verifier also propagates every nested command failure instead of relying on Bash errexit inside a conditional. Preserved: ten-second cadence, eight-second outer deadline, 7.9-second publication margin, original 20/180-second expiry, thirteen healthy data reads, existing two-permit/four-RPS provider lane, ordinary backoff/attempt caps, exact economics/floors and offline request paths. Transport futures are boxed before async capture; stack limits are unchanged. - [x] Wrapper 29, LCD recovery 15, pause/cache and Combined cleanup controls pass first and retest. - [x] Full LCD module: 108 passed plus one existing ignored test twice; old metadata-lock control fails beyond its original deadline. - [x] Full book suite: 25 passed twice; final full library: 879 passed plus one existing ignored test twice. - [x] Final native verifier: 14 runnable groups passed, zero failures; deployed scope recorded separately. Clippy succeeds with existing warnings. - [x] Final identity, offline quote, lifecycle, liquidity-feed and provider-recovery verifiers pass first/retest. Source fingerprints match before/after; explicit scope skips and preceding infrastructure receipts are recorded in [source evidence](docs/qa/issue-1505/source-verification-5-final.json). - [x] [Hosted CI 481](https://ci.cl8y.com/repos/7/pipeline/481/1) passes on `0525b001`: contracts 999, frontend 3,470, library 879 plus one ignored, PostgreSQL 86 plus one ignored; zero failures. - [ ] Exact Coolify deployment, logs and focused native socket/browser FIRST and RETEST. Follow-up for #1505; keep the issue open until its deployed criteria pass. Historical failures, diagnostic limitations, original-error precedence and source/live boundaries remain recorded in docs/qa/issue-1505/RESULTS.md and the linked NR1505/LQ1452/QL1499/PR1464/LF1453/NET1392 guidance.
Fix native observation recovery and owned cleanup deadlines
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
0525b00128
Keep scheduled observations within existing dispatch and provider budgets. Revoke cached quotes on known pauses and await owned snapshot cleanup.
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!1516
No description provided.