# Intent-Understanding — tide-runtime ⟂ TmuxAI

**Date:** 2026-06-05

## Why this packet exists now

The runtime previously sketched as **hermes-navigator** has been renamed
**tide-runtime**. Before the next implementation wave, we need a grounded view
of how an existing, working terminal-AI fork (**TmuxAI**) maps onto tide-runtime's
intent, what it validates, what it is missing for our multi-domain case, and how
the runtime should feed **miadi-agent**.

## Audience

- Runtime/spec authors evolving `runtime/tide-runtime` + `rispecs/tide-runtime`.
- miadi-agent boundary owners (`#250`) deciding what the agent consumes from the
  terminal-sensing layer.
- Stewardship reviewers (Kherix/MiaClaw) validating the next-wave issue.

## Desired outcome

A single next-wave GitHub issue plus a RISE spec that:
- adopt TmuxAI's proven primitives (pane observation, isolated exec pane,
  approval loop, knowledge base + skills, context squashing) where they fit,
- keep tide-runtime's distinct value (multi-domain/domain scoping, always-on
  background context, cross-channel continuity, relational domain learning),
- define the seam by which tide-runtime hands context/observations to miadi-agent
  rather than becoming a second agent implementation.

## Current reality

- tide-runtime v1 spec covers domain auto-detection, always-on context,
  approval UX, two interface modes, cross-channel continuity, skill packaging.
- No runtime currently *reads live pane content* or *acts in an isolated exec
  pane* — TmuxAI proves both are tractable in a single-window model.
- TmuxAI is single-window/one-instance-per-window; tide-runtime needs
  multi-window, multi-domain scope (~120 terminals / 3 domains).

## Structural tension being resolved

Desired: a legible, observable, safely-actionable multi-domain terminal substrate
that miadi-agent can reason over.
Current: fragmented terminals; navigator specs exist but lack a proven
observation/act harness; TmuxAI proves the harness but only at single-window
scope and without domain semantics.
The tension resolves by **importing TmuxAI's harness pattern under a
domain-scoped, multi-window tide-runtime contract**, with a clean handoff to
miadi-agent.

## Decisions this packet must strengthen

1. Whether tide-runtime adopts a TmuxAI-style observe→approve→exec loop.
2. Whether to fork/vendor TmuxAI (Go) or reimplement the pattern in the existing
   Python navigator runtime.
3. How knowledge bases + skills + squashing map onto tide-runtime context.
4. The tide-runtime → miadi-agent handoff contract (what observations/anchors
   the agent receives).

## What success makes easier downstream

- miadi-agent gains a real, safe terminal-sensing input instead of a sketch.
- Domain context becomes queryable ("what was happening in Miadi 30 min ago").
- A clear fork-vs-reimplement decision unblocks the next coding wave.
