fix(indexer): preserve admission under provider congestion #1467

Merged
PlasticDigits merged 1 commit from fix/1464-admission-fairness into main 2026-10-10 13:27:13 +00:00
Owner

Production #1466 recovered 16/24 quotes initially, then fell back to 0/24. Pool/book work exhausted the sole healthy provider's slots, and required tax reads treated temporary provider loss as unsupported policy. A canceled actor balance refresh could also retain a completed manager revocation.

This repair leaves pool/book lanes at four/two tasks under the unchanged shared eight-slot cap, waits only for scheduled zero-attempt capacity denials within the same deadline, and publishes typed required static tax admission before optional wallet work. Temporary loss retains original unexpired qualification; changed policy and known registered-pair negatives revoke it immediately. Completed manager=false/protocol=true flags revoke old manager exemptions before balance awaits; cancellation and later pair slices cannot restore them. New positives require fresh actor observations and unchanged static recheck.

The evidence probe now records actual socket reuse/reconnect rather than only a pooled connection object. Documentation, invariants, agent instructions and prior deployed FAIL receipts are crosslinked under docs/qa/issue-1464.

Related: #1464 and merged #1466. This PR does not close #1464 or #1456; deployed useful coverage, normal-region latency and current-release settlement remain separate.

Validation:

  • Frozen focused verifier test/retest: 11 PASS / 0 FAIL / 2 explicit source-scope SKIP.
  • Actual owned pool/book/admission overlap with one healthy eight-slot provider; cancellation releases permits.
  • Tax negative/revocation recovery 5/5 and holder enrollment 2/2, twice.
  • Four-path loopback corpus: 48 executable results; maximum miss 2.861 ms, maximum hit 2.007 ms; zero request RPC.
  • Five bounded evidence/reconnect tests; normal commit hooks, formatting, clippy, typecheck and staged secret scan.
  • Broader frozen-source first/retests: #1452 14/0/0; #1453 12/0/2; #1394 23/0/0; #1392 10/0/2; #1396 28/0/3; #1391 6/0/2 (PASS/FAIL/SKIP). Supplemental local/live identity passed twice; current-source authenticated runtime LOGIN passed twice with exact zero unrelated CONNECT before/after and cleanup. Current-source funded LocalTerra reserve receipt replays 2/2 twice; existing actual-artifact/provenance limits remain explicit.
  • All six mandatory hosted jobs on implementation head 82a6f174 passed in pipeline389: 715 library tests and 84 selected Postgres tests, all exact-head PASS markers. Rust fingerprint remains 77b8c6f5b3fca1c94ffff9df2c19ca1456a4ba429d652a5446e8c77e36cf5678.
  • All six mandatory hosted jobs PASS on final sanitized head 612f741af5 in pipeline392:715 library tests,84 selected database tests, exact-head PASS markers and aggregate all succeeded.
  • Merge, deploy, attest public SHA, inspect logs, then retest common paths and corrected production desktop/phone browser.

Agent verification instructions: follow docs/qa/issue-1464/README.md, finish runnable checks and retest unchanged source. Record unavailable checks as explicit SKIP with reason/revision/UTC and allow source PASS WITH SKIPS. Executed failures remain FAIL until fixed and rerun. Measured useful responses above250ms cannot be waived into PASS. Do not collect or publish operational location metadata.

Existing-infrastructure transport repair completed: a uniquely attached origin firewall preserved its seven existing rules and appended only UDP443 using the exact existing HTTPS source set. Fourteen stale-state/scope/mutation/rollback guard tests passed twice; both scoped actions and reread rules passed. The advertised HTTP3 is now reachable (forced h3 2/2; normal browser naturally h2→h3). Reused healthy transport improved about10ms, still282.200ms total; health does not certify useful quotes.

Client network path remains unverified. Operational location metadata is omitted. Measured useful latency failures remain FAIL; health and handler-only timings cannot establish useful transport acceptance.

Source checklist and skip instructions: https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/fix%2F1464-admission-fairness/docs/qa/issue-1464/README.md

Operational privacy cleanup: current tracked text, task receipts/helpers and all three related PR descriptions/comments independently audited. No textual operational-location references remain in the reviewed tree or review text. Privacy fixture test7/7 passed. Own unmerged branch was replaced using an exact lease; Rust fingerprint is unchanged. Previously published repository history was not rewritten.

