miadi-orchestration-kit

02 · Intent

Desired outcome

The Factory knows why its sessions end before their work is done, in the words of the person who ended them, and each reason that recurs has a named condition, a proposed change and a count of whether it came back after the change.

Guillaume will know it exists when he can ask “why did seats end short this week” and read one table: the reasons, the sessions behind each, the change proposed for each, and which changes held.

Current reality

Structural tension

Exits happen every day and each one says something about how the seat was launched or briefed. That evidence is lost at the moment it is produced, so changes are made from memory and never checked against what follows. Recording the reason at the exit and counting it across sessions is what lets the next change be chosen from evidence and judged by the exits after it.

The loop

  1. Exit with a reason. At /inventory-exit-reason, or after the session ended, from the person’s words relayed by any seat.
  2. One view of exits. miadi-hooks-interpret exits: every end, its Claude Code reason, the person’s reason when given, the model launched, started and answered, whether it was resumed.
  3. Investigation pass. A seat groups the reasons into patterns. Each pattern names its sessions and the condition that produced it (a launch path, a brief, a folder, an account).
  4. Proposed change. Each new pattern gets a drafted issue or a held decision. The person decides. The pass applies nothing.
  5. Recurrence. The next pass counts the pattern’s exits since its change landed, and reports it as held, recurring, or displaced (another pattern rose as this one fell).

The loop advances when a change lowers its pattern’s recurrence and the change stays. It oscillates when a change for one pattern raises another, for example pinning Opus on every launch so that wrong_model exits move from “too weak” to “too costly”. Step 5 names that movement by comparing patterns across passes.

Beloved qualities to keep

Boundaries