Use idle native observation capacity after peer completion #1521

Merged
PlasticDigits merged 1 commit from fix/1505-native-recovery-followup-8 into main 2026-10-16 01:35:27 +00:00
Owner

Native observation dispatch could keep a required cap queued behind its own denomination while the peer had finished and a global slot was idle. A real-HTTP OLD control measures 3,382ms of unused capacity and loses the cap at the original 7.9-second deadline. The dispatcher now lets remaining work borrow that unused share only after the peer finishes its fixed three-read plan; every read still acquires the existing global two-read gate.

A private module owns the one-shot validated plan, duplicate-safe completion tokens and cancellation, including unpolled futures. Registered notifications prevent lost wakes. No-plan callers retain strict denomination isolation; original provider attempts, pacing, logical read count, deadlines, source timestamps, negative validation and offline request behavior remain enforced. The existing completion event adds a bounded logical borrowing count without another monitoring query.

NR1505-12, the source/agent guides and the focused checklist document the rule. Results preserve M7's actual live failure, bounded diagnosis, OLD source failure and limits of historical inference.

  • Unchanged real-HTTP fixture passes FIRST/RETEST; final focused borrowing five and dispatcher primitive three controls pass twice.
  • Full wrapper suite passes 43 cases twice; tests cover both directions, no early borrowing, unbound/duplicate work, errors, unpolled drops, cancellation and original deadlines. Three independent reviews are clean.
  • Twenty monitoring privacy/resource tests pass; existing 300-line sample, 12 patterns and 18-read budget remain unchanged.
  • Final six-stage frozen-source verification: 61 passing groups, zero failures, six explicit separate-scope skips; Clippy succeeds with 155 existing warnings. All 1,209 application files and 2,011 verification inputs match before/after. Full library 916 plus one ignored passes twice; controlled browser 44 quotes/zero provider requests passes twice.
  • Genuine CI489 on exact head ce52a0f9: contracts 999, frontend 3,470, library 916 and PostgreSQL 86; zero failures and two ignored. Forgejo combined and required contexts independently report SUCCESS.
  • Exact merged Coolify revision, log inspection and independent backend warmup.
  • Native socket/browser FIRST/RETEST, positive original-expiry callback control and bounded deployment monitoring.

Follow-up for #1505. Results and retained evidence. Keep #1505 open until every mandatory deployed criterion passes. Wallet/device, funded signing and exhaustive acceptance remain outside this focused follow-up.

Native observation dispatch could keep a required cap queued behind its own denomination while the peer had finished and a global slot was idle. A real-HTTP OLD control measures 3,382ms of unused capacity and loses the cap at the original 7.9-second deadline. The dispatcher now lets remaining work borrow that unused share only after the peer finishes its fixed three-read plan; every read still acquires the existing global two-read gate. A private module owns the one-shot validated plan, duplicate-safe completion tokens and cancellation, including unpolled futures. Registered notifications prevent lost wakes. No-plan callers retain strict denomination isolation; original provider attempts, pacing, logical read count, deadlines, source timestamps, negative validation and offline request behavior remain enforced. The existing completion event adds a bounded logical borrowing count without another monitoring query. NR1505-12, the source/agent guides and the focused checklist document the rule. Results preserve M7's actual live failure, bounded diagnosis, OLD source failure and limits of historical inference. - [x] Unchanged real-HTTP fixture passes FIRST/RETEST; final focused borrowing five and dispatcher primitive three controls pass twice. - [x] Full wrapper suite passes 43 cases twice; tests cover both directions, no early borrowing, unbound/duplicate work, errors, unpolled drops, cancellation and original deadlines. Three independent reviews are clean. - [x] Twenty monitoring privacy/resource tests pass; existing 300-line sample, 12 patterns and 18-read budget remain unchanged. - [x] Final six-stage frozen-source verification: 61 passing groups, zero failures, six explicit separate-scope skips; Clippy succeeds with 155 existing warnings. All 1,209 application files and 2,011 verification inputs match before/after. Full library 916 plus one ignored passes twice; controlled browser 44 quotes/zero provider requests passes twice. - [x] Genuine CI489 on exact head ce52a0f9: contracts 999, frontend 3,470, library 916 and PostgreSQL 86; zero failures and two ignored. Forgejo combined and required contexts independently report SUCCESS. - [ ] Exact merged Coolify revision, log inspection and independent backend warmup. - [ ] Native socket/browser FIRST/RETEST, positive original-expiry callback control and bounded deployment monitoring. Follow-up for #1505. [Results and retained evidence](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/fix/1505-native-recovery-followup-8/docs/qa/issue-1505/RESULTS.md). Keep #1505 open until every mandatory deployed criterion passes. Wallet/device, funded signing and exhaustive acceptance remain outside this focused follow-up.
Use idle native observation capacity after peer completion
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ce52a0f955
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!1521
No description provided.