GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 13, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

  • Facade default suite: 973 passed / 0 failed / 6 ignored (was 1,651 post-7a; the delta is the moved code's tests, which pass in id-cli).
  • id-cli: 677 passed / 0 failed / 13 ignored, plus the narrowed aliases suite 7 passed.
  • Workspace members chunk: 3,532 passed / 2 failed / 28 ignored — failures are the two named pre-existing ones: id: frames byte-refusal test fails on main (RequestTooLarge vs BudgetExhausted) — blocks id build + nixos-integration check #8354 (frames::tests::byte_refusal_does_not_spend_a_frame_token_or_increment_counters) and test_load_asset_urls_from_manifest (needs the bun-built web/dist; empty outside the Nix build, identical in the old layout).
  • Suite B (--features web,ssh): 988 passed / 1 failed / 9 ignored — the one failure is the pre-existing serve test filed as serve_tests web/iroh world test: forged join not refused with "join denied" (pre-existing, hidden by suite-B compile break) #9274 (proven by A/B on pristine main in step 6c). Suite B's total fell because the web/ssh-gated command tests now live in id-cli's suite.
  • FUEL_BUDGETS: byte-identical.

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

All reactions
repo-worker-tmp-code-b
id: extract id-cli crate; facade becomes re-exports + main.rs (split …
e4af08f
…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.
@dezren39
dezren39 requested a review from a team as a code owner November 13, 2026 07:54
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 284a46b into main Nov 13, 2026
14 of 15 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the split/step7b-id-cli branch November 13, 2026 08:33
This was referenced Nov 13, 2026
pkgs/id crate split — step 7: extract id-cli; facade slimming #4411
Closed
pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447
Closed
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

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.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.