Skip to content

Machine pool: onboard additional machines as fleet job nodes and redesign placement around a pool #2179

Todo

Description

@dezren39

What this is

Drew, 2026-10-29: the fleet's job execution runs on effectively one machine (the laptop, amd-6 — OpenCode server, queue workers, OpenClaw gateway). He wants (1) additional machines set up so they can be used for jobs the same way the laptop is used now, and (2) the fleet structure redesigned to connect to a pool of machines instead of a single host.

Work

  1. Machine onboarding standard. Define what a machine needs to join the pool: NixOS config from the flake, SSH access pattern, OpenCode server (attach pattern), queue worker capability, health reporting, and the secrets it may hold (by name only). A machine joins by applying the standard, not by hand-crafting.
  2. Bring the additional machines online. The hardware exists (the Threadripper fleet in the basement, Osseo WI) — the on-site evidence cluster (code#1095/task(cluster): verify NIC and switch-gear facts #1097/task(cluster): collect current BIOS/BMC versions and settings - core machines #1099/task(cluster): bring core machines to the golden baseline #1101) is the inventory input and is Drew's physical step. As machines are inventoried and installed, onboard them one by one against the standard. Relationship to the lab-cluster goal (Talos/Cozystack): that program stands up the Kubernetes cluster; THIS issue is about machines as fleet job-execution nodes. Where a machine serves both, the standard says so explicitly — do not let the two programs silently diverge.
  3. Redesign the fleet structure for a pool. Today: hardcoded laptop assumptions (the 12-session cap, SSH target, scheduler residency, watchdog locality). Target: a machine registry (identity, capabilities, capacity, health), placement that picks a machine per job/session (the route-pool idea, one level down: machine pools beside model pools), and schedulers (Muse cron, OpenChamber scheduled tasks OpenCode scheduled tasks: migrate the Muse→OpenCode cron wrappers into OpenChamber scheduled tasks (waves, monitoring gates) #2174, OpenClaw automations OpenClaw scheduled tasks: use the native automations scheduler for watchdog-class and laptop-local work #2177) placing work across the pool. Observability follows the same move: per-machine attribution joins the per-job/per-model attribution in External-system observability: unified PM + queue + quota attribution (webhooks, hot list, session IDs, projections) #2072 and the Supabase mirror.
  4. Failure shape. A machine leaving the pool (off, overloaded, network) drains cleanly: its sessions/jobs are visible as orphaned in one place, and no other machine's state is corrupted (the plaza-objects/shared-state lessons).

Acceptance

  • The onboarding standard written and applied to the first additional machine end-to-end: it runs a real queue job and an OpenCode session, reviewed like laptop work.
  • The registry exists and the watchdog covers every pooled machine.
  • A written placement design (which scheduler places what, on which signals) with the first placement rule live.

Related

Hardware evidence cluster code#1095/#1097/#1099/#1101 (Drew, on-site) · lab-cluster goal · #2072 observability · #2174 OpenChamber scheduled tasks · #2177 OpenClaw scheduled tasks · #2173 quota utilization (pool quotas are the other half of the throughput ceiling).

Activity

  1. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  2. added
    kind/infrastructure
    source/human
    status/needs-triage
    priority/high
    effort/l
    meta/enriched
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Intake review

  4. added
    queue/queued
    task/triage
    on Nov 3, 2026
  5. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    agent-note:v1
    state: reviewed (coverage loop-back)
    Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7308 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
    Found via: coverage loop-back 2026-11-03

  6. added
    work/assigned
    and removed
    status/needs-triage
    queue/queued
    on Nov 3, 2026
  7. 87 remaining items

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: amd-6 disk sweep 2026-11-23 — inventory, runaway check, trash staging (NO purge)
    by: agent felix lane (kind muse, Muse sandbox seat), on Drewry's 2026-11-23 ~02:50 CST approval
    at: 2026-11-23

    Free space timeline (df /home, 3,372G volume): 545G after the 2026-11-22 purge → 286G (07:24Z) → 263G (07:54Z) → 223G (08:24Z) → 206G at sweep start (02:50 CST, 94%) → 190G low (95%) → 228-231G at sweep end (93%) as several lane builds finished. Load15 peaked ~52 during the sweep, easing to ~23-41 by the end.

    RUNAWAY CHECK — no single runaway writer. No spinning log or looping exporter was found (no oversized log files at home level; the drill trash from #10300 is only 298M). The drain is accumulation from many concurrent lane builds, each creating its own per-worktree cargo target: 81 wt-* checkouts on the host, 9+ compiling simultaneously at peak (wt-lane-ky-12657, jx-2320, of-13083, kq-10192, lb-7914, og-10280, la-12922, ob-10256, lm-12873, oe-7787, or-10191 across snapshots). One abnormal outlier: wt-lane-ew-2321's pkgs/id/target/debug had grown to 107G (typical id target here: 2.5-22G) — built up on 2026-11-22 evening, idle since 2026-11-22 23:20 CST, no process, clean git tree, work committed on branch lane-ew/2321-gateway-poc.

    MOVED TO ~/trash-2026-11-23-disk-sweep/ (each item named individually, mv only — nothing deleted; space is freed only at purge):

    • wt-lane-ew-2321__pkgs-id-target — 107,114 MB
    • wt-lane-fz-10270__pkgs-id-target — 10,238 MB
    • wt-lane-hv-12230__pkgs-id-target — 4,936 MB
    • wt-lane-bs-12782__pkgs-fleet-target — 3,517 MB
    • wt-lane-hz-12890__pkgs-id-target — 2,654 MB
    • wt-lane-fx-7914__pkgs-id-target — 2,576 MB
    • wt-lane-cv-10222__pkgs-id-target — 1,513 MB
      Total staged: 132,548 MB (~129 GiB). All source checkouts were left in place, clean, with their branches/commits intact — only regenerable cargo target dirs were moved. wt-lane-ls-12884's 21,737 MB target was on the move list but vanished on its own mid-sweep (its lane/cleanup removed it; that plus finishing builds explains the 190G → 231G rebound).

    LEFT IN PLACE, sized, for the purge conversation:

    • ~/.cache — 68G total, of which ~/.cache/sccache is 27G (inventoried only; clearing needs its server stopped first and was a separate approval last time).
    • ~/trash-2026-11-23-drill10300 — 298M (Full stack restore never drilled #10300 drill scratch, already trashed).
    • wt-felix-10277/pkgs/id/target — 6,656 MB (Felix's own lane checkout, dirty tree — not touched).
    • ~/code-8584-turso-d1 — the LIVE Fleet unification slice 6: backups — Turso into D1, repos to Cloudflare plus mirror plus R2 #8584 checkout with a restore drill running from it — not touched or sized.
    • Active lane targets (ky-12657, jx-2320, of-13083, kq-10192, lb-7914, og-10280, la-12922, ob-10256, verify-12050) — in use, not touched.
    • Production pm-stack containers/volumes, ~/.config, the fleet queue store — not touched.

    The trash dir is NOT purged. Purge (132,548 MB staged + optionally the 27G sccache with its server stopped) awaits Drewry's separate word, same as 2026-11-22. Note the structural point: at 9+ concurrent id builds with per-worktree targets of 2.5-22G each, the fleet regenerates roughly 100-300G of target dirs per busy day on this host — sweeps treat the symptom; a shared target pool or per-lane target reaping at lane exit would treat the cause.

  9. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    The fleet-pool placement review against this issue (§3.5 step 4 of the #13752 design, worked as #14724) is recorded at #14724 (comment) — verdict not yet: placement stays on its current engine until the fleet-pool crate (#14721) is proven by its first adopters, a surface-health classifier exists to feed its state machine, or this issue's machine pool becomes real (second machine onboarded) — any one of those reopens the question. The unknown-load rule (#13611) is recorded as binding placement law in the meantime.

  10. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · census 2026-11-29 (lane CEN-C03)

    Blocker (named): the on-site evidence/inventory cluster (#1095/#1097/#1099/#1101) is Drew's physical step in Osseo — machines cannot be onboarded to the pool until they are inventoried and installed. The onboarding standard and pool redesign in the body are otherwise fully specified. Priority: high (unchanged).

  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full re-read (body, labels, all comments, native edges) in the CODE-6 recovery pass.

    STRENGTHS: complete record — the code fix merged via PR #2212; the remainder is named precisely.
    GAPS: carried a stale status/in-review alongside status/blocked (nothing is in review; the remainder is physical).
    FIXES I APPLIED: removed status/in-review; status/blocked stands.
    REMAINS: FOR DREWRY / hands — the physical inventory step in Osseo (part of the #12234 hands set; siblings #1095/#1097/#1099/#1101). No agent-actionable slice until then.

  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 census pass (group code-01409-03205): rechecked live state, body, labels and recent comments firsthand via fleet gh immediately before editing.

    Strengths: detailed body (2767 chars) with context a picker-up can start from; acceptance criteria present in the body; single taxonomy priority band (priority/high) — verified against live labels; kind label present (kind/infrastructure).

    Gaps found: none material.

    Actions taken this pass: labels: +[] -['status:in-review'].

    Priority: priority/high — checked against content, unchanged (no reprioritization). No closing keywords used; issue left open.

  13. added
    user/escalated
    and removed
    status/blocked
    on Nov 29, 2026
  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Decided: Treat the first additional-machine install as a physical hands gate, while continuing software placement work independently.
    Why: The onboarding standard §2 requires on-site inventory before install; issues #1095, #1097, #1099 and #1101 remain open. The placement framework §8 explicitly says the reader has no scheduler consumer yet, so software work remains actionable.
    Undo: A later PR can change the placement integration; the physical gate clears when the inventory/install prerequisites are completed and the machine passes §2.
    By: any-o

    The physical step is the only person-dependent blocker. The placement-reader follow-on is being continued independently.

  15. added
    queue/queued
    and removed
    queue/blocked
    on Nov 29, 2026
  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Progress: PR #16935 is merged at ddbc0cadc460d226c12e9e67bd5e9079fe1523b9. Added an executable --select mode to the placement reader. For a multi-record registry, --select --json --require queue_worker returns the first eligible machine under tier-then-id ordering; the test verifies healthy tier 1 is chosen before degraded tier 2. Before: --select was rejected (exit 2). After: the placement, watchdog, and registry-validator suites passed (67 tests) locally at 58183c30ffc. Fleet remote dispatch was attempted but the selected forks runner returned HTTP 403 for target-repo access; no remote pass is claimed.

    Next slice: wire the reader into a real scheduler/claim path; additional-machine onboarding still requires the Osseo physical inventory/install gate.

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · Felix lane 0640-DQ (2026-11-29): drawn by fleet agent next (priority rung; push/queue rungs down). Premise check: the remaining onboarding work (item 2) is gated on the on-site hardware inventory cluster in Osseo (code#1095/#1097/#1099/#1101), which the issue body itself names as Drew's physical step; the issue is owner-parked with user/escalated. Standing down without touching the park or the escalation — the next slice lands when the inventory evidence exists. No band change (priority/high is owner-set).

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

    effort/lepic/fleet-orchestrationkind/infrastructuremeta/enrichedpriority/highqueue/queuedsource/humantask/triageuser/escalated

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions