herdr-orchestra 6.47.3 → 6.48.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,18 @@
2
2
 
3
3
  All notable changes. Versions follow [semantic versioning](https://semver.org).
4
4
 
5
+ ## [6.48.0] - 2026-12-02
6
+
7
+ The lead now follows a repository's own delivery standard. When `AGENTS.md` points to one (a doc, a checklist, a skill or a link that says what every change must deliver), the lead reads it while planning, writes the requirements that apply to this change into the plan, makes sure every coder's brief spells them out as plain instructions (so a coder that does not have that doc or skill can still follow them), and checks each one at the end. A repository whose `AGENTS.md` names no delivery standard gets exactly the same plan and run as before.
8
+
9
+ Example: `AGENTS.md` says "follow docs/delivery.md", which asks for a changelog entry and a test for new behaviour. Before, the plan said `## Global instructions` `none` and nothing checked the changelog. Now it says `Delivery standard (from AGENTS.md: docs/delivery.md):` `- Every new behaviour gets a test in the same change`, the last milestone has the acceptance criterion `CHANGELOG.md has a line under [Unreleased] for this change` with CHANGELOG.md in its Likely files, and the summary gets a "Delivery standard" section with one checked line per requirement.
10
+
11
+ ### Changed
12
+ - `playbooks/plan.md`: step 2 reads the delivery standard `AGENTS.md` points to (or asks the developer when it can't be opened); a new `Delivery standard` rule (also printed for quick runs) puts it at the top of `## Global instructions` as concrete instructions, gives once-per-change items to one milestone, and keeps PR requirements as `- PR:` lines; step 10 tells the developer about it.
13
+ - `playbooks/run.md`: before the first dispatch the lead makes each requirement a concrete instruction in the brief; `orch answer` / `orch fix` texts name requirements in words; ALL_DONE adds a "Delivery standard" section with evidence, offers `orch fix` for a missed one, and adds PR requirements to summary.md (the PR description).
14
+ - No change to orch commands, approval holds or event handling.
15
+ - `AGENTS.md` (and `CLAUDE.md`, which points to it) for anyone working on this repo: the token budget rule (measure what the lead reads on main vs the branch, put the table in the PR, wake-up text never grows) plus the full-check, version and never-push-to-main rules.
16
+
5
17
  ## [6.47.3] - 2026-12-02
6
18
 
7
19
  The shared lead playbooks no longer name any agent. Every lead (Claude Code, Codex, AGY, Pi, OpenCode or any other) reads the same `orch lead plan` and `orch lead run` text, and that text listed every agent's picker tool ("`AskUserQuestion` in Claude Code, `request_user_input` in Codex, `ask_question` in Antigravity…"), one agent's limit ("Claude Code takes 4 at a time"), one agent's error ("Codex's unavailable in Default mode") and "e.g. `ask_question` in Antigravity" for "Keep this team?". Now each agent's tool name and limits come only from the one `QUESTION PICKER` line orch prints for the agent that is running (unchanged since 6.29.0), and the shared text just says "use the picker that line names".
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.47.3
1
+ 6.48.0
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herdr-orchestra",
3
- "version": "6.47.3",
3
+ "version": "6.48.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/plan.md CHANGED
@@ -26,6 +26,7 @@ Feature request = the user's message that asked you to run this playbook.
26
26
 
27
27
  ## 2. Research (read-only, before planning anything)
28
28
  - Read `AGENTS.md` / `CLAUDE.md` / `README` and any spec the request points to.
29
+ - **The repo's delivery standard.** If `AGENTS.md` points to a delivery standard that changes must follow (a doc such as `docs/delivery.md`, a checklist, a skill, a link), open it and read it: a skill is its `SKILL.md` (in the repo or in your skills folder), a link only if you can reach it. Keep the requirements that apply to THIS change, for example a changelog entry, a version bump, tests for new behaviour, docs for a new option, a section in the PR description, screenshots of a UI change. You write them into the plan (the `Delivery standard` rule, step 9; a quick run uses the same rule). If it points to something you can't open, ask the developer (step 2a): paste it, or plan without it. If `AGENTS.md` names no delivery standard, skip this: the plan gets no delivery-standard block and everything works as before.
29
30
  - **The project's skills**, when the `PROJECT SKILLS` line above lists some: `orch onboard skills` says what each one is for. You give each milestone the ones that fit (`Skills:`, step 9); never one that line says orch does the job of.
30
31
  - Map the parts of the codebase the feature touches: entry points, the modules and files involved, existing patterns to follow (how similar features are built), data models and tables, tests and how they run.
31
32
  - **Monorepo?** (workspaces in `package.json`/`pnpm-workspace.yaml`/`turbo.json`/`nx.json`, or folders like `apps/*`, `packages/*`, `backend/` + `frontend/`, `server/` + `client/`): list each app/package the feature touches, what it owns (API, web UI, mobile, shared types), and how each one is checked. For a feature that spans backend and frontend, understand BOTH sides well enough to write the contract between them: endpoints, request/response fields, where the shared types live. When each side has its own quicker check (e.g. `cd frontend && npm test`), note it for a `Check <side>:` line (step 9a).
@@ -73,6 +74,7 @@ If any is false, use the full process: run `orch lead plan full` and follow its
73
74
  - **Team: one coder, no reviewer.** Your pane is named `lead` already (`orch lead plan` did it; if it printed a rename command, run it). Pick ONE coder pane whose model fits the tier (a free pane of any kind; if only you are open, `orch team <your kind> --coders 1 --no-reviewer`). `Reviewer: none`, unless the developer wrote `quick review:`: then one reviewer pane and `Review: yes`. Why no reviewer: a quick change is small and stays out of risky areas, the check command (lint, types, tests) still has to pass before it lands, and the developer looks at UI changes in the browser anyway; the reviewer is often the slowest step of a small run.
74
75
  - **One milestone** that holds every change in the request, with **one acceptance criterion per change**, so the coder and the summary go through them one by one.
75
76
  - **Fields:** only `Tier`, `Estimate`, `Likely files`, `Goal`, `Acceptance criteria` and the `Context` facts the coder needs to find their way (plus `Skills:` when a project skill fits). Leave out `Feature breakdown`, `Why separate`, `Needs`, `Model why`, `Role`, `Interfaces` (none) and `Prefer` unless one really helps. A backend change gets an acceptance criterion a test can prove (e.g. "GET /orders returns `createdAt` as ISO 8601; a test covers it").
77
+ - **Delivery standard** (only when step 2 found one): its block goes under `## Global instructions` in place of `none`, and what is done once for the change (a changelog entry, a docs line) becomes an acceptance criterion with its file in `Likely files`. A requirement that needs a file a quick run can't touch (a package manifest for a version bump, CI) makes it a full run.
76
78
  - **Header:** `Mode: quick`, your `Quick because:` line, `Isolation: shared`, `Setup command: none` (shared mode uses your folder as it is), the `Check command`, `Estimate` = the milestone's.
77
79
  - **Don't run the check yourself.** The event manager runs it before any work starts and tells you if it is already red (then handle it as in `orch lead run`, "Red baseline").
78
80
  - Write the plan (format below), run `orch sync` and fix every ERROR, then write the developer five lines at most in your chat as text (a command's output is folded away, so it doesn't count): the changes (one per line), the coder and model, the estimate and your `Quick because:`. Then let the developer choose the models (the block "Let the developer choose the models" below), and when they keep the team, say "Say **go**, or **full** if you want the normal process." **STOP** and wait for go, as in a full plan: the developer sees the short plan before anything changes.
@@ -225,7 +227,7 @@ Workers: claude-1 (claude: sonnet), claude-2 (claude: haiku), codex-1 (codex: gp
225
227
  Reviewer: reviewer (claude: opus) | none (developer: <why>)
226
228
 
227
229
  ## Global instructions
228
- <constraints for every milestone, e.g. the developer's "Must not" rules — or "none">
230
+ <the Delivery standard block first, when the repo has one (rule below); constraints for every milestone, e.g. the developer's "Must not" rules — or "none">
229
231
 
230
232
  ## Feature breakdown
231
233
  - <one line per real piece of work: what changes and where>
@@ -315,6 +317,7 @@ Rules for every milestone:
315
317
  - **No how**: no code blocks, no function names to create, no numbered implementation steps. `orch sync` warns if it sees them.
316
318
  - **Estimate**: from step 6, on every milestone and in the header. `orch sync` refuses a value that is not a time (`40m`, `1h30m`, `2h`) and warns when one is missing.
317
319
  - **Tier, Needs, Model why**: from step 6, on every milestone. The model in `Workers:` is what the pane really runs, never a wish. `orch sync` refuses a denied model and warns when no coder reaches a milestone's tier or the reviewer is weaker than the work.
320
+ - **Delivery standard** (only when step 2 found one; otherwise leave it out): put a block at the top of `## Global instructions`, which every coder and the reviewer get in their task file. First line `Delivery standard (from <where AGENTS.md points>):`, then one requirement per line, each a concrete instruction a coder can follow without the doc or skill it comes from: `- Add a line under "## [Unreleased]" in CHANGELOG.md that says what changed`, not `- Follow the release checklist`. These say what the change must deliver, not how to build it. A requirement done once for the whole change (a version bump, a changelog entry, a docs page) goes to ONE milestone, usually the last to land: an acceptance criterion there and its file in `Likely files`, so parallel milestones don't fight over the file. A requirement about the PR itself (its title, a description section, a linked ticket) goes in the block as `- PR: <requirement>`: coders don't open the PR, so the lead handles it at the end of the run.
318
321
  <!-- /quick -->
319
322
  - **Skills**: the project's skills that fit this milestone (`Skills: frontend-developer, test-driven-development`), by the names `orch onboard skills` prints. orch lists them in the coder's task file with what each is for. Leave the line out when none fits. Never a skill that runs the work itself (its own worktree, merging, helper agents): orch tells coders not to use those in a run, and `orch sync` warns.
320
323
  - **Prefer**: a worker kind or name from `Workers:` when a tool (not a model) suits the work better, otherwise `any`. A preference, not a lock; the tier comes first.
@@ -329,7 +332,8 @@ Rules for every milestone:
329
332
  - Run `orch plan show` and write its cards in your own chat reply, as they are. **Running the command is not showing it**: agents fold command output away, so the developer sees only what you write as text. The cards are each milestone in plain words, what it waits for and why, who builds it on which model, how long, and the order. Fix every `WARN no Plain: line` first. Then add, in plain words too:
330
333
  - the estimate for the whole feature, and for each milestone its tier and `Model why` (who builds it on which model comes next, in the team table);
331
334
  - the research facts that shaped the plan, the answers from step 2a and where they went, and all open questions;
332
- - which milestones are hard to undo and why (the cards say so), and the new glossary words.
335
+ - which milestones are hard to undo and why (the cards say so), and the new glossary words;
336
+ - the delivery standard, when the repo has one: where it comes from and its requirements for this change, in a few words.
333
337
  Keep code words (file names, functions, endpoints) out of what you write here: they are in plan.md for whoever wants them.
334
338
  <!-- quick: Let the developer choose the models (from step 10) -->
335
339
  **Let the developer choose the models.** Only now, after the plan cards and everything above (in a quick run, its five lines) are written in your chat as text; never while you are still researching or planning, and never in the same breath as running the commands. Order: plan cards, then the team table, then the question; the "Plan written…" lines below come once they keep the team.
package/playbooks/run.md CHANGED
@@ -41,6 +41,7 @@ A run behaves like a call stack. You **dispatch** work and **pause**. The **even
41
41
 
42
42
  ## 1. Start the run (the developer said go)
43
43
  1. Run `orch sync`. Stop on ERROR; report every WARN.
44
+ - **Delivery standard**, when `## Global instructions` in plan.md starts with a `Delivery standard` block (no block: skip this). orch writes each coder's brief (its task file) from its milestone and the Global instructions, and the brief must work on its own, even for a coder that does not have the doc or skill the standard comes from. Read the block and the milestones once, before the first dispatch: every requirement is a concrete instruction (what to do, and where), and each one done once for the change is an acceptance criterion of one milestone with its file in `Likely files`. Rewrite a line that only names the doc or skill ("follow the release checklist") into what it asks for, then `orch sync` again. Later, any text you give a coder (`orch answer`, `orch fix`, a fact you add after a failure) says the requirement that applies in words, never only the skill's name.
44
45
  2. Run `orch start`. It checks that herdr can wake you: it names your pane `lead` if it is not named yet (`NAMED`), or refuses with `NO LEAD` and the exact `herdr agent rename <pane> lead` command; give that to the developer and stop. `orch dispatch` makes the same check. If a worker or the reviewer shows `herdr=NOT FOUND`, run `orch team up`: it opens a pane for each missing agent in a herdr tab called `team` (your tab stays whole), in its folder (its worktree, or the repo), starts it on its plan model and gives it its plan name. Then run `orch start` again. If team up reports `WAITING` (the new pane shows a first-run question such as "trust this folder" or a sign-in) or `FAILED`, or a worker shows `STALE pane`, tell the developer exactly what to do in which pane (`orch agents launch <kind> --model <id>` gives the start command), and stop. `WARN agent <kind>: …` means a launch flag in the registry is out of date for the installed tool; show it (`orch doctor <kind>` has the detail). Workers shown as `detect:off` are fine.
45
46
  3. Dispatch every milestone whose dependencies are met: `orch dispatch M1 M2`. It prints who can take each one, and starts the event manager if none is running. If it says it could not start it, ask the developer to run `orch autopilot` in a terminal.
46
47
  - `--to <worker>` gives a milestone to one coder; `--tier high` asks for a stronger model than the plan says. Use them only with a reason, and tell the developer.
@@ -93,6 +94,7 @@ If you changed plan.md by hand, run `orch sync` (it works once the event manager
93
94
  - **"Design decisions & study notes"** for the developer (include any milestone that needed a stronger model than planned, and what that says about the plan).
94
95
  - **"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>"`.
95
96
  - **"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.
97
+ - **"Delivery standard"** (quick and full runs, only when plan.md's Global instructions has a `Delivery standard` block): one line per requirement, met or not, with the evidence (`git diff --stat` shows CHANGELOG.md changed, VERSION reads 1.4.0, the test that covers the new behaviour). A requirement not met is a defect: tell the developer and offer `orch fix Mn "<the requirement, in words>"`. A `PR:` requirement (a description section, a linked ticket): `orch finish` uses summary.md as the PR description, so add what it asks for to summary.md; what you can't know (a ticket number) or a PR title it wants, tell the developer to add when they open the PR.
96
98
  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.**
97
99
  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.
98
100