feat(detection-core): define per-case outcome projection

This commit is contained in:
Marius Ciepluch
2026-11-11 10:07:53 +01:00
parent 999aabd5e3
commit ffea8f615e
9 changed files with 443 additions and 3 deletions
+2 -1
View File
@@ -575,7 +575,7 @@ 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 Define the closed per-case outcome projection contract
- [x] 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.
@@ -742,6 +742,7 @@ contract work and use synthetic/in-memory workflow boundaries only.
- 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.
- Task 15.3 projection derivation validates exact packet, decision, and provenance roots bottom-up before hashing change-input correlation; malformed, subclassed, or self-consistently rehashed nested aggregates fail through the contract-owned error boundary.
- 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.