herdr-orchestra 6.47.0 → 6.47.3
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 +23 -0
- package/README.md +1 -1
- package/VERSION +1 -1
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/bin/orch +28 -3
- package/package.json +1 -1
- package/playbooks/onboard.md +1 -1
- package/playbooks/plan.md +10 -10
- package/playbooks/run.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes. Versions follow [semantic versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [6.47.3] - 2026-12-02
|
|
6
|
+
|
|
7
|
+
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".
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- `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.
|
|
13
|
+
- `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.
|
|
14
|
+
|
|
15
|
+
### Tests
|
|
16
|
+
- 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).
|
|
17
|
+
|
|
18
|
+
## [6.47.2] - 2026-12-02
|
|
19
|
+
|
|
20
|
+
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`.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- **Every milestone of a full run is reviewed.** A milestone is reviewed whenever the plan has a reviewer, whatever its `Review:` line says; `Review: no` in a full run gets a warning from `orch sync` naming the milestone. Quick runs are unchanged: no reviewer, unless the developer starts with `quick review:` (then `Review: yes`).
|
|
24
|
+
- **A full plan must name a reviewer.** `orch sync` refuses a bare `Reviewer: none` in a full plan and says how to add one (`orch team <kind>` picks one). Only when the developer asked for no review may the plan say `Reviewer: none (developer: <their reason>)`.
|
|
25
|
+
- **The reviewer checks three security points on every milestone**, and each problem is a blocker: secrets (no API key, token, password or private key in code, config, tests, fixtures or logs), authorization (every new or changed endpoint, action or query checks that the caller may do it: logged in, the right role, only their own data) and input validation (input from users, requests, files or other services is checked before it reaches a database query, a shell command, a file path, HTML or a redirect). Both the pane reviewer's task file and the Pi reviewer subagent have them.
|
|
26
|
+
- The plan playbook, README and docs (planning, plan file, workflow, reviews) say the same.
|
|
27
|
+
|
|
5
28
|
## [6.47.0] - 2026-11-30
|
|
6
29
|
|
|
7
30
|
The lead reads far less. Most of the playbook text a lead read was text it did not need at that moment: on "go" it got the whole run playbook (22,774 characters), including the event table and the summary steps that `orch events` prints again exactly when they are needed, and it got all of it again on every message the developer sent during a run. Every wake-up repeated the full hard rules. "M1 landed" woke the lead just to write one line. And the whole planning (the plan playbook, every file read while researching) stayed in the lead's chat for the rest of the run, sent again on every call.
|
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ Version choice, first match wins: `--version` flag › `ORCH_VERSION` env › `.
|
|
|
148
148
|
|
|
149
149
|
**An all-Codex team.** Codex runs every command in its sandbox, which blocks two things orch needs: talking to herdr, and writing the repo's `.git` (branches, worktrees). So orch starts every Codex pane with two settings that open just those (`-c sandbox_workspace_write.network_access=true`, which also allows the internet, and the repo's `.git` as a writable folder). Start your own Codex lead the same way: `orch agents launch codex --role lead --model gpt-6.2-sol@medium` prints the command; `orch lead plan` warns when the pane you run it in is still blocked. A Codex model id can end in a thinking level: `gpt-6.2-sol@low` is Sol on low thinking. The Codex levels are small = `gpt-6-luna@high`, medium = `gpt-6.2-sol@low`, high = `gpt-6.2-sol@medium` (Astra stays blocked), and `orch models` asks Codex itself (`codex debug models`) for its current models, so a newer Sol or Luna is used without anyone editing a file.
|
|
150
150
|
|
|
151
|
-
2. **Orchestration plan:** start the plan playbook in the lead's pane (see [Choose your lead](#choose-your-lead)). The lead researches, writes `.orchestrate/plan.md` and shows you the milestones, which coder and model each one goes to, and why. Edit the plan if you like: dependencies, tier,
|
|
151
|
+
2. **Orchestration plan:** start the plan playbook in the lead's pane (see [Choose your lead](#choose-your-lead)). The lead researches, writes `.orchestrate/plan.md` and shows you the milestones, which coder and model each one goes to, and why. Edit the plan if you like: dependencies, tier, your answers to open questions. A full run always has a reviewer and reviews every milestone; besides the spec and your written rules, the reviewer checks secrets, authorization and input validation on each one.
|
|
152
152
|
3. **Orchestration run:** tell the lead **go** (`/orch-run`). It dispatches the milestones (`orch dispatch M1 M2`), which starts the event manager, and pauses. From here the run looks after itself:
|
|
153
153
|
- a milestone finishes → the event manager checks and merges it, then wakes the lead, which dispatches what that unlocked;
|
|
154
154
|
- a coder asks a question → the lead is woken; if the plan or the code already answers it, it answers, otherwise it asks you in its pane. `orch answer M2 "<your answer>"` writes the answer into the plan and the **same coder** carries on with its work; if a criterion can't be met (say an outside API is missing) and you agree to ship the rest, the lead runs `orch answer M2 --defer AC2 "<your words>"`: no fix rounds or stronger-model retries for AC2, and the summary lists it as **not done**, with a follow-up;
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.47.
|
|
1
|
+
6.47.3
|
|
Binary file
|
package/bin/orch
CHANGED
|
@@ -1488,7 +1488,7 @@ def cmd_sync(args):
|
|
|
1488
1488
|
errors.append(f"lead {lead[0]!r} is also the Reviewer — the lead never reviews in its own run")
|
|
1489
1489
|
reg = registry(required=False)
|
|
1490
1490
|
cat = models_catalog()
|
|
1491
|
-
models = {**parse_models(get("workers")), **parse_models(rev), **parse_models(get("lead"))}
|
|
1491
|
+
models = {**parse_models(get("workers")), **(parse_models(rev) if reviewer else {}), **parse_models(get("lead"))}
|
|
1492
1492
|
unrated = set()
|
|
1493
1493
|
for name, mid in models.items():
|
|
1494
1494
|
why = model_denied(cat, mid)
|
|
@@ -1735,6 +1735,16 @@ def cmd_sync(args):
|
|
|
1735
1735
|
if has_open_questions(by_id[tid]):
|
|
1736
1736
|
errors.append(f"{tid} has open questions — a quick run needs a clear change; answer them or use "
|
|
1737
1737
|
f"`Mode: full`")
|
|
1738
|
+
# full runs always have a reviewer: only the developer can drop it, and the plan says why
|
|
1739
|
+
if not quick and reviewer is None and not re.match(r"none\s*\(\s*developer\b[^)]*\w[^)]*\)", rev.strip(), re.I):
|
|
1740
|
+
errors.append("a full run always has a reviewer — add one (`Reviewer: reviewer (<kind>: <model>)`, "
|
|
1741
|
+
"`orch team <kind>` picks one), or, only when the developer asked for no review, write "
|
|
1742
|
+
"`Reviewer: none (developer: <why>)`")
|
|
1743
|
+
if not quick and reviewer is not None:
|
|
1744
|
+
skipped = [tid for tid in enabled if field(by_id[tid], "review", "").lower().startswith("n")]
|
|
1745
|
+
if skipped:
|
|
1746
|
+
warns.append(f"{', '.join(skipped)} say `Review: no` — a full run reviews every milestone, so they are "
|
|
1747
|
+
f"reviewed anyway (only a quick run can skip the review)")
|
|
1738
1748
|
# hard to undo (`Door: one-way (why)`): always waits for the developer's `orch approve` before it lands
|
|
1739
1749
|
doors = {}
|
|
1740
1750
|
for tid in ids:
|
|
@@ -1905,7 +1915,8 @@ def cmd_sync(args):
|
|
|
1905
1915
|
**o, # keep runtime fields (last_report, review_ok, conflicts, ...)
|
|
1906
1916
|
"title": t["title"], "deps": deps[tid],
|
|
1907
1917
|
"prefer": field(t, "prefer", "any").split()[0].lower() if field(t, "prefer", "any") else "any",
|
|
1908
|
-
|
|
1918
|
+
# full runs: every milestone is reviewed; quick runs only with `Review: yes` (`quick review:`)
|
|
1919
|
+
"review": reviewer is not None and (not quick or field(t, "review", "no").lower().startswith("y")),
|
|
1909
1920
|
"status": o.get("status", "pending"), "reason": o.get("reason", ""),
|
|
1910
1921
|
"worker": o.get("worker"), "dir": o.get("dir"), "attempt": o.get("attempt", 0),
|
|
1911
1922
|
"fix": o.get("fix", 0), "review_round": o.get("review_round", 0),
|
|
@@ -3870,7 +3881,15 @@ def cmd_review(args):
|
|
|
3870
3881
|
"Answer two questions, separately, and give every finding the `axis` of the one it answers:\n"
|
|
3871
3882
|
"1. `spec`: did it build what the task asks, no more and no less? Every acceptance criterion met, nothing "
|
|
3872
3883
|
"missing, no behaviour the task did not ask for. Correctness, API/contract consistency, UI/UX, security, "
|
|
3873
|
-
"edge cases and missing tests belong here
|
|
3884
|
+
"edge cases and missing tests belong here.\n"
|
|
3885
|
+
" Security, check all three every time, each problem is a `blocker`:\n"
|
|
3886
|
+
" - secrets: no API key, token, password or private key in code, config, tests, fixtures or logs (it "
|
|
3887
|
+
"belongs in an environment variable or the secret store the project already uses);\n"
|
|
3888
|
+
" - authorization: every new or changed endpoint, action or query checks that the caller may do it "
|
|
3889
|
+
"(logged in, the right role, only their own data), not just that the request is well formed;\n"
|
|
3890
|
+
" - input validation: input from users, requests, files or other services is checked before it reaches a "
|
|
3891
|
+
"database query, a shell command, a file path, HTML or a redirect (injection, path traversal, XSS).\n"
|
|
3892
|
+
" When one does not apply (e.g. no new endpoint), there is nothing to report for it."
|
|
3874
3893
|
+ (f" orch saw changes outside the milestone's Likely files: {', '.join(scope)}. Say whether each one was "
|
|
3875
3894
|
"needed." if scope else "") + "\n"
|
|
3876
3895
|
"2. `rules`: does it follow the project's own written rules: "
|
|
@@ -12653,6 +12672,12 @@ and the code around it.
|
|
|
12653
12672
|
Answer two questions, separately:
|
|
12654
12673
|
- `spec`: did it build what the task asks, no more and no less? Every acceptance criterion, correctness, security,
|
|
12655
12674
|
edge cases, missing tests.
|
|
12675
|
+
- Security, check all three every time; each problem is a BLOCKER:
|
|
12676
|
+
- secrets: no API key, token, password or private key in code, config, tests, fixtures or logs;
|
|
12677
|
+
- authorization: every new or changed endpoint, action or query checks that the caller may do it (logged in, the
|
|
12678
|
+
right role, only their own data);
|
|
12679
|
+
- input validation: input from users, requests, files or other services is checked before it reaches a database
|
|
12680
|
+
query, a shell command, a file path, HTML or a redirect (injection, path traversal, XSS).
|
|
12656
12681
|
- `rules`: does it follow the project's written rules: the task file's "Project rules" (coding rules file, decisions,
|
|
12657
12682
|
words), or AGENTS.md / CLAUDE.md? Only written rules count; name the rule it breaks.
|
|
12658
12683
|
Don't report what the check command (lint, types, tests) already catches.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herdr-orchestra",
|
|
3
|
-
"version": "6.47.
|
|
3
|
+
"version": "6.47.3",
|
|
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,7 +20,7 @@ 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
|
|
|
@@ -33,7 +33,7 @@ Feature request = the user's message that asked you to run this playbook.
|
|
|
33
33
|
- 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
34
|
- **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
35
|
- 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 (
|
|
36
|
+
- 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
37
|
- 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
38
|
|
|
39
39
|
## 2a. Ask before you plan
|
|
@@ -41,9 +41,9 @@ A wrong guess in the plan is the most expensive mistake in a run: every coder bu
|
|
|
41
41
|
- 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
42
|
- **Nothing to ask?** Go straight on to step 2b. Don't invent questions.
|
|
43
43
|
- **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:
|
|
44
|
+
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
45
|
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.
|
|
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. 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
47
|
Example (the chat form; a picker shows the same question and choices, one at a time):
|
|
48
48
|
```
|
|
49
49
|
Before I plan, 3 questions:
|
|
@@ -117,7 +117,7 @@ Then the run is the same as any run (`orch lead run`): the coder builds it, the
|
|
|
117
117
|
- Your pane is named `lead` for you: `orch lead plan` did it (look for `NAMED` or `LEAD` at the top of its output). If it printed a rename command instead, run `orch lead whoami`, which shows YOUR pane, and run the rename command it prints. Never prompt your own pane.
|
|
118
118
|
- Run `herdr agent list` and `orch agents` (which kinds exist here, their roles, and whether herdr can watch them).
|
|
119
119
|
- **Coders** = the other agent panes the user wants coding (any kind with the `coder` role: claude, codex, amp, opencode, hermes, agy…). Name them `<kind>-1`, `<kind>-2`… with `herdr agent rename`, and always target them by name.
|
|
120
|
-
- **Reviewer** = one spare agent the user picks (any kind, including another pane of your own tool), named `reviewer`.
|
|
120
|
+
- **Reviewer** = one spare agent the user picks (any kind, including another pane of your own tool), named `reviewer`. A full run always has one: if no spare pane is open, `orch team <your kind>` adds a reviewer pane. Only when the developer says they want no review, write `Reviewer: none (developer: <their reason>)`; a bare `Reviewer: none` is refused by `orch sync` (only a quick run may have no reviewer).
|
|
121
121
|
- **Only you are open?** When `herdr agent list` shows no agent pane besides yours, build the team from your own tool: run `orch team <your kind>` (e.g. `orch team codex`). It picks coders and a reviewer of that tool on the models the catalog allows for it, spread over its tiers, and prints the `Workers:` and `Reviewer:` lines: put them in the plan. Their panes don't exist yet; `orch team up` opens them, each in its own folder and on its model, when the developer says go. Tell the developer in one line, e.g. "Only one agent window is open, so the team is 2 more Codex coders and a Codex reviewer; orch opens their windows when you say go." Use `--coders 1` when the feature is one milestone, `--models a,b` for the models the developer's tool really reaches, or another installed tool if the developer asks (`orch team claude`). Never open more panes than the plan needs.
|
|
122
122
|
- You are never a coder or the reviewer in your own run. Another pane of the same kind as you is fine.
|
|
123
123
|
- A pane herdr doesn't recognise as an agent (it isn't in `herdr agent list`) can still work: write it as `name (kind @pane:<pane id>)` in `Workers:`. `orch` then types prompts into that pane and relies only on its done file.
|
|
@@ -222,7 +222,7 @@ Budget: <e.g. 3h — optional>
|
|
|
222
222
|
Estimate: <how long the whole feature should take, e.g. 1h30m>
|
|
223
223
|
Lead: lead (<your kind>: <your model>)
|
|
224
224
|
Workers: claude-1 (claude: sonnet), claude-2 (claude: haiku), codex-1 (codex: gpt-6.2-sol@low)
|
|
225
|
-
Reviewer: reviewer (claude: opus) | none
|
|
225
|
+
Reviewer: reviewer (claude: opus) | none (developer: <why>)
|
|
226
226
|
|
|
227
227
|
## Global instructions
|
|
228
228
|
<constraints for every milestone, e.g. the developer's "Must not" rules — or "none">
|
|
@@ -319,14 +319,14 @@ Rules for every milestone:
|
|
|
319
319
|
- **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
320
|
- **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.
|
|
321
321
|
- **Model**: never write it yourself. `orch plan model` writes `Model: <model>@<thinking>` when the developer picks a model for a milestone (step 10); it is a lock.
|
|
322
|
-
- **Review**: `yes`
|
|
322
|
+
- **Review**: a full run reviews every milestone, whatever this line says (`Review: no` only gets a warning); write `yes`. Only a quick run uses `Review: no`. The reviewer always checks three security points (secrets in code or logs, authorization on every new or changed endpoint or action, validation of input before it reaches a query, shell, path, HTML or redirect); name the risky spots in `Context` so it knows where to look.
|
|
323
323
|
- **Door**: most changes are easy to undo: if they are wrong, a revert fixes it and nobody is hurt. Write `Door: one-way (why)` only on a milestone that git can't take back once it runs: a migration that changes real data, a public API or event other apps or teams depend on, deleting data, sending emails or messages, charging money, publishing a package. Example: `Door: one-way (adds a column to orders, 2M rows in production)`. Such a milestone always waits for the developer's `orch approve` before it lands, even when no file looks risky, and its coder is asked for proof that it is safe (a dry run on a copy, a rollback test). Never mark everything one-way: the label tells the developer where to look hardest. orch measures how much each milestone could break by itself (risky files, how many milestones build on it, its size); you don't write that.
|
|
324
324
|
- **ZERO GUESSWORK**: missing business rules, undefined data shapes, and auth or security trade-offs go under **Open questions** with 2–3 concrete options. `orch sync` marks such milestones `needs-answer`, and their dependents wait.
|
|
325
325
|
- Each section must stand alone: autopilot hands it to the coder (without the lines only orch uses: `Depends on`, `Why separate`, `Prefer`, `Model`, `Tier`, `Needs`, `Model why`, `Estimate`, `Review`, `Parallel`, `Door`, `Side`, `Repo`; `Role` goes at the top as the coder's role, `Skills` in its own block with what each skill is for), together with the global instructions and the reports of merged dependencies.
|
|
326
326
|
|
|
327
327
|
## 10. Validate and show the plan
|
|
328
328
|
- 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**:
|
|
329
|
+
- 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
330
|
- 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
331
|
- the research facts that shaped the plan, the answers from step 2a and where they went, and all open questions;
|
|
332
332
|
- which milestones are hard to undo and why (the cards say so), and the new glossary words.
|
|
@@ -334,7 +334,7 @@ Rules for every milestone:
|
|
|
334
334
|
<!-- quick: Let the developer choose the models (from step 10) -->
|
|
335
335
|
**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
336
|
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
|
|
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): 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
338
|
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
339
|
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
340
|
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
|
|
@@ -75,7 +75,7 @@ If you changed plan.md by hand, run `orch sync` (it works once the event manager
|
|
|
75
75
|
|
|
76
76
|
**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
77
|
|
|
78
|
-
**Swap a coder** (
|
|
78
|
+
**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
79
|
|
|
80
80
|
**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
81
|
|