From df50bcfcdc911dd83736ed4ebd2715f33271d4c6 Mon Sep 17 00:00:00 2001 From: Marius Ciepluch <11855163+norandom@users.noreply.github.com> Date: Wed, 18 Nov 2026 07:45:49 +0100 Subject: [PATCH] docs(valid-detection-benchmark): anchor retry authority in workflow head --- .../specs/valid-detection-benchmark/design.md | 49 ++++++++++++++----- .../valid-detection-benchmark/research.md | 24 +++++++++ .../specs/valid-detection-benchmark/spec.json | 2 +- .../specs/valid-detection-benchmark/tasks.md | 38 ++++++++------ 4 files changed, 84 insertions(+), 29 deletions(-) diff --git a/.kiro/specs/valid-detection-benchmark/design.md b/.kiro/specs/valid-detection-benchmark/design.md index 021e38ef..6b0597d9 100644 --- a/.kiro/specs/valid-detection-benchmark/design.md +++ b/.kiro/specs/valid-detection-benchmark/design.md @@ -34,7 +34,7 @@ Maintainers and independent reviewers use the workflow to source, review, freeze - Deterministic public/private population freeze artifacts, label-blind census construction, sealed-label references, and replacement lifecycle records. - A durable S3-compatible compare-and-swap adapter for the existing benchmark custody protocol, including capability and recovery probes. - A versioned content-addressed artifact repository for reservation, population, lifecycle, observation, workflow, and final-report artifacts. -- Immutable arm registrations, pre-registered combination plans, label-blind arm execution, case binding, and general benchmark orchestration. +- Immutable arm registrations, pre-registered combination plans, label-blind arm execution, case binding, journal-selected retry authority, and general benchmark orchestration. - Benchmark workflow envelopes and redacted JSON/text operator reports. - Consumption and conformance testing of the detection-core V3 admission contract. @@ -47,6 +47,7 @@ Maintainers and independent reviewers use the workflow to source, review, freeze - Product eligibility installation, advisory rollout, BLOCK enablement, and pre-push UX. - Infrastructure health and bucket creation, lifecycle mutation, credential provisioning, cluster scheduling, and retry policy for AX workers. - Partial-scope or partial-arm custody. One evaluation plan spends one whole population only after every planned arm and claimed scope is feasible and every label-blind observation set is durably frozen. +- Caller-selected retry registration. The executor validates checkpoint bytes, but only the Admission Orchestrator and CAS Workflow Journal establish and select the original retry authority. ### Allowed Dependencies @@ -60,7 +61,7 @@ Maintainers and independent reviewers use the workflow to source, review, freeze Dependency direction is fixed: -`detection-core contracts → artifact repository and reservation/review/freeze artifacts → isolated arm execution → custody and admission orchestrator → workflow envelope → operator presenter` +`detection-core contracts → artifact repository and reservation/review/freeze artifacts → admission preflight and workflow journal → isolated arm execution → custody and admission orchestrator → workflow envelope → operator presenter` Core never imports benchmark modules. Presenters and notifications never influence admission. Detector adapters never receive label bytes. @@ -72,6 +73,7 @@ Core never imports benchmark modules. Presenters and notifications never influen - A change to conditional-write tokens, custody transition semantics, object-store version visibility, retention rules, or restart recovery. - A change that lets an arm see labels, lets presentation affect scoring, or moves detector-specific knowledge into benchmark/core components. - A change to the multi-arm evaluation-plan root, shared-spend binding, V3 case-release graph, isolated arm-execution boundary, or observation checkpoint identity. +- A change to retry-authority fields, the workflow-head selection contract, or scratch-loss authority resolution. - A change to proof attachment matching or the advisory/BLOCK interpretation consumed by downstream product specifications. ## Architecture @@ -149,10 +151,10 @@ benchmarks/ ├── object_store.py # Artifact Repository for durable content-addressed records ├── custody_store.py # Durable Custody Store and capability probe ├── arm_contract.py # Arm Registry contracts and label-blind adapter protocol - ├── arm_executor.py # Isolated Arm Executor and observation checkpoints + ├── arm_executor.py # Isolated Arm Executor, sealed diagnostics, and observation checkpoints ├── arm_combination.py # Combination Planner over preserved observations - ├── admission_orchestrator.py # Admission Orchestrator state machine and case binding - ├── workflow_journal.py # CAS workflow head, leases, and causal heartbeat chain + ├── admission_orchestrator.py # Admission Orchestrator, retry-authority registration, and case binding + ├── workflow_journal.py # CAS head selecting retry authority, leases, and causal heartbeat chain ├── workflow_outcome.py # Workflow Outcome canonical envelope ├── operator_report.py # Operator Presenter JSON and text projection └── run.py # Benchmark-only operator entry point @@ -213,7 +215,7 @@ stateDiagram-v2 Reviewed --> AdmissionAvailable: full freeze and reviewed census AdmissionAvailable --> AdmissionAvailable: gate preflight insufficient AdmissionAvailable --> Observed: all label blind arm observations frozen - Observed --> Observed: automatic retry of exact sealed plan + Observed --> Observed: journal authorized retry of exact sealed plan Observed --> DevelopmentPilot: raw observations or diagnostics inspected Observed --> Spent: custody append committed and reread Spent --> Scoring: labels released to custodian @@ -223,7 +225,7 @@ stateDiagram-v2 Completed --> Retired: contaminated negative or identity invalidation ``` -`DevelopmentPilot` and `Insufficient` are non-authorizing classifications. A pre-spend failure permits only an automatic retry with the exact plan, arms, inputs, budgets, execution environment, and admission identity while raw observations and diagnostics remain custodian-sealed. A workflow identifier alone never authorizes reuse. Human inspection or any configuration/plan change appends `development_opened` plus influence events and permanently disqualifies the population from admission. `Impaired` after spend never restores `AdmissionAvailable`; recovery resumes the same digest-bound run or records a terminal impaired outcome. `Retired` is an append-only lifecycle projection, never a mutation of the freeze. +`DevelopmentPilot` and `Insufficient` are non-authorizing classifications. Before first execution, admission preflight persists one custodian-sealed retry authority binding the exact plan, arms, inputs, budgets, execution environment, destinations, admission identity, and checkpoint slots; the CAS workflow head selects its exact reference and digest. A pre-spend failure permits automatic retry only by resolving that journal-selected authority while raw observations and diagnostics remain custodian-sealed. Caller-supplied workflow or identity values never authorize reuse. Human inspection or any configuration/plan change appends `development_opened` plus influence events and permanently disqualifies the population from admission. `Impaired` after spend never restores `AdmissionAvailable`; recovery resumes the same digest-bound run or records a terminal impaired outcome. `Retired` is an append-only lifecycle projection, never a mutation of the freeze. ### Admission Sequence @@ -606,6 +608,7 @@ Only rules required by a pre-registered plan are implemented. A combination cann - Validate, canonicalize, and durably freeze one custodian-sealed `ArmObservationSetV1` per planned component arm; then derive combined sets without rerunning cases. - Resume by reusing an exact digest-matching completed observation set. A missing or mismatched checkpoint cannot be treated as completed and a completed arm is not silently rerun under the same plan identity. - Expose before spend only closed process reason codes, counts, and digests. Population-specific findings, paths, exception text, and diagnostics remain sealed. Any human opening of them triggers the lifecycle development-opening transition before access. +- Accept resume requests only after the Admission Orchestrator supplies the retry authority selected by the validated workflow head; the executor does not accept or establish the original retry identity. **Dependencies** @@ -657,7 +660,7 @@ class IsolatedArmExecutor(Protocol): ) -> ArmObservationSetV1: ... ``` -No label-bearing object exists in the executor's address space. An executor impairment occurs before spend and cannot produce an admission quality decision. Automatic retry is permitted only for the exact immutable admission identity; a changed arm, plan, input, budget, or environment requires a new population or development-opening disposition. +No label-bearing object exists in the executor's address space. An executor impairment occurs before spend and cannot produce an admission quality decision. The executor validates exact checkpoints but does not decide whether a retry identity is original; the Admission Orchestrator resolves that identity from the CAS-head-selected authority. A changed arm, plan, input, budget, environment, destination, or admission identity cannot reach checkpoint resolution and permanently blocks admission through the reviewed lifecycle path. #### Admission Orchestrator @@ -665,6 +668,7 @@ No label-bearing object exists in the executor's address space. An executor impa - Validate dependency schema and store capabilities before accepting an admission run. - Require lifecycle eligibility, compose the reviewed V3 evaluation manifest, evaluate every arm/scope label-blind, and stop without spend if any arm or scope is insufficient. +- Before first execution, persist and reread one custodian-sealed `AutomaticRetryAuthorityV1` binding the population/freeze, admission identity, registered plan, ordered arms and bundles, checkpoint slots, inputs, budgets, environments, and destinations; atomically select its reference and digest in the initial workflow head. - Execute and durably freeze all component and combined observation sets before spend; missing planned observations prevent admission. - Re-run core authorization after observation sealing and immediately before CAS; changed, missing, unreadable, or unsealed observation bytes make `may_spend=false`. - Commit and reread the custody transition before the custodian opens nonzero label bytes. @@ -673,6 +677,7 @@ No label-bearing object exists in the executor's address space. An executor impa - Project one underlying push into exact-scope cases without rerunning it; whole-population coverage remains deduplicated by change-input identity. - Validate proof attachments, submit every arm's exact-scope cases under the shared authority, and require the complete evaluation replay before completion. - Persist state transitions so restart resumes the same immutable run. +- On resume, resolve the retry authority only from the validated CAS workflow head and compare the candidate/current execution identity before any checkpoint resolution or adapter call. A substituted authority, changed identity, or orphan head cannot authorize retry. - Never call legacy aggregate scoring or access-control-specific conversion helpers. **Dependencies** @@ -684,13 +689,30 @@ No label-bearing object exists in the executor's address space. An executor impa **Contracts**: Service [x] / API [ ] / Event [ ] / Batch [x] / State [x] ```python +@dataclass(frozen=True) +class AutomaticRetryAuthorityV1: + population_digest: str + freeze_digest: str + admission_identity_digest: str + plan_digest: str + ordered_arm_ids: tuple[str, ...] + ordered_bundle_digests: tuple[str, ...] + ordered_checkpoint_slot_digests: tuple[str, ...] + ordered_input_set_digests: tuple[str, ...] + ordered_budget_digests: tuple[str, ...] + ordered_environment_digests: tuple[str, ...] + ordered_destination_digests: tuple[str, ...] + authority_digest: str + class AdmissionOrchestrator(Protocol): def preflight(self, request: AdmissionRunRequestV1) -> AdmissionPreflightV1: ... def run(self, request: AdmissionRunRequestV1) -> BenchmarkWorkflowOutcomeV1: ... def resume(self, workflow_digest: str) -> BenchmarkWorkflowOutcomeV1: ... ``` -`AdmissionRunRequestV1` binds the admission-class population/freeze, lifecycle projection, label-blind population manifest, registered evaluation plan, retention profiles, store capability reports, execution deadline/budgets, and workflow identity. `AdmissionPreflightV1` binds `EvaluationPlanManifestV3`, all per-arm feasibility results, lifecycle eligibility, input-set digest, and expected observation slots. After execution, the orchestrator creates `EvaluationAdmissionManifestV3` with exact sealed observation references and obtains `EvaluationAdmissionAuthorityV3` immediately before CAS. Preconditions require every planned arm/scope to be feasible and every expected observation to be durable and unchanged. Postcondition: either one validated multi-arm V3 evaluation replay is referenced by a completed envelope or an explicit insufficient/impaired envelope is durable. +`AdmissionRunRequestV1` binds the admission-class population/freeze, lifecycle projection, label-blind population manifest, registered evaluation plan, retention profiles, store capability reports, execution deadline/budgets, and workflow identity. `AdmissionPreflightV1` binds `EvaluationPlanManifestV3`, all per-arm feasibility results, lifecycle eligibility, input-set digest, expected observation slots, and the exact `AutomaticRetryAuthorityV1` reference/digest selected by the initial workflow head. After execution, the orchestrator creates `EvaluationAdmissionManifestV3` with exact sealed observation references and obtains `EvaluationAdmissionAuthorityV3` immediately before CAS. Preconditions require every planned arm/scope to be feasible and every expected observation to be durable and unchanged. Postcondition: either one validated multi-arm V3 evaluation replay is referenced by a completed envelope or an explicit insufficient/impaired envelope is durable. + +`AutomaticRetryAuthorityV1` is content-addressed but becomes authorizing only when its exact artifact reference and content digest are selected by the CAS workflow head created during preflight. The authority is immutable across attempts and is not accepted as a caller argument on resume. Scratch-loss recovery first rebuilds the validated journal chain, resolves the selected authority through the Artifact Repository, and then compares the candidate execution identity. Content identity without journal selection is non-authorizing. ### Operations and Presentation @@ -701,6 +723,7 @@ class AdmissionOrchestrator(Protocol): - Persist workflow state even when no core report can be constructed. - Persist append-only progress/heartbeat records so `run.py status` can distinguish moving work from an expired workflow without interpreting AX infrastructure health. - Maintain one CAS-protected workflow head. Every journal entry names its sequence, predecessor, attempt, and lease owner; resume acquires a new lease only from an expired validated head, and a stale owner cannot append or renew. +- Bind the exact retry-authority artifact reference and digest into the initial head before first arm execution and preserve them unchanged through every successor; an orphan or caller-substituted authority is non-authorizing. - Use a closed top-level status and reason taxonomy. - Bind status, phase, counts, safe degradations, runtime, population/freeze/plan/workflow digests, spend state, failed gate names, and optional core replay reference. - Reject arbitrary exception text, paths, labels, repository contents, payloads, secrets, and customer content. @@ -747,6 +770,8 @@ class WorkflowHeadV1: entry_digest: str lease_owner_id: str lease_expires_at: str + retry_authority_ref: ContentRef + retry_authority_digest: str head_digest: str class WorkflowJournalStore(Protocol): def current_head(self, workflow_digest: str) -> WorkflowHeadV1: ... @@ -926,10 +951,10 @@ Monitoring is artifact-based: every phase appends a heartbeat/progress entry wit - Custody adapter capability test covers conditional create/update, two concurrent writers with one winner, version visibility, committed successor reread, restart recovery, and both current/noncurrent transient expiry. Test input bytes are read and reported before interpreting results. - Orchestrator test proves an insufficient preflight never launches arms or calls the label loader; every arm gets identical ordered label-blind case IDs; all observation sets freeze before CAS; a failed/missing arm prevents spend; a failed CAS never calls the label loader; and detector processes receive no label credentials, references, or bytes. - Admission sealing tests mutate, remove, or swap an observation after feasibility and prove that V3 authorization refuses spend. -- Pre-spend confidentiality tests prove an impaired attempt exposes only fixed codes/counts/digests; raw observation or repository-specific diagnostic access first appends `development_opened` and influence events and blocks later spend. Automatic retry succeeds only for the exact immutable admission identity. +- Pre-spend confidentiality tests prove an impaired attempt exposes only fixed codes/counts/digests; raw observation or repository-specific diagnostic access first appends `development_opened` and complete influence events and blocks later spend. Automatic retry succeeds only after scratch-loss recovery resolves the exact authority selected by the validated CAS head; caller-rebuilt identities, references, or digests cannot substitute it. - Multi-arm integration proves one reviewed evaluation plan, preparation, and receipt bind every component/combined report; component observations remain preserved; missing one planned replay prevents completion. - Crash-recovery tests cover arm failure before CAS, failure after committed spend but before label load, scoring interruption, and failure before report publication. Pre-spend failure remains unspent; post-spend failures remain spent and resume the same run. Completed arm checkpoints are not rerun under the same plan. -- Workflow journal tests cover causal sequence/predecessor validation, missing predecessors, CAS head conflicts, concurrent resume with one lease winner, stale-owner renewal refusal, and choosing a newer valid heartbeat over an orphan expired entry. Status derives `IMPAIRED`/`STALLED` only from the validated head without attributing infrastructure health. +- Workflow journal tests cover causal sequence/predecessor validation, missing predecessors, CAS head conflicts, immutable retry-authority selection, authority substitution, concurrent resume with one lease winner, stale-owner renewal refusal, and choosing a newer valid heartbeat over an orphan expired entry. Status derives `IMPAIRED`/`STALLED` only from the validated head without attributing infrastructure health. - Case-release integration binds exact scope, role, pair, observation, evidence, change inputs, reviewed manifest, and independent release review. - Proof integration promotes only exact label-blind candidates after ground-truth release; swapped vulnerable/fixed roles, unrelated controls, cross-family/location reuse, and mismatched pair/input are refused; missing/inconclusive proof is `not demonstrated`. The presenter reports demonstration but never BLOCK eligibility. @@ -987,4 +1012,4 @@ flowchart LR 6. Source and independently review the replacement. Freeze sub-40 work as development pilots until all full-population and exact-scope preflight rules pass. 7. Bind the exact replacement lifecycle event, freeze every planned arm observation, and perform the one immutable admission spend. Downstream product work may consume only validated per-arm scoped results. -There is no destructive rollback. Before spend, failed-attempt artifacts remain custodian-sealed and permit only an automatic retry of the exact admission identity; opening them for diagnosis records development use. After spend, no operation can restore untouched status. The run is resumed or retained as spent/impaired evidence. +There is no destructive rollback. Before spend, failed-attempt artifacts remain custodian-sealed and permit only an automatic retry resolved from the immutable authority selected by the CAS workflow head; opening them for diagnosis records development use. After spend, no operation can restore untouched status. The run is resumed or retained as spent/impaired evidence. diff --git a/.kiro/specs/valid-detection-benchmark/research.md b/.kiro/specs/valid-detection-benchmark/research.md index bdcdc662..2936f09b 100644 --- a/.kiro/specs/valid-detection-benchmark/research.md +++ b/.kiro/specs/valid-detection-benchmark/research.md @@ -192,6 +192,30 @@ Option C is the leading design candidate because it is the only approach that sa --- +## Retry Authority Boundary Amendment (2026-11-18) + +### Discovery Summary + +- **Discovery type**: Integration-focused extension after Task 6.5 adversarial review. +- **Observed gap**: Plans, observation checkpoints, artifact roots, and lifecycle projections are immutable, but each is caller-selected at the automatic-retry boundary. A caller can change a bundle, rebuild both compared retry identities, and replace every asserted truth together. +- **Instrument evidence**: Nonzero Task 6.5 sources and fixtures reproduced a changed-budget retry that returned checkpoint impairment with zero adapter calls while the lifecycle remained admission-eligible. Empty or mistyped bundle inputs also escaped as raw Python exceptions. The existing focused suite passed, so green tests did not establish authoritative retry identity. + +### Design Decision + +- Keep sealed diagnostic projection and reviewed `development_opened` access in the Isolated Arm Executor and Baseline Lifecycle Authority boundary. +- Move ownership of authoritative automatic-retry registration and resume to the Admission Orchestrator and Workflow Journal. +- Admission preflight persists one custodian-sealed retry authority before first execution. The initial CAS workflow head selects its exact artifact reference and digest, and every successor preserves that selection. +- Resume reconstructs the validated journal chain after scratch loss, resolves only the selected authority, and compares the candidate/current identity before checkpoint resolution or adapter execution. A content-addressed artifact that is not selected by the authoritative head is non-authorizing. +- Task 8.6 consumes this authority after Tasks 7.2 and 8.1–8.2 establish it. Task 6.5 no longer attempts to accept an original retry identity from a caller. + +### Risks and Validation + +- A substituted authority reference or digest, orphan head, changed plan/bundle/input/budget/environment/destination/admission identity, or malformed request must fail before an adapter call. +- A reviewed mismatch path may terminally block admission, but no caller-supplied replacement identity may redefine the original registration. +- Scratch-loss recovery must reproduce the same selected authority from durable journal and artifact bytes alone. + +--- + ## Design Discovery and Synthesis (2026-11-06) ### Discovery Summary diff --git a/.kiro/specs/valid-detection-benchmark/spec.json b/.kiro/specs/valid-detection-benchmark/spec.json index 061e01f1..442f6b1a 100644 --- a/.kiro/specs/valid-detection-benchmark/spec.json +++ b/.kiro/specs/valid-detection-benchmark/spec.json @@ -1,7 +1,7 @@ { "feature_name": "valid-detection-benchmark", "created_at": "2026-10-12T14:38:18Z", - "updated_at": "2026-11-12T17:26:54Z", + "updated_at": "2026-11-18T06:45:00Z", "language": "en", "phase": "tasks-generated", "approvals": { diff --git a/.kiro/specs/valid-detection-benchmark/tasks.md b/.kiro/specs/valid-detection-benchmark/tasks.md index 5a7120d8..111b973c 100644 --- a/.kiro/specs/valid-detection-benchmark/tasks.md +++ b/.kiro/specs/valid-detection-benchmark/tasks.md @@ -192,13 +192,12 @@ - _Boundary: Isolated Arm Executor_ - [ ] 6.5 Integrate sealed pre-spend diagnostics with reviewed development opening - Expose before spend only closed reason codes, counts, and digests from observation artifacts. + - Require the selected observation's exact checkpoint provenance and the complete population-derived affected-network set to be bound into the independently reviewed access request. - Require a reviewed lifecycle development-opening transition and corresponding influence events before any human receives population-specific findings, paths, exception text, or diagnostics. - - Permit automatic retry only for the exact unchanged population, plan, arms, inputs, budgets, environment, and admission identity. - - Done when diagnostic access or any retry-identity change permanently blocks admission, while an exact sealed retry resumes without revealing labels or raw observations. + - Done when the safe projection contains only closed codes, counts, and digests, and no raw byte is returned until the exact durable `development_opened` transition and complete influence set are reread and later admission is ineligible. - _Requirements: 4.3, 5.2, 5.6, 8.3, 10.2, 10.3_ - _Boundary: Isolated Arm Executor, Baseline Lifecycle Authority_ - _Depends: 2.3, 5.1, 6.4_ - - _Blocked: automatic retry cannot resolve an authoritative original retry identity within this boundary because every available plan, checkpoint, and durable root is caller-selected; the CAS workflow journal and admission preflight must first persist and select the immutable retry authority before Task 8.6 owns resume._ - [ ] 7. Persist safe workflow state and operator projections - [ ] 7.1 Define closed workflow outcomes and redacted serialization @@ -210,10 +209,11 @@ - _Boundary: Workflow Outcome_ - [ ] 7.2 (P) Implement the causal workflow journal and lease-protected head - Append progress and heartbeat entries with exact sequence, predecessor, attempt, lease owner, counts, phase, and deadlines. + - Make the initial CAS head select the exact custodian-sealed automatic-retry authority reference and digest before first execution, and preserve that selection unchanged through every successor. - Protect the current head with compare-and-swap, allow one resume owner only after an expired validated head, and refuse stale-owner append or renewal. - Rebuild status from the complete chain to the head while ignoring orphan or stale entries. - - Done when concurrent resume has one winner, missing predecessors and forks fail, and only an expired authoritative head projects `IMPAIRED`/`STALLED` without claiming infrastructure failure. - - _Requirements: 7.4, 7.5, 7.8, 8.3, 10.1, 10.2, 10.6_ + - Done when concurrent resume has one winner, missing predecessors and forks fail, scratch-loss recovery resolves the same selected retry authority, substituted or orphan authority fails, and only an expired authoritative head projects `IMPAIRED`/`STALLED` without claiming infrastructure failure. + - _Requirements: 5.2, 5.6, 7.4, 7.5, 7.8, 8.3, 10.1, 10.2, 10.6_ - _Boundary: Workflow Journal_ - _Depends: 1.2, 1.3, 5.1_ - [ ] 7.3 Render deterministic transport-neutral operator reports @@ -231,17 +231,20 @@ - Refuse a run unless the replacement lifecycle is active, artifact/custody capability reports pass, the admission-class freeze and reviewed label-blind manifest resolve, and every arm identity is current. - Compose the complete core V3 plan manifest and evaluate every arm/scope threshold, minimum, and interval-precision rule before execution or label access. - Persist `INSUFFICIENT` with exact scope/gate witnesses when any planned scope is infeasible, without launching arms or spending custody. - - Done when only a complete feasible Cartesian arm/scope plan advances and whole-population counts or aggregates can never substitute for an insufficient scope. - - _Requirements: 1.3, 1.4, 1.7, 5.1, 5.3, 5.4, 5.5, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7_ - - _Boundary: Admission Orchestrator, Scoped Admission V3 Consumer_ - - _Depends: 2.3, 4.4, 5.3, 5.4, 6.1, 7.1_ + - Only after complete feasibility succeeds, persist and exactly reread one custodian-sealed retry authority binding population/freeze, admission identity, registered plan, ordered arms/bundles/checkpoint slots, inputs, budgets, environments, and destinations; atomically select its reference and digest in the initial workflow head and reread that head before the first adapter call. + - Done when only a complete feasible Cartesian arm/scope plan advances with a recoverable journal-selected retry authority, while an insufficient path creates no retry authority or workflow authority head and whole-population counts or aggregates never substitute for an insufficient scope. + - _Requirements: 1.3, 1.4, 1.7, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7, 7.4, 7.5_ + - _Boundary: Admission Orchestrator, Scoped Admission V3 Consumer, Workflow Journal_ + - _Depends: 2.3, 4.4, 5.3, 5.4, 6.1, 7.1, 7.2_ - [ ] 8.2 Execute and seal every planned observation before spend authority - Send the identical ordered label-blind input set to every component arm, freeze all component observations, and derive all registered combined observations. + - Resolve and revalidate the retry authority selected by the current workflow head before execution; reject a missing, substituted, or mismatched authority before any checkpoint resolution, adapter call, or spend attempt. - Build the V3 admission manifest from exact custodian-sealed observation references and combination lineage. - Reauthorize immediately before custody CAS against current bytes, current lifecycle, current readiness, and current custody head. - - Done when a missing, partial, unreadable, changed, cross-arm, or unsealed observation prevents spend and produces an impaired outcome with no label-loader call. - - _Requirements: 5.3, 5.5, 5.6, 6.6, 6.7, 8.4, 8.5, 9.1, 9.2_ - - _Boundary: Admission Orchestrator, Isolated Arm Executor_ + - Done when an authority mismatch or a missing, partial, unreadable, changed, cross-arm, or unsealed observation prevents spend and produces a closed impaired outcome with no adapter or label-loader call on the authority-mismatch path. + - _Requirements: 5.2, 5.3, 5.5, 5.6, 6.6, 6.7, 7.4, 7.5, 8.4, 8.5, 9.1, 9.2_ + - _Boundary: Admission Orchestrator, Isolated Arm Executor, Workflow Journal_ + - _Depends: 6.4, 7.2, 8.1_ - [ ] 8.3 Commit spend before releasing labels and independently review V3 cases - Conditionally append and reread the exact available-to-spent successor before opening nonzero sealed-label bytes inside the custodian boundary. - Join ground truth to frozen observations without exposing labels to arms and bind every released case to exact scope, role, pair, result, evidence, change inputs, observation, and reviewed manifest. @@ -266,12 +269,15 @@ - _Requirements: 6.2, 6.3, 6.4, 6.5, 8.1, 8.2, 8.3, 8.6, 9.1, 9.2, 9.6, 9.7, 10.1_ - _Boundary: Admission Orchestrator, Scoped Admission V3 Consumer_ - [ ] 8.6 Resume exact pre-spend and post-spend workflows without changing authority - - Resume pre-spend only from matching sealed checkpoints and unchanged identities; leave custody available after execution impairment. + - Rebuild the validated workflow chain after scratch loss, resolve only the retry authority selected by its CAS head, and compare the candidate/current identity before checkpoint resolution or an adapter call; never accept an original registered identity from the caller. + - Resume pre-spend only from matching sealed checkpoints and unchanged population, freeze, admission, plan, arm, bundle, input, budget, environment, destination, and checkpoint-slot identities; leave custody available after execution impairment. + - For an exact independently reviewed identity-bound mismatch disposition, append and reread terminal lifecycle state before returning `IDENTITY_CHANGED`; missing, invalid, malformed, or untrusted mismatch evidence fails closed before execution without claiming retirement or mutating lifecycle. - After committed spend, retain `labels_spent=true`, resume the same immutable run from durable artifacts, and never restore untouched status. - Do not rerun completed arms, duplicate label release, or select an orphan journal entry after restart. - - Done when crash points before CAS, after CAS/before label load, during scoring, and before publication converge to the same valid terminal identity or an explicit durable impaired outcome. + - Done when exact pre-spend retry resumes without rerunning completed arms or revealing raw observations, reviewed identity changes durably block admission, untrusted requests remain closed and non-authorizing, and crash points before CAS, after CAS/before label load, during scoring, and before publication converge to the same valid terminal identity or an explicit durable impaired outcome. - _Requirements: 5.2, 5.6, 5.7, 7.4, 7.5, 7.7, 8.3, 8.5, 10.1, 10.2_ - - _Boundary: Admission Orchestrator, Workflow Journal_ + - _Boundary: Admission Orchestrator, Workflow Journal, Baseline Lifecycle Authority_ + - _Depends: 2.3, 7.2, 8.1, 8.2_ - [ ] 9. Integrate legacy benchmark seams and the operator entry point - [ ] 9.1 Route catalog, verification, and assembly through the new authorities @@ -434,4 +440,4 @@ - Task 6.2 derives closed UNION or INTERSECTION observations only from complete scope-compatible component sets, preserves every component independently, and retains proof continuity only when all anchors match and the exact proof scope belongs to the combined arm; deterministic re-derivation rejects forged or unrelated proof authority. - Task 6.3 builds identical ordered component bundles only after controller-side revalidation of the exact registered plan and a metadata-only execution-source projection freshly derived from reviewed Task 4.3/4.4 and ordinary-selection authorities; adapters receive only sanitized label-blind data, and every authorizing serialization/execution path rejects rehashed source or plan substitutions without opening sealed material. - Task 6.4 freezes one exact custodian-sealed core V3 observation checkpoint per component only after canonical nonzero read/stage receipts and exact repository readback; construction, freeze, and resume bind the completed process outcome and every bundle/read identity, while missing, incomplete, or mismatched checkpoints remain impaired without rerunning the adapter. -- Task 6.5 debug found that sealed diagnostics and reviewed development opening fit the executor/lifecycle boundary, but authoritative automatic retry does not: the original retry identity must be selected by the CAS workflow head established by Tasks 7.2 and 8.1–8.2, then consumed by Task 8.6 instead of accepted from a caller. +- The approved Task 6.5 boundary amendment keeps sealed diagnostics and reviewed development opening in the executor/lifecycle seam; Tasks 7.2 and 8.1–8.2 persist and select the immutable retry authority only after feasible preflight, and Task 8.6 resolves it from the CAS workflow head instead of accepting an original identity from a caller.