Production #1466 recovered 16/24 quotes initially, then fell back to 0/24. Pool/book work exhausted the sole healthy provider's slots, and required tax reads treated temporary provider loss as unsupported policy. A canceled actor balance refresh could also retain a completed manager revocation. This repair leaves pool/book lanes at four/two tasks under the unchanged shared eight-slot cap, waits only for scheduled zero-attempt capacity denials within the same deadline, and publishes typed required static tax admission before optional wallet work. Temporary loss retains original unexpired qualification; changed policy and known registered-pair negatives revoke it immediately. Completed manager=false/protocol=true flags revoke old manager exemptions before balance awaits; cancellation and later pair slices cannot restore them. New positives require fresh actor observations and unchanged static recheck. The evidence probe now records actual socket reuse/reconnect rather than only a pooled connection object. Documentation, invariants, agent instructions and prior deployed FAIL receipts are crosslinked under docs/qa/issue-1464. Related: #1464 and merged #1466. This PR does not close #1464 or #1456; deployed useful coverage, normal-region latency and current-release settlement remain separate. Validation: - [x] Frozen focused verifier test/retest: 11 PASS / 0 FAIL / 2 explicit source-scope SKIP. - [x] Actual owned pool/book/admission overlap with one healthy eight-slot provider; cancellation releases permits. - [x] Tax negative/revocation recovery 5/5 and holder enrollment 2/2, twice. - [x] Four-path loopback corpus: 48 executable results; maximum miss 2.861 ms, maximum hit 2.007 ms; zero request RPC. - [x] Five bounded evidence/reconnect tests; normal commit hooks, formatting, clippy, typecheck and staged secret scan. - [x] Broader frozen-source first/retests: #1452 14/0/0; #1453 12/0/2; #1394 23/0/0; #1392 10/0/2; #1396 28/0/3; #1391 6/0/2 (PASS/FAIL/SKIP). Supplemental local/live identity passed twice; current-source authenticated runtime LOGIN passed twice with exact zero unrelated CONNECT before/after and cleanup. Current-source funded LocalTerra reserve receipt replays 2/2 twice; existing actual-artifact/provenance limits remain explicit. - [x] All six mandatory hosted jobs on implementation head 82a6f174 passed in pipeline389: 715 library tests and 84 selected Postgres tests, all exact-head PASS markers. Rust fingerprint remains 77b8c6f5b3fca1c94ffff9df2c19ca1456a4ba429d652a5446e8c77e36cf5678. - [x] All six mandatory hosted jobs PASS on final sanitized head 612f741af5c8ae1be39b9fa9401801dae91bf867 in pipeline392:715 library tests,84 selected database tests, exact-head PASS markers and aggregate all succeeded. - [ ] Merge, deploy, attest public SHA, inspect logs, then retest common paths and corrected production desktop/phone browser. Agent verification instructions: follow docs/qa/issue-1464/README.md, finish runnable checks and retest unchanged source. Record unavailable checks as explicit SKIP with reason/revision/UTC and allow source PASS WITH SKIPS. Executed failures remain FAIL until fixed and rerun. Measured useful responses above250ms cannot be waived into PASS. Do not collect or publish operational location metadata. Existing-infrastructure transport repair completed: a uniquely attached origin firewall preserved its seven existing rules and appended only UDP443 using the exact existing HTTPS source set. Fourteen stale-state/scope/mutation/rollback guard tests passed twice; both scoped actions and reread rules passed. The advertised HTTP3 is now reachable (forced h3 2/2; normal browser naturally h2→h3). Reused healthy transport improved about10ms, still282.200ms total; health does not certify useful quotes. Client network path remains unverified. Operational location metadata is omitted. Measured useful latency failures remain FAIL; health and handler-only timings cannot establish useful transport acceptance. Source checklist and skip instructions: https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/fix%2F1464-admission-fairness/docs/qa/issue-1464/README.md Operational privacy cleanup: current tracked text, task receipts/helpers and all three related PR descriptions/comments independently audited. No textual operational-location references remain in the reviewed tree or review text. Privacy fixture test7/7 passed. Own unmerged branch was replaced using an exact lease; Rust fingerprint is unchanged. Previously published repository history was not rewritten.
fix(indexer): preserve tax admission under provider congestion
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
82a6f174e1
Leave pool and book headroom under shared provider caps, wait only on zero-attempt scheduled capacity denial, and publish typed static tax admission before bounded wallet enrichment. Revoke manager exemptions before cancellable balance reads and retain original freshness on temporary loss. Add owned-worker, negative-policy, cancellation and socket-transport regressions with scoped deployment receipts.
docs(indexer): correct network vantage and record HTTP3 repair
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
d7786c4246
Record actual negotiated HTTP3 after the single-origin UDP firewall repair, retain measured latency failures, and distinguish VPN egress from workstation timezone. Crosslink current-source authenticated runtime test and retest with cleanup and remaining acceptance scope.
PlasticDigits force-pushed fix/1464-admission-fairness from d7786c4246
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
to c802f85aed
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
2026-10-10 13:07:59 +00:00
Compare
PlasticDigits force-pushed fix/1464-admission-fairness from c802f85aed
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
to 612f741af5
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-10-10 13:09:02 +00:00
Compare
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!1467
No description provided.