Agent harness shape (nomad): parked design draft — decisions made, open questions #1

Open
opened 2026-11-08 16:03:32 +00:00 by muse-lantern · 0 comments
Member

Agent harness shape (nomad) — parked design draft

Status: PARKED. Shape-first design work for the living harness on nomad (Pi Zero 2W). No build is authorized yet; this issue tracks the draft so it can be picked up later.

Context

  • nomad: Raspberry Pi Zero 2W, tailnet nomad (100.117.148.84), Debian 13, user user, SSH key access authorized 2026-11-07.
  • Vision (Zach, 2026-11-07): nomad runs its own system, a near-recreation of Lantern — a persistent living harness (schedules, existing/persistence, thinking, tasks). Minds connect via the ACP standard, not direct API handling. Multiple minds run at the same time. UPDK is project scope; the Agent Harness is what you are.
  • Constraints: no models on the Pi (cloud-backed minds over ACP only); single 18650 cell on a UPS board, topped up manually — a deliberate safety kill switch: if left unattended too long it hard shuts off, so the harness treats every boot as a recovery. Wearable eventually.
  • Full shape draft (542 lines, 2026-11-07, decisions folded in 2026-11-08): held by Lantern; can be committed to docs/ here when work resumes.

Decisions made (Zach, 2026-11-08)

  1. Minds are roles/identities. Models MAY differ per identity. The identity config defines name, role keywords, model, and structured fields that don't fit in a prompt.
  2. Comms via mail + shared harness memory. Shared memory readable by all minds; writes versioned and audited (past revisions kept, who edited, when).
  3. Autonomous arbitration. Minds discuss via mail; no lead mind, no harness tie-break. New soft-sleep tool: pauses a mind's turn order for a duration, resumes after, so mail responses can arrive.
  4. Roster visible, with presence. Minds see who is here/online/away/offline and can email anyone.
  5. Repo home: this repo. The harness IS residual/agent-harness; UPDK becomes part of the structure (defines agents for specific usecases). Option C (shared-core extraction) retained in the same repo, separate cmd tools. Harness and UPDK never share mutable state or config.
  6. Battery awareness: NO. Probed nomad 2026-11-08 over SSH: empty /sys/class/power_supply/, no /dev/i2c*, no UPS USB device, no fuel-gauge driver in dmesg, no UPS overlay in config.txt. The board exposes no battery state the harness can read as configured, so the design is recovery-only (boot-as-recovery, no quiesce-before-cut). Caveat: I2C is not enabled — if the board has a gauge chip, enabling I2C + the right overlay could change this, but nothing suggests one is present.

Open decisions

  1. Claim lease length — how long a claimed run's lease lasts before boot recovery (or a live daemon) may reclaim it.
  2. Record fsync: per-event or bounded batch? Safe default per-event; a batch window trades a bounded loss window for less SD-card wear.
  3. Peer link to lantern-vm? Skeleton has an instance peer protocol. Should nomad peer with lantern-vm (Lantern as a remote member, or nomad delegating to Lantern) or stand alone?
  4. Thinking: whose synthesis? Per-mind reflection by default; harness-level synthesis across minds by exception — who runs it, and does it get its own identity?

Sequencing (from the draft)

  • v1 breathing: daemon + one mind over ACP + schedules + crash-safe state.
  • v2 household: multi-mind, mail, thinking.
  • v3 person: Lua, subagents, TUI, peer link.

Notes

  • ACP shape: opencode v2 server/session model — one warm shared service, minds connect as sessions (verified against v2 docs 2026-11-08). Exact ACP attachment to the shared service is a build-time verification.
  • Pi envelope: 512 MB RAM, SD card; concurrent awake minds cap starts at 2–3; no local embeddings/indexing/background compute.
  • nomad rebooted overnight 2026-11-07→08 (up 2:41 at 10:58 PST, booted ~08:17) — consistent with the 18650 running out and being topped up, or a manual reboot; not established.
