Prevent sibling native reads from starving observations #1517

Merged
PlasticDigits merged 1 commit from fix/1505-native-poll-critical-path into main 2026-10-15 20:17:36 +00:00
Owner

One native denomination's mapping/rate/cap work could occupy both poll-local slots after slow but permitted prerequisite reads, leaving another denomination's required caps unavailable. Each known denom now acquires one owned slot before the existing global two-read dispatcher. Common reads remain global. Fixed failure witnesses distinguish local dispatch from logical LCD activity without claiming a wire attempt or logging private values.

A deterministic old-code control fails; the unchanged fixed control makes USTC output useful within the original margin while its slow sibling stays incomplete. The historical deployment lacked per-read timing, so its exact contention cause is not asserted. Original cadence, expiry, attempt/total deadlines, thirteen healthy data reads, provider pacing, economics, known-negative revocation and offline requests remain enforced.

Native observer v9 uses a finite 800-call global allowance to complete all four 190-second windows while keeping each context capped at 600; generic limits and all measurement/availability rules are unchanged. Explicit active completion prevents setup/drain time from completing a budget-stopped window. Native monitoring opts into a fixed 18-read profile for correlation plus optional Prometheus; other monitoring and attestation defaults remain 16. Real capped-transport controls replace reliance on a fake counter.

  • Controlled old starvation FAIL retained; fixed first/retest and full wrapper 32-test first/retest pass.
  • Observer budget/completion controls pass; old fixture/classification failures retained. Shared timing/economics/read-guard helpers unchanged.
  • Monitoring privacy/resource controls exercise actual Reader/Monitor/CLI admission, all optional branches and pre-transport refusal.
  • Native source verifier passes first/retest; Clippy succeeds with existing warnings.
  • Final offline quote, lifecycle and provider-recovery verifiers pass first/retest. Full library 882 passed plus one ignored twice; before/after source fingerprints match. Explicit source/live skips are retained in the final source receipt.
  • Genuine hosted CI 483 on final head ffab872e: every required stage passes (contracts 999, frontend 3,470, library 882 plus one ignored; isolated PostgreSQL successful).
  • Exact Coolify deployment and focused live FIRST/RETEST plus original-expiry callback evidence.

Follow-up for #1505. Results and invariants retain M5's actual 503 and separate v8 read-cap incompleteness. Keep the issue open until all deployed criteria pass.

One native denomination's mapping/rate/cap work could occupy both poll-local slots after slow but permitted prerequisite reads, leaving another denomination's required caps unavailable. Each known denom now acquires one owned slot before the existing global two-read dispatcher. Common reads remain global. Fixed failure witnesses distinguish local dispatch from logical LCD activity without claiming a wire attempt or logging private values. A deterministic old-code control fails; the unchanged fixed control makes USTC output useful within the original margin while its slow sibling stays incomplete. The historical deployment lacked per-read timing, so its exact contention cause is not asserted. Original cadence, expiry, attempt/total deadlines, thirteen healthy data reads, provider pacing, economics, known-negative revocation and offline requests remain enforced. Native observer v9 uses a finite 800-call global allowance to complete all four 190-second windows while keeping each context capped at 600; generic limits and all measurement/availability rules are unchanged. Explicit active completion prevents setup/drain time from completing a budget-stopped window. Native monitoring opts into a fixed 18-read profile for correlation plus optional Prometheus; other monitoring and attestation defaults remain 16. Real capped-transport controls replace reliance on a fake counter. - [x] Controlled old starvation FAIL retained; fixed first/retest and full wrapper 32-test first/retest pass. - [x] Observer budget/completion controls pass; old fixture/classification failures retained. Shared timing/economics/read-guard helpers unchanged. - [x] Monitoring privacy/resource controls exercise actual Reader/Monitor/CLI admission, all optional branches and pre-transport refusal. - [x] Native source verifier passes first/retest; Clippy succeeds with existing warnings. - [x] Final offline quote, lifecycle and provider-recovery verifiers pass first/retest. Full library 882 passed plus one ignored twice; before/after source fingerprints match. Explicit source/live skips are retained in the final source receipt. - [x] Genuine hosted CI 483 on final head `ffab872e`: every required stage passes (contracts 999, frontend 3,470, library 882 plus one ignored; isolated PostgreSQL successful). - [ ] Exact Coolify deployment and focused live FIRST/RETEST plus original-expiry callback evidence. Follow-up for #1505. [Results and invariants](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/fix/1505-native-poll-critical-path/docs/qa/issue-1505/RESULTS.md) retain M5's actual 503 and separate v8 read-cap incompleteness. Keep the issue open until all deployed criteria pass.
Isolate native observation reads within each poll
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ffab872ead
Give each native denomination one owned read slot before shared admission. Preserve original limits and record bounded failure stages.
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!1517
No description provided.