Phase 2: Define external policy and immutable withdrawal scope #619
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!619
Loading…
Reference in a new issue
No description provided.
Delete branch "phase2/p2-03-external-policy"
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 #86 (P2-03).
Summary
Withdrawal scope now comes from preserved issuance history and an external policy request. A strategy's local selector cannot redefine the target or benign denominator. Independent parallel grants to the same holder and object remain separate benign authority.
Scope
Included
Explicitly excluded
Design intent
The oracle receives complete analytical history; managers and strategies receive neither ledger. Targets count only represented Read source units, while deleted intermediates remain ancestry evidence. The pre-query usable benign set is supplied by the independent evaluator contract and frozen once. Empty targets remain empty.
Phase discipline
Legacy event, snapshot and metric formats retain their bytes and semantics. Legacy snapshots cannot checkpoint research GrantId state. The new components do not enable a research runner or constitute scientific campaign evidence.
Verification
The final source commit passes all 46 Debug CTests, including 31 archived legacy cases. Precommit Release and Clang 22 ASan/UBSan builds also passed all 46 tests. All hooks and the scope lock pass. Fixtures cover parallel grants, deleted ancestors, root-only lazy markers, epoch deletion batches, unchanged scope after strategy execution, rights bits including bit 63, empty targets, stale evidence and identity/role reuse rejection.
Validation archive includes commands, logs and JUnit results.
artifacts/backlog/2.2.1/P2-03/acceptance.jsonpins the source, prerequisite and output hashes. All eight exact-head Forgejo checks are required before checklist update and merge.