fleet monitor T1: scaffold fleet-tui/ + vendor-exclude + fleet.conf parser #64

Closed
opened 2026-08-24 18:35:16 +00:00 by ben · 2 comments
Owner

Implement Task 1 of docs/superpowers/plans/2026-08-24-fleet-monitor.md (on main; spec: docs/superpowers/specs/2026-08-24-fleet-monitor-design.md) exactly as written: failing tests first, then the implementation, then the task's own commit. The plan's Global Constraints apply to every task: fleet-tui/** stays vendor-excluded, no product literal in code or fixtures (invented names only), read-only against the factory, offline tests (fake ssh, fixture blobs, swarm.db seeded via the real swarm-db.py), module suite green (cd fleet-tui && python3 -m pytest tests/ — use tui/.venv if no system pytest).

Creates the operator-side app skeleton (conftest/pytest.ini/requirements), appends fleet-tui/** to onboarding/vendor-exclude (coverage test must stay green), and lands fleetconf.py: api/host/account/reset/budget/repo directives, FleetConfError naming the bad line.

Implement **Task 1** of `docs/superpowers/plans/2026-08-24-fleet-monitor.md` (on `main`; spec: `docs/superpowers/specs/2026-08-24-fleet-monitor-design.md`) exactly as written: failing tests first, then the implementation, then the task's own commit. The plan's **Global Constraints** apply to every task: `fleet-tui/**` stays vendor-excluded, no product literal in code or fixtures (invented names only), read-only against the factory, offline tests (fake ssh, fixture blobs, swarm.db seeded via the real swarm-db.py), module suite green (`cd fleet-tui && python3 -m pytest tests/` — use `tui/.venv` if no system pytest). Creates the operator-side app skeleton (conftest/pytest.ini/requirements), appends `fleet-tui/**` to `onboarding/vendor-exclude` (coverage test must stay green), and lands `fleetconf.py`: api/host/account/reset/budget/repo directives, `FleetConfError` naming the bad line.

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

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

close-report for #64 — status success

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

envelope
{
  "issue": 64,
  "status": "success",
  "commits": [
    "447a1d2"
  ],
  "changed_files": [
    "STATUS.md",
    "fleet-tui/README.md",
    "fleet-tui/__init__.py",
    "fleet-tui/conftest.py",
    "fleet-tui/fleetconf.py",
    "fleet-tui/pytest.ini",
    "fleet-tui/requirements.txt",
    "fleet-tui/tests/__init__.py",
    "fleet-tui/tests/test_fleetconf.py",
    "onboarding/vendor-exclude"
  ],
  "tests": [
    {
      "command": "bash onboarding/tests/vendor-manifest-coverage-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL: $t; done",
      "exit_code": 0
    },
    {
      "command": "python3 stdlib harness replicating tests/test_fleetconf.py (no system pytest/venv in sandbox)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Creates operator-side app skeleton (conftest/pytest.ini/requirements)": "fleet-tui/conftest.py, fleet-tui/pytest.ini (asyncio_mode=auto), fleet-tui/requirements.txt (byte-copy of tui/requirements.txt), fleet-tui/__init__.py, fleet-tui/tests/__init__.py, fleet-tui/README.md stub in commit 447a1d2",
    "Appends fleet-tui/** to onboarding/vendor-exclude with coverage test green": "onboarding/vendor-exclude adds 'fleet-tui/**' under the Factory-only block with the plan's one-line comment; vendor-manifest-coverage-test.sh -> PASS",
    "Lands fleetconf.py: api/host/account/reset/budget/repo directives, FleetConfError naming the bad line": "fleet-tui/fleetconf.py load()->FleetConf handles all six directives; FleetConfError includes the offending line (repr) for unknown/malformed/reset/budget",
    "Global constraints: fleet-tui vendor-excluded, no product literal, read-only, offline tests, module suite verified": "vendor-excluded (above); grep idss|matou|ourcloud|git.matou over fleet-tui/ -> none (fixtures Acme/box-a/alpha/bravo); no runtime/network; test_fleetconf.py 4/4 via stdlib harness"
  },
  "summary": "Scaffolded fleet-tui/, added the fleet.conf parser (fleetconf.py), and vendor-excluded fleet-tui/**.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #64 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 64, "status": "success", "commits": [ "447a1d2" ], "changed_files": [ "STATUS.md", "fleet-tui/README.md", "fleet-tui/__init__.py", "fleet-tui/conftest.py", "fleet-tui/fleetconf.py", "fleet-tui/pytest.ini", "fleet-tui/requirements.txt", "fleet-tui/tests/__init__.py", "fleet-tui/tests/test_fleetconf.py", "onboarding/vendor-exclude" ], "tests": [ { "command": "bash onboarding/tests/vendor-manifest-coverage-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL: $t; done", "exit_code": 0 }, { "command": "python3 stdlib harness replicating tests/test_fleetconf.py (no system pytest/venv in sandbox)", "exit_code": 0 } ], "criteria": { "Creates operator-side app skeleton (conftest/pytest.ini/requirements)": "fleet-tui/conftest.py, fleet-tui/pytest.ini (asyncio_mode=auto), fleet-tui/requirements.txt (byte-copy of tui/requirements.txt), fleet-tui/__init__.py, fleet-tui/tests/__init__.py, fleet-tui/README.md stub in commit 447a1d2", "Appends fleet-tui/** to onboarding/vendor-exclude with coverage test green": "onboarding/vendor-exclude adds 'fleet-tui/**' under the Factory-only block with the plan's one-line comment; vendor-manifest-coverage-test.sh -> PASS", "Lands fleetconf.py: api/host/account/reset/budget/repo directives, FleetConfError naming the bad line": "fleet-tui/fleetconf.py load()->FleetConf handles all six directives; FleetConfError includes the offending line (repr) for unknown/malformed/reset/budget", "Global constraints: fleet-tui vendor-excluded, no product literal, read-only, offline tests, module suite verified": "vendor-excluded (above); grep idss|matou|ourcloud|git.matou over fleet-tui/ -> none (fixtures Acme/box-a/alpha/bravo); no runtime/network; test_fleetconf.py 4/4 via stdlib harness" }, "summary": "Scaffolded fleet-tui/, added the fleet.conf parser (fleetconf.py), and vendor-excluded fleet-tui/**.", "reason": "", "blockers": [], "no_code_change": "" } ``` </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.

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