GeezerVison is showing github.com — pkgs/id crate split — step 3: extract id-sync (log_sync + wire layer; artifact lands here) · Issue #4406 · developing-today/code
pkgs/id crate split — step 3: extract id-sync (log_sync + wire layer; artifact lands here) #4406DescriptionCrate split step 3 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 3: id-sync. log_sync and the wire layer move; artifact lands here with its availability trait (seam 9).
Current state
Not started. (The pre-design phase plan's 'Phase 3 id-sync' was never enqueued; queue task 5855 was blocked as packet_defect against the merged design and is superseded by this step's issue/task.)
Dependency — do not start early
Step 2 (id-store, id-events) 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).
Acceptance criteria
- The extraction lands as its own PR off current main, sequenced after its predecessor step (see Related).
- The id facade re-exports the extracted crate so existing call sites compile unchanged in behavior.
- CI green on the PR (workspace build + the id test suites), including the F11.10 production-line guard.
- This issue closes with the merge; the next step's issue is unblocked in sequence.
{
"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:21.176Z"
},
"ascertained": {
"title": "pkgs/id crate split — step 3: extract id-sync (log_sync + wire layer; artifact lands here)",
"state": "CLOSED",
"labels": [
"kind/performance",
"task/triage",
"status/parked",
"source/creator",
"priority/high",
"queue/parked",
"app/id",
"work/assigned",
"effort/l",
"meta/enriched",
"expedite",
"epic/id-program",
"epic/id-crate-split",
"design/id-crate-split"
],
"milestone": null,
"created_at": "2026-11-02T15:23:03Z",
"updated_at": "2026-11-12T18:43:50Z",
"closed_at": "2026-11-11T17:08:18Z"
}
}
Activitydezren39 commented on Nov 2, 2026 dezren39 commented on Nov 2, 2026 🤖 Agent note · parked — predecessor gate unmet
dezren39 commented on Nov 2, 2026
Queue task 6300 verified-fresh and parking: step-2 dependency issue #4405 still OPEN (labels status/parked queue/parked), no open PRs for id-store/id-sync/id-events, and origin/main has only pkgs/id/crates/id-core — id-store has not landed. Step-3 extraction cannot proceed until step 2 merges. Resume when #4405 is closed/merged; re-check crates layout then. No worktree created, no files changed. dezren39 commented on Nov 2, 2026
agent-note:v1 — task 6300 handed off: execution-lane assignment returned opencode, so this lane did not work the task or create a worktree. Checkpoint stage handed_off recorded; the opencode claimant launches the bound session. Carried gate context from task progress: step-3 depends on step-2 #4405 (id-store), which was still open with no id-store on origin/main at last check — the bound session should revalidate the dependency chain fresh. dezren39 commented on Nov 2, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 11, 2026 Step 3 is complete — id-sync exists and holds the full sync/wire family. Closing this issue: the core scope (log_sync + wire layer + artifact) landed, with two deferrals to step 7 noted below (both pre-agreed in the design discussion on this issue).
PRs (each merged with a merge commit, in order)
- Step 3a — PR pkgs/id crate split step 3a: abuse + frames + block-list vocabulary to id-core (#4406) #8703 (merge
40043bc9): seam 8 resolved by moving abuse + frames down into id-core as leaves. abuse's only non-test above-kernel reference was event_store::BlockList, which is a re-export of id-store's type; the BlockKind/BlockList vocabulary now lives in id_core::block_list, the Block row stays in id-store, and id-store re-exports the vocabulary at the historical path. This also moves the pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620 frames test's future fix into id-core.
- Step 3b — PR pkgs/id crate split step 3b: extract id-sync (log_sync, protocol, fileops, dht, meta_client wire half) (#4406) #8730 (merge
07818174): id-sync created with log_sync, protocol, fileops, dht, and the meta_client wire half (MetaRequester, request_over, capped responses). META_ALPN/match_kind moved into id_sync::protocol. log_sync was genericized over the store backend (SyncProtocol<S>, S: EventStoreBackend; the range arm additionally requires SharedEventStore<S>: RangeStore, implemented for the concrete store in id-events) — the facade instantiates the concrete store through its existing alias, unchanged.
- Step 3c — PR pkgs/id crate split step 3c: envelope + envelope_net + envelope_outbox + artifact to id-sync (#4406) #8747 (merge
05354175): envelope (extracted from directory.rs; acceptance policy and Received stayed with the directory), envelope_net, envelope_outbox, and artifact moved into id-sync.
Seam 9 (artifact), as built
id_sync::host::SessionHost — three methods only (receive_envelope, receive_artifact, read_artifacts), each returning Result<Availability<T>> where Busy is the hub-lease failure and errors keep id_core::Refusal in their chain, so wire refused/retry behaviour is unchanged. The three protocols are generic over it; the facade implements it for WorldHub (src/session_host.rs). The direct-Directory calls inverted behind id_sync::artifact::ArtifactSink (receive_artifact, artifact_head_seq), implemented for Directory with two forwarders. Nothing in artifact turned out to need id-groups.
Deferrals (to step 7)
- meta_client composition: the
MetaClient enum + open/connect_node/close and its MetaRequester impl are built from the CLI layer (commands::client/commands::serve) and LocalNode, which live above id-sync. The wire half moved in 3b; the composition stays in the facade until the CLI layer is extracted. Also noted on pkgs/id crate split — step 7: extract id-cli; facade slimming #4411.
- local.rs wire half: local is a 223-line monolith with
LocalNode interwoven through store/tags/protocol/fileops; not cleanly separable without restructuring, so the split stays with step 7 (composition/runtime), as the design allows.
Verification (per PR, same protocol each time)
- Baseline on unmodified main @ 33bad1e, full workspace
cargo test --no-fail-fast: 3,693 passed / 1 failed / 33 ignored; sole failure frames::tests::byte_refusal_does_not_spend_a_frame_token_or_increment_counters (pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620, pre-existing, now living in id-core's suite).
- 3a: exact parity (3,689/1/57 by that run's aggregation; same sole failure). 3b: parity after fixing the moved doctests to
id_sync:: paths (id-sync suite 65 lib + 5 doc green). 3c: 3,709 passed / 1 failed / 33 ignored — same sole failure; deltas vs baseline are tests added by unrelated main commits (name-level diffs checked per PR; moved-module test counts conserved exactly — e.g. 3c: artifact 40, envelope_net 7, envelope_outbox 21, directory 70, before and after).
- Fuel canary per PR:
sha256sum pkgs/id/src/sandbox.rs unchanged (db88ec8d52e961702353c97a407b77badadef1bd7e0a610a6075267e175d80b5); print_fuel_baseline byte-identical (72 lines, sha256 59cfad49c7553c8309a8b40b23405321399bb76bb741acaeb90f78570f45c32c).
- Nix per PR (
nix build ./pkgs/id#id-lib, no overrides): the baseline check phase stops at the pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620 failure. From 3a on, the check phase passes the lib suites and fails only at cli_tests::world_new_scaffold_compiles_with_pinned_roc — "Roc cache writes are failing / AccessDenied" inside the Nix sandbox. That is a latent sandbox-environment failure unmasked by the pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620 relocation (the test passes outside the sandbox; its inputs are untouched by all three PRs) and is worth a follow-up issue of its own.
- Environment note:
cargo-target-broker exec is currently broken fleet-wide (crashes with sqlite3.IntegrityError: UNIQUE constraint failed: dirs.path; all pooled dirs for the fingerprint are leased by other fleet work), so all local runs used fresh CARGO_TARGET_DIRs.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|