Skip to content

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

Open

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/infrastructureInfrastructure / host-portability work
    source/humanFiled directly by a human
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Intake review

  4. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    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/assignedQueue worker lifecycle state
    and removed on Nov 3, 2026
  7. 74 remaining items

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: watchdog seat run wired; registry row in PR #12769
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-22

    The §1.5 watchdog's recurring seat run — the piece PR #12758 deliberately left unwired — is now live:

    • Muse cron felix-fleet-machine-watchdog on this seat (agent felix), interval@15m, enabled 2026-11-22, owner goal:code-repo-issue-resolution, 900s timeout. First scheduled fire ~20:10 CST.
    • Each run works from a dedicated machine-owned checkout (~/workspace/goals/code-repo-issue-resolution/hidden_files/watchdog-checkout), resets it to origin/main, loads the tailnet proxy env, and runs python3 scripts/fleet-machine-watchdog.py doc/fleet-machine-registry.yaml.
    • Landing mode (the design point, settled while wiring): the run commits the refreshed health block DIRECTLY to main — the standing exception for the watchdog-written health cache (machine registry §3: health is a watchdog-written cache and the script is its only writer). The run verifies before committing that the diff touches nothing outside the amd-6 record's health block; anything else in the diff stops the run and gets reported. Every other registry field and every other file still lands via PR. The run messages Drewry only on a derived-status change or a stop/report condition.
    • Registry row: PR doc(registry): register felix-fleet-machine-watchdog cron (#2179) #12769 adds the Surface 1 row + the Verification amendment note recording the landing mode, per the same-pass rule — open, unmerged, awaiting Felix's review in the main seat.

    Remainder effect: the "recurring 15-min seat run not wired" item from the watchdog landing is discharged once PR #12769 merges. Still open on #2179: the placement-framework v1.1 machine dimension, and Drewry's on-site Osseo pass (#1095/#1097/#1099/#1101 — no machine may be recorded active before step 5 passes).

    One defect found while registering, recorded here rather than fixed in PR #12769 (scope): Felix's other two seat crons — felix-seat-keeper (15m) and felix-lane-check (hourly) — have no Surface 1 rows in doc/fleet-schedule-registry.md either. Same class as the missing triage-step row recorded in the #2138 amendment: a defect for the next full Surface 1 recount, which owns adding them from live surface reads.

  9. added a commit that references this issue on Nov 23, 2026
  10. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: disk sweep PURGED on Drewry's direction + sccache cleared — amd-6 back above the disk threshold
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-22

    Drewry approved the purge in chat (2026-11-22 20:28 CST, choosing "purge the trash and clear sccache too"). Executed on amd-6: all 21 named items in ~/trash-2026-11-22-disk-sweep deleted individually (log ~/purge-2026-11-22.log on the laptop, 21/21 "purged" lines), the trash directory removed, and the sccache cache (34G) cleared with its server stopped first.

    Result: /home volume went from 169G free / 95% used (pre-purge, live builds had eaten a few G more since the sweep) to 545G free / 83% used. That is back above this registry's disk_headroom threshold (fails <10% free; now ~16.5% free), so the watchdog's next run should re-derive amd-6 as healthy — the status change will land in this registry via the watchdog's own commit. The sweep's skipped set (uncommitted checkouts, the unmerged wt-gate-run source, the code-frozen rescue copies, actively-building trees) was not touched by the purge either.

  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  12. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: placement framework v1.1 machine dimension landed as PR #12815 (unmerged, Felix reviews)
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-22

    Landed — PR #12815: the v1.1 machine dimension, the remainder the S1 and watchdog records named next after the registry artifact (#12717) and the watchdog (#12758, seat run wired since).

    • scripts/fleet-machine-placement.py — the placement reader: per registry record it derives state gate (only active may receive work, §2/§4) → health view via the watchdog's own placement_view, imported not reimplemented (§1.5: stale >2 cadences or never-seen reads as left) → tier (healthy 1, degraded 2) → declared-capability requirements (§1.4). Registry validated before any view is derived; strict Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352 contract.
    • Framework doc §8 + placement-policy.yaml v1.1: rules M1–M5 written into the task-placement framework (its §6 deferred them to this), placement record gains machine/machine_view.
    • Two v1.1 decisions recorded in §8 for the review round: degraded is eligible at tier 2 (a fresh earned named failure is not silence; the 2026-11-22 disk episode ran that way) and unknown is not eligible (eligibility follows earned states only — deliberately unlike quota rule B4; the standard governs machines).
    • Evidence: fail-before on pristine main (module absent, suite cannot load); pass-after placement 21/21 + watchdog 13/13 + validator 18/18. Live readback against main's registry (watchdog commit 6da9528, health 2026-11-23T03:10:29Z): amd-6 derives tier 2 — degraded on load_headroom (load15 31.06 = 1.94/core under the 4–8-lane scale-up), disk ok post-purge, placeable: amd-6; the same record at last_seen+31 min derives left, placeable: (none).

    Acceptance status: standard ✅; registry exists ✅; watchdog covers every pooled machine ✅ (pool of one; the 15-min seat run is live); placement design + first rule live ✅ with this PR (the reader + M1–M5; no scheduler consumes the reader yet — first-consumer wiring is the follow-on). Remaining on #2179: the first additional machine end-to-end (Drewry's on-site Osseo pass #1095/#1097/#1099/#1101, then §2 steps 2–6 for the first inventoried box, incl. its first real queue job) — no record may say active before §2 step 5 passes.

  13. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Released by felix (outcome: done). Placement framework v1.1 machine dimension landed as PR #12815 (unmerged, Felix reviews): scripts/fleet-machine-placement.py (state gate + watchdog placement_view imported, tiers, capability requirements; 21 tests) + framework §8 / placement-policy v1.1 (rules M1-M5). Live readback: amd-6 tier 2 (degraded on load), staleness demotion verified at the §1.5 boundary. Remaining on #2179: Osseo physical pass + first additional machine end-to-end.

  14. added a commit that references this issue on Nov 23, 2026
  15. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: PR #12815 MERGED — placement framework v1.1 (machine dimension) is on main
    by: agent felix (kind muse, Muse sandbox seat), reviewing and merging the lane's PR
    at: 2026-11-22

    Merged 2026-11-23T03:13:30Z. Felix's review: the reader imports the watchdog's placement_view rather than reimplementing it (the staleness semantics live in exactly one place); the two judgment calls are accepted as reasoned in §8 — degraded is eligible at tier 2 (a fresh earned failure is information, and a one-node pool that stops on any failed axis stops fleet-wide) and unknown is never eligible (eligibility follows earned states only). Felix independently re-ran the three suites (placement + watchdog + registry validator: all OK) and re-derived amd-6 from the live registry: tier 2, placeable, degraded on load_headroom alone.

    #2179's remainder is now only the physical half: Drewry's Osseo pass (#1095/#1097/#1099/#1101), then §2 steps 2–6 for the first inventoried machine including its first real queue job; plus the named follow-on of wiring the reader's first scheduler consumer.

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/lLarge: multi-day or open-ended; expect staged check-insepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivequeue/blockedQueue or user escalation statesource/humanFiled directly by a humanstatus/blockedQueue or user escalation statestatus:in-reviewtask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions