GeezerVison is showing github.com — pkgs/id crate split step 6b: extract id-directory (#4409) by dezren39 · Pull Request #9181 · developing-today/code
Conversation
dezren39
commented
Nov 13, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Step 6b of #4409 (umbrella #3447), sequenced after 6a (PR #9153, merged). The directory cluster moves into a new workspace member crates/id-directory:
- From id-worlds:
directory, directory_auth, directory_mail, directory_view
- From the facade:
directory_log, invite, invites, seitan
The facade and id-worlds re-export every module at its historical path (id::directory*, id_worlds::directory*), so no call site changed.
Dependency direction (design seam 10): id-directory depends only downward — id-core (petname, hex, test forgeries), id-caps (the WorldScopes vocabulary; step 6a moved it there for this), id-events (groups::Role), id-sync (artifact, envelope outbox). It never depends on id-worlds. The reverse edge is the one deliberate deviation from the design map, already flagged in the id-worlds manifest as step 6s owed re-homing: id-worlds depends on id-directory, because WorldCore holds a Directory as its own persisted state and world_store opens/replays it beside the journal — the same pattern by which WorldCore holds id-core state types (petname). The alternative, a trait-object inversion of the whole Directory surface, is not the fleet pattern and would churn every world actor path for no behavioural gain.
Orphan-rule move: impl ArtifactSink for Directory moves from id-worlds session_host into directory.rs (the crate that owns the type); session_host keeps SessionHost for WorldHub. Two widenings: Directory::apply_replica_fact → pub (world/replica.rs calls it); directory_view::level_name → pub (needed by id-web in 6c; one of the pre-existing suite-B breakage sites).
Verification (laptop, rebased on current main af5bffbe44):
- Members chunk (
cargo test --workspace --exclude id --no-fail-fast): 2186 passed / 1 failed — the failure is only the pre-existing id: frames byte-refusal test fails on main (RequestTooLarge vs BudgetExhausted) — blocks id build + nixos-integration check #8354 frames test in id-core.
- Facade (
cargo test -p id): 1668 passed / 0 failed / 19 ignored. Baseline facade was 1704/0/19; the delta is exactly the 37 directory-log/invite/seitan tests that moved into id-directory (counted in the members chunk now) plus upstream test additions from trains that landed during the step.
- Fuel canary:
FUEL_BUDGETS byte-identical to the step-0 baseline snapshot (diff empty).
- Nix
id-lib build: checked for parity with main (main itself fails that build on the Roc-cache sandbox test; see PR #9153s note).
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The directory cluster moves into a new crates/id-directory member:
directory, directory_auth, directory_mail, directory_view (from
id-worlds) and directory_log, invite, invites, seitan (from the
facade). The facade and id-worlds re-export every module at its
historical path, so no call site changed.
Dependencies point one way down (design seam 10): id-directory
depends on id-core (petname, hex, forgeries), id-caps (the
WorldScopes vocabulary, moved in 6a), id-events (groups::Role) and
id-sync (artifact, envelope_outbox) - never on id-worlds. The
relationship inverts the other way: id-worlds now depends on
id-directory, because WorldCore holds a Directory as its own
persisted state (world_store opens/replays it beside the journal) -
the petnames pattern, and the re-homing the id-worlds manifest
already said step 6 owed. The ArtifactSink-for-Directory impl moves
with the type (orphan rule) from session_host into directory.rs;
session_host keeps the SessionHost-for-WorldHub impl. One widening:
Directory::apply_replica_fact becomes pub (world/replica.rs calls
it), and directory_view::level_name becomes pub ahead of step 6c.
Behaviour-preserving throughout.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 25 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
20e7a6e9-7125-4d82-a453-25f9e2487d9a
Commits
-
Reviewing files that changed from the base of the PR and between af5bffb and 2124020.
Files ignored due to path filters: 1
-
pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 23
-
pkgs/id/Cargo.toml
pkgs/id/crates/id-directory/Cargo.toml
pkgs/id/crates/id-directory/src/directory.rs
pkgs/id/crates/id-directory/src/directory_auth.rs
pkgs/id/crates/id-directory/src/directory_log.rs
pkgs/id/crates/id-directory/src/directory_mail.rs
pkgs/id/crates/id-directory/src/directory_view.rs
pkgs/id/crates/id-directory/src/invite.rs
pkgs/id/crates/id-directory/src/invites/event.rs
pkgs/id/crates/id-directory/src/invites/invitation.rs
pkgs/id/crates/id-directory/src/invites/mod.rs
pkgs/id/crates/id-directory/src/lib.rs
pkgs/id/crates/id-directory/src/seitan/accept.rs
pkgs/id/crates/id-directory/src/seitan/admit.rs
pkgs/id/crates/id-directory/src/seitan/derive.rs
pkgs/id/crates/id-directory/src/seitan/freshness.rs
pkgs/id/crates/id-directory/src/seitan/mod.rs
pkgs/id/crates/id-directory/src/seitan/tests.rs
pkgs/id/crates/id-directory/src/seitan/token.rs
pkgs/id/crates/id-worlds/Cargo.toml
pkgs/id/crates/id-worlds/src/lib.rs
pkgs/id/crates/id-worlds/src/session_host.rs
pkgs/id/src/lib.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-13T02:55:41.531939Z |
2124020 |
PR opened |
ℹ️ 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" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 21240208b4
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+4017
to
+4018
|
|
"id-sync",
|
|
|
"iroh-tickets",
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regenerate the lockfile with all id-directory dependencies
The new manifest declares iroh, iroh-base, and serde_bytes as dev-dependencies, but the id-directory package entry in Cargo.lock omits all three. Cargo therefore needs to rewrite the lockfile, causing locked/frozen builds to reject this checkout before compilation, including the lock-enforced Nix packaging configured in pkgs/id/flake.nix. Cargo's metadata --help confirms that --locked means “Assert that Cargo.lock will remain unchanged.” Regenerate and commit the lockfile against the final manifest.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Nix gate: nix build .#id-lib on this branch compiles the full workspace and its check phase fails on exactly the same single pre-existing test as pristine main (cli_tests::world_new_scaffold_compiles_with_pinned_roc, Roc cache AccessDenied in the sandbox; 93 passed / 1 failed in cli_integration, zero compile errors) — parity with main, as with 6a.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 13, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|