GeezerVison is showing github.com — pkgs/id crate split — step 7: extract id-cli; facade slimming · Issue #4411 · developing-today/code
pkgs/id crate split — step 7: extract id-cli; facade slimming #4411DescriptionCrate split step 7 of 7 — from the merged design
Design: doc/2026-11-01T16-53-00Z_design_id_crate_split/2026-11-01T16-53-00Z_design_id_crate_split.md (merged as PR #3824, 2026-11-01). Tracking issue: #3447. Program: #3195 (build-time review; Drew's priority order — shipped-binary runtime performance first, build time second).
Scope (design, verbatim intent)
Design step 7: id-cli, facade slimming. CLI/commands/REPL/server config extract; the facade becomes re-exports + main.rs. Decide which re-exports are the permanent public API and which were migration scaffolding; narrow integration tests to the crates they exercise where that is cheap.
Current state
Not started. Final step of the design sequence.
Dependency — do not start early
Step 6 (id-directory, id-web) merged. If this step's queue task is claimed before the dependency lands, park it with that reason.
Fuel canary (non-negotiable, every step): the FUEL_BUDGETS tables in pkgs/id/src/sandbox.rs must be byte-identical after this step; the fuel-tables diff is committed in the step PR. Any drift means behaviour changed and the step stops. Full verification protocol: design note §"Verification protocol".
Verification protocol (design, every step): one PR; main green throughout; the shipped binary is built by the same Nix derivations at every point (all three entry points: the sub-flake's id-web and id-lib, and default.nix); test count matches or exceeds the step-0 baseline with any delta named; cold check-build timing recorded on #3447 and #3195 with the laptop load noted. Heavy builds run under ~/tools/fleet-build-lock on the laptop (max 2 concurrent, CARGO_BUILD_JOBS = half the cores) — there is no load gate (Drew, 2026-11-02).
{
"pm_meta": 1,
"direct_parent": {
"repo": "developing-today/code",
"number": 3447,
"kind": "sub-issue"
},
"links": [],
"provenance": {
"actor": "dezren39",
"ingested_by": "metadata-sweeper",
"ingested_at": "2026-11-24T03:22:37.068Z"
},
"ascertained": {
"title": "pkgs/id crate split — step 7: extract id-cli; facade slimming",
"state": "CLOSED",
"labels": [
"kind/performance",
"task/triage",
"status/parked",
"source/creator",
"priority/high",
"queue/parked",
"app/id",
"work/assigned",
"effort/l",
"expedite",
"epic/id-program",
"epic/id-crate-split",
"design/id-crate-split"
],
"milestone": null,
"created_at": "2026-11-02T15:24:03Z",
"updated_at": "2026-11-13T08:33:35Z",
"closed_at": "2026-11-13T08:33:35Z"
}
}
Activityadded app/idPackage/app: id (pkgs/ or apps/ in this repo) effort/lLarge: multi-day or open-ended; expect staged check-ins and removed on Nov 2, 2026dezren39 commented on Nov 2, 2026 agent-note:v1
event: parked
task: 6303
worker: repo-worker-code (lane A)
note: Dependency gate checked fresh: Step 6 (#4409, extract id-directory then id-web) is still OPEN and its fix task 6295 is only QUEUED — no step-6 PR exists yet. This packet directs: if claimed before the dependency lands, park with that reason; do not start early and do not implement any other step. Parked 30m on that gate. Resume: #4409 closed / step-6 PR merged -> start Step 7 (extract id-cli, facade slimming) with the FUEL_BUDGETS byte-identical canary. Note the packet's build policy: heavy builds run under ~/tools/fleet-build-lock on the laptop; the old load gate is abolished — load is NOT a park reason for this task. developing-today commented on Nov 8, 2026 🤖 Agent note · parked
- Agent: queue worker (repo-worker-code), lane code-g
- Session / ID: task 6303
- Found via: queue claim (execution lane: direct)
- Task: step 7 of the issue pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447 crate split (extract id-cli, facade slimming) for issue pkgs/id crate split — step 7: extract id-cli; facade slimming #4411 — parked before starting, per this issue's own dependency rule
- Evidence: step 6 (issue pkgs/id crate split — step 6: extract id-directory, then id-web #4409, extract id-directory then id-web) is still OPEN, and on current origin/main (5ab0c06)
pkgs/id/crates/ contains only id-caps-era id-core and id-native-shell — no id-directory, no id-web. This issue's body states: "If this step's queue task is claimed before the dependency lands, park it with that reason."
- Expectation: task 6303 parked; resume only when step 6 (issue pkgs/id crate split — step 6: extract id-directory, then id-web #4409) has merged and
pkgs/id/crates/id-directory + id-web exist on main
- Links: issue pkgs/id crate split — step 7: extract id-cli; facade slimming #4411 · issue pkgs/id crate split — step 6: extract id-directory, then id-web #4409 · issue pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447
developing-today commented on Nov 8, 2026 🤖 Agent note · parked — dependency gate
developing-today commented on Nov 8, 2026 🤖 Agent note · parked (dependency gate)
dezren39 commented on Nov 8, 2026 agent-note:v1
task: 6303
lane: code-f
stage: verified / parked
Task 6303 (small_fix, issue #4411 — #3447 crate split step 7: extract id-cli) claimed by lane code-f, execution lane direct. Fresh revalidation 2026-11-08T22:36Z: issue #4411 OPEN, no hard-stop labels; gate issue #4409 (step 6) still OPEN with no step-6 PR on fresh open-PR search. Step 7 must not start before step 6 merges — parking with resume condition.
resume: issue #4409 closed/merged dezren39 commented on Nov 11, 2026 Two step-3 deferrals land in this step's scope (recorded on #4406, closed):
- meta_client composition — step 3b (PR pkgs/id crate split step 3b: extract id-sync (log_sync, protocol, fileops, dht, meta_client wire half) (#4406) #8730) moved meta_client's wire half into
id-sync (MetaRequester, request_over, read_capped_response, expect_ok, constants). What remains in the facade is the composition: the MetaClient enum, open/connect_node/close, and its MetaRequester impl, which are built from commands::client::create_local_client_endpoint, commands::serve::get_serve_info, LocalNode, and the facade-root keypair helpers. Extracting it needs the CLI's client construction, which is this step's layer.
- local.rs wire half —
local.rs is a monolith where LocalNode is interwoven with store/tags/protocol/fileops; the design's "local handlers' wire half" was not cleanly separable during step 3 without restructuring, so it stays with this step (local node is composition/runtime).
dezren39 commented on Nov 13, 2026 Step 7 complete — closing. The id split is finished: all seven steps landed.
Sub-steps
- 7a — downward prep (PR id: move seed_phrase, key_envelope and key-file consts to id-core (split step 7a, #4411) #9340, merged 4f29145):
seed_phrase and key_envelope moved to id-core, with the KEY_FILE / CLIENT_KEY_FILE / SERVE_LOCK consts; the facade re-exports the consts at its root. Also fixed here: the step-6c Nix gap where web/dist (gitignored build output) was absent from Nix source copies and broke the id-lib derivation — web/dist/.gitkeep is now tracked.
- 7b — id-cli extraction (PR id: extract id-cli crate; facade becomes re-exports + main.rs (split step 7b, #4411) #9362, merged 284a46b):
cli, commands, repl, server_config plus their support modules (local, meta_client, protocol, helpers, chat_presence, app_manifest, match_audit, peer_announcement, aliases, publications, publications_runtime) now form crates/id-cli; the facade's fileops test modules moved with the LocalNode harness; root helpers (parse_stdin_items, read_input, export_blob, to_absolute) moved into id-cli's lib.rs. tests/aliases.rs narrowed into id-cli's tests.
The facade now
Re-exports + main.rs, as the design specifies: every historical id:: path still resolves, including the root convenience layer. The permanent-API decision is recorded on PR #9362: the re-export surface is kept whole (the split's rule was no API redesign beyond named seams; consumers use it), and per-name retirement is deferred to a later API-tightening pass that needs no further crate moves.
Verification (final state)
Facade 973 passed / 0 failed; id-cli 677 passed / 0 failed (+7 aliases); workspace members 3,532 passed with only #8354 and the bun-dependent web/dist-manifest test failing (both pre-existing, named on the PRs); suite B (--features web,ssh) 988 passed / 1 failed (the pre-existing serve test, #9274). FUEL_BUDGETS byte-identical at every step. Nix: id-lib at parity with pristine main (Roc sandbox failure only); the id-web package compiles and tests, stopping only at #8354, where pristine main still fails at compile time.
Final crate list under pkgs/id/crates/: id-caps, id-cli, id-core, id-directory, id-events, id-groups, id-native-shell, id-store, id-sync, id-web, id-worlds — plus the facade package id itself (re-exports + main.rs + the retained feature modules).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|