diff --git a/.kiro/specs/detection-core/design.md b/.kiro/specs/detection-core/design.md index 69d7ae82..ab3c56a4 100644 --- a/.kiro/specs/detection-core/design.md +++ b/.kiro/specs/detection-core/design.md @@ -2651,9 +2651,11 @@ canonical, review, custody, readiness, evidence, proof, coverage, budget → evaluation_measurement → evaluation_plan → evaluation_feasibility + → evaluation_case_outcome → evaluation_observation → evaluation_authority → evaluation_release + → evaluation_combination → evaluation_metrics → evaluation_report → evaluation_replay @@ -2676,6 +2678,9 @@ New files: `EvaluationPlanManifestV3`. - `src/openultrasast/core/evaluation_feasibility.py` — per-arm/per-scope threshold, minimum-size, and interval-precision witnesses and shared `may_spend` derivation. +- `src/openultrasast/core/evaluation_case_outcome.py` — closed per-case outcome-projection + policies, authenticated projection records, unanimous component normalization, and + source-digest rederivation. - `src/openultrasast/core/evaluation_observation.py` — sealed observation references, reviewed resolver-backed attempt history, retry/disposition evidence, and `EvaluationAdmissionManifestV3`. @@ -2683,6 +2688,8 @@ New files: `EvaluationAdmissionAuthorityV3`, shared preparation, and all-arm spend binding. - `src/openultrasast/core/evaluation_release.py` — arm-aware released-case bindings, proof-candidate continuity, and independently reviewed `AdmissionCaseReleaseV3`. +- `src/openultrasast/core/evaluation_combination.py` — exact per-case component joins, + finite-table replay, combined outcome projections, and component-preserving lineage. - `src/openultrasast/core/evaluation_metrics.py` — exact-scope case validation and metric derivation, ordinary ecosystem projection, whole-push deduplication, and combination preservation. @@ -2717,8 +2724,10 @@ sequenceDiagram Reviewer-->>Run: Plan attestation Run->>Core: EvaluationPlanManifestV3 Core-->>Run: EvaluationFeasibilityV3 - Run->>Run: Execute every planned arm label blind - Run->>Store: Seal every expected observation + Run->>Run: Execute component arms label blind + Run->>Store: Seal component observations + Run->>Core: Derive combined cases from sealed component projections + Run->>Store: Seal combined observations Run->>Reviewer: Plan observations and disposition payload Reviewer-->>Run: Admission attestation Run->>Core: EvaluationAdmissionManifestV3 @@ -2732,7 +2741,9 @@ sequenceDiagram Core-->>Run: EvaluationReplayV3 ``` -Any insufficient arm/scope ends before execution/spend. Missing, changed, unreadable, or +Combined-arm observations are deterministic projections of the named component cases; no +detector is rerun and no caller-supplied aggregate outcome is accepted. Any insufficient +arm/scope ends before execution/spend. Missing, changed, unreadable, or unsealed observations end before preparation. After spend, missing or invalid cases, denominator mismatch, or incomplete arms invalidate the evaluation and cannot be reported as insufficiency, GO, or NO-GO. The custody writer remains external and releases labels @@ -2743,7 +2754,7 @@ only to the exact CAS winner. | Requirement | Design realization | |---|---| | 16.1, 16.2, 16.3, 16.4 | Separate V3 facade, exact schema/type validators, no conversion, frozen V2 compatibility suite | -| 16.5 | Plan declaration plus per-arm V3 baseline binds every listed identity and changes on any plan/configuration mutation | +| 16.5 | Plan declaration plus per-arm V3 baseline binds every listed identity, including the closed case-outcome projection policy, and changes on any plan/configuration mutation | | 16.6 | Typed preflight/impairment/aggregate/report artifacts have no consumer-authority interface; only complete replay authorizes | | 17.1, 17.2 | Independently reviewed plan declaration, arm plans, component/combined lineage, and expected slots | | 17.3, 17.4 | Complete arm/scope feasibility product and shared `may_spend`; insufficiency prevents preparation | @@ -2755,7 +2766,7 @@ only to the exact CAS winner. | 18.6, 18.7 | Scoped metric numerator/denominator/sample/Wilson fields and aggregate type without gate/decision | | 18.8 | Post-spend zero or census mismatch is validation failure before report construction | | 19.1, 19.2, 19.3 | Independently reviewed arm-aware V3 release bound to plan, observations, authority and shared spend; V2 type refused | -| 19.4, 19.5 | Exact component observations/reports and deterministic combination lineage are mandatory and contradiction-checked | +| 19.4, 19.5 | Exact per-case outcome projections are sealed and release-rederived; complete component cases join by scope/input identity and deterministic table lineage is mandatory and contradiction-checked | | 19.6, 19.7, 19.8, 19.9, 19.10 | Pre-release candidate is non-authoritative; post-release proof matches exact candidate/binding; no transfer or mismatch | | 19.11 | Planned-arm/report cardinality equality; no result can mask another arm | | 20.1, 20.2 | Completed result per arm/scope with GO/NO-GO; insufficiency, impairment, incomplete and invalid remain distinct | @@ -2853,6 +2864,18 @@ class CombinationOperatorV3(Enum): class ProofCandidatePolicyV3(Enum): IDENTICAL_COMPONENT_ONLY = "identical_component_only" +class CaseOutcomeProjectionPolicyV3(Enum): + UNANIMOUS_EVIDENCE = "unanimous_evidence" + DECLARATIVE_COMBINATION_TABLE = "declarative_combination_table" + +@dataclass(frozen=True) +class CaseOutcomeProjectionV3: + case_input_digest: str + policy: CaseOutcomeProjectionPolicyV3 + source_outcome_digests: tuple[str, ...] + normalized_outcome: NeutralOutcome + projection_digest: str + @dataclass(frozen=True) class CombinationDecisionRowV3: component_outcomes: tuple[NeutralOutcome, ...] @@ -2868,11 +2891,35 @@ class CombinationRuleV3: candidate_policy: ProofCandidatePolicyV3 rule_digest: str +@dataclass(frozen=True) +class ComponentCaseOutcomeV3: + component_arm_id: str + scope: ScopeKey + case_input_digest: str + case_id_digest: str + observation_digest: str + outcome_projection_digest: str + normalized_outcome: NeutralOutcome + proof_candidate_digest: str | None + component_digest: str + +@dataclass(frozen=True) +class CombinedCaseOutcomeV3: + key: ArmScopeKey + case_id_digest: str + case_input_digest: str + observation_digest: str + components: tuple[ComponentCaseOutcomeV3, ...] + decision_row_digest: str + normalized_outcome: NeutralOutcome + retained_proof_candidate_digest: str | None + combined_projection_digest: str + @dataclass(frozen=True) class CombinationLineageV3: rule: CombinationRuleV3 component_observation_digests: tuple[str, ...] - retained_proof_candidate_digests: tuple[str, ...] + combined_cases: tuple[CombinedCaseOutcomeV3, ...] lineage_digest: str @dataclass(frozen=True) @@ -2890,6 +2937,7 @@ class ArmConfigurationV3: registered_budget_digest: str execution_identity: str outcome_mapping_digest: str + case_outcome_policy: CaseOutcomeProjectionPolicyV3 combination_rule: CombinationRuleV3 | None configuration_identity_digest: str @@ -2968,6 +3016,30 @@ class EvaluationFeasibilityV3: feasibility_digest: str ``` +Every component configuration must select `UNANIMOUS_EVIDENCE`; every combined +configuration must select `DECLARATIVE_COMBINATION_TABLE` and carry its complete +`CombinationRuleV3`. The selected policy is part of the arm configuration and baseline +identity. `outcome_mapping_digest` still identifies the family-specific mapping into the +closed neutral vocabulary; it does not authorize aggregation across evidence records. + +A component `CaseOutcomeProjectionV3` has a nonempty canonical +`source_outcome_digests` tuple containing the exact evidence-record digests. Validation +re-resolves those records and requires every `EvidenceRecord.decision.outcome` to be the +same exact `NeutralOutcome`. Mixed outcomes are invalid evidence and do not fall back to a +majority, precedence rule, `INDETERMINATE`, insufficiency, or a gate decision. A combined +projection instead uses the ordered component projection digests as its sources and is +valid only when its outcome is the exact registered decision-table result. Adding any +other projection behavior requires a new named policy and a baseline-changing schema +amendment. + +`case_input_digest` is not caller-selected correlation metadata. Core derives it as the +canonical content digest of the nonempty, unique, sorted tuple of +`EvidenceRecord.packet.provenance.change_input_digest` values after full evidence-input +validation and exact equality with each named change input. The sealed observation, +released case, released binding, and projection must all carry that exact derived value. +Release validation rederives it from canonical evidence before any cross-arm join. Thus +two arms correlate only when they processed the same authenticated change-input set. + The feasibility rows equal the canonical product of every arm and its exact claimed scopes. Every row rederives minimum sizes, threshold reachability, and interval precision from the reviewed label-blind census. `may_spend` is true only when every row is feasible. @@ -3009,8 +3081,10 @@ class ObservationAccessPolicyV3: @dataclass(frozen=True) class ObservationCaseRefV3: case_id_digest: str + case_input_digest: str underlying_push_digest: str result_digest: str + outcome_projection: CaseOutcomeProjectionV3 proof_candidate_digest: str | None @dataclass(frozen=True) @@ -3168,6 +3242,8 @@ class ReleasedArmCaseBindingV3: observation_digest: str underlying_push_digest: str case_id_digest: str + case_input_digest: str + outcome_projection: CaseOutcomeProjectionV3 role: AdmissionCaseRole pair_id_digest: str | None case_result_digest: str @@ -3196,6 +3272,8 @@ class ArmAdmissionCaseResultV3: observation_digest: str underlying_push_digest: str case_id_digest: str + case_input_digest: str + outcome_projection: CaseOutcomeProjectionV3 role: AdmissionCaseRole pair_id_digest: str | None evidence_inputs: tuple[EvidenceValidationInput, ...] @@ -3220,14 +3298,32 @@ class ArmAdmissionCasesV3: cases_digest: str ``` -The release is the sole post-spend authority for arm, scope, role, pair, result, evidence, -inputs, and proof-candidate association. It is an exact V3 type; V2 release values and -subclasses are refused. Component arms retain their own cases, metrics, gates, and reports. -A combined arm's `CombinationLineageV3` names every component arm, observation digest, -combination rule, and retained candidate. The rule is a finite canonical decision table -over normalized component observation outcomes with a fixed identical-candidate-only proof -policy. Core replays the table; arbitrary combination code is not accepted. Missing, extra, -replaced, or contradictory component material invalidates the combined evaluation. +The release is the sole post-spend authority for arm, scope, shared case input, role, pair, +result, outcome projection, evidence, inputs, and proof-candidate association. It is an +exact V3 type; V2 release values and subclasses are refused. For a component case, release +validation independently rederives `outcome_projection` from the canonical evidence +records and requires exact equality with both the sealed observation case and released +binding. It also rederives `case_input_digest` from the canonical nonempty change-input +digest set and requires exact equality through those same artifacts. This prevents a +self-consistent post-seal outcome or case-correlation substitution. + +Component arms retain their own cases, metrics, gates, and reports. Combination operates +per case, never per observation set: for every combined scope, core joins exactly one case +from every named component arm by `(ScopeKey, case_input_digest)`. The participating case +sets must be identical and complete, and release validation rejects duplicate +`(ArmScopeKey, case_input_digest)` keys before replay. Component order is exactly +`CombinationRuleV3.component_arm_ids`; callers cannot select or reorder table inputs. +`CombinedCaseOutcomeV3` authenticates every contributing observation, case, projection, +neutral outcome, selected table row, combined outcome, and retained candidate. The +combined projection uses those ordered component projection digests as its sources. +`CombinationLineageV3` binds all such cases and the exact component observation set. +Each combined lineage row also carries the combined case's own `case_id_digest` and +`observation_digest`, which must equal exactly one sealed and released combined case with +the same key, derived `case_input_digest`, and combined projection; neither side may exist +without the other. +Arbitrary combination code is not accepted. Missing, extra, duplicate, replaced, +reordered, cross-scope, cross-input, or contradictory component material invalidates the +combined evaluation rather than producing a quality decision. A proof candidate is non-authoritative before release. After release, the existing proof validator applies only when family, scope, pair roles, inputs, location, differential, @@ -3416,9 +3512,10 @@ digests. V3 replaces only the admission evidence source; it does not weaken 13.2 `may_spend=False`; no preparation can be constructed. - Unreadable observation bytes, unknown/mixed versions, stale custody, disposition change, or incomplete slots are validation errors before spend. -- After spend, missing cases/reports, invalid release/proof, denominator zero/mismatch, - skipped stages, or unread inputs invalidate completion. They do not become insufficiency - or quality decisions. +- After spend, missing cases/reports, empty or mixed component evidence outcomes, invalid + projection/combination/release/proof, denominator zero/mismatch, skipped stages, or + unread inputs invalidate completion. They do not become insufficiency or quality + decisions. - GO/NO-GO exists only inside completed `ScopeAdmissionResultV3` objects. - Aggregate and per-arm report objects have no consumer-authorization method. @@ -3442,8 +3539,10 @@ digests. V3 replaces only the admission evidence source; it does not weaken 13.2 cross-ecosystem refusal, exact precision, Wilson fields, whole-push deduplication, aggregate weights/no decision, and post-spend zero/mismatch invalidity (`18.1–18.8`). - Release/combinations/proof: reject V2 release, role/pair/scope/arm/input/result swaps, - missing components, contradictory combined results, candidate fabrication/transfer, and - invalid attachments; retain absent proof as not demonstrated (`19.1–19.11`). + empty or mixed evidence outcomes, sealed/released projection mismatch, cross-arm + case-input substitution, incomplete or duplicate component case sets, every reordered or + incorrect decision-table row, candidate fabrication/transfer, and invalid attachments; + retain absent proof as not demonstrated (`19.1–19.11`). - Reports/replay: derive every scoped GO/NO-GO, preserve whole operational evidence, reject missing gate/arm/scope/custody/release/lineage, rederive all source values, and authorize consumers only from complete replay (`20.1–20.8`). @@ -3456,11 +3555,13 @@ digests. V3 replaces only the admission evidence source; it does not weaken 13.2 1. Freeze V2 accepted outputs and failure behavior. 2. Add V3 measurement identities, plan declaration, exact policies, and preflight. 3. Add sealed observations, reviewed admission manifest, authority, and spend binding. -4. Add V3 release, exact metrics, reports, and complete replay. +4. Add authenticated per-case outcome projection, V3 release, exact per-case combination, + metrics, reports, and complete replay. 5. Add the separate fitted-component V3 consumer and strict schema router. 6. Run synthetic multi-arm conformance and independent validation. 7. Unblock valid-detection-benchmark task generation only after the predecessor schema - `openultrasast.detection-core.evaluation-admission.v3` is exported and validated. + `openultrasast.detection-core.evaluation-admission.v3` is exported and validated; the + benchmark consumes core projections and does not define a second normalization policy. There is no V2-to-V3 migration. Existing V2 artifacts remain replayable under V2; every V3 evaluation starts a new baseline. Rollback removes the additive V3 facade/modules and leaves diff --git a/.kiro/specs/detection-core/research.md b/.kiro/specs/detection-core/research.md index c9096d23..9b748a8e 100644 --- a/.kiro/specs/detection-core/research.md +++ b/.kiro/specs/detection-core/research.md @@ -1073,3 +1073,61 @@ Design generation remains blocked on approval of Requirements 16–20. cross-runtime canonical signatures are outside the current boundary. - [Approved valid-detection-benchmark design](../valid-detection-benchmark/design.md) — downstream V3 consumer contract and ownership boundary. + +--- + +## 2026-11-11 Per-Case Outcome Projection Amendment + +### Context and evidence + +Task 15.3 could not replay `CombinationDecisionRowV3` without inventing an aggregation +rule. The decision table consumes one `NeutralOutcome` for every named component arm, but +the authenticated V3 graph stopped at opaque case and result digests. A released case may +contain several `EvidenceValidationInput` records whose `EvidenceRecord.decision.outcome` +values disagree, while neither `ObservationCaseRefV3` nor `ReleasedArmCaseBindingV3` +carried a normalized outcome. A self-consistent caller could therefore choose an outcome +after observation sealing without contradicting the approved schema. + +The downstream `valid-detection-benchmark` design confirms that the intended grain is one +outcome per `case_input_digest`: `ArmObservationV1` is a per-case record, and combined arms +must retain every contributing component result. It does not define `ArmOutcome`, a +normalization rule, or a contradiction policy. Those family-neutral semantics therefore +belong in detection-core and must be validated before the benchmark consumes them. + +### Options considered + +| Option | Description | Result | +|---|---|---| +| Observation-level aggregation | Collapse every case in one arm observation to one outcome | Rejected: destroys per-case lineage and requires undeclared precedence across unrelated cases | +| Opaque outcome-mapping digest | Keep only `outcome_mapping_digest` and let the caller supply table inputs | Rejected: the mapping identity is authenticated but its application and mixed-record behavior are not replayable | +| Per-case authenticated projection | Bind a shared case-input identity, exact source-outcome digests, closed policy, normalized outcome, and projection digest before spend | Selected: makes table inputs explicit, replayable, and compatible with the downstream per-case contract | + +### Selected semantics + +- A component case uses the closed `UNANIMOUS_EVIDENCE` policy. It must contain at least + one exact evidence record, and every record must carry the same `NeutralOutcome`. +- Mixed evidence-record outcomes are invalid evaluation evidence. They never become an + implicit majority, precedence result, `INDETERMINATE`, insufficiency, GO, or NO-GO. +- The component projection binds `case_input_digest`, the canonical evidence-record + digests, policy, normalized outcome, and its own digest. Core derives the case-input + identity from the canonical nonempty set of validated change-input digests; it is not + caller-selected correlation metadata. The observation seals it, the released case + carries it, and release validation independently rederives both identities from + canonical evidence. +- A combined case joins the named components by exact `(ScopeKey, case_input_digest)`. + Every named component must contribute exactly one case. Component order comes only from + `CombinationRuleV3.component_arm_ids`, and the corresponding complete decision-table row + determines the combined outcome. +- Combined lineage retains each component observation, case, outcome projection, outcome, + and optional proof candidate independently. Missing, duplicate, extra, reordered, + substituted, cross-scope, or contradictory material is invalid. +- A future non-unanimous projection requires a new named, digest-bound policy and schema + review. No generic callback or executable aggregation code enters the core. + +### Compatibility and downstream effects + +This amendment changes additive, not-yet-exported V3 observation and release digests. V3 +fixtures from Tasks 14 and 15 must be regenerated and their complete authority/spend/release +graphs revalidated. V2 schemas, bytes, digests, failures, and replay stay frozen. After the +V3 predecessor is complete, `valid-detection-benchmark` must consume the core projection +and remove any local ownership of outcome normalization. diff --git a/.kiro/specs/detection-core/spec.json b/.kiro/specs/detection-core/spec.json index 728b72b1..69682320 100644 --- a/.kiro/specs/detection-core/spec.json +++ b/.kiro/specs/detection-core/spec.json @@ -1,7 +1,7 @@ { "feature_name": "detection-core", "created_at": "2026-10-30T13:55:30Z", - "updated_at": "2026-11-10T06:56:01Z", + "updated_at": "2026-11-11T08:22:15Z", "language": "en", "phase": "tasks-generated", "approvals": { @@ -19,5 +19,5 @@ } }, "ready_for_implementation": true, - "approval_note": "2026-11-10: The maintainer approved the regenerated merge-mode task plan after the feasibility witness amendment. Requirements, design, and tasks remain approved; Task 13.4 and plan/preflight group 13 have now passed independent implementation review and fresh verification." + "approval_note": "2026-11-11: The maintainer approved the fail-closed per-case outcome amendment after Task 15.3 debug exposed an unauthenticated combination input. The amended design derives and revalidates case-input identity, seals unanimous component outcomes, binds combined case lineage, and splits implementation into Tasks 15.3-15.6; requirements, design, and regenerated tasks remain approved after independent review." } diff --git a/.kiro/specs/detection-core/tasks.md b/.kiro/specs/detection-core/tasks.md index 7dadd9f8..7e9cb5f1 100644 --- a/.kiro/specs/detection-core/tasks.md +++ b/.kiro/specs/detection-core/tasks.md @@ -575,15 +575,34 @@ contract work and use synthetic/in-memory workflow boundaries only. - Done when a canonical multi-scope release passes and a mutation matrix proves every association mismatch is invalid rather than a failed quality gate. - _Requirements: 18.2, 18.5, 19.2, 19.10_ - _Boundary: Released Case Validation_ -- [ ] 15.3 Replay combined-arm rules and preserve component observation lineage - - Recompute combined observation outcomes from the registered finite decision table and exact component observation digests. - - Preserve each component arm's observation identity and outcome independently of the combined result; defer completed metric, gate, decision, and report preservation to replay assembly. - - Refuse missing, extra, replaced, reordered, or contradictory component material and any combined arm whose lineage differs from the reviewed plan. - - Done when the registered combined arm replays deterministically from exact component observations and no component observation can hide another component's absence, contradiction, or lineage mismatch. +- [ ] 15.3 Define the closed per-case outcome projection contract + - Add exact `UNANIMOUS_EVIDENCE` and `DECLARATIVE_COMBINATION_TABLE` policies; require component and combined configurations respectively to use the matching kind-specific policy and bind it into configuration and baseline identity. + - Derive `case_input_digest` only from the canonical nonempty set of validated change-input digests, never from caller-selected correlation metadata. + - Define one canonical projection containing the derived case-input identity, exact source-outcome digests, policy, normalized `NeutralOutcome`, and projection digest. + - For component cases, require at least one evidence record and exact outcome unanimity; refuse empty or mixed outcomes rather than selecting a majority, precedence result, indeterminate outcome, insufficiency, GO, or NO-GO. + - Done when the policy/configuration and projection module derives deterministic identities and its unit mutation matrix rejects kind-policy mismatch, source changes, empty evidence, and every mixed-outcome permutation while V2 remains unchanged. + - _Requirements: 16.5, 19.2, 19.4, 19.5_ + - _Boundary: Case Outcome Projection Contract_ + - _Depends: 15.1, 15.2_ +- [ ] 15.4 Bind case-input and outcome projections through observation and release + - Bind each sealed observation case, released case, and released binding to the exact derived `case_input_digest` and `CaseOutcomeProjectionV3`. + - Independently rederive the case-input identity and unanimous component projection from canonical released evidence, then require exact equality with the trusted sealed observation and reviewed release. + - Refuse substituted, reordered, duplicated, or self-consistently rehashed projection/case-input material before scoring; enforce uniqueness for every released `(ArmScopeKey, case_input_digest)`. + - Regenerate V3 observation/release fixtures and revalidate the complete authority, preparation, spend, and release graph while preserving every frozen V2 byte and digest. + - Done when each released component case has one sealed and independently rederived normalized outcome, every observation/release mutation fails before combination, and the broader V3 trust graph remains valid. + - _Requirements: 17.5, 19.1, 19.2, 19.5, 20.8_ + - _Boundary: Case Outcome Projection Integration_ + - _Depends: 15.3_ +- [ ] 15.5 Replay combined-arm rules per case and preserve component lineage + - Join exactly one released case from every named component arm by exact `(ScopeKey, case_input_digest)` and require identical complete case sets. + - Order component projections only by the registered `component_arm_ids`, replay the complete finite decision table, and authenticate the selected row, combined outcome, and combined projection for every case. + - Preserve each component arm's observation, case, projection, normalized outcome, and optional candidate independently of the combined result; bind each lineage row one-to-one to the combined arm's own sealed and released case and observation. + - Refuse missing, extra, duplicate, replaced, reordered, cross-scope, cross-input, or contradictory component material and any combined arm whose lineage differs from the reviewed plan. + - Done when every registered combined case replays deterministically from exact component projections and no component case can hide another component's absence, contradiction, or lineage mismatch. - _Requirements: 19.4, 19.5, 19.11_ - _Boundary: Combination Validation_ - - _Depends: 15.1, 15.2_ -- [ ] 15.4 Enforce proof-candidate identity and prevent proof transfer + - _Depends: 15.4_ +- [ ] 15.6 Enforce proof-candidate identity and prevent proof transfer - Keep every label-blind proof candidate non-authoritative until the V3 release establishes its exact arm, family, scope, roles, inputs, and location. - Apply proof-backed status only through the existing trusted differential-proof validator and the identical released candidate. - Permit a combined arm to retain only a candidate already present in its named component observation; prevent creation, substitution, and cross-arm transfer. @@ -591,7 +610,7 @@ contract work and use synthetic/in-memory workflow boundaries only. - Done when valid released proof attaches once, absent proof remains non-demonstrated, and the complete transfer/mismatch matrix is refused. - _Requirements: 19.6, 19.7, 19.8, 19.9, 19.10_ - _Boundary: Proof Continuity_ - - _Depends: 15.3_ + - _Depends: 15.5_ - [ ] 16. Derive exact scoped metrics and completed reports - [ ] 16.1 Partition quality evidence by exact arm, family, and ecosystem @@ -601,7 +620,7 @@ contract work and use synthetic/in-memory workflow boundaries only. - Done when a multi-arm, multi-scope case set yields isolated partitions and any cross-arm, cross-family, or cross-ecosystem contribution is refused. - _Requirements: 18.1, 18.2, 18.4_ - _Boundary: Evaluation Scoped Metrics_ - - _Depends: 15.2, 15.4_ + - _Depends: 15.4, 15.6_ - [ ] 16.2 Project ordinary pushes by ecosystem and deduplicate whole coverage - Count each eligible ordinary push once for every family claimed by the arm in the push's reviewed ecosystem and never in another ecosystem. - Deduplicate one underlying push once in whole-population coverage even when it contributes to several verified scope denominators. @@ -640,7 +659,7 @@ contract work and use synthetic/in-memory workflow boundaries only. - Done when the complete graph produces one deterministic replay digest and every omitted or substituted component prevents construction. - _Requirements: 19.4, 19.5, 19.11, 20.4, 20.5_ - _Boundary: Evaluation Replay_ - - _Depends: 15.3, 16.4, 16.5_ + - _Depends: 15.5, 16.4, 16.5_ - [ ] 17.2 Revalidate replay from canonical source artifacts and current trust state - Resolve the complete attempt chain and observation/review content again, revalidate current custody, and rederive every identity, count, metric, gate, decision, report, lineage, and replay digest. - Require exact equality with the carried values and refuse coordinated rehashing, stale external state, unknown/mixed versions, and partial roots. @@ -683,7 +702,7 @@ contract work and use synthetic/in-memory workflow boundaries only. - _Boundary: V3 Pre-Spend and Compatibility Validation_ - _Depends: 17.3_ - [ ] 18.3 (P) Run the adversarial post-spend, metric, combination, and replay matrix - - Exercise V2 release substitution, arm/scope/role/pair/result/input swaps, missing components, contradictory combinations, proof transfer, absent/inconclusive proof, cross-ecosystem ordinary projection, duplicate whole coverage, zero/mismatched denominators, missing gates, and incomplete reports/replay. + - Exercise V2 release substitution, arm/scope/role/pair/result/input swaps, empty or mixed evidence outcomes, case-input/projection substitutions, missing or duplicate component cases, contradictory combinations, proof transfer, absent/inconclusive proof, cross-ecosystem ordinary projection, duplicate whole coverage, zero/mismatched denominators, missing gates, and incomplete reports/replay. - Verify invalid post-spend evidence never becomes insufficiency, GO, NO-GO, aggregate authority, or consumer eligibility. - Revalidate every complete replay from source artifacts and current custody rather than trusting carried summaries. - Done when the valid control replay reproduces exactly and every post-spend mutation is refused before authorization without hiding another arm's status. @@ -722,6 +741,7 @@ contract work and use synthetic/in-memory workflow boundaries only. - Task 14.4 validates the complete manifest/authority/preparation graph before external CAS and again after append, so only the current direct available-to-spent receipt can bind every planned baseline and self-consistent subset authorities remain unspendable. - Task 15.1 added exact V3 arm-case and independently reviewed release contracts that rebind the complete plan-to-spend graph, trusted observations, case cardinality, and nonzero read/execution evidence before metrics. - Task 15.2 authenticates the reviewed multi-scope release and sealed observation graph before rederiving every case association, so fully rehashed result, push, pair, input, and cross-scope substitutions fail before metrics. +- Task 15.3 debug established that combination replay lacked a canonical authenticated component-outcome projection. The approved amendment inserts the fail-closed projection contract as Task 15.3, observation/release integration as Task 15.4, per-case table replay as Task 15.5, and proof continuity as Task 15.6. - The frozen migration inventory is a reviewed worklist with stable identities, not a semantic-use census. It may only close entries as `v2_migrated` or `retired`; it never grows, deletes entries, or proves absence by interpreting Python flow. - Cutover is proved by explicit syntax checks plus deletion of the compatibility and v1 write capability. No task extends the discarded alias/data-flow interpreter. - Task 10.5 debug established that executable owner probes cannot compensate for blanket source-closure acceptance; resumed hunt attempts also require collision-resistant attempt identity and create-only persistence before handoff validation is authoritative.