Skip to content

[P0] Reconcile confirmed-zero cancelled QPU jobs without losing reservations or history #58

Closed

Description

@AetherAI3

Operational gap

Reviewed Nano integration b6ba6542 (PR #52, including #54), ATLAS 81b23df, and Predator integration 5a7b3ddc. The accounting fix correctly keeps missing/provisional usage held, but there is no supported completion path for a submitted job whose authoritative final usage is genuinely zero.

Cancelling a queued job therefore does not itself restore usable lane budget.

Required design

Introduce a reviewed accounting transition for confirmed terminal zero, distinct from unknown zero. Bind its evidence to the exact job, instance, backend and request. Preserve the cancelled/failed execution outcome and accounting history; a zero-cost cancellation is not a successful computation.

First establish which job-specific provider evidence on the pinned SDK/API establishes finality. Do not invent a finality field. Neither job.usage()==0 nor an unchanged aggregate account counter alone qualifies. If evidence is insufficient, the reservation stays held. IBM documents provisional zero and cancellation consumption: RuntimeJobV2, workload usage.

Propagate the authoritative ATLAS transition through Nano's sealed outcome, offline recovery and Predator's budget/journal. Never solve this by deleting ledger rows, reusing unsubmitted-release, resetting budgets, or broadly treating zero as final.

Acceptance

  • Unknown zero remains held, including after process restart.
  • Confirmed terminal zero reconciles once; replay is idempotent and performs no submission.
  • Cancellation racing execution charges actual settled usage and preserves any real outcome.
  • Positive final usage and existing fix(qsearch): hold live v2 receipts until provider usage is final (accounting gate) #54 recovery behavior remain unchanged.
  • Wrong instance/backend/job evidence cannot close a reservation.
  • Cancelled outcomes remain visibly cancelled; replaying an already settled outcome needs no live credentials.
  • Cross-repo contract tests cover Nano, ATLAS and Predator; no hardware required.

Delivery

Coordinated small PRs on the current reviewed quantum stack or its merged successor, with explicit schema compatibility. This issue authorizes engineering and offline tests only, not cancellation, new QPU submissions or larger budgets.

Activity

  1. AetherAI3 commented on Nov 1, 2026

    @AetherAI3
    OwnerAuthor

    Engineering checkpoint for #58; not merged acceptance or issue closure.

    Repository PR Exact tested source head Local gate
    Nano #75 179d733591db05ac02ccd747117e8d97248dba40 1718 passed, 3 documented skips
    ATLAS AetherAI3/AETHER-ATLAS#186 fdfe927bbbc2c2b66fc4b17117c8b24efe98694d 201 passed
    Predator AetherAI3/AETHER-PREDATOR-M#457 4a8c827fe8779f935dd4ccfe2882c7c1e0eb62d7 274 passed

    The expanded three-repository contract/smoke suite passed 45 tests with a fake provider through the real ATLAS ledger, Nano hardware seal, and Predator verifier/journal/budget. Unknown zero remains held after restart; confirmed zero remains a FAILED cancelled/error outcome; replay is idempotent and makes no submission; positive consumption and real outcomes remain preserved. The ATLAS branch includes merged successor ad06bb2, including the provider-creation-time guard.

    Provider evidence is version-specific: SDK 0.46.1's normal API 2025-05-01 does not document billing finality. The narrow separate read explicitly selects API 2026-04-15, exact billing status complete and explicit billed zero, while verifying job/instance/backend/request identity. Full prior row, receipt and metrics evidence are retained, and PUB consumption remains counted. The v2 schema and HMAC domain are unchanged; usage.zero_usage_evidence is strictly versioned AqrcQSearchZeroUsageEvidenceV1. Older pins keep zero held/reject settled zero.

    Exact commands and source/compatibility details are in the coordinated PR descriptions and committed provider-evidence documentation. Nano's 3 skips are optional Protocol-C, the opt-in standalone FakeFez v2 dry run, and an intentionally removed README test-count claim. Original failed runs and independent controls are retained in #75: the FakeFez near-tie fixture reproduces on untouched b6ba654; its fixture-only unique-minimum correction changes no production selector or registered metric. The timeout crash-counter test helper now publishes atomically; original budget, retry and elapsed-time assertions remain unchanged. Independent review found no outstanding blocker in the reviewed source/merge.

    Hosted checks are unreported, not green. The authenticated Nano repo runner inventory currently has zero runners and no AETHER_CI_RUNNER variable; no runner selector or job was changed/dispatched. Per the latest user direction, #59 is the single merge captain and will confirm existing self-hosted labels/capacity, serialize integration checks and any authorized admin merges. Combined #59 lifecycle/zero-accounting projections remain untested. Opt-in v3 provenance activation/adapters remain outside this change.

    No provider job reads, QPU submissions, cancellations, credential changes, budget increases/resets, deployments or live mission changes were performed. Keep #58 open until coordinated merges and merged acceptance are verified.

  2. AetherAI3 commented on Nov 1, 2026

    @AetherAI3
    OwnerAuthor

    Acceptance audit complete: all seven engineering criteria are met in the merged trees. Unknown/provisional zero remains held through restart; authoritative complete zero is bound to exact request/job/backend/instance and reconciles once without submitting; races charge actual positive consumption and retain actual outcomes; positive/#54 behavior remains compatible; wrong or forged identity/finality is refused; FAILED/CANCELLED and accounting remain separate; settled offline replay requires no live credentials. Actual ATLAS ledger -> Nano hardware seal -> Predator verifier/journal/Budget contract cases executed for CANCELLED and ERROR, with no hardware. Independent #58 final audit confirmed every criterion. The strict additive v2 proof and history are retained; v3 zero authority was not activated.

    Regression sources: strict zero/lifecycle integration, real-ledger accounting contract. This engineering completion does not assert settlement of any live J11 reservation.

    Merged integration receipts:

    • Nano #82: main cb6ea884d63dcaa8cc0e7c0b952bb88784e8219f, tree 04a3ea8489259583f5cbb274dc94f3bd7f1a98fb.
    • ATLAS #188: claude/qcomms-hw0-atlas-multipub at db6a30eb50fd096af870843e80e31385629ba7a3, tree eb68e5ef09909395d6bd86c6a763e73b92ad37a7.
    • Predator #460: claude/qcomms-hw0-pilot at 34adff73a31631be5b3c2b49303a42416f258a2e, tree 13eab966351332c2fad58f380c6a37e76cf497e4.

    Actual target branches, parents and trees were verified after each merge. Private integration branches are stated precisely; their default main branches were not these merge targets. The human explicitly answered “Yes, merge using local tests” to waiving the earlier self-hosted gate for these three named integration PRs. That waiver and exact commands/source pins/counts/skips/review limitations are preserved in their bodies. Cloud41322926091 remains FAILED STARTUP: zero jobs/check runs, not a passing test or runner result.

    Local combined Nano: 2446 passed,3 unrelated optional skips, zero failures/errors at 5e4373dbd8e093f50398ed46146ec167911352cc. Merged runtime/compiler/test code is byte-identical; only README/status differ. Final availability/docs/host checks at 7d8fdaeb6d35eebe374b9a1c9f16809b07795578: 26 passed,1 existing README-count skip, local ideal demo100/verified. Exact merged Predator tree: 522 passed,zero skipped/failed at efa7cb6ef0b3481330eb6db1634ecc99f0835ad8. ATLAS combined local evidence201passed/0failed, plus the108-pass nonblocking component suite and cross-repo execution in the full Nano/Predator tests. No live quantum job, cancellation, spend, credential/runner/security setting change, production activation or formal GitHub approval was performed. Default-off hardware gates and existing budgets are preserved.

    Issue #61 remains open for its separate unfinished prepare/sample service-wire acceptance; its partial source inclusion is not treated as completion.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions