Phase 2: Match static authority projections with exact current access #628

Merged
erikinkinen merged 2 commits from phase2/p2-10-static-projection into main 2026-10-20 18:48:17 +02:00
Owner

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
bcff425873 in 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.

## 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 bcff4258734c7a626df6d01d4414b67d4b7b0c5e in 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](https://git.erikinkinen.fi/attachments/7c26bc6f-d2c5-49b8-bdcc-5a9d12eee6d4). 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.
erikinkinen added this to the Phase 2 milestone 2026-10-20 18:42:27 +02:00
Record P2-10 projection and certificate validation evidence
All checks were successful
markdownlint / markdown-lint (pull_request) Successful in 23s
clang-format / check-format (pull_request) Successful in 25s
ci / smoke (pull_request) Successful in 4m8s
ci / sanitizers (pull_request) Successful in 4m12s
markdownlint / markdown-lint (push) Successful in 17s
clang-format / check-format (push) Successful in 19s
ci / smoke (push) Successful in 2m43s
ci / sanitizers (push) Successful in 2m46s
5ef0cd37b1
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!628
No description provided.