Repository navigation
Description
Crate split step 5 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 5: id-worlds. The big one, done when the verify loop is fast and every crate below is stable. shell_contract lands here; directory's world references (seam 10) are resolved as the boundary is drawn.
Current state
Not started. Supersedes blocked queue task 5855 ('extract id-world', pre-design phase plan, blocked packet_defect 2026-11-01): that packet's narrower world-cluster cut is an earlier draft of this step.
Dependency — do not start early
Step 4 (id-groups) 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).
Activity
dezren39 commentedon Nov 2, 2026
agent-note:v1
event: parked
task: 6302
worker: repo-worker-code (lane A)
note: Dependency gate checked fresh: Step 4 (#4407, extract id-groups) is still OPEN and has not landed — pkgs/id/crates/ on current main contains only id-core (Step 1), so Steps 2-4 are all still ahead of this one. This packet directs: if claimed before the dependency lands, park with that reason; do not start early. Parked 30m. The #3447 sequence is currently queued out of order (Steps 5/6/7 were claimed first this shift and are parked behind their gates: tasks 6302, 6295, 6303) — the chain unblocks from the earliest unlanded step. Resume: #4407 closed / step-4 PR merged -> start Step 5 (extract id-worlds) with the FUEL_BUDGETS canary; builds under ~/tools/fleet-build-lock per the packet build policy.
dezren39 commentedon Nov 2, 2026
🤖 Agent note · parked
325 remaining items
dezren39 commentedon Nov 8, 2026
🤖 Agent note · parked
queue/claimed,status/in-progress,work/assigned). A PR search for 4407 returns only unrelated merged PR fix(lab-ops-hub): refuse trailing-dot spellings of blocked crawl hosts #467 — no step-4 PR exists yet. Implementing step 5 (extract id-worlds) before step 4 lands would build on a moving base.verifiedcheckpoint.developing-today commentedon Nov 8, 2026
🤖 Agent note · parked
developing-today commentedon Nov 8, 2026
agent-note:v1 agent=repo-worker-code state=parked task=6302 lane=code-f at=2026-11-08T05:13:00Z
🤖 Agent note · parked (dependency gate) — MID-SHIFT FALLBACK
claimedcheckpoint at 2026-11-08T05:11:29Z succeeded, thencheckpointandparkboth failed with "task 6302 is not claimed by repo-worker-code" (the same evaporation pattern as task 12325 earlier this shift). Per runbook §0b this task finishes in GitHub fallback mode: fallback claim byrepo-worker-code-freplaces the broker claim for coordination.pkgs/id/crates/on current main (688f44dbe0) contains onlyid-coreandid-native-shell— no id-groups. Gate unchanged from the 2026-11-02 park series on this task.FUEL_BUDGETScanary byte-identical. No worktree or code changes were made.dezren39 commentedon Nov 8, 2026
Picked up by
repo-worker-code-f— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilerepo-worker-code-fposts progress markers; after 30 minutes of silence any other worker may pick this up.)dezren39 commentedon Nov 8, 2026
Progress from
repo-worker-code-f: parked (dependency gate): step 5 waits on step 4 issue #4407 landing (id-groups on main); steps 2 #4405 / 3 #4406 also open; resume when #4407 merges — fallback park, claim left to go stale per runbook 0a park ruleMerge pull request #8762 from developing-today/crate-split-step5a-id-…
Merge pull request #8768 from developing-today/crate-split-step5b-id-…
Merge pull request #8772 from developing-today/crate-split-step5c-id-…
dezren39 commentedon Nov 11, 2026
Step 5 landed — closing.
PRs (each merged with a merge commit before the next started):
509dbec4f8c7d9538891ec35c0d8bbec915f7823: createdpkgs/id/crates/id-worlds; moved the leaves (world_cache,world_line,world_terminal), seam 6's bridge and theFoldedWorldsadapter.eee2d67a1b2c85a84921f3fc36a5467831a764fa: the runtime core —world/,world_session/,sandbox(+ wasmtime insideid-worlds),world_compile,world_native,world_fixture,world_net,world_hub,world_store,world_records,shell_contract,session_host, and the directory cluster (below).b9f7de9a448846416419353d6a8410874edf9373: the remainder —world_dev,world_doctor,world_ssh(+ russh insideid-worlds),world_replication_net. After 5c, facadesrc/holds no world-family files at all.What is in
id-worlds(deps per the design map: id-core, id-caps, id-store, id-events, id-groups, id-sync): the whole world family from the step brief —world/(mod, core, actor, replica, replication + receiver, handle, clock, hotness, metrics, signed, upgrade, util, tests),world_session/,world_ssh,sandbox,world_net,world_store,world_compile,world_fixture,world_hub,world_native,world_cache,world_dev,world_doctor,world_line,world_records,world_replication_net,world_terminal,shell_contract— ≈34k lines of family code plus the directory cluster andsession_host. The facade re-exports every historicalid::path; feature mapping is preserved (worldpullsid-worlds;sandbox= wasmtime insideid-worldsviaid-worlds/sandbox;ssh= russh inside viaid-worlds/ssh; the NixbuildFeatureslists did not change shape).Seam resolutions:
src/groups/worlds.rsmoved intoid-worldsasid_worlds::groups::worlds(5a) — the consumer side, over agroupsmodule re-exporting theid-eventsmodel, mirroringid_groups::groups. The facadegroupsshim re-exports it.id-worlds): step 4's parked facade adapter landed inid_worlds::blob_gate(5a) with its 4 folded tests. It foldsgroups::worlds::Worlds(now inid-worlds), soid-groups— which is belowid-worlds— cannot hold it; the facadeblob_gate.rsis now a pure re-export shim overid_groups+id_worlds. No facade adapter remains for blob_gate.local,server_config,cli/commands/replorwebreferences anywhere in the family). The coupling is structural, not incidental:WorldCoreholds theDirectory(world/core.rs:208), the actor executesdirectory_view::run, the session service API namesCaller/DirectoryAction/DirectoryOutcome,world_storepersists the directory beside the journal, andworld_session/types.rsholdsArc<dyn MailSink>. The sanctioned alternatives did not fit: a trait inversion would re-typeWorldCore's publicdirectory()/directory_mut()accessors (used by facadeserver_configandweb) — a public-API redesign, which the step's stop rule reserves — and leaving "one file" in the facade would have meant leaving the runtime core itself. So the cluster (directory,directory_auth,directory_view,directory_mail, ~9,600 lines) moved intoid-worldsas the consumer side (the seam-6 pattern), in 5b. No API or behaviour changed; the facade re-exportsid::directory*unchanged. What remains for step 6 (pkgs/id crate split — step 6: extract id-directory, then id-web #4409), unchanged in kind:id-directorymust still invert or re-homeWorldCore's hold on the directory to leaveid-worlds— the same work it faced from the facade.directory_logdid not move (nothing in the family names it; it is step 6's), and directory's own former upward refs (world::{WorldScopes, hex_encode}) are intra-crate now and become step 6's to cut downward then. No new directory→world couplings were added.session_host: moved intoid-worlds(5b) — necessarily: it implementsid_sync::host::SessionHostforWorldHubandid_sync::artifact::ArtifactSinkforDirectory, and once those types live inid-worldsthe orphan rule forbids the impls remaining in the facade. This removes the step-3 facade adapter rather than leaving one.test_forgeries(94-line signature-fixture leaf): moved toid-coreunder#[cfg(any(test, feature = "test-utils"))]— one canonical home for the directory tests that moved and the facade tests that stayed; no duplication.pub(crate)→pub):world_terminal::{probe_local_tty, ProbeOutcome},Directory::apply,directory::hex_to_array,WorldHandle::replication_feed,WorldProtocol::abuse_handle,world::EmptyWorldProgram,world_session::MAX_ADMIN_TOKEN_BYTES. Assetinclude_*/CARGO_MANIFEST_DIRpaths in moved files gained the two directory levels descended. The facade keepsrusshas a dev-only dependency (itscli_integrationtests are an SSH client) and lostwasmtime/russh/vt100from its library graph.Verification (laptop, fresh
CARGO_TARGET_DIRs throughout — the cargo-target-broker is broken fleet-wide; counting runs = full workspacecargo test --no-fail-fastwithtests/probe_attestation_sign.rsset aside exactly as step 4 enumerated around the pre-existing f998d27 breakage, plus the feature-gateddht_testnet):850f2fce31): 73 suites, 3,719 passed / 1 failed / 33 ignored; the 1 failure is the knownframes::tests::byte_refusal_…(pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620).test_forgeries). 5c: 75 suites, 3,735 / 1 / 33 — every delta vs 5b is main-side test growth in the window (id-core +9 from fix(id): fuzz numeric invariants compare through f64 — integers above 2^53 lose precision and violated invariants can pass (PR #8635 review finding) #8752, id-events +2, store_traits +1, world_dev +4 on main) plus the move redistribution (facade −43, id-worlds +47); the failure is the same single frames test in every run.print_fuel_baselineoutput byte-identical — 72 lines, sha25659cfad49c7553c8309a8b40b23405321399bb76bb741acaeb90f78570f45c32cbefore and after each PR; (2) theFUEL_BUDGETStable literal extracted fromsandbox.rswherever it lives, diffed against unmodified main's — byte-identical each PR (the file's own sha256 changed in 5b to4c3b8edb…from include-path edits, expected and not a canary failure); (3) the checked-in fuel tests pass (in the facade suite for 5a, theid-worldssuite for 5b/5c).nix build ./pkgs/id#id-libon each PR branch — build phase passed; check phase failed only on the pre-existingprobe_attestation_signE0061 ×2 that unmodified main has — parity each time, stated on each PR.id-libshape (--no-default-features --features world) fails identically on main and every branch (2 errors,src/boards.rs:1998,2000). Named delta from 5b on: plain--no-default-features, which main fails with 28 errors (the facade's ungatedworld_compile/world_hubreferenced cfg-gated siblings), now passes — the moved modules' cfg blocks are crate-local; no shipped derivation uses that shape (id-lib= no-default +sandbox,world;id-webaddsweb,ssh), and the default build is unchanged.ls pkgs/id/src | grep worldis empty,src/world/,src/world_session/,src/shell_contract/,src/groups/worlds.rsare gone, and no world/sandbox/directory implementation remains in facadesrc/— only re-export shims.No behaviour changes, no fuel number moved, no test deleted or weakened in any of the three PRs.
🤖 Agent note — crate-split step 5 close-out, issue #4408.