herdr-orchestra 6.47.2 → 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 +25 -0
- package/VERSION +1 -1
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/package.json +1 -1
- package/playbooks/onboard.md +1 -1
- package/playbooks/plan.md +13 -9
- package/playbooks/run.md +4 -2
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.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
|
+
|
|
17
|
+
## [6.47.3] - 2026-12-02
|
|
18
|
+
|
|
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".
|
|
20
|
+
|
|
21
|
+
Example: an AGY lead running /orch-plan still reads `QUESTION PICKER you are Antigravity: ask step 2a's questions with your built-in ask_question tool…` first, and asks in the same picker as before. A Claude Code lead reads `AskUserQuestion (1 to 4 questions per call…)` there instead of in the shared text.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- `playbooks/plan.md`: step 2a, the no-picker case, step 10 ("command output is folded away", "Keep this team?"), the research helper and `orch lead check` lines name no agent or tool; the picker limit and "saves the file itself" point to the `QUESTION PICKER` line.
|
|
25
|
+
- `playbooks/run.md`: the first line and "Swap a coder" name no agent. `playbooks/onboard.md`: the "name only the agents in this team" example names no agent.
|
|
26
|
+
|
|
27
|
+
### Tests
|
|
28
|
+
- Section 63: the plan and run playbooks contain no agent name or picker tool name, and Claude Code, AGY, Pi and OpenCode each still get their own picker by name (Codex's on, off and unknown cases were already checked).
|
|
29
|
+
|
|
5
30
|
## [6.47.2] - 2026-12-02
|
|
6
31
|
|
|
7
32
|
The reviewer is no longer optional in a full run, and it checks security every time. Before, a milestone was reviewed only when the plan said `Review: yes` (the default was no), a full plan could say `Reviewer: none`, and the review prompt mentioned "security" as one word in a list. Example: a milestone that adds `GET /orders/:id` with no check that the order belongs to the logged-in user could land after a green check, unreviewed, when the lead had marked it `Review: no`.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.48.0
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herdr-orchestra",
|
|
3
|
-
"version": "6.
|
|
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/onboard.md
CHANGED
|
@@ -6,7 +6,7 @@ Hard rules:
|
|
|
6
6
|
- **Never create a skill whose name an agent already sees** (in the repo or its home folder): `orch onboard skills` lists the repo's.
|
|
7
7
|
- **No outside skill packs.** Never download, install or suggest one. You only write short skills from this repo's own code.
|
|
8
8
|
- **Never push to main** or merge a PR, even if the developer asks. Shared setup goes on its own branch with a PR that a person merges.
|
|
9
|
-
- **Name only the agents in this team.** WHAT ORCH FOUND lists the agents it checked: the agent you are and the agents open on this repo. Never offer a link, a rule file or a skill for an agent that is not on that list (no "so
|
|
9
|
+
- **Name only the agents in this team.** WHAT ORCH FOUND lists the agents it checked: the agent you are and the agents open on this repo. Never offer a link, a rule file or a skill for an agent that is not on that list (no "so <agent> sees ..." for an agent outside the team), and never name one in your questions. Nothing applies to this team: don't ask about it.
|
|
10
10
|
|
|
11
11
|
## 1. Look (read-only, a few minutes at most)
|
|
12
12
|
- Read the rule files listed above, `README`, and 3 to 5 real files that show how this repo works: one page or route, one API handler, one database change or migration, one test. Run `orch onboard skills` to see what the existing skills cover.
|
package/playbooks/plan.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
You are the LEAD of a Herdr agent team, whatever agent you are
|
|
1
|
+
You are the LEAD of a Herdr agent team, whatever agent you are. The rules are identical for every lead.
|
|
2
2
|
You need only three herdr commands, exactly as written here: `herdr agent list` (the agent panes), `herdr agent rename <pane id> <name>` (give a pane its plan name) and `herdr agent read <name> --source recent-unwrapped --lines 60` (what an agent shows). orch prints any other herdr command you need. Load the `herdr` skill (or run `herdr --skill`) only if one of these fails. The state helper is `orch` (`~/.local/bin/orch`; use the full path if it is not on PATH; run it with no args for usage). `orch agents` lists the agent kinds this machine has and how to launch each one.
|
|
3
3
|
|
|
4
4
|
## Your role: what and why, never how
|
|
@@ -20,12 +20,13 @@ Feature request = the user's message that asked you to run this playbook.
|
|
|
20
20
|
|
|
21
21
|
## 1. Preflight (stop and report if any check fails)
|
|
22
22
|
- **Lines above this playbook about a version.** `UPDATED herdr-orchestra X -> Y`: orch updated itself before this plan; tell the developer in one line and carry on. `herdr-orchestra Y is out (you have X)`: tell the developer once, with the command it names (`orch update`), and carry on with the plan. Never run `orch update` yourself: it is the developer's call. A `WARN auto-update ... failed` line: pass it on and carry on.
|
|
23
|
-
- `orch lead check` prints `OK`. If it fails, show the user its message (it says how to fix it), then stop. Do not test `$HERDR_ENV` yourself: some agents
|
|
23
|
+
- `orch lead check` prints `OK`. If it fails, show the user its message (it says how to fix it), then stop. Do not test `$HERDR_ENV` yourself: some agents run their shell tool outside the pane's environment, so it can be empty inside a real Herdr pane.
|
|
24
24
|
- Inside a git repo, and `git status --porcelain` is empty. If not, ask the user to commit or stash first. A folder that is not a git repo but holds the repos the feature needs (for example `frontend/` and `backend/`, each its own git repo) is fine: that is a **workspace** (step 9a); then each of those repos must be clean.
|
|
25
25
|
- `mkdir -p .orchestrate`.
|
|
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).
|
|
@@ -33,7 +34,7 @@ Feature request = the user's message that asked you to run this playbook.
|
|
|
33
34
|
- Find the **shared hotspot files** this feature will need to change: `package.json`/lockfiles, `pubspec.yaml`, `go.mod`, routes/router, `App.tsx`, nav/menu, global store, `docker-compose.yml`, `Makefile`, shared types.
|
|
34
35
|
- **The repo's own rules**, when it has them (in `docs/`, or the folder a `Docs:` plan header names): `glossary.md` (the words the project uses for things, and words to avoid), `adr/*.md` (decisions already made, and why), `coding-standards.md`. Use the glossary's words in the plan. Don't plan against a decision record; if the feature needs to change one, that is a question for the developer (step 2a).
|
|
35
36
|
- Use web docs only for facts the repo can't answer (a library's API, a protocol).
|
|
36
|
-
- If your tool has a read-only research helper (
|
|
37
|
+
- If your tool has a read-only research helper (a search or explore subagent), use it for wide searches across many files and keep only the facts it reports: your own context stays small for planning.
|
|
37
38
|
- Keep notes short: you'll put the relevant facts into each milestone's **Context**. List anything you could not determine as a question; never assume.
|
|
38
39
|
|
|
39
40
|
## 2a. Ask before you plan
|
|
@@ -41,9 +42,9 @@ A wrong guess in the plan is the most expensive mistake in a run: every coder bu
|
|
|
41
42
|
- From your research, list what the code, the docs and the request do NOT settle: business rules ("can a discount bring the total to zero?"), data shapes nobody has defined, auth or security trade-offs, which of two existing patterns to follow, a change to a decision record. Not questions the code answers: look those up yourself.
|
|
42
43
|
- **Nothing to ask?** Go straight on to step 2b. Don't invent questions.
|
|
43
44
|
- **Something to ask?** Use the **native question rule**: put all the questions in front of the developer at once, each with 2 or 3 concrete choices and your own suggestion and why (from what you found).
|
|
44
|
-
1. **You have a question picker: use it.** The `QUESTION PICKER` line at the top of this playbook names yours:
|
|
45
|
+
1. **You have a question picker: use it.** The `QUESTION PICKER` line at the top of this playbook names yours: the exact tool, how many questions and choices it takes, and what to do when it is off. Never write the choices as plain text when you have a picker: the developer then has to type `1 a, 2 b` instead of clicking. Choices `(a)`, `(b)`, `(c)`, your suggestion marked recommended (or labelled `(recommended)`), a custom answer allowed. A picker that takes fewer questions than you have (the `QUESTION PICKER` line gives its limit): ask in two rounds. When the answers come back, write the questions with their choices and the answers under `## Answers` in `.orchestrate/questions.md` (skip this when the `QUESTION PICKER` line says your picker saves the file itself), then go straight on: no extra message, no waiting.
|
|
45
46
|
2. **The developer closed the picker without answering** (Escape, `cancelled`): don't guess and don't plan. Say "Planning is paused until you answer these. Say when you are ready, or answer in chat." and **STOP**.
|
|
46
|
-
3. **No picker, or it can't show here** (the `QUESTION PICKER` line says OFF, headless, `no_ui`, the tool is missing or refused, e.g.
|
|
47
|
+
3. **No picker, or it can't show here** (the `QUESTION PICKER` line says OFF, headless, `no_ui`, the tool is missing or refused, e.g. an "unavailable" error): write the questions to `.orchestrate/questions.md` and show the developer the same text, **all in one message**: one line each, numbered. End with: "Answer by number (for example `1 a, 2 both, 3 no`). I write the plan after your answers; nothing runs until you say go." Then **STOP** and wait.
|
|
47
48
|
Example (the chat form; a picker shows the same question and choices, one at a time):
|
|
48
49
|
```
|
|
49
50
|
Before I plan, 3 questions:
|
|
@@ -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.
|
|
@@ -326,15 +329,16 @@ Rules for every milestone:
|
|
|
326
329
|
|
|
327
330
|
## 10. Validate and show the plan
|
|
328
331
|
- Run `orch sync`. Fix every ERROR. Fix or consciously accept every WARN: a word the glossary says to avoid, a new word or decision record no milestone writes down, missing dependency reasons, hotspot files in parallel milestones, "how" in a milestone, overlap, a milestone without `Why separate` or `Estimate`, independent milestones in shared mode, coders left idle by a fully sequential plan, a tier no coder reaches, a model outside the catalog.
|
|
329
|
-
- Run `orch plan show` and write its cards in your own chat reply, as they are. **Running the command is not showing it**:
|
|
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.
|
|
336
340
|
1. Write the team table in your chat as it is (`orch plan show` prints it under the cards; `orch plan team` prints it alone): each milestone and the reviewer, its coder, model and thinking level, and whether the developer chose it. When it prints `SUBAGENT MODE`, skip this block.
|
|
337
|
-
2. Ask one question, in your question picker when you have one (the tool the `QUESTION PICKER` line at the top of `orch lead plan` named
|
|
341
|
+
2. Ask one question, in your question picker when you have one (the tool the `QUESTION PICKER` line at the top of `orch lead plan` named): the `ASK:` line of the table, "Keep this team? (M1 codex-2 gpt-6.2-sol medium; …; Reviewer reviewer gpt-6.2-sol medium)", so the team is in the question even if your text above it scrolls away, with (a) Keep it (recommended), (b) Change a step, (c) Change the reviewer. No picker, or it can't show here: after the table write "Type **ok** to keep it, or what to change, for example `M3 sol low` or `reviewer luna high`." and **STOP** until they answer.
|
|
338
342
|
3. Change a step: ask one question at a time, each in the picker: "Which step?" (the milestones), then "Which model?" (the models on the table's `You can pick` line), then "Which thinking?" (its thinking levels). Change the reviewer: the same, without "Which step?". Never offer a model the `Never allowed` line names. Then run `orch plan model <Mn> <model>@<thinking>` (or `orch plan model reviewer <model>@<thinking>`). A typed answer means the same: in `M3 sol low`, `sol` is the model on the `You can pick` line whose name has that word (`gpt-6.2-sol`), so run `orch plan model M3 gpt-6.2-sol@low`. When a word fits two models or none, ask which one.
|
|
339
343
|
4. Tell the developer in one line what the command said (the step is locked to that model; a new coder joins when no coder ran it, and `orch team up` opens its panel when the run starts), then run `orch plan team` again, write the new table in your chat and ask its `ASK:` question again, until they keep it.
|
|
340
344
|
The developer's choice is a lock: orch gives that step only to a coder on that model, and you never change it yourself (no `--to` a coder on another model, no `--tier`, no `orch escalate` for it: orch refuses them). Only the developer changes it, now or later in the run (`orch lead run` says how).
|
package/playbooks/run.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
You are the LEAD, whatever agent you are
|
|
1
|
+
You are the LEAD, whatever agent you are. All bookkeeping goes through `orch` (`~/.local/bin/orch` — use the full path if `orch` is not on PATH). Trust its output over your memory: it owns task states, who is free, sentinel files, branches and merges.
|
|
2
2
|
Extra user input = whatever the user wrote alongside asking you to run this playbook (a go-ahead, answers, overrides, or nothing).
|
|
3
3
|
|
|
4
4
|
## How a run works: you decide, the event manager does
|
|
@@ -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.
|
|
@@ -75,7 +76,7 @@ If you changed plan.md by hand, run `orch sync` (it works once the event manager
|
|
|
75
76
|
|
|
76
77
|
**The developer says "stop sending work to <coder>"** (for example, no Claude today): run `orch bench <worker> off "<their reason>"`. It holds until `orch bench <worker> on`, across restarts, `orch sync` and `orch resume`; a usage-limit bench does not. Tell the developer what it still holds (`orch status`). Never try to keep a coder out by remembering it yourself.
|
|
77
78
|
|
|
78
|
-
**Swap a coder** (
|
|
79
|
+
**Swap a coder** (one agent kind for another): `orch stop` (the event manager finishes its current step and exits; nothing is lost), change `Workers:` in plan.md, `orch sync`, `orch team up`, check that `orch status` shows the new worker as `herdr=ok`, then `orch resume`. Never kill the event manager by hand.
|
|
79
80
|
|
|
80
81
|
**The developer picks another model** for a milestone or the reviewer (for example "M3 use luna high"): run `orch plan model M3 gpt-6-luna@high` (the model's full name from `orch plan team`; `orch plan model reviewer ...` for the reviewer; `auto` gives a milestone back to its level) and tell the developer in one line what it printed. Do exactly what its `NEW` and `NOTE` lines say (`orch start` then `orch team up` for a new coder; pause and dispatch again to move a milestone that is being built now). A milestone the developer locked to a model (`Model:` in plan.md, "locked by you" in `orch plan team`) only ever goes to a coder on that model: never move it to another model yourself, only when they ask.
|
|
81
82
|
|
|
@@ -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
|
|