Phase 2: Measure usable authority with an independent oracle #620
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!620
Loading…
Reference in a new issue
No description provided.
Delete branch "phase2/p2-04-usable-authority"
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 #87 (P2-04).
Summary
Add an independent Read-authority evaluator and withdrawal measurement interface. Epoch-revoked tokens can now be reported as physically present but unusable, while a benign parallel grant preserves legitimate effective access without becoming target leakage.
Scope
Included
Explicitly excluded
Design intent
Only the oracle may read the complete analytical ledger. It accepts const state, advances no clock or identity cursor, and contributes no mechanism work. Frozen target/benign denominators are retrieved from the private policy ledger. Empty denominators produce null with an explicit reason. The documentation distinguishes later-epoch benign cohort loss from causal attribution requiring the declared paired comparison.
Phase discipline
The evaluator matches
legacy_phase1semantics, including root-only lazy markers and missing-parent epoch boundaries. Legacy metrics, logs and snapshots remain unchanged. Validation fixtures are not production research samples.Verification
All 47 CTests pass at the source commit in Debug, Release and Clang 22 ASan/UBSan. The new suite includes 21 hand-derived strategy cases, seven collateral cases, 56 branching cases, rights/empty-denominator/new-grant cases and malformed evidence. Every canonical state's oracle answers match actual UseCap on separate engine copies; snapshots and the research GrantId cursor remain unchanged. All hooks pass and archived legacy bytes still match.
Commands, logs and JUnit evidence are pinned in
artifacts/backlog/2.2.1/P2-04/acceptance.json. All eight exact-head Forgejo checks must pass before checklist update and merge.