Phase 2: Define version-4 event and transition contracts #631
No reviewers
Labels
No labels
bug
cli
core
docs
event
experiment
figure
invariant
metrics
oracle
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
provenance
revocation
tests
workload
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erikinkinen/AES!631
Loading…
Reference in a new issue
No description provided.
Delete branch "phase2/p2-07-a-research-event-types"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
d8c00be1e0eed4dd9da5fa8e56c835fcbf157670in 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.