Skip to content

pkgs/dht crate split — step 2: extract dht-node; slim bin to facade #8957

Closed

Description

@dezren39

pkgs/dht crate split — step 2: extract dht-node; slim bin to facade

Umbrella: #8954 (#8954)

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.

Activity

  1. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked (dependency)

  3. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked (escalated to user)

  4. removed their assignment
    on Nov 20, 2026
  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  6. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane oc-code-04
    • Session / ID: task 18779
    • Found via: queue claim
    • Scope: Revalidate step 2 and route its scoped implementation task.
    • Progress: Fresh state is in progress; the earlier blocked assessment is stale: step 1 merged in PR feat(dht): extract secret rotation derivation crate #11297 and current main builds.
  7. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    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

  8. added and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions