You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pkgs/dht crate split — step 2: extract dht-node; slim bin to facade #8957
Template: doc/2026-11-01T16-53-00Z_design_id_crate_split/2026-11-01T16-53-00Z_design_id_crate_split.md (design of record for the pkgs/id split, from #3195). Worked example: pkgs/id umbrella #3447, step issues #4403-#4411. Program: fleet-wide crate-splitting program (Drew's order, 2026-11-11); this issue set comes from the Part 2 inventory, 2026-11-12.
Scope
Move node setup (endpoint/gossip/router construction, topic id, record publisher wiring) into member crate dht-node, depending on dht-rotation. src/main.rs in the facade crate keeps only process wiring: tracing init, spawning the receiver event-print loop, and the stdin broadcast loop. End state: the three-crate map on the umbrella is fully landed and no logic remains in the bin beyond wiring.
Acceptance
Acceptance discipline (from the id template; applies to every step):
One PR per step; no step bundles another step's extraction.
Full test suite green on that PR. Baseline is recorded in step 0 (this project currently has 0 tests, so the gate is: cargo test passes, the workspace builds clean, and any tests added by a step pass).
Behavior-preserving: no functional changes, no dependency version bumps, no renames beyond the crate-path moves in scope.
Facade re-exports where consumers exist: the facade crate keeps the pre-split public paths working for the whole migration, and a step is complete only when the moved code exists solely in its new crate (the old location holds at most the re-export). The 2026-11-12 inventory found no external/Nix consumers of this project (grep of *.nix outside the project dir: no hits); the known consumer is the project's own binary/lib entry points.
Never leave main red: a step that cannot go green stops and reports here instead of merging partial state.
Decided: Keep step 2 actionable and proceed with the scoped extraction; the prior rewrite-or-retire blocker is stale. Why: Current main contains the step-1 dht-rotation crate (merged by #11297), pkgs/dht passes cargo check --workspace, and src/main.rs still contains the node setup specified by #8957. Undo: If fresh implementation work shows the current node setup cannot be extracted while preserving the issue’s acceptance criteria, revise #8957 and route the smaller real prerequisite. By: repo-worker-code, lane oc-code-04
🤖 Agent note · triaged
Agent: queue worker (repo-worker-code), lane oc-code-04
Evidence:cargo check --manifest-path pkgs/dht/Cargo.toml --workspace passes on current main; setup targeted by the issue remains in pkgs/dht/src/main.rs.
Follow-up: implementation task 20989 queued in repo-health-code-pilot.
Labels: stale blocked/escalated state cleared; follow-up is queued.
Activity
developing-today commentedon Nov 12, 2026
CODE-2717
dezren39 commentedon Nov 17, 2026
🤖 Agent note · blocked (dependency)
dezren39 commentedon Nov 18, 2026
🤖 Agent note · blocked (escalated to user)
pkgs/dht/src/main.rsis pseudo-code that has never compiled, so there is no working program to split. The umbrella issue says rewrite-or-retire requires Drew’s decision; step issues pkgs/dht crate split — step 1: extract dht-rotation (leaf) #8956/pkgs/dht crate split — step 2: extract dht-node; slim bin to facade #8957 remain open pending it.dht-rewrite-or-retire-8954; do not start the extraction until it lands.dezren39 commentedon Nov 22, 2026
🤖 Agent note · picked up
mainbuilds.dezren39 commentedon Nov 22, 2026
Decided: Keep step 2 actionable and proceed with the scoped extraction; the prior rewrite-or-retire blocker is stale.
Why: Current
maincontains the step-1dht-rotationcrate (merged by #11297),pkgs/dhtpassescargo check --workspace, andsrc/main.rsstill contains the node setup specified by #8957.Undo: If fresh implementation work shows the current node setup cannot be extracted while preserving the issue’s acceptance criteria, revise #8957 and route the smaller real prerequisite.
By: repo-worker-code, lane oc-code-04
🤖 Agent note · triaged
cargo check --manifest-path pkgs/dht/Cargo.toml --workspacepasses on current main; setup targeted by the issue remains inpkgs/dht/src/main.rs.