Re-vendor the factory TUI: the lifted copy supersedes .sandcastle/tui/ at the next pin bump (dev-factory#29) #715

Closed
opened 2026-08-23 21:57:00 +00:00 by matou-build-agent · 1 comment

The factory TUI has been lifted into the factory core and vendored: Matou/dev-factory#29 (landed 25fc9c9, 2026-08-23). tui/** is now in onboarding/vendor-manifest, so at this repo's next FACTORY_REF bump the vendored copy lands at .sandcastle/tui/ and supersedes this repo's own copy byte-for-byte (every file idss carries is in the new manifest, so onboard.sh vendor overwrites each one — nothing is left half-old).

Filed from dev-factory as a LINK, not a push (ADR 0001: the topology is pull-only). Nothing here needs doing until a human bumps the pin.

What changed in the lifted copy

Every per-repo/per-host value now resolves through new tui/data/identity.py, which SOURCES the sibling harness files that own each default (swarm-identity.sh, limit-lib.sh, cancel-lib.sh, swarm-db-lib.sh) instead of hardcoding this repo's values. grep -rE 'idss|matou' tui/ in the factory returns nothing — code and test fixtures both. Behaviour is otherwise unchanged: same six tabs, same four two-keypress write actions, same 157-case suite (143 ported + new coverage for identity resolution, the worker-class overlay, and the no-identity-layer degradation).

What this repo should do at the pin bump

  1. Re-vendor, then delete nothing by hand — the vendor step rewrites .sandcastle/tui/ in place. (.venv/ is gitignored and untouched; re-create it if the interpreter changed.)
  2. Declare DRIVE_STATUS_FILE in .sandcastle/swarm-identity.sh. The drive-status record is written by this repo's own rehearsal machinery, not by the harness, so the factory ships NO default for it — without the declaration the Monitor tab's drive panel reads "no DRIVE_STATUS_FILE declared by this repo's identity layer" instead of showing a live drive. The value is the path scripts/lib/drive-status-lib.sh writes (the /tmp/...-rehearsal-drive-status.json this repo's repo_tag resolves to).
  3. Add .sandcastle/worker-classes.local.json — the overlay beside swarm-identity.sh. The vendored tui/worker-classes.json carries the NINE classes whose code lives in the factory (swarm worker, triage, resume-asks, healer, reporter, rehearsal-healer, session-runner, schedule-backstop, in-run sweeps) and deliberately declares no hosts: which machine runs a class is a per-deployment fact. This repo's overlay is where its hosts go, plus the classes only it runs — rehearsal-executor, rehearsal-cycle, clan-lab-reap (all in scripts//.claude/, not in the harness). Entries merge by id: a known id has its fields overridden (so {"id": "healer", "hosts": ["..."]} keeps the vendored description), a new id is appended. The pre-lift content of all 13 classes is in this repo's docs/agents/worker-classes.json at the current HEAD — copy the four product classes and the hosts arrays out of it.
  4. Decide what happens to docs/agents/worker-classes.json. The Fleet tab no longer reads it (it reads the vendored table + the overlay). docs/agents/swarm-atlas.md §9 still points at it, so it may be worth keeping as this repo's own doc — that is an idss call, not the factory's.

Notes

  • The TUI is scoped to ONE host, ONE repo: the Monitor/Run tabs read the local swarm.db, and the header subtitle names the repo the identity layer resolved. A fleet-wide read across every enrolled host is a follow-up in the factory tracker, not this ticket.
  • Operator entry point (venv, which credential each tab needs) is now onboarding/README.md in dev-factory; tui/README.md documents every tab, key and write path.
The factory TUI has been **lifted into the factory core** and vendored: `Matou/dev-factory#29` (landed `25fc9c9`, 2026-08-23). `tui/**` is now in `onboarding/vendor-manifest`, so at this repo's next `FACTORY_REF` bump the vendored copy lands at `.sandcastle/tui/` and **supersedes this repo's own copy byte-for-byte** (every file idss carries is in the new manifest, so `onboard.sh vendor` overwrites each one — nothing is left half-old). Filed from dev-factory as a LINK, not a push (ADR 0001: the topology is pull-only). Nothing here needs doing until a human bumps the pin. ## What changed in the lifted copy Every per-repo/per-host value now resolves through new `tui/data/identity.py`, which SOURCES the sibling harness files that own each default (`swarm-identity.sh`, `limit-lib.sh`, `cancel-lib.sh`, `swarm-db-lib.sh`) instead of hardcoding this repo's values. `grep -rE 'idss|matou' tui/` in the factory returns nothing — code and test fixtures both. Behaviour is otherwise unchanged: same six tabs, same four two-keypress write actions, same 157-case suite (143 ported + new coverage for identity resolution, the worker-class overlay, and the no-identity-layer degradation). ## What this repo should do at the pin bump 1. **Re-vendor**, then delete nothing by hand — the vendor step rewrites `.sandcastle/tui/` in place. (`.venv/` is gitignored and untouched; re-create it if the interpreter changed.) 2. **Declare `DRIVE_STATUS_FILE`** in `.sandcastle/swarm-identity.sh`. The drive-status record is written by this repo's own rehearsal machinery, not by the harness, so the factory ships NO default for it — without the declaration the Monitor tab's drive panel reads "no `DRIVE_STATUS_FILE` declared by this repo's identity layer" instead of showing a live drive. The value is the path `scripts/lib/drive-status-lib.sh` writes (the `/tmp/...-rehearsal-drive-status.json` this repo's `repo_tag` resolves to). 3. **Add `.sandcastle/worker-classes.local.json`** — the overlay beside `swarm-identity.sh`. The vendored `tui/worker-classes.json` carries the NINE classes whose code lives in the factory (swarm worker, triage, resume-asks, healer, reporter, rehearsal-healer, session-runner, schedule-backstop, in-run sweeps) and deliberately declares **no hosts**: which machine runs a class is a per-deployment fact. This repo's overlay is where its hosts go, plus the classes only it runs — `rehearsal-executor`, `rehearsal-cycle`, `clan-lab-reap` (all in `scripts/`/`.claude/`, not in the harness). Entries merge by `id`: a known id has its fields overridden (so `{"id": "healer", "hosts": ["..."]}` keeps the vendored description), a new id is appended. The pre-lift content of all 13 classes is in this repo's `docs/agents/worker-classes.json` at the current HEAD — copy the four product classes and the `hosts` arrays out of it. 4. **Decide what happens to `docs/agents/worker-classes.json`.** The Fleet tab no longer reads it (it reads the vendored table + the overlay). `docs/agents/swarm-atlas.md` §9 still points at it, so it may be worth keeping as this repo's own doc — that is an idss call, not the factory's. ## Notes - The TUI is scoped to ONE host, ONE repo: the Monitor/Run tabs read the local `swarm.db`, and the header subtitle names the repo the identity layer resolved. A fleet-wide read across every enrolled host is a follow-up in the factory tracker, not this ticket. - Operator entry point (venv, which credential each tab needs) is now `onboarding/README.md` in dev-factory; `tui/README.md` documents every tab, key and write path.
Owner

Done, 2026-08-25 (interactive session, Ben present) — commit 28be1a1d.

FACTORY_REF bumped bd48fd6 → 343d26f (dev-factory main tip at bump time); onboard.sh vendor landed 32 added + 70 updated, drift check green. The lifted TUI supersedes this repo's copy exactly as this ticket promised: .sandcastle/tui/ is byte-for-byte the factory's (manifest-covered, drift-checked), grep -rE 'idss|matou' tui/ returns nothing, and the suite is green in place — 169 pytest cases + 9/9 checks, identity resolving through the sibling harness files (swarm-identity.sh regenerated at contract 1, RUNNER_HOST=matou-workstation).

Proof beyond the TUI: all 69 vendored suites ran at the consumer. 64 green; the 5 reds are not this repo's regressions —

  • 3 are consumer-layout bugs in new factory-side tests (green factory-side, red inside a consumer's .sandcastle): filed upstream as dev-factory#87 (pull-only topology — fixed there, rides the next pin).
  • 1 is this repo's prompt-render adoption gap (no swarm-policy.sh / prompt-enrichments/, so judgement-call-prompts-test names the hand-maintained prompts' drift): filed as #857 (ready-for-session — protected paths).
  • box-vocabulary-test 3/4 with "no baseline" — noted on dev-factory#87 for a look under the same lens.

CI is unaffected (it runs check-harness-drift.sh only — green at the new pin).

**Done, 2026-08-25 (interactive session, Ben present) — commit `28be1a1d`.** `FACTORY_REF` bumped `bd48fd6` → `343d26f` (dev-factory main tip at bump time); `onboard.sh vendor` landed 32 added + 70 updated, drift check green. The lifted TUI supersedes this repo's copy exactly as this ticket promised: `.sandcastle/tui/` is byte-for-byte the factory's (manifest-covered, drift-checked), `grep -rE 'idss|matou' tui/` returns nothing, and the suite is green **in place** — 169 pytest cases + 9/9 checks, identity resolving through the sibling harness files (`swarm-identity.sh` regenerated at contract 1, `RUNNER_HOST=matou-workstation`). Proof beyond the TUI: all 69 vendored suites ran at the consumer. 64 green; the 5 reds are not this repo's regressions — - 3 are consumer-layout bugs in new factory-side tests (green factory-side, red inside a consumer's `.sandcastle`): filed upstream as **dev-factory#87** (pull-only topology — fixed there, rides the next pin). - 1 is this repo's prompt-render adoption gap (no `swarm-policy.sh` / `prompt-enrichments/`, so `judgement-call-prompts-test` names the hand-maintained prompts' drift): filed as **#857** (`ready-for-session` — protected paths). - `box-vocabulary-test` 3/4 with "no baseline" — noted on dev-factory#87 for a look under the same lens. CI is unaffected (it runs `check-harness-drift.sh` only — green at the new pin).
ben closed this issue 2026-08-25 20:48:25 +00:00
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/idss#715
No description provided.