Files
dais/ai
Tommi Kyntola 944a09a7e9 Target release: free a slot digit for reuse
Durable persistence means a picked target stays picked even after its pane
dies — which is right, since dais-driven panes come and go. Release is the
missing complement: how you say you are done with one and hand the digit
back to the picker.

state/daemon:
- state/release-slot: refuses an unknown slot and the LAST remaining slot,
  and moves :active-slot to the next survivor when the active one goes.
  load-targets only honors the durable overlay while (get targets
  active-slot) resolves, so a dangling active slot would silently discard
  every persisted target on the next daemon start.
- target action "release"; persists through transition!'s existing :targets
  watch, so a release sticks across restarts exactly like a pick does.

dais-ctl: target release <slot>, plus slot completion in _dais-ctl.

dais-top: x then 1-5, sticky footer prompt, ? entry. It takes a digit rather
than acting on the picker's highlighted row because the usual reason to
release a slot is that its pane is GONE — and a gone pane has no row in the
picker, which only lists live tmux panes.

Also fixes the startup banner: it printed (:targets cfg) — config, not the
durable overlay the daemon actually runs with — so it misreported every
picked or released slot on every restart. Now reads the state atom, sorted,
with * marking the active slot.

config: drop the retired system:claude.0 slot.

ai/gotchas.md records two things this turned up: the
:active-slot-must-resolve invariant, and tmux pane_index being positional —
closing a pane renumbers those after it, so a stored "s:w.2" silently
retargets while still reading alive and green.
2026-08-17 12:23:40 +03:00
..
…

ai/

Curated, AI-friendly context for this repository. Treat it as ground truth on the same footing as code — when a fact here disagrees with the code, the code wins and the file gets fixed.

Purpose

Reduce the cost of reconstructing dais-specific context every agent session. Only facts that are hard to infer from the source or the other .md files belong here: platform quirks discovered in field trials, invariants whose violation fails silently, distinctions that are easy to confuse. Nothing that a quick read of the code already states.

How content gets added

  • Small, human-verified chunks — checked against reality before landing.
  • Opportunistic: when a discovery during normal work would have saved an hour had it been written down, it goes here.
  • Code wins on conflict; stale entries get fixed or deleted.

Layout

  • glossary.md — one line per term, TERM :: definition. Grep-friendly.
  • where-to-look.md — task :: path # note pointers. Grep-friendly.
  • gotchas.md — fact :: detail lines; the platform/field-trial knowledge this project paid for. Read before touching audio, tmux, or delivery code.