Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RMoEx7hfdFGjUiCHuN1RRi
3.2 KiB
3.2 KiB
Scratchpad — Fleet Phase 2: Observability (W-FLEET)
Append-only. Mission
mvp-20260312/ workstream W-FLEET. Lead: Jarvis (Claude) atW-jarvis:mos-claude-18. Coordinating withjwoltje@dragon-lin:coder0-0.
Mission prompt (2026-06-20)
Establish the north star for the Mosaic Fleet feature and prepare Phase-2 observability
for delivery. The USC tmux PoC is the proven base. Jason granted lead authority:
"The fleet is a great way to actually build the MVP — we are building the system that
builds the system." Dogfood actual agent construction + ad-hoc deployment; coordinate
with a second agent on dragon-lin.
Decisions of record (with Jason, 2026-06-20)
- Agent model: config defines, session runs (gateway = definition/identity/auth; tmux = runtime).
- Tenancy: multi-tenant from the start; isolation = per-tenant Linux uid.
- Health: heartbeat required; dogfood stub implements protocol now.
- Lifecycle: hybrid (core always-on + ephemeral workers).
- Observation: read-only default, opt-in takeover.
- Multi-host: designed-for day one; control plane rides federation (W1), not a bespoke broker.
- Delivery: CLI-first, dogfood on the live stub fleet; webUI deferred to Phase 5.
- Fleet is dual-role: product AND means of production (bootstrapping the MVP).
- Code review = dual-engine: Claude and gpt-5.5/Codex, run together (Jason: the
combination produces the best results). Launch reviewers via
mosaic yolo pi/codex(proven path) or~/.config/mosaic/tools/codex/codex-code-review.sh. Applies to all code-review gates incl. FLEET-OBS-008. Per Jason 2026-06-20. - Worktree discipline: do fleet work in
~/src/mosaicstack-stack-worktrees/<branch>, NOT the shared main checkout — concurrent processes mutatemainthere (learned 2026-06-20).
Environment facts (verified 2026-06-20)
- Fleet is live on
W-jarvis(uid 1000,jarvis,Linger=yes) on tmux socketmosaic-factory:_holder,canary-pi,dogfood-coder,dogfood-orchestrator,dogfood-reviewer. All panes run~/.config/mosaic/fleet/dogfood-agent.py(stub), includingcanary-pi(roster says runtime=pi → drift). - Holder +
mosaic-agent@*units areactive (exited)butUnitFileState=disabled(reboot loses fleet → boot-enable gap to surface). - Observation blocked by: isolated socket (hidden from default
tmux ls),capture-paneblank for TUIs,attachbeing read-write + resizing. - Second agent:
jwoltje@dragon-lin, sessioncoder0-0(groupcoder0), runningnode, default socket. ssh forward reach confirmed.
Governance / collision-safety
mosaicstack-stackhas active missionmvp-20260312with single-writer locks ondocs/MISSION-MANIFEST.md,docs/TASKS.md,docs/scratchpads/mvp-20260312.md.- This workstream touches NONE of those. All Fleet docs scoped under
docs/fleet/+ this scratchpad. Rollup row proposed, not written.
Session log
- 2026-06-20: Researched AI guide + fleet code + live state. Established north star with
Jason (8 forks decided). Branched
feat/fleet-observability. Persisteddocs/fleet/{north-star.md,PRD.md,TASKS.md}+ this scratchpad. Next: establish comms with dragon-lin coder, commit docs, begin Phase-2 delivery (heartbeat +fleet ps).