Skip to content

feat(qsearch): bounded cancellation, deadlines and linked replacement (#59, part 2) - #78

Closed
AetherAI3 wants to merge 4 commits into
codex/issue-59-statusfrom
codex/issue-59-controls
Closed

AetherAI3 wants to merge 4 commits into
codex/issue-59-statusfrom
codex/issue-59-controls

Conversation

@AetherAI3

@AetherAI3 AetherAI3 commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Why does this change belong in Nano?

Second delivery for #59: status reads alone cannot bound an overnight provider queue or make cancellation/replacement safe. This adds explicit authenticated host controls while preserving the existing ATLAS spending ledger, Predator journal ownership, budgets and default-off hardware gates.

What changed?

  • Add explicit refresh/cancel/linked-replacement routes and a stdlib LifecycleClient with stable credential-safe errors. GET stays a read-only durable projection.
  • Persist cancellation request, dispatch and terminal confirmation events. Authority/identity preflight runs before the dispatch event; unknown acknowledgement observes the same job and never dispatches cancellation twice. A request or timeout is not terminal success.
  • Use an injected host clock for independent queue/accounting deadlines and durable 30s provider-read throttling. Expiry stops automatic waiting; explicit reconciliation can observe later terminal evidence. Slot waits and single-flight waits are bounded separately from socket timeout and QPU execution cap.
  • Require new target/request/digest for replacement; admit one successor atomically only after the old actual execution and accounting reconcile. Replays retain the same child and the new target-bound ATLAS plan; no automatic replacement.
  • Reuse ATLAS's exact frozen request/provider identity and signed plan authority. Live v2 submission requires the paired supported wait_for_result=False ATLAS mode and fails closed on old adapters, avoiding a hidden blocking queue wait in job.result().

Validation

  • Focused lifecycle/store/runtime/accounting suite: 144 passed, 1 skipped before final regression-clock adaptations.
  • Final changed regression files and lifecycle/store/client coverage: 95 passed; entire service regression file: 74 passed.
  • Paired real ATLAS HMAC/ledger/input-identity + Nano HW0/provider suite: 38 passed using qiskit 2.3.1 / IBM runtime 0.46.1 / Aer 0.17.2 with fake providers.
  • 11h fake-clock queue test executes 1,320 recovery ticks, permits at most 120 provider reads, and stops reads after queue expiry.
  • Tests cover request/status repeats, restart, lost acknowledgement, authority retry, queue->running/done races, semaphore cancellation races, legacy pending receipt deadlines, one linked replacement, identity mismatches, and credential-free SDK errors.
  • An initial complete run found three outdated retry/mock expectations (3 failed,1702 passed,18 skipped); the tests now use the injected clock and assert the throttle. Final full-suite run is in progress at d3a7e15; final counts will be attached.
  • Contribution-shape check: all 55 entries ready.

Dependencies and boundaries

Stacked on status/state-contract PR #71 (4a4e0d5), ultimately reviewed #52 integration b6ba654. Pairs with ATLAS AetherAI3/AETHER-ATLAS#187 (35546e6a36325fcb07c64d56f859472b92e1ff55) and Predator AetherAI3/AETHER-PREDATOR-M#459 (c89fad9fad420a31ee8415115ea059142dd71a54).

Unknown and zero usage remain held. This lane does not implement or assert the final-zero accounting transition; #58 owns its versioned proof/history and any final-zero lifecycle projection extension. The reported #58 and #62 source branches merge cleanly in read-only merge-tree checks; no sibling source was cherry-picked or merged, and combined behavior is not claimed. Production v2 still emits v2 receipts; receipt3 remains opt-in work elsewhere.

No live jobs, cancellation, spend, credential changes or deployment. No auto-merge or issue closure: source completion, local tests, hosted CI and coordinated merged integration are separate. Hosted CI is not claimed for these stacked branches. Relates to #59; leave it open until the coordinated completion gate is satisfied.

Verified integration disposition

This exact source head 772afe29dfc077c3c4650f683af6696df91f6025 is an ancestor of actual integration commit cb6ea884d63dcaa8cc0e7c0b952bb88784e8219f, delivered by #82 to main. The source is included; no duplicate patch or separate source-PR merge is needed.

The human explicitly authorized the three integration PRs Nano82/ATLAS188/Predator460 to use reviewed passing LOCAL evidence in place of the earlier self-hosted gate. The waiver is recorded verbatim in those merged integration PR bodies; it is not a passing CI claim or a separate waiver-based admin merge of this source PR. Cloud41322926091 remains FAILED STARTUP with zero jobs/check runs. Local source pins, commands, counts, skips, review limitations, merged trees and actual target branches are recorded there and in the captain evidence bundle.

This source PR is retired as included/superseded by that actual integration. Issue #61 remains open for incomplete service-wire acceptance; other issue closure requires its own acceptance audit. Branches are preserved. No formal GitHub approval, production activation, runner/security/credential change or provider execution occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant