fleet monitor: drives visible — a drive-status host-registry directive, probed and shown #80

Closed
opened 2026-08-25 03:38:02 +00:00 by ben · 2 comments
Owner

The Fleet tab's DRIVE column reads — for every host: DRIVE_STATUS_FILE is declared in a CONSUMER's identity layer (.sandcastle/swarm-identity.sh), but the fleet probe reads only the HOST's registry, which has no drive directive (documented v1 limitation in fleet-tui/README.md and the spec's screens section).

Wanted: a host that runs a rehearsal drive declares it in its own registry —

drive-status <owner/repo> <path-to-drive-status-file>

Two halves, one seam:

  1. onboarding/host-state-lib.sh accepts the new directive (today an unknown directive refuses to render, exit 2 — so this MUST land before any host writes the line), validated like repo/coverage (must name a registered repo); tests in the same commit per CLAUDE.md.
  2. fleet-tui/: registry.py parses it into drive_status_file; hostpoll.probe_args already passes --drive-status when that key exists (the wiring was left ready on purpose — see the plan's Task 4 note 'do not invent one'); snapshot.build already carries drive; the Fleet DRIVE column then shows the consumer's box_name/target per tui/data/drive_status.py's shape rules (box-vocabulary waiver #53 applies: read droplet_* spellings too). fleet-tui tests updated same commit.

Spec: docs/superpowers/specs/2026-08-24-fleet-monitor-design.md. Follow-up from the fleet-monitor arc (#64–#74).

The Fleet tab's DRIVE column reads `—` for every host: `DRIVE_STATUS_FILE` is declared in a CONSUMER's identity layer (`.sandcastle/swarm-identity.sh`), but the fleet probe reads only the HOST's registry, which has no drive directive (documented v1 limitation in `fleet-tui/README.md` and the spec's screens section). Wanted: a host that runs a rehearsal drive declares it in its own registry — drive-status <owner/repo> <path-to-drive-status-file> Two halves, one seam: 1. **`onboarding/host-state-lib.sh`** accepts the new directive (today an unknown directive refuses to render, exit 2 — so this MUST land before any host writes the line), validated like `repo`/`coverage` (must name a registered repo); tests in the same commit per CLAUDE.md. 2. **`fleet-tui/`**: `registry.py` parses it into `drive_status_file`; `hostpoll.probe_args` already passes `--drive-status` when that key exists (the wiring was left ready on purpose — see the plan's Task 4 note 'do not invent one'); `snapshot.build` already carries `drive`; the Fleet DRIVE column then shows the consumer's `box_name`/`target` per `tui/data/drive_status.py`'s shape rules (box-vocabulary waiver #53 applies: read `droplet_*` spellings too). fleet-tui tests updated same commit. Spec: docs/superpowers/specs/2026-08-24-fleet-monitor-design.md. Follow-up from the fleet-monitor arc (#64–#74).

swarm-claim host=matou-dev-server-01 run=839
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=839 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #80 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 80,
  "status": "success",
  "commits": [
    "a5770894218b3cbc0e3de395792b160f21386742"
  ],
  "changed_files": [
    "onboarding/host-state-lib.sh",
    "onboarding/tests/host-state-lib-test.sh",
    "fleet-tui/registry.py",
    "fleet-tui/app.py",
    "fleet-tui/tests/test_registry.py",
    "fleet-tui/tests/test_app.py",
    "fleet-tui/README.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash onboarding/tests/host-state-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/fleet-tui-test.sh",
      "exit_code": 0
    },
    {
      "command": "python3 -m py_compile fleet-tui/app.py fleet-tui/registry.py fleet-tui/tests/test_app.py fleet-tui/tests/test_registry.py",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do bash $t; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "host-state-lib.sh accepts drive-status directive, validated like repo/coverage (must name a registered repo)": "onboarding/host-state-lib.sh pass-2 drive-status case: validates registered slug (unregistered -> exit 2), rejects missing file and duplicate; commit a5770894218b3cbc0e3de395792b160f21386742",
    "tests in same commit (host-state-lib)": "onboarding/tests/host-state-lib-test.sh: accept/resolve/render-no-longer-exit-2 + unregistered/missing/duplicate refusals; suite 111 passed",
    "registry.py parses drive-status into drive_status_file": "fleet-tui/registry.py drive-status branch -> out['drive_status_file'] (first-declared wins); test_registry.py three cases; verified via standalone import harness",
    "hostpoll.probe_args passes --drive-status when key exists (pre-wired, unchanged)": "fleet-tui/hostpoll.py lines 51-52 unchanged — already reads reg['drive_status_file']",
    "snapshot.build carries drive (pre-wired, unchanged)": "fleet-tui/snapshot.py line 67 'drive': blob.get('drive') unchanged",
    "Fleet DRIVE column shows box_name/target per drive_status.py shape rules (droplet_ too)": "fleet-tui/app.py drive_cell() reads target + data.drive_status.box_name (box_/droplet_ #53); DRIVE column added to hosts-table; test_app.py drive_cell + host_row[7] cases",
    "fleet-tui tests updated same commit": "test_registry.py + test_app.py in commit a5770894218b3cbc0e3de395792b160f21386742"
  },
  "summary": "Added a drive-status host-registry directive and a Fleet DRIVE column so a host's live rehearsal drive shows in the fleet monitor.",
  "blockers": []
}
**close-report** for #80 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 80, "status": "success", "commits": [ "a5770894218b3cbc0e3de395792b160f21386742" ], "changed_files": [ "onboarding/host-state-lib.sh", "onboarding/tests/host-state-lib-test.sh", "fleet-tui/registry.py", "fleet-tui/app.py", "fleet-tui/tests/test_registry.py", "fleet-tui/tests/test_app.py", "fleet-tui/README.md", "STATUS.md" ], "tests": [ { "command": "bash onboarding/tests/host-state-lib-test.sh", "exit_code": 0 }, { "command": "bash tests/fleet-tui-test.sh", "exit_code": 0 }, { "command": "python3 -m py_compile fleet-tui/app.py fleet-tui/registry.py fleet-tui/tests/test_app.py fleet-tui/tests/test_registry.py", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do bash $t; done", "exit_code": 0 } ], "criteria": { "host-state-lib.sh accepts drive-status directive, validated like repo/coverage (must name a registered repo)": "onboarding/host-state-lib.sh pass-2 drive-status case: validates registered slug (unregistered -> exit 2), rejects missing file and duplicate; commit a5770894218b3cbc0e3de395792b160f21386742", "tests in same commit (host-state-lib)": "onboarding/tests/host-state-lib-test.sh: accept/resolve/render-no-longer-exit-2 + unregistered/missing/duplicate refusals; suite 111 passed", "registry.py parses drive-status into drive_status_file": "fleet-tui/registry.py drive-status branch -> out['drive_status_file'] (first-declared wins); test_registry.py three cases; verified via standalone import harness", "hostpoll.probe_args passes --drive-status when key exists (pre-wired, unchanged)": "fleet-tui/hostpoll.py lines 51-52 unchanged — already reads reg['drive_status_file']", "snapshot.build carries drive (pre-wired, unchanged)": "fleet-tui/snapshot.py line 67 'drive': blob.get('drive') unchanged", "Fleet DRIVE column shows box_name/target per drive_status.py shape rules (droplet_ too)": "fleet-tui/app.py drive_cell() reads target + data.drive_status.box_name (box_/droplet_ #53); DRIVE column added to hosts-table; test_app.py drive_cell + host_row[7] cases", "fleet-tui tests updated same commit": "test_registry.py + test_app.py in commit a5770894218b3cbc0e3de395792b160f21386742" }, "summary": "Added a drive-status host-registry directive and a Fleet DRIVE column so a host's live rehearsal drive shows in the fleet monitor.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#80
No description provided.