Preserve source identity and attribute moved authority to the current holder #639

Merged
erikinkinen merged 1 commit from phase2/bug-638-moved-holder-oracle into main 2026-10-20 21:38:06 +02:00
Owner

Task

Closes #638.

Summary

A legal holder move preserved actual Read access but caused the authority oracle to reject the graph. Permit changed live holders while preserving immutable birth-role source atoms, and derive effective-access triples from the current holder's fixed role.

Scope

Add immutable, bijective holder-role registration for destinations that have no issuance. Existing issuance registration remains compatible; conflicting or missing bindings fail closed. Preserve object, ancestry, rights, deletion and validity checks. Document the adapter obligation to register empty destinations.

Design intent

Policy cohort identity follows the issuance. Effective access follows the current holder. Oracle computation remains independent of the actuator, unmetered and read-only.

Phase discipline

This bug was reproduced during #97 integration review. Its branch is based on main and excludes P2-08-A implementation. The regression reconstructs a valid moved state with existing test-only store insertion. The actual movement primitive will be rechecked when this fix is integrated into P2-08-A.

Verification

The actual movement probe failed at 0b9ac14 despite graph validation and successful Read access. The independently constructed moved-state CTest also failed before the fix. Afterward the regression verifies birth/current-role separation, deduplication, all seven withdrawal mechanisms, frozen cohorts and denominators, moves before and after invalidation, empty destinations, binding failures, later issuance, attenuation and actual UseCap conformance.

All 63 CTests pass in Debug, Release and Clang ASan/UBSan at signed source 1429d5536788c2ac5ee37eaddb8db81452f74bf4. All eight local hooks and the frozen scope/source check pass. Before/after logs, probe source, JUnit and toolchain evidence.

All eight final-head Forgejo checks must pass before the three checklist items are checked once and this PR merges.

## Task Closes #638. ## Summary A legal holder move preserved actual Read access but caused the authority oracle to reject the graph. Permit changed live holders while preserving immutable birth-role source atoms, and derive effective-access triples from the current holder's fixed role. ## Scope Add immutable, bijective holder-role registration for destinations that have no issuance. Existing issuance registration remains compatible; conflicting or missing bindings fail closed. Preserve object, ancestry, rights, deletion and validity checks. Document the adapter obligation to register empty destinations. ## Design intent Policy cohort identity follows the issuance. Effective access follows the current holder. Oracle computation remains independent of the actuator, unmetered and read-only. ## Phase discipline This bug was reproduced during #97 integration review. Its branch is based on main and excludes P2-08-A implementation. The regression reconstructs a valid moved state with existing test-only store insertion. The actual movement primitive will be rechecked when this fix is integrated into P2-08-A. ## Verification The actual movement probe failed at `0b9ac14` despite graph validation and successful Read access. The independently constructed moved-state CTest also failed before the fix. Afterward the regression verifies birth/current-role separation, deduplication, all seven withdrawal mechanisms, frozen cohorts and denominators, moves before and after invalidation, empty destinations, binding failures, later issuance, attenuation and actual UseCap conformance. All 63 CTests pass in Debug, Release and Clang ASan/UBSan at signed source `1429d5536788c2ac5ee37eaddb8db81452f74bf4`. All eight local hooks and the frozen scope/source check pass. [Before/after logs, probe source, JUnit and toolchain evidence](https://git.erikinkinen.fi/attachments/087f0b1d-b360-4dc5-a50f-e314540b51f2). All eight final-head Forgejo checks must pass before the three checklist items are checked once and this PR merges.
erikinkinen added this to the Phase 2 milestone 2026-10-20 21:32:51 +02:00
Phase 2: retain source identity and follow moved access holders (#638)
All checks were successful
markdownlint / markdown-lint (pull_request) Successful in 14s
clang-format / check-format (pull_request) Successful in 31s
ci / sanitizers (pull_request) Successful in 4m53s
ci / smoke (pull_request) Successful in 4m57s
markdownlint / markdown-lint (push) Successful in 18s
clang-format / check-format (push) Successful in 37s
ci / sanitizers (push) Successful in 7m1s
ci / smoke (push) Successful in 7m4s
1429d55367
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!639
No description provided.