GeezerVison is showing github.com — id: extract id-cli crate; facade becomes re-exports + main.rs (split step 7b, #4411) by dezren39 · Pull Request #9362 · 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 7b of the pkgs/id crate split (#4411): the application layer leaves the facade. With this, the facade is what the design specifies — re-exports plus main.rs — and step 7's remaining piece (the permanent-API decision) is recorded at the end. Step 7a (PR #9340) moved seed_phrase, key_envelope and the key-file consts down to id-core first, so nothing here reaches back up.
What moved (git mv; implementation exists only in id-cli)
src/{cli, commands, repl, server_config} → crates/id-cli/src/…
- Support modules only the application layer uses:
local, meta_client, protocol, helpers, chat_presence, app_manifest, match_audit, peer_announcement (still private), aliases, publications, publications_runtime.
- The facade
fileops module's three test modules (they exercise id_sync::fileops through the LocalNode harness in local.rs) → id-cli/src/fileops_tests.rs; facade fileops is now the pure re-export.
- Facade root helpers the commands rely on —
parse_stdin_items, read_input, export_blob, to_absolute — moved into id-cli's lib.rs; the facade re-exports them at id::.
- Test narrowing (design: "narrow integration tests to the crates they exercise where that is cheap"):
tests/aliases.rs → crates/id-cli/tests/aliases.rs, naming origin crates directly. The binary-spawning suites stay with the facade, since the binary stays there.
Facade after
Re-exports every moved module at its historical id:: path and the root convenience layer (id::Cli, id::cmd_*, id::open_store, …) re-pointed at id_cli; main.rs is untouched. id-cli mirrors the facade's feature gates the moved code uses (sandbox, world, ssh, web, dht) and carries its own axum under web; the facade drops its direct axum dep. Move casualties repaired: include_bytes! paths (tic-tac-toe wasm, roc-counter example), CARGO_MANIFEST_DIR joins (README command-table tests, checked-in app manifest), doctests naming id_cli.
Verification
Permanent API vs scaffolding (the step-7 decision)
The facade's re-export surface is kept whole for now — every id:: path that existed before the split still resolves — because the split's own rule was "no API redesign beyond named seam inversions", and downstream consumers (the NixOS module, crash tests, benches) use it. The scaffolding question is therefore deferred as a conscious decision, not an oversight: a later API-tightening pass can retire re-exports per-name with usage data, without another crate move. Nix parity for this PR is recorded in a follow-up comment.
![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.
…step 7b, #4411)
Move the application layer out of the facade: cli, commands, repl
and server_config, plus the support modules only they use - local,
meta_client, protocol, helpers, chat_presence, app_manifest,
match_audit, peer_announcement, aliases, publications and
publications_runtime - into crates/id-cli. The facade fileops
test modules move too (they exercise id_sync::fileops through the
LocalNode harness in local.rs); the facade fileops module is now
the pure re-export. tests/aliases.rs narrows to id-cli/tests,
naming the origin crates directly (id_cli, id_store, id_events,
id_core).
The facade keeps main.rs and re-exports every moved module at
its historical id:: path, plus the root convenience layer
(id::Cli, id::cmd_*, id::open_store, ...) re-pointed at id_cli.
Root helpers the commands relied on moved into id-cli lib.rs
(parse_stdin_items, read_input, export_blob, to_absolute); the
facade re-exports them at id:: too. id-cli mirrors the facade
feature gates the moved code uses (sandbox, world, ssh, web,
dht) and carries its own axum under web; the facade no longer
links axum directly. Relative-path casualties of the move are
repaired: include_bytes! paths for the tic-tac-toe wasm and the
roc-counter example, CARGO_MANIFEST_DIR joins for the README
command-table tests and the checked-in app manifest, doctests
now name id_cli.
Verification (details in the PR): facade 973 passed / 0 failed
(was 1651; the delta is the moved code and its tests), id-cli
677 passed / 0 failed plus 7 aliases tests, workspace members
3532 passed with only the two named pre-existing failures
(#8354 frames; the web/dist manifest test that needs the bun
build), suite B 988 passed / 1 failed (the pre-existing serve
test, #9274). FUEL_BUDGETS byte-identical.
Codex Review Summary: ❌ Failed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
❌ Failed 2026-11-13T07:54:37.894027Z We couldn’t complete this review. Comment @codex review to try again. |
e4af08f |
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.
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 38 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:
c0daf0d9-4fed-417a-b0ed-9221ab263c06
Commits
-
Reviewing files that changed from the base of the PR and between 047aa8a and e4af08f.
Files ignored due to path filters: 1
-
pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 54
-
pkgs/id/Cargo.toml
pkgs/id/crates/id-cli/Cargo.toml
pkgs/id/crates/id-cli/src/aliases.rs
pkgs/id/crates/id-cli/src/app_manifest.rs
pkgs/id/crates/id-cli/src/chat_presence.rs
pkgs/id/crates/id-cli/src/cli/claim.rs
pkgs/id/crates/id-cli/src/cli/doc.rs
pkgs/id/crates/id-cli/src/cli/groups.rs
pkgs/id/crates/id-cli/src/cli/match_audit.rs
pkgs/id/crates/id-cli/src/cli/mod.rs
pkgs/id/crates/id-cli/src/cli/tag.rs
pkgs/id/crates/id-cli/src/cli/tests.rs
pkgs/id/crates/id-cli/src/cli/world.rs
pkgs/id/crates/id-cli/src/cli/world_limits_args_tests.rs
pkgs/id/crates/id-cli/src/cli/writer_sets.rs
pkgs/id/crates/id-cli/src/commands/claim.rs
pkgs/id/crates/id-cli/src/commands/client.rs
pkgs/id/crates/id-cli/src/commands/doc.rs
pkgs/id/crates/id-cli/src/commands/find.rs
pkgs/id/crates/id-cli/src/commands/get.rs
pkgs/id/crates/id-cli/src/commands/group.rs
pkgs/id/crates/id-cli/src/commands/id.rs
pkgs/id/crates/id-cli/src/commands/key.rs
pkgs/id/crates/id-cli/src/commands/list.rs
pkgs/id/crates/id-cli/src/commands/match_audit.rs
pkgs/id/crates/id-cli/src/commands/mod.rs
pkgs/id/crates/id-cli/src/commands/peers.rs
pkgs/id/crates/id-cli/src/commands/put.rs
pkgs/id/crates/id-cli/src/commands/repl.rs
pkgs/id/crates/id-cli/src/commands/serve.rs
pkgs/id/crates/id-cli/src/commands/tag.rs
pkgs/id/crates/id-cli/src/commands/text.rs
pkgs/id/crates/id-cli/src/commands/world.rs
pkgs/id/crates/id-cli/src/commands/writer_set.rs
pkgs/id/crates/id-cli/src/fileops_tests.rs
pkgs/id/crates/id-cli/src/helpers.rs
pkgs/id/crates/id-cli/src/lib.rs
pkgs/id/crates/id-cli/src/local.rs
pkgs/id/crates/id-cli/src/match_audit.rs
pkgs/id/crates/id-cli/src/meta_client.rs
pkgs/id/crates/id-cli/src/peer_announcement.rs
pkgs/id/crates/id-cli/src/protocol.rs
pkgs/id/crates/id-cli/src/publications.rs
pkgs/id/crates/id-cli/src/publications_runtime.rs
pkgs/id/crates/id-cli/src/repl/input.rs
pkgs/id/crates/id-cli/src/repl/mod.rs
pkgs/id/crates/id-cli/src/repl/runner.rs
pkgs/id/crates/id-cli/src/server_config/mod.rs
pkgs/id/crates/id-cli/src/server_config/parse.rs
pkgs/id/crates/id-cli/src/server_config/provision.rs
pkgs/id/crates/id-cli/tests/aliases.rs
pkgs/id/crates/id-core/src/lib.rs
pkgs/id/src/fileops.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.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Nix record, part 1 (nix build .#id-lib): the derivation compiles the whole workspace including the new id-cli crate; its check phase fails only on cli_tests::world_new_scaffold_compiles_with_pinned_roc (cli_integration 93 passed / 1 failed) — the pre-existing Roc-cache sandbox failure, identical to the pristine-main result proven for steps 6a, 6b and 7a. The id-web package build follows in a second comment.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Nix record, part 2 (nix build .#id-web, the gating web package): compiles the full workspace including id-cli and id-web, builds the web assets, and its check phase stops in id-core's lib tests at the same single pre-existing failure as step 6c's build: frames::tests::byte_refusal_does_not_spend_a_frame_token_or_increment_counters (#8354; 415 passed / 1 failed in that target). On pristine main this derivation still fails earlier, at compile time (the suite-B visibility errors 6c repaired). Parity holds at both entry points; default.nix consumes the same sub-flake packages.
|
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.
|