Phase 2: Define version-4 event and transition contracts #631

Merged
erikinkinen merged 2 commits from phase2/p2-07-a-research-event-types into main 2026-10-20 19:42:47 +02:00
Owner

Task

Closes #94 (P2-07-A).

Summary

Research intents need explicit accepted-denial outcomes and complete, replayable evidence. Add closed version-4 action, result, state, delta and cost types with pure before/after transition validation. A denied delegation advances time and preserves its edge/grant reservations while leaving authority unchanged; malformed transitions fail without mutating any input.

Scope

Cover all eleven action variants, seven intent variants, nineteen stores, cursor and clock accounting, immutable issuance/policy evidence, handle retirement, restricted observation replies and measured-work conservation. Document canonical identity lists and the boundary between validation and execution. Legacy event types and codecs are unchanged.

Design intent

Validate supplied state images and compare complete deltas; never execute saved deltas. Preserve the actual primitive access semantics, including missing-parent behavior and invalidation-before-rights denial priority. Withdrawal checks establish legal actuator effects; P2-08-A must still re-execute exact resolver targets and measured costs. P2-07-B owns JSON/schema handling, P2-08-B owns digest verification, and later service/skeleton issues retain their implementation obligations.

Phase discipline

Implements P2-07.R1 and P2-07.R2. Prerequisites #86 and #88 are closed. This is typed contract acceptance, without a scientific campaign, formal proof, independent scholarly review or manuscript completion claim.

Verification

All 58 CTests pass at signed source d8c00be1e0eed4dd9da5fa8e56c835fcbf157670 in Debug, Release and Clang ASan/UBSan. The focused test accepts 132 transitions and rejects 70 malformed/boundary cases without input mutation, including 84 comparisons against actual measured UseCap outcomes across all seven mechanisms. Archived legacy fixtures, all eight local hooks and the frozen protocol/scope check pass.

Validation evidence, with immutable hashes and acceptance records under artifacts/backlog/2.2.1/P2-07-A/. Final PR-head CI is required before the issue checklist is checked once and the PR is merged.

## Task Closes #94 (P2-07-A). ## Summary Research intents need explicit accepted-denial outcomes and complete, replayable evidence. Add closed version-4 action, result, state, delta and cost types with pure before/after transition validation. A denied delegation advances time and preserves its edge/grant reservations while leaving authority unchanged; malformed transitions fail without mutating any input. ## Scope Cover all eleven action variants, seven intent variants, nineteen stores, cursor and clock accounting, immutable issuance/policy evidence, handle retirement, restricted observation replies and measured-work conservation. Document canonical identity lists and the boundary between validation and execution. Legacy event types and codecs are unchanged. ## Design intent Validate supplied state images and compare complete deltas; never execute saved deltas. Preserve the actual primitive access semantics, including missing-parent behavior and invalidation-before-rights denial priority. Withdrawal checks establish legal actuator effects; P2-08-A must still re-execute exact resolver targets and measured costs. P2-07-B owns JSON/schema handling, P2-08-B owns digest verification, and later service/skeleton issues retain their implementation obligations. ## Phase discipline Implements P2-07.R1 and P2-07.R2. Prerequisites #86 and #88 are closed. This is typed contract acceptance, without a scientific campaign, formal proof, independent scholarly review or manuscript completion claim. ## Verification All 58 CTests pass at signed source `d8c00be1e0eed4dd9da5fa8e56c835fcbf157670` in Debug, Release and Clang ASan/UBSan. The focused test accepts 132 transitions and rejects 70 malformed/boundary cases without input mutation, including 84 comparisons against actual measured UseCap outcomes across all seven mechanisms. Archived legacy fixtures, all eight local hooks and the frozen protocol/scope check pass. [Validation evidence](https://git.erikinkinen.fi/attachments/38644d36-afd2-4998-8460-71b90d33acce), with immutable hashes and acceptance records under `artifacts/backlog/2.2.1/P2-07-A/`. Final PR-head CI is required before the issue checklist is checked once and the PR is merged.
erikinkinen added this to the Phase 2 milestone 2026-10-20 19:37:32 +02:00
Record validated P2-07-A contract acceptance
All checks were successful
markdownlint / markdown-lint (pull_request) Successful in 18s
clang-format / check-format (pull_request) Successful in 19s
ci / smoke (pull_request) Successful in 4m13s
ci / sanitizers (pull_request) Successful in 4m15s
markdownlint / markdown-lint (push) Successful in 15s
clang-format / check-format (push) Successful in 16s
ci / smoke (push) Successful in 2m53s
ci / sanitizers (push) Successful in 2m54s
4cbd403dc2
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erikinkinen/AES!631
No description provided.