Phase 2: Match static authority projections with exact current access #628
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!628
Loading…
Reference in a new issue
No description provided.
Delete branch "phase2/p2-10-static-projection"
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 #101 (P2-10).
Summary
Matching cuts now require equal full static projection bytes and exact current
role/rights access. The projection retains isolated nodes and capability
multiplicity while erasing IDs, ancestry and history. Frozen role bindings,
full-width rights and canonical certificate identities make the comparison
auditable. Equal hash indexes cannot bypass comparison of records and bytes.
Scope
Includes the projection API, current-access summaries, JSON cut certificates,
SHA-256 helper, independent hash/schema checks and analytical/negative fixtures.
Campaign generation and complete research-state hashing remain separate work.
The legacy snapshot identity is explicitly named and includes its GrantId cursor
as a separate certificate field.
Design intent
Use maximal valid rights masks for each role pair to preserve every nonempty
current-access request. Separate Read and Write capabilities cannot be combined
into a Read+Write capability. Actual UseCap probes run on copied stores without
event ticks or ID allocation. Hashes identify artifacts; deep equality decides
projection matching. The generator freezes role maps before either prefix.
Phase discipline
The change adds no carriers, persistence or partial-observation policy. Oracle
probes and hashing are validation overhead. Different histories can match a cut
and then respond differently to the same future withdrawal.
Verification
All 56 CTests pass at source commit
bcff425873in Debug, Release and Clang ASan/UBSan.Fixtures cover chain/star continuation differences, multiplicity, isolated nodes,
rights including bit 63, hidden invalidity, compound requests, benign parallel
authority, malformed UTF-8/bindings and nonmutation. Python verifies canonical
certificate fields and hashes. SHA-256 matches four known-answer messages and
139 independent binary hashlib cases. All 31 archived legacy cases still pass.
Repository hooks and the documentation scope lock pass.
Exact-source logs, JUnit, toolchain and example certificate.
Acceptance records:
artifacts/backlog/2.2.1/P2-10/.All eight final-head Forgejo checks must pass before the three issue steps are
checked once and the PR is merged.