herdr-orchestra 6.40.0 → 6.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  All notable changes. Versions follow [semantic versioning](https://semver.org).
4
4
 
5
+ ## [6.43.0] - 2026-11-28
6
+
7
+ A fix after a finished run no longer waits in silence when herdr has lost the agents' names.
8
+
9
+ Example: the run is done, you close and reopen the coder's and the reviewer's panes, and the lead runs `orch fix M2 "make the button blue"`. Before, it printed `FIX M3 ... -> agy-1`, the event manager started, and nothing happened: herdr had no agent called `agy-1` any more, so M3 sat at pending, no coder worked on it, and the lead was never told. Now `orch fix` says at once `LOST agy-1: can't tell which pane is agy-1 ... herdr agent rename <pane> agy-1` and `WAITS M3: ...` (exit 3), and if the event manager meets the same thing it wakes the lead with `WORKER-LOST M3` and the exact fix.
10
+
11
+ ### Fixed
12
+ - **`orch fix` checks the agents it needs, like `orch start`.** It looks up the coder the fix goes to (and the reviewer, when the fix is reviewed). When herdr can't find one, it first tries to give the pane its name back by folder (as `orch resume` does), then prints a `LOST` line with the rename command for each agent it still can't find and a `WAITS` line, and exits 3. The milestone is still added and the event manager still starts, so the fix goes on by itself once herdr finds them.
13
+ - **The event manager wakes the lead when a ready milestone has no coder in herdr.** When every coder a ready milestone may go to (for a fix: the coder who built it) is missing from herdr (`NO AGENT`, `SHELL ONLY`), it logs `LOST Mn is ready but can't start: ...` and sends the lead a `WORKER-LOST Mn` event with the fix: `herdr agent rename <its pane id> <name>` or `orch resume`, `orch team up` for a pane with only a shell left, and `orch dispatch Mn --to <other>` when another coder is on the team. It says it once, not on every loop, and again only if what is missing changes. Before, it only waited, and `orch events` showed nothing.
14
+ - The run playbook's `WORKER-LOST` row and the `orch fix` step say what to tell the developer in this case. `orch story` says "Mn can't start, because its coder is not in herdr".
15
+
16
+ ### After updating
17
+ Nothing to do.
18
+
19
+ ## [6.41.0] - 2026-11-28
20
+
21
+ The board (`prefix+a`, `orch board`) no longer drops keys you typed while it was busy.
22
+
23
+ Example: on a busy machine you press `↓`, `Enter`, `→` quickly while the board is still reading git. Before, all three reached it at once, were read as one unknown key, and nothing happened. Now it reads them one by one: it picks the milestone, opens its files, and moves to the next milestone.
24
+
25
+ ### Fixed
26
+ - **Keys typed while the board was busy were lost.** The board read up to 8 bytes at a time, so keys waiting together in the terminal became one string that matched no key. It now reads one key at a time: a whole escape sequence (arrows, Page Up and Page Down) or one character. This was the 1 failing check in the main CI run after 6.33.0 ("↓ picks a milestone and Enter opens its files"). That run was on a loaded machine, so the keys queued up.
27
+ - **Keys typed while the board was starting were thrown away.** This was the 1 failing check in the main CI run after 6.34.0 ("the board popup: f shows the changed files"). On a busy machine the board took over a second to start, and the test typed `f` and `Enter` in that time. Two things lost them. Turning on key-by-key mode flushed what was already typed (now `TCSANOW`). The half-second guard against terminal replies at open dropped every key, not only the replies. It now drops only what a terminal sends by itself (focus, cursor or size reports, OSC strings, a lone Esc), so `f`, Enter and the arrows count. A new check types the keys before the board has started.
28
+ - New checks type the keys in one go, and before the board has started. They fail before this fix and pass after it.
29
+
5
30
  ## [6.40.0] - 2026-11-28
6
31
 
7
32
  Tokens per milestone no longer miss a reply written in a job's last second. That also made the CI check "orch report: ... tokens per milestone" fail now and then (main CI after 6.34.0, PR #68).
@@ -73,6 +98,7 @@ Example: at the end of a run the summary has
73
98
 
74
99
  ### After updating
75
100
  Nothing to do. Runs started before 6.34.0 show `-` for jobs that ended before the update.
101
+
76
102
  ## [6.33.0] - 2026-11-28
77
103
 
78
104
  Project setup before the first plan (`orch-onboard`). orch checks what a project has for its agents: the stack, the commands, the rule files and the skills each agent can see. If something is missing, the lead offers it in one list and writes only what you tick.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.40.0
1
+ 6.43.0
Binary file
package/bin/orch CHANGED
@@ -655,6 +655,17 @@ def presence_word(st, name):
655
655
  return {"agent": "ok", "shell": "SHELL ONLY", "gone": "NO AGENT"}[where]
656
656
 
657
657
 
658
+ def not_in_herdr(st, names):
659
+ """{name: NO AGENT | SHELL ONLY | STALE PANE} for the agents among names that herdr has no agent for, so work
660
+ sent to them would wait without anyone working on it. detect:off agents are left out (herdr can't see them)."""
661
+ out = {}
662
+ for n in dict.fromkeys(x for x in names if x):
663
+ w = presence_word(st, n)
664
+ if w not in ("ok", "detect:off"):
665
+ out[n] = w
666
+ return out
667
+
668
+
658
669
  def word(state, *words):
659
670
  return state is not None and any(re.search(rf"\b{w}\b", state) for w in words)
660
671
 
@@ -6025,8 +6036,30 @@ def cmd_fix(args):
6025
6036
  save(st)
6026
6037
  print(f"FIX {new} \"{title}\" -> {who or 'the next free coder (nobody on the team built ' + tid + ')'}; "
6027
6038
  f"added to plan.md, the check" + (" and the review" if st["tasks"][new]["review"] else "") + " still run")
6039
+ # like `orch start`: make sure herdr still runs the agents this fix goes to. After a finished run the
6040
+ # developer may have closed and reopened their panes, which come back without their names; a fix sent to a
6041
+ # name herdr doesn't know would wait with nobody working on it, while everyone thinks it runs.
6042
+ coders = [who] if who else [n for n in eligible_workers(st, st["tasks"][new])]
6043
+ needed = coders + ([st["reviewer"]] if st["tasks"][new]["review"] else [])
6044
+ missing = not_in_herdr(st, needed)
6045
+ if missing:
6046
+ lead_pane = agent_pane(st["lead"]["name"]) if st.get("lead") and watched(st, st["lead"]["name"]) else None
6047
+ rename_lost(st, keep_out=[lead_pane] if lead_pane else [])
6048
+ missing = not_in_herdr(st, needed)
6049
+ for n, w in missing.items():
6050
+ if w == "SHELL ONLY":
6051
+ print(f"LOST {n}: its pane is there, but only a plain shell is left in it (the agent quit). "
6052
+ f"`orch team up` starts it again there")
6028
6053
  print(start_manager())
6029
6054
  print(f"It lands like any milestone: `orch status` shows {new}, and the summary is written again when it is in.")
6055
+ stuck = [n for n in coders if n in missing]
6056
+ if stuck and len(stuck) == len(coders) or (missing and st["tasks"][new]["review"] and st["reviewer"] in missing):
6057
+ print(f"WAITS {new}: " + ", ".join(f"{n} ({missing[n]})" for n in missing) + " not found in herdr, so "
6058
+ f"{new} " + ("can't start" if stuck and len(stuck) == len(coders) else "can't be reviewed")
6059
+ + ". Do what the LOST lines above say (`orch resume` names panes again by folder; `orch team up` "
6060
+ f"opens the ones that are really gone); then {new} goes on by itself"
6061
+ + (f", or send it to another coder: `orch dispatch {new} --to <worker>`" if len(st["workers"]) > 1 else ""))
6062
+ sys.exit(3)
6030
6063
 
6031
6064
 
6032
6065
  EVENT_HELP = {
@@ -6046,10 +6079,12 @@ EVENT_HELP = {
6046
6079
  "reviewer-lost": "the reviewer can't be reached, so the milestone waits for review (its work is kept). Tell the "
6047
6080
  "developer the fix in the event text (usually: rename the reviewer's new pane). Review resumes "
6048
6081
  "by itself once herdr finds the reviewer again.",
6049
- "worker-lost": "a coder vanished while it worked (pane closed, agent quit, herdr restarted). Its milestone "
6050
- "waits for the next free coder with the work so far. This is NOT routine: tell the developer at "
6051
- "once, with the exact fix from the event text (`orch resume` or `orch team up`). If the developer "
6052
- "does not want that coder any more: `orch bench <worker> off`.",
6082
+ "worker-lost": "a coder vanished while it worked (pane closed, agent quit, herdr restarted), or a ready "
6083
+ "milestone can't start because herdr has no agent for the coder(s) it may go to (e.g. panes "
6084
+ "reopened after a finished run, without their names). The milestone waits with its work so far. "
6085
+ "This is NOT routine: tell the developer at once, with the exact fix from the event text "
6086
+ "(`herdr agent rename`, `orch resume` or `orch team up`); it goes on by itself once herdr finds "
6087
+ "the coder. If the developer does not want that coder any more: `orch bench <worker> off`.",
6053
6088
  "herdr-restart": "most agents vanished at once: herdr was probably restarted or closed. Tell the developer to "
6054
6089
  "run `orch resume` (it names the panes again and re-sends the work); then `orch team up` for "
6055
6090
  "any agent it reports LOST.",
@@ -6093,6 +6128,8 @@ def say_line(st, e):
6093
6128
  if k == "reviewer-lost":
6094
6129
  return f"The reviewer can't be reached, so {name} waits for its review: {text}"
6095
6130
  if k == "worker-lost":
6131
+ if "can't start" in text:
6132
+ return f"{name} can't start, because its coder is not in herdr: {text}"
6096
6133
  return f"A coder disappeared while working on {name}: {text}"
6097
6134
  if k == "herdr-restart":
6098
6135
  return f"Most agents disappeared at once (herdr was probably restarted): {text}"
@@ -7703,6 +7740,38 @@ def _autopilot(args):
7703
7740
  elif not gone and present == before:
7704
7741
  seen["told"] = False
7705
7742
 
7743
+ seen["no_coder"] = {}
7744
+
7745
+ def no_coder(tid):
7746
+ """A ready milestone no coder can take. When that is because herdr has no agent for any coder it may go to
7747
+ (their panes were closed or came back without their names, e.g. reopened after a finished run), nobody will
7748
+ ever take it: say so once and wake the lead, instead of waiting in silence while the lead thinks it runs."""
7749
+ s_ = load()
7750
+ t_ = s_["tasks"][tid]
7751
+ who = [n for n in eligible_workers(s_, t_) if not s_["workers"][n].get("task")]
7752
+ if not who or len(who) < len(eligible_workers(s_, t_)):
7753
+ return # a coder of its own is busy: it starts when that one is free
7754
+ missing = not_in_herdr(s_, who)
7755
+ if len(missing) < len(who):
7756
+ seen["no_coder"].pop(tid, None)
7757
+ return
7758
+ key = tuple(sorted(missing.items()))
7759
+ if seen["no_coder"].get(tid) == key:
7760
+ return
7761
+ seen["no_coder"][tid] = key
7762
+ shell = [n for n, w in missing.items() if w == "SHELL ONLY"]
7763
+ names_ = ", ".join(f"{n} ({w})" for n, w in missing.items())
7764
+ fix = ("; ".join(f"herdr agent rename <its pane id> {n}" for n in missing if n not in shell)
7765
+ + " (or `orch resume`, which names panes again by folder)" if len(shell) < len(missing) else "")
7766
+ fix += ("; " if fix and shell else "") + (f"`orch team up` starts {', '.join(shell)} again" if shell else "")
7767
+ other = [n for n in s_["workers"] if n not in missing and not s_["workers"][n].get("off")]
7768
+ if other and t_.get("assign"):
7769
+ fix += f"; or move it: `orch dispatch {tid} --to {other[0]}`"
7770
+ what = (f"{tid} is ready but can't start: herdr has no agent for {names_}, the only coder(s) it can go to "
7771
+ f"(their panes were closed, or came back without their names)")
7772
+ patch_state(lambda s2: lead_event(s2, "worker-lost", tid, f"{what}. Fix: {fix}."))
7773
+ say(f"{run_tag(s_)} LOST {what}. Fix: {fix}", True)
7774
+
7706
7775
  names = SidebarNames() if run_mode(load()) != "subagent" else None # herdr's sidebar says what each agent does
7707
7776
  while True:
7708
7777
  _stop_point()
@@ -7749,12 +7818,15 @@ def _autopilot(args):
7749
7818
  jobs = [l for l in out.splitlines() if l.startswith("FIX ")] + \
7750
7819
  [l for l in out.splitlines() if l.startswith("READY ")]
7751
7820
  for line in jobs:
7752
- if slots <= 0:
7753
- break
7754
7821
  kind, tid = line.split()[0], line.split()[1]
7822
+ if slots <= 0: # (a coder herdr can't find takes no slot either: say so when that is why)
7823
+ no_coder(tid)
7824
+ continue
7755
7825
  code, worker = run("pick", tid, ok=(0, 3))
7756
7826
  if code == 3:
7827
+ no_coder(tid)
7757
7828
  continue # nobody of its tier (or its assigned coder) is free; others may still start
7829
+ seen["no_coder"].pop(tid, None)
7758
7830
  guarded(tid, lambda: dispatch(kind, tid, worker))
7759
7831
  slots -= 1
7760
7832
  lead_ready()
@@ -10023,10 +10095,34 @@ def render_diff(ch, f, lines, width=100, height=40, color=True, top=0, err=None)
10023
10095
  return head + [""] + shown + foot, top
10024
10096
 
10025
10097
 
10098
+ def _terminal_reply(key):
10099
+ """True for what a terminal sends by itself as a popup opens, never typed: focus in/out, cursor or size reports,
10100
+ device replies, OSC/DCS strings, and a lone Esc (the start of one that came in pieces)."""
10101
+ if key == "\x1b" or key[:2] in ("\x1b]", "\x1bP", "\x1b_", "\x1b^"):
10102
+ return True
10103
+ return key.startswith("\x1b[") and (key in ("\x1b[I", "\x1b[O") or key[-1:] in ("R", "t", "c", "n", "y"))
10104
+
10105
+
10026
10106
  def _board_key(fd, select):
10027
- ch = os.read(fd, 8).decode(errors="ignore")
10028
- if ch == "\x1b" and select.select([sys.stdin], [], [], 0.05)[0]:
10029
- ch += os.read(fd, 8).decode(errors="ignore") # the rest of an escape sequence, not the Esc key
10107
+ """ONE key press from the terminal. Keys typed while the board was busy (reading git on a loaded machine) wait
10108
+ together in the terminal; reading them all at once made `↓ Enter →` one unknown key, and nothing happened."""
10109
+ def more(wait=0.05):
10110
+ return select.select([fd], [], [], wait)[0]
10111
+ b = os.read(fd, 1)
10112
+ if b == b"\x1b":
10113
+ if more(): # the rest of an escape sequence, not the Esc key
10114
+ b += os.read(fd, 1)
10115
+ if b[1:] in (b"[", b"O"): # CSI / SS3: up to and including the final byte (@ to ~)
10116
+ while len(b) < 16 and more():
10117
+ b += os.read(fd, 1)
10118
+ if 0x40 <= b[-1] <= 0x7e:
10119
+ break
10120
+ elif b and b[0] >= 0xc0: # the other bytes of one UTF-8 character
10121
+ need = 3 if b[0] >= 0xf0 else 2 if b[0] >= 0xe0 else 1
10122
+ while need and more():
10123
+ b += os.read(fd, 1)
10124
+ need -= 1
10125
+ ch = b.decode(errors="ignore")
10030
10126
  return {"\x1bOA": "\x1b[A", "\x1bOB": "\x1b[B", "\x1bOC": "\x1b[C", "\x1bOD": "\x1b[D"}.get(ch, ch)
10031
10127
 
10032
10128
 
@@ -10108,7 +10204,8 @@ def cmd_board(args):
10108
10204
  mid, ch, fsel, ftop = None, None, 0, 0 # the changed-files screen: milestone, its changes, picked file, scroll
10109
10205
  dfile, dlines, derr, dtop = None, [], None, 0 # the diff screen
10110
10206
  try:
10111
- tty.setcbreak(fd)
10207
+ # TCSANOW, not the default TCSAFLUSH: that throws away every key typed while the board was starting up
10208
+ tty.setcbreak(fd, termios.TCSANOW)
10112
10209
  sys.stdout.write("\x1b[?1049h\x1b[?25l")
10113
10210
  while True:
10114
10211
  k = _view_snapshot_key()
@@ -10145,8 +10242,9 @@ def cmd_board(args):
10145
10242
  if not r:
10146
10243
  continue
10147
10244
  key = _board_key(fd, select)
10148
- if time.time() - opened < 0.5:
10149
- continue # what a terminal sends as a pane opens (focus or size replies) is not a key press
10245
+ if time.time() - opened < 0.5 and _terminal_reply(key):
10246
+ continue # what a terminal sends as a pane opens (focus or size replies) is not a key press;
10247
+ # keys typed while the board was starting (f, Enter, an arrow) still count
10150
10248
  size = shutil.get_terminal_size((100, 40))
10151
10249
  if screen == "diff":
10152
10250
  page = max(3, size.lines - 8)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herdr-orchestra",
3
- "version": "6.40.0",
3
+ "version": "6.43.0",
4
4
  "description": "Orchestrate AI coding agents (Claude Code, Codex, OpenCode, Amp, Pi) as one team: a lead plans, coders build, a reviewer checks, you get one PR. Runs in Herdr panes, or in one Pi window with subagents.",
5
5
  "license": "MIT",
6
6
  "bin": {
package/playbooks/run.md CHANGED
@@ -45,7 +45,7 @@ Run `orch events`. It lists the new events, the ones still open, the milestones
45
45
  | `PAUSED Mn`: agent stopped twice / over its time budget / blocked / orch error | Look at what the agent shows (`herdr agent read <agent> --source recent-unwrapped --lines 60`) or the error in the log, and tell the developer. Don't work around it by hand. When it is sorted out: `orch dispatch Mn`. |
46
46
  | `FAILED Mn`: checks / review / criteria still failing | It already had its rounds, and a round on a stronger model if the team has one. Read the last report and the last check output or review file. Explain in two lines what keeps failing. If a fact or constraint was missing from the milestone, add it to the plan (never a how-to) and `orch dispatch Mn`; add `--tier high` when the work turned out harder than its tier. If you can't tell what is missing, ask the developer. If the developer approved leaving a criterion undone (it can't be met here), record it with `orch defer Mn AC<n> "<their reason>"`, then `orch dispatch Mn`. |
47
47
  | `FAILED Mn`: lost N attempts | The agents kept being unreachable, gone or rate-limited. Tell the developer which agents to restart or wait for; then `orch dispatch Mn`. |
48
- | `WORKER-LOST Mn` | A coder vanished while it worked (pane closed, the agent quit and left a shell, herdr restarted). **Not routine:** tell the developer at once, with the exact fix in the event text (`orch resume`, or `orch team up`). The milestone waits for the next free coder with its work so far; nothing else to do. |
48
+ | `WORKER-LOST Mn` | A coder vanished while it worked (pane closed, the agent quit and left a shell, herdr restarted), or Mn is ready but herdr has no agent for the coder it may go to (panes reopened after a finished run come back without their names). **Not routine:** tell the developer at once, with the exact fix in the event text (`orch resume`, or `orch team up`). The milestone waits for the next free coder with its work so far; nothing else to do. |
49
49
  | `HERDR-RESTART` | Most agents vanished at once. Tell the developer to run `orch resume`, then `orch team up` for any agent it reports `LOST`. |
50
50
  | `HELD Mn` | Risky changes (a milestone the plan marks hard to undo, deleted files, migrations, CI config, secrets files, unlisted dependency changes, a very large diff) wait for the developer. Show the reasons from `orch status`, how much it could break and, for a hard-to-undo milestone, the coder's proof, and tell the developer to look and run `orch approve Mn` (or `orch set Mn paused`). Never approve it yourself. |
51
51
  | `NEEDS-ANSWER Mn` | Open questions in the plan: ask the developer, write the answers under "Notes from user", set "Open questions:" to `- none`, `orch sync`, then `orch dispatch Mn`. |
@@ -78,7 +78,7 @@ If you changed plan.md by hand, run `orch sync` (it works once the event manager
78
78
  - **"Checked by the lead"**. Go through every acceptance criterion and every behaviour the feature promised. Whatever can be settled by running a command or by reading the code, YOU settle now, and write one line each with the evidence: the command and its result, or `file:line`. This covers: a criterion "Checked automatically" marks `no evidence recorded` or `NOT met`, "the comment / doc / config says X", "the endpoint returns 400 for Y" (run its test, or read the test that covers it), "the migration adds column Z", "no leftover TODO or debug output". You may run the check command, single tests and read-only commands (`grep`, `git log`, `git diff --stat`), and open the few files you need; you still never edit application code. If a check of yours fails, it is a defect, not a checklist item: tell the developer and offer `orch fix Mn "<what is wrong>"`.
79
79
  - **"Manual verification checklist"**: ONLY what a person must see or do, because no command and no reading of code can settle it. That is: how the UI looks (layout, spacing, colours, dark mode, a small screen), how it behaves in a real browser or on a real device (click-through flows, focus, animation, how fast it feels), and anything that needs an outside account or hardware (a real email arriving, a payment in the provider's test mode, a push notification, a printer). Write each item so the developer can do it without reading code: `- [ ] <where to go and what to do> → <what they should see>`. Test for every item: "could I, or a test, have checked this?" If yes, it does not belong here: check it and move it to "Checked by the lead". Never write "review the code", "read the comments", "confirm the tests pass" or "check the function handles X" as a manual item. If nothing needs a person (a pure backend, CLI or docs change), write `Nothing to check by hand: <one line why>` instead of inventing items.
80
80
  3. Tell the developer: "All tasks landed on <branch>. Review .orchestrate/summary.md. I checked <n> things myself; <k> were deferred with your approval and are NOT done (listed as follow-ups). <m> need your eyes:", then the manual checklist items themselves, numbered, one per line (`orch manual` prints them as orch reads them), or: nothing needs checking by hand. Then: "Run `orch finish`: it re-runs the check (or reuses it when it already passed on exactly these files), removes the worktrees and hidden refs, pushes <branch> and opens a PR into <base> (`orch finish --no-push` to only clean up)." Run `orch finish` yourself only when the developer says so: it pushes. It opens the PR itself when `gh` is installed; if it prints `OPEN A PR`, give the developer the link, and if they ask you to open it, use exactly the title and `.orchestrate/pr-body.md` it names. Never add a "Generated with …", `Co-Authored-By` or session line to a commit or a PR of the run: they are the developer's. When you ran `orch finish` yourself, post the MANUAL TESTS list it printed in your chat, numbered and word for word, under "Try these by hand before you merge" (when the developer runs it in a terminal, you are woken with `FINISHED` and do the same). **STOP.**
81
- 4. **The developer asks for a change after the summary** (for example "the login button should be blue"). Do not plan again. Find the milestone that built that part (the summary's Tasks list and Likely files tell you), then run `orch fix Mn "<the change, in the developer's words>"`. It adds one small follow-up milestone to `plan.md`, sends it straight to the coder who built Mn, and starts the event manager; the check and the review (when Mn had one) still run. Name another coder only when the developer asks: `--to <worker>`. Then **STOP**: you are woken with ALL_DONE again, and the new summary keeps the old one in `.orchestrate/summary.prev.md`, so carry your notes and checklist over and add what changed. Never type into a coder's pane yourself.
81
+ 4. **The developer asks for a change after the summary** (for example "the login button should be blue"). Do not plan again. Find the milestone that built that part (the summary's Tasks list and Likely files tell you), then run `orch fix Mn "<the change, in the developer's words>"`. It adds one small follow-up milestone to `plan.md`, sends it straight to the coder who built Mn, and starts the event manager; the check and the review (when Mn had one) still run. If it prints `LOST` and `WAITS` (exit 3), herdr can't find that coder or the reviewer (their panes were reopened and lost their names): tell the developer the exact fix it printed (usually `herdr agent rename <pane> <name>`, or `orch resume`); the fix starts by itself once herdr finds them. Name another coder only when the developer asks: `--to <worker>`. Then **STOP**: you are woken with ALL_DONE again, and the new summary keeps the old one in `.orchestrate/summary.prev.md`, so carry your notes and checklist over and add what changed. Never type into a coder's pane yourself.
82
82
 
83
83
  ## Runs without a lead (`Lead mode: off`)
84
84
  The developer runs `orch autopilot` in a terminal. It dispatches by itself and exits 3 when a human is needed. Then you are asked to help: read `orch status` and `tail -30 .orchestrate/autopilot.log`, handle each paused, failed or held milestone as in the table above (`orch set Mn pending` instead of `orch dispatch Mn`), and tell the developer to run `orch autopilot` again.