Phase 2: Define external policy and immutable withdrawal scope #619

Merged
erikinkinen merged 2 commits from phase2/p2-03-external-policy into main 2026-10-20 17:10:36 +02:00
Owner

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

  • A strong GrantId domain and monotonic engine allocator.
  • Immutable issuance ancestry, origin, role, rights, birth and depth evidence, with append-only deletion records.
  • Per-right capability atoms and private frozen root-withdrawal target/benign sets, immediate live_read deadlines and validation.
  • Analytical, negative, all-seven-strategy and legacy compatibility fixtures; documentation and acceptance records.

Explicitly excluded

  • The independent usable-authority evaluator, owned by P2-04.
  • Automatic research orchestration, new event codecs and research checkpoints, owned by their later issues.

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.json pins the source, prerequisite and output hashes. All eight exact-head Forgejo checks are required before checklist update and merge.

# 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 - A strong GrantId domain and monotonic engine allocator. - Immutable issuance ancestry, origin, role, rights, birth and depth evidence, with append-only deletion records. - Per-right capability atoms and private frozen root-withdrawal target/benign sets, immediate live_read deadlines and validation. - Analytical, negative, all-seven-strategy and legacy compatibility fixtures; documentation and acceptance records. ### Explicitly excluded - The independent usable-authority evaluator, owned by P2-04. - Automatic research orchestration, new event codecs and research checkpoints, owned by their later issues. ## 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](https://git.erikinkinen.fi/attachments/fc36bbfb-33e4-4d52-91e4-51efb3acae38) includes commands, logs and JUnit results. `artifacts/backlog/2.2.1/P2-03/acceptance.json` pins the source, prerequisite and output hashes. All eight exact-head Forgejo checks are required before checklist update and merge.
erikinkinen added this to the Phase 2 milestone 2026-10-20 17:05:31 +02:00
Phase 2: Record P2-03 policy scope acceptance (#86)
All checks were successful
markdownlint / markdown-lint (pull_request) Successful in 22s
clang-format / check-format (pull_request) Successful in 23s
ci / smoke (pull_request) Successful in 3m53s
ci / sanitizers (pull_request) Successful in 3m53s
markdownlint / markdown-lint (push) Successful in 12s
clang-format / check-format (push) Successful in 15s
ci / smoke (push) Successful in 2m37s
ci / sanitizers (push) Successful in 2m37s
1f3a6404b1
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!619
No description provided.