Fix native reference publication and bounded quote preparation #1514

Merged
PlasticDigits merged 5 commits from fix/1505-reference-publication into main 2026-10-15 14:18:17 +00:00
Owner

Completed pool observations can miss the independent reference timer while the previous reference expires. Accounting and redundant canonical book hashing can delay publication further. Native USTC ↔ CL8Y then becomes unavailable despite newer raw reserves.

The owned pool cycle now sends one coalesced reference wake, retaining the fallback timer. Critical qualified hub/economic marks publish atomically with original timestamps; accounting runs in its own owned lane with a consistent certified context. Canonical preparation reuses a per-view digest only for the exact live immutable Arc, address and view kind. Changed or unbound views are fully hashed. Policy/reference/final identity and all commit-time guards remain authoritative. No request RPC, global cache, extra CPU slot, freshness extension or signing permission is introduced.

Verification:

  • Former timer-phase, blocked-accounting and redundant-hashing controls fail; corrected mechanisms pass. Cached identities equal fresh full hashes and reject every untrusted binding.
  • Full default-parallel library passes twice: 853 passed, zero failed, one existing ignored per run. The 512 × 2,048 maximum profile passes with two useful HTTP quotes: at most 3ms at the stricter 40ms pacing and 2ms at main’s reviewed 100ms pacing. The 500ms response budget and 100-request cap remain enforced.
  • Native, discovery, local quote, provider, attribution and reference verifiers pass first/retest. The book fixture excludes bounded setup from its separate active clock, preserving the 500ms pair deadline; an old/new 450ms SQL-prelude control and the complete 22-case book suite pass the corrected behavior.
  • Latest main 6a3ab090af45ba1192791b455dcc6ab69078c65a merged cleanly; affected integrated-tree checks passed. Normal hooks, types, formatting, Clippy and secret scanning completed.
  • Invariants, agent guidance, joint release crosslinks and sanitized source proofs updated. CI472/474 and every earlier deployed failure remain FAIL in the results.
  • Genuine hosted CI on final head 757f2217df5ccfa5d697e23dcbec8f4ac2ed510f.
  • Exact Coolify deployments, runtime logs, focused native socket/browser first/retest and original-expiry acceptance.

This PR leaves #1505 open until its actual focused live criteria pass. Source passes and declared live/funded skips do not establish deployment acceptance. Wallet/device checks and repetition of the exhaustive matrix are excluded by the issue.

Completed pool observations can miss the independent reference timer while the previous reference expires. Accounting and redundant canonical book hashing can delay publication further. Native USTC ↔ CL8Y then becomes unavailable despite newer raw reserves. The owned pool cycle now sends one coalesced reference wake, retaining the fallback timer. Critical qualified hub/economic marks publish atomically with original timestamps; accounting runs in its own owned lane with a consistent certified context. Canonical preparation reuses a per-view digest only for the exact live immutable Arc, address and view kind. Changed or unbound views are fully hashed. Policy/reference/final identity and all commit-time guards remain authoritative. No request RPC, global cache, extra CPU slot, freshness extension or signing permission is introduced. Verification: - [x] Former timer-phase, blocked-accounting and redundant-hashing controls fail; corrected mechanisms pass. Cached identities equal fresh full hashes and reject every untrusted binding. - [x] Full default-parallel library passes twice: 853 passed, zero failed, one existing ignored per run. The 512 × 2,048 maximum profile passes with two useful HTTP quotes: at most 3ms at the stricter 40ms pacing and 2ms at main’s reviewed 100ms pacing. The 500ms response budget and 100-request cap remain enforced. - [x] Native, discovery, local quote, provider, attribution and reference verifiers pass first/retest. The book fixture excludes bounded setup from its separate active clock, preserving the 500ms pair deadline; an old/new 450ms SQL-prelude control and the complete 22-case book suite pass the corrected behavior. - [x] Latest main `6a3ab090af45ba1192791b455dcc6ab69078c65a` merged cleanly; affected integrated-tree checks passed. Normal hooks, types, formatting, Clippy and secret scanning completed. - [x] Invariants, agent guidance, joint release crosslinks and sanitized source proofs updated. CI472/474 and every earlier deployed failure remain FAIL in [the results](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/fix/1505-reference-publication/docs/qa/issue-1505/RESULTS.md). - [ ] Genuine hosted CI on final head `757f2217df5ccfa5d697e23dcbec8f4ac2ed510f`. - [ ] Exact Coolify deployments, runtime logs, focused native socket/browser first/retest and original-expiry acceptance. This PR leaves #1505 open until its actual focused live criteria pass. Source passes and declared live/funded skips do not establish deployment acceptance. Wallet/device checks and repetition of the exhaustive matrix are excluded by the issue.
fix(indexer): publish completed pool references independently of accounting
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
f331811f06
test(indexer): coordinate maximum publication with heavy fixtures
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
aa730a361e
PlasticDigits changed title from fix(indexer): publish completed pool references independently of accounting to Fix native reference publication and bounded quote preparation 2026-10-15 13:44:28 +00:00
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!1514
No description provided.