Phase 2: Count access, delegation and full-observation work #625

Merged
erikinkinen merged 2 commits from phase2/p2-06-b-access-delegation-counters into main 2026-10-20 18:17:30 +02:00
Owner

Task

Closes #91 (P2-06-B).

Summary

Measured access now charges every actual legacy ancestry lookup. Ordinary
issuance, delegation, attenuation and deletion charge their terminal record
operations. Explicit Phase 2 full-observation queries count manager reads.
Repeated or denied access retains the original authority behavior and costs.

Scope

Includes operation instrumentation, staged measured mutations, copied live
observation records, hand-derived fixtures and counting-point documentation.
P2-06-C owns shared conservation; P3-02 owns restricted ManagerView isolation.
The legacy entry points, estimated metrics and archived outputs remain intact.

Design intent

Nested helpers share one bucket meter. Cached fields incur no duplicate read;
separate parent-version queries use validity columns. Failed primitives do not
publish candidate graph state or accepted event work. The later intent wrapper
owns accepted denial identities.

Phase discipline

Full current observation is allowed in Phase 2. No analytical lineage, grants,
true depth or history is returned to the manager. Material carriers, recovery,
partial observation and Phase 3 retention are outside this change.

Verification

All 51 CTests pass at source commit
635c5c5b8b in Debug, Release and Clang ASan/UBSan.
Hand-counted delegation/access/query vectors match traces; all seven post-
withdrawal mechanisms preserve access truth. Measured and legacy canonical
state, history, deltas and outcomes agree. All 31 archived compatibility cases
pass. Repository hooks and the Phase 2 documentation scope lock pass.

Exact-source logs, JUnit and toolchain evidence.
Acceptance records: artifacts/backlog/2.2.1/P2-06-B/.
All eight Forgejo contexts must pass on this final head before the issue's
single checklist step is checked once and the PR merged.

## Task Closes #91 (P2-06-B). ## Summary Measured access now charges every actual legacy ancestry lookup. Ordinary issuance, delegation, attenuation and deletion charge their terminal record operations. Explicit Phase 2 full-observation queries count manager reads. Repeated or denied access retains the original authority behavior and costs. ## Scope Includes operation instrumentation, staged measured mutations, copied live observation records, hand-derived fixtures and counting-point documentation. P2-06-C owns shared conservation; P3-02 owns restricted ManagerView isolation. The legacy entry points, estimated metrics and archived outputs remain intact. ## Design intent Nested helpers share one bucket meter. Cached fields incur no duplicate read; separate parent-version queries use validity columns. Failed primitives do not publish candidate graph state or accepted event work. The later intent wrapper owns accepted denial identities. ## Phase discipline Full current observation is allowed in Phase 2. No analytical lineage, grants, true depth or history is returned to the manager. Material carriers, recovery, partial observation and Phase 3 retention are outside this change. ## Verification All 51 CTests pass at source commit 635c5c5b8b52d1dee50440c1bc40a78f0e4382b7 in Debug, Release and Clang ASan/UBSan. Hand-counted delegation/access/query vectors match traces; all seven post- withdrawal mechanisms preserve access truth. Measured and legacy canonical state, history, deltas and outcomes agree. All 31 archived compatibility cases pass. Repository hooks and the Phase 2 documentation scope lock pass. [Exact-source logs, JUnit and toolchain evidence](https://git.erikinkinen.fi/attachments/7f8e9a51-7316-4eb0-8b4f-1bd34c1ad5b2). Acceptance records: `artifacts/backlog/2.2.1/P2-06-B/`. All eight Forgejo contexts must pass on this final head before the issue's single checklist step is checked once and the PR merged.
erikinkinen added this to the Phase 2 milestone 2026-10-20 18:13:39 +02:00
Record P2-06-B exact-source validation and acceptance
All checks were successful
markdownlint / markdown-lint (pull_request) Successful in 21s
clang-format / check-format (pull_request) Successful in 23s
ci / smoke (pull_request) Successful in 3m44s
ci / sanitizers (pull_request) Successful in 3m46s
clang-format / check-format (push) Successful in 17s
markdownlint / markdown-lint (push) Successful in 18s
ci / smoke (push) Successful in 3m1s
ci / sanitizers (push) Successful in 3m1s
029a4354a1
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!625
No description provided.