Repository navigation
pkgs/id crate split step 2b-1: extract id-events (#4405) - #8656
Conversation
Pre-merge checks:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Nix verification for this PR: |
There was a problem hiding this comment.
💡 Codex Review
Moving this implementation leaves tests/planted/delegation-voiding.patch and the MUTATED_FILES list in tests/planted-bug-check.sh pointing at pkgs/id/src/groups/delegation.rs. Consequently, once the baseline and earlier mutations pass, check_mutation "delegation-voiding" exits with status 2 instead of checking whether the delegation tests catch the mutation. Verified with git apply --cached --check against temporary indexes: the patch applies to the parent commit but fails here because the old path no longer exists (git apply --help describes --check as checking patch applicability). Update both the patch paths and the harness’s restoration list to the new location.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Step 2b-1 of the pkgs/id crate split (#3447 umbrella, #4405): create
crates/id-events(deps: id-core, id-store) and move the group-projection vocabulary down into it, per the coordinator's design ruling on #4405 — the group model and fold are group-projection vocabulary owned by the events layer.Moved into
id-events(implementation only there; facade re-exports preserve every historical path):groupsmodel + projection: model types (Key,Role,Event,Body,DeviceOp,Create,MemberOp,Delegate,DEVICE_*_KIND),groups::policy,groups::fold,groups::delegation,groups::friendship,groups::event, the serdewireadapters (extracted fromgroups/log.rs), and the groups test suite.idset(whole surface incl.expand/view): its only group references weregroups::Roleandgroups::fold, both here now, so its deps resolve downward.pull_policy(PullPolicy/PullGate/PullRefused) andlocal_claims: leaf-like sync-gating value types.world_access::WorldAccess: the blob gate's leaf trait, moved down;blob_gate(facade, step 4) re-exports it and keepsFoldedWorlds+ gate logic.Facade consequences:
id::groupsbecomes a shim: re-exports the moved modules/types fromid_events::groups, keepsactions,log,warnings,worldslocal (the step-4 remainder).groups::log::wireis re-exported fromid_events::groups::wire.id::idset,id::local_claimsare re-exports;src/pull_policy.rsis a shim holding the re-exports, the facade-side test fixtures (which fold through the facade'sgroups::worlds), and the one store-backed gate test.id-events,pull_policy's test fixture folds with this crate's owngroups::foldand answers membership from the projection (same membership set; the fixture world has no grants).Step 2b-2 (event_store, local_events, event_sync, attestation) follows on a stacked branch.
Verification (protocol of steps 1/2a):
frames::tests::byte_refusal_does_not_spend_a_frame_token_or_increment_counters(pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620).id-eventslib gains the moved tests, incl. the store-backed gate test staying in the facade shim).sha256sum pkgs/id/src/sandbox.rsidentical before/after (db88ec8d52e961702353c97a407b77badadef1bd7e0a610a6075267e175d80b5);print_fuel_baselineoutput byte-identical (72 lines).nix build ./pkgs/id#id-lib— see PR comment for the check-phase result.src(onlypub useshims/re-exports).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.