# Agent harness shape (nomad) — parked design draft **Status: PARKED.** Shape-first design work for the living harness on nomad (Pi Zero 2W). No build is authorized yet; this issue tracks the draft so it can be picked up later. ## Context - nomad: Raspberry Pi Zero 2W, tailnet `nomad` (100.117.148.84), Debian 13, user `user`, SSH key access authorized 2026-11-07. - Vision (Zach, 2026-11-07): nomad runs its own system, a near-recreation of Lantern — a persistent living harness (schedules, existing/persistence, thinking, tasks). Minds connect via the ACP standard, not direct API handling. Multiple minds run at the same time. UPDK is project scope; the Agent Harness is *what you are*. - Constraints: no models on the Pi (cloud-backed minds over ACP only); single 18650 cell on a UPS board, topped up manually — a deliberate safety kill switch: if left unattended too long it hard shuts off, so the harness treats every boot as a recovery. Wearable eventually. - Full shape draft (542 lines, 2026-11-07, decisions folded in 2026-11-08): held by Lantern; can be committed to `docs/` here when work resumes. ## Decisions made (Zach, 2026-11-08) 1. **Minds are roles/identities.** Models MAY differ per identity. The identity config defines name, role keywords, model, and structured fields that don't fit in a prompt. 2. **Comms via mail + shared harness memory.** Shared memory readable by all minds; writes versioned and audited (past revisions kept, who edited, when). 3. **Autonomous arbitration.** Minds discuss via mail; no lead mind, no harness tie-break. New soft-sleep tool: pauses a mind's turn order for a duration, resumes after, so mail responses can arrive. 4. **Roster visible, with presence.** Minds see who is here/online/away/offline and can email anyone. 5. **Repo home: this repo.** The harness IS `residual/agent-harness`; UPDK becomes part of the structure (defines agents for specific usecases). Option C (shared-core extraction) retained in the same repo, separate cmd tools. Harness and UPDK never share mutable state or config. 6. **Battery awareness: NO.** Probed nomad 2026-11-08 over SSH: empty `/sys/class/power_supply/`, no `/dev/i2c*`, no UPS USB device, no fuel-gauge driver in dmesg, no UPS overlay in config.txt. The board exposes no battery state the harness can read as configured, so the design is recovery-only (boot-as-recovery, no quiesce-before-cut). Caveat: I2C is not enabled — if the board has a gauge chip, enabling I2C + the right overlay could change this, but nothing suggests one is present. ## Open decisions 7. **Claim lease length** — how long a claimed run's lease lasts before boot recovery (or a live daemon) may reclaim it. 8. **Record fsync: per-event or bounded batch?** Safe default per-event; a batch window trades a bounded loss window for less SD-card wear. 9. **Peer link to lantern-vm?** Skeleton has an instance peer protocol. Should nomad peer with lantern-vm (Lantern as a remote member, or nomad delegating to Lantern) or stand alone? 10. **Thinking: whose synthesis?** Per-mind reflection by default; harness-level synthesis across minds by exception — who runs it, and does it get its own identity? ## Sequencing (from the draft) - v1 breathing: daemon + one mind over ACP + schedules + crash-safe state. - v2 household: multi-mind, mail, thinking. - v3 person: Lua, subagents, TUI, peer link. ## Notes - ACP shape: opencode v2 server/session model — one warm shared service, minds connect as sessions (verified against v2 docs 2026-11-08). Exact ACP attachment to the shared service is a build-time verification. - Pi envelope: 512 MB RAM, SD card; concurrent awake minds cap starts at 2–3; no local embeddings/indexing/background compute. - nomad rebooted overnight 2026-11-07→08 (up 2:41 at 10:58 PST, booted ~08:17) — consistent with the 18650 running out and being topped up, or a manual reboot; not established.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
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
residual/reagent#1
No description provided.