herdr-orchestra 5.10.0 → 6.0.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 +38 -0
- package/README.md +2 -1
- package/VERSION +1 -1
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/bin/orch +806 -77
- package/package.json +1 -1
- package/playbooks/plan.md +7 -5
- package/playbooks/run.md +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes. Versions follow [semantic versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [6.0.0] - 2026-11-19
|
|
6
|
+
|
|
7
|
+
A major version for a major performance change: how fast work moves from a coder to the reviewer, the branch and the lead. Plans, commands and files work as before; three new defaults change timing (early review, auto dispatch, no repeated branch check), and each can be turned off with one plan line.
|
|
8
|
+
|
|
9
|
+
It also makes a run easier to follow: the plan comes as short cards in plain words (`orch plan show`), the lead says in its chat what each event was and what it did, and `orch story` keeps the whole run as a diary.
|
|
10
|
+
|
|
11
|
+
Coders' finished work reaches the reviewer, the branch and the lead faster. Example: M5 and M6 finish at the same second and your check takes 10 seconds. Before, the event manager ran M5's check and did nothing else meanwhile, then M6's check, then the same check again on the branch for each one: M5 landed about 32 seconds after it was done. Now the checks run in the background, the reviewer already reads M5 while its check runs, and a check that already passed on exactly these files is not run again: M5 lands about 13 seconds after it is done. How the work is checked, reviewed and committed is the same; it is still one event loop that reacts to events.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- **Checks run in the background.** A check works like `fetch()` in a browser: the event manager starts it, keeps handling the other events (reviews, fixes, new milestones, the lead's answers), and the check's end arrives as one more event. One check runs at a time by default, so two test suites never fight over your machine; `Parallel checks: 2` in the plan header allows two. `orch status` shows `[check running 0m04s in its folder]`.
|
|
15
|
+
- **No double check when nothing changed.** In worktree mode each milestone was checked in the coder's folder, then again on the feature branch. When nothing else landed in between, the branch gets exactly the files that already passed, so the second check is skipped and the log says `SKIPPED_CHECK M5: ...`. If another milestone landed first, the branch check still runs. `Branch check: always` brings back the old behaviour, for a check that depends on more than the files (the branch name, the clock, a running service).
|
|
16
|
+
- **Reviews go first.** A milestone waiting for the reviewer is handled before anything else in each loop, so a free reviewer gets the next review at once.
|
|
17
|
+
- **Early review.** A `Review: yes` milestone goes to the reviewer while its check runs (`Early review: off` to wait for the check). If the check fails, the coder gets one fix job with the check output and the reviewer's blockers together, and that review round does not count against the review limit.
|
|
18
|
+
- **Auto dispatch.** When a milestone lands and that unlocks the next one (M6 depends on M5), M6 starts at once and the lead gets `AUTO-DISPATCHED M6: started by the event manager as soon as M5 landed`, instead of waiting for the lead to wake up and run `orch dispatch M6`. The first milestones of a run still wait for the lead's go. `Auto dispatch: off` makes every milestone wait for the lead, as before.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **The plan in plain words.** Each milestone gets a `Plain:` line: one sentence on what you get, in everyday words. `orch plan show` prints the plan as short cards, for example `M2 Categories list — the screen where you see and add categories` / `Waits for: M1 (needs the category model)` / `Built by: claude-1 (sonnet) · about 40m · reviewed by reviewer`, then the order (`1. M1 and M2 at the same time`, `2. M3 (after M1 and M2)`). After planning, the lead shows you these cards instead of the whole plan file. The coder's task file leaves `Plain:` out.
|
|
22
|
+
- **The lead says what happened.** `orch events` gives each event a `SAY:` line in plain words, for example `SAY: M4 (Totals) is paused: the coder asks: which currency should totals use, INR or multi?`, and tells the lead to write it in its chat, with what it did about it, before it stops. A wake-up no longer ends silently.
|
|
23
|
+
- **The run diary.** `orch story` prints every event in plain words and what the lead did about it (dispatch, answer, defer, fix), in time order: `16:01 what happened: M4 (Totals) is paused ...` / `16:01 the lead did: M4 (Totals) got the answer "INR only" and goes back to claude-1`. It is saved in `.orchestrate/story.md`.
|
|
24
|
+
- **No AI credit on the run's PR.** `orch finish` opens the PR from `.orchestrate/pr-body.md`: the summary without lines like `Co-Authored-By: Claude ...`, `🤖 Generated with [Claude Code]` or a session link (a person's `Co-authored-by` stays; `summary.md` is left as written). orch's own commits never had such lines. A commit an agent made by itself with its own credit is named before the push: `WARN 1 commit(s) on feature/x credit an AI tool`. Without `gh`, finish prints the title and the PR text to use, and the lead is told never to add a credit line.
|
|
25
|
+
- **Wait times.** The log says what a finished milestone waited for, for example `M6 waited 0m03s for M5's check`, `M5 -> claude-1 — it waited 0m40s for the lead's dispatch`, or `(M6 waited 0m12s for the reviewer)`. The summary has a new table, **"Waiting: time milestones sat still"**, with each milestone's waits.
|
|
26
|
+
- Tests (section 47): orch's commits credit only the developer; the PR text has no AI credit lines but keeps a person's co-author; summary.md is unchanged; an agent's own credited commit is named, and only that one; the no-gh message.
|
|
27
|
+
- Tests (section 46): the plan cards, waits and order, the missing-`Plain:` warning, `Plain:` kept out of the coder's task, `plan show` and `story` while the event manager runs, a SAY line for each event and the "before you stop" line, the diary in order with the lead's dispatch, answer and fix, the diary kept across `orch sync`.
|
|
28
|
+
- Tests (section 45): reviews come back while a check still runs; the check-slot wait is logged; status shows the running check; the first milestone to land skips the branch check and the second runs it; `Parallel checks: 2`; `Early review: off`; a failed check and a review blocker become one fix round; auto dispatch and its `AUTO-DISPATCHED` event; the Waiting table.
|
|
29
|
+
|
|
30
|
+
## [5.11.0] - 2026-11-19
|
|
31
|
+
|
|
32
|
+
Fixes a bug where the lead was never given its name, so orch could not wake it. Example: you run the plan and the run in a Claude Code pane, four agent panes are open in the same folder, and the lead never ran the `herdr agent rename` line its playbook asked for. The run went ahead anyway, M4 landed, and the lead only learned the run had finished when you asked. The log said "can't tell which pane is lead" at the start and "exited (code 0)" at the end, which read like a normal finish.
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
- **The lead is named by orch, not by a playbook line.** `orch lead plan`, `orch lead run`, `orch lead whoami`, `orch start` and `orch dispatch` run in the lead's own pane, so they name that pane `lead` themselves (`NAMED this pane (w7:p1) is now \`lead\``). They use the pane id herdr gives the shell (`HERDR_PANE_ID`), never the focused pane, never take the name from another pane that runs an agent, and never rename a coder's or the reviewer's pane.
|
|
36
|
+
- **No run starts without a lead that can be woken.** If herdr has no agent named `lead` and the pane can't be named, `orch start` and `orch dispatch` stop with `NO LEAD` and the exact command, for example `herdr agent rename w7:p1 lead`, and change nothing. (`Lead mode: off` runs are not checked.)
|
|
37
|
+
- **`orch status` shows it:** `!! LEAD NOT FOUND` with the fix, next to the lead line.
|
|
38
|
+
- **The event manager says it loudly.** At its start: `!! LEAD NOT FOUND: the lead (lead) can't be woken`. At ALL_DONE: `ALL_DONE, but the lead (lead) was NEVER WOKEN`. Its last line is now `STOPPED: the event manager finished the run (exit 0) — but the lead \`lead\` was never woken ...: 2 event(s) wait for it`, instead of `exited (code 0)`. A wake-up that herdr answers with `agent_not_found` counts as "lead not found", so the manager no longer waits two more minutes for it.
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
- Tests (section 44): dispatch and start refuse without a lead and change nothing; the lead's own pane is named; a shell pane, a coder's pane or a name another pane holds are never used; a wake-up's `--section` asks herdr nothing; the start warning, the ALL_DONE warning and the last log line. The test herdr now answers `agent_not_found` when an agent it has no name for is prompted, as real herdr does.
|
|
42
|
+
|
|
5
43
|
## [5.10.0] - 2026-11-18
|
|
6
44
|
|
|
7
45
|
The lead reads less text, and coders get a cleaner task, with no change to how a feature is built or checked. Example: a quick run ("make the login button blue") used to read the whole 31 KB planning playbook; now it reads about 15 KB. A run with 15 wake-ups no longer has the lead print the 17 KB run playbook again on each one. The check command, acceptance criteria, reviews, risk hold, fix rounds and summary work exactly as before.
|
package/README.md
CHANGED
|
@@ -150,6 +150,7 @@ Version choice, first match wins: `--version` flag › `ORCH_VERSION` env › `.
|
|
|
150
150
|
- a risky change is **held** → you look and run `orch approve Mn`.
|
|
151
151
|
|
|
152
152
|
You can also start the event manager yourself: `orch autopilot` in a spare terminal. It is the only driver of a run: while it runs, other `orch` commands that would change the run are refused (`orch status`, `orch report`, `orch approve` and the lead's `orch events` / `orch dispatch` / `orch answer` still work).
|
|
153
|
+
After each wake-up the lead says in its chat what happened and what it did, one plain line per event; `orch story` keeps the whole run as a diary, and `orch plan show` gives the plan as one short card per milestone.
|
|
153
154
|
4. **If the lead is away** (its pane is closed, or it never reads its events): nothing is lost, the events wait in the queue. Ready work starts by itself after 15 minutes, you get a desktop notification, and `orch events --peek` shows what is open. With `Lead mode: off` in the plan header there is no lead in the run at all: `orch autopilot` dispatches by itself and stops (exit 3) when it needs you.
|
|
154
155
|
5. **When it's done:** read `.orchestrate/summary.md` and do its manual checklist. It holds only what needs your eyes or hands (how the UI looks and behaves, a real device); whatever a command or a look at the code can settle, the run and the lead have already checked and listed with the evidence. Want a change? Tell the lead (for example "the login button should be blue"). It runs `orch fix M1 "the login button should be blue"`: one small follow-up job goes straight to the coder who built M1, with the check and review as before, and no new plan. You can run `orch fix` yourself too. When you are happy, run `orch finish`. It re-runs the check (or reuses it when it already passed on exactly these files; `--recheck` runs it anyway), removes the coders' worktrees and the `../<repo>-wt` folder (a coder folder with changes no milestone has is kept and named), pushes `feature/<name>` and opens a PR into `main` (with `gh`, or prints the compare link).
|
|
155
156
|
|
|
@@ -187,7 +188,7 @@ Model why: one module, a clear contract, an existing endpoint to copy; no design
|
|
|
187
188
|
- **Yours to change.** Add or re-rate models in `~/.config/herdr-orchestra/models.toml` (merged over `models.default.toml`). The default ratings are starting points with their sources, not benchmarks run by this project. A model that is not in the catalog still works; it just has no tier.
|
|
188
189
|
|
|
189
190
|
### Choose your lead
|
|
190
|
-
The agent whose pane you start the plan playbook in becomes the lead.
|
|
191
|
+
The agent whose pane you start the plan playbook in becomes the lead. orch names its pane `lead` by itself (`orch lead plan`, `orch start` and `orch dispatch` run in the lead's own pane and name it), and it writes `Lead: lead (<kind>)` into the plan. If herdr has no agent named `lead`, `orch start` and `orch dispatch` refuse with the exact rename command, so a run never starts with a lead nobody can wake; it never codes or reviews in its own run (`orch sync` rejects that). Give it a high-tier model: planning and coordination are reasoning work. Another pane of the same kind as a coder is fine.
|
|
191
192
|
|
|
192
193
|
| Lead | Start it with |
|
|
193
194
|
|---|---|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6.0.0
|
|
Binary file
|