herdr-orchestra 6.35.0 → 6.40.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 +24 -0
- package/VERSION +1 -1
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/bin/orch +23 -3
- package/package.json +1 -1
- package/playbooks/plan.md +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes. Versions follow [semantic versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [6.40.0] - 2026-11-28
|
|
6
|
+
|
|
7
|
+
Tokens per milestone no longer miss a reply written in a job's last second. That also made the CI check "orch report: ... tokens per milestone" fail now and then (main CI after 6.34.0, PR #68).
|
|
8
|
+
|
|
9
|
+
Example: a coder's last reply is saved at 10:42:07.6 and orch sees the job's done file in the same second. orch keeps whole seconds, so it took 10:42:07 as the job's end and left that reply out. The milestone showed fewer tokens, or "not available" when it was the job's only reply.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **A job's token window now runs at least one second past its end**, the next job's start still cutting it off after that (`token_measure`).
|
|
13
|
+
- A new check in section 65 has a reply 0.6 s after the job's whole-second end. It fails before the fix and passes after. Section 18 run 12 times at once: 3 failed before the fix, none after.
|
|
14
|
+
## [6.39.0] - 2026-11-28
|
|
15
|
+
|
|
16
|
+
The lead now writes the plan and the team in its chat before it asks "Keep this team?". Before, an Antigravity lead ran `orch plan show` as a command, the agent folded its output away ("ctrl+o to expand"), and the picker came up right after, so you were asked to keep a team you never saw.
|
|
17
|
+
|
|
18
|
+
Example: after `/orch-plan` the lead's chat now has the milestone cards, then the team table (M1 codex-2 gpt-6.2-sol medium, M2 codex-1 gpt-6-luna high, Reviewer gpt-6.2-sol medium), and only then the picker: "Keep this team? (M1 codex-2 gpt-6.2-sol medium; M2 codex-1 gpt-6-luna high; Reviewer reviewer gpt-6.2-sol medium)". Even if the table scrolls away, the question still says who builds what.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- **Plan playbook, step 10:** running `orch plan show` is not showing it. The lead copies the cards and the team table into its own reply (Antigravity, Claude Code, Codex and Pi all fold command output), in this order: cards, team table, question. The quick-run five lines are written in chat too.
|
|
22
|
+
- **`orch plan show`**, before the run starts, ends with the team table and a `SHOW IN CHAT:` line telling the lead to write it all in its reply before asking anything. Once the run has started it is the cards only, as before. In subagent mode there is no team table.
|
|
23
|
+
- **`orch plan team`** ends with an `ASK:` line: the "Keep this team?" question with the whole team in one line, for the lead's picker.
|
|
24
|
+
- Docs: the lead page and the commands page say the same.
|
|
25
|
+
|
|
26
|
+
### Not checked with the real tool
|
|
27
|
+
Antigravity can't be downloaded where this was built; the order is a playbook rule, tested with simulated agents.
|
|
28
|
+
|
|
5
29
|
## [6.35.0] - 2026-11-28
|
|
6
30
|
|
|
7
31
|
Antigravity (`agy`) panes now start on a model the lead chose for the step, taken from the models your agy account really has. Before, orch knew no agy model, so every agy pane started on whatever model was saved last with `/model` (often an old one).
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.40.0
|
|
Binary file
|
package/bin/orch
CHANGED
|
@@ -2620,7 +2620,9 @@ def token_measure(st, agent, kind, marker, start, end, cap=None):
|
|
|
2620
2620
|
path = token_log_find(kind, marker, start, known)
|
|
2621
2621
|
if not path:
|
|
2622
2622
|
return None if now() - end < TOKEN_GIVE_UP_S else {"na": f"no {kind} log has this job's prompt"}
|
|
2623
|
-
|
|
2623
|
+
# orch's clock has whole seconds (now() is an int): a reply written in the job's last second is later than
|
|
2624
|
+
# `end`, so the window always runs at least one second past it (the next job's start cuts it off after that)
|
|
2625
|
+
acc = token_window(kind, path, start, max(end + 1, min(end + 1 + TOKEN_GRACE_S, cap or float("inf"))))
|
|
2624
2626
|
except TokenNA as e:
|
|
2625
2627
|
return {"na": str(e)}
|
|
2626
2628
|
if path not in known:
|
|
@@ -6187,10 +6189,13 @@ def _thinking(mid):
|
|
|
6187
6189
|
return (base or "?"), (eff or "default")
|
|
6188
6190
|
|
|
6189
6191
|
|
|
6190
|
-
def cmd_plan_team(st):
|
|
6192
|
+
def cmd_plan_team(st, summary=False):
|
|
6191
6193
|
"""orch plan team -> one row per milestone and one for the reviewer: which coder builds it, on which model and
|
|
6192
|
-
thinking level, and whether the developer locked it. Then what can be picked instead
|
|
6194
|
+
thinking level, and whether the developer locked it. Then what can be picked instead, and the "Keep this team?"
|
|
6195
|
+
question with the team in one line. summary=True returns only that line (no printing)."""
|
|
6193
6196
|
if run_mode(st) == "subagent":
|
|
6197
|
+
if summary:
|
|
6198
|
+
return ""
|
|
6194
6199
|
print("SUBAGENT MODE: the subagents run on the models in your orch config (`/orch-mode` in Pi sets them), "
|
|
6195
6200
|
"not on a team of panels, so there is no team table to change here.")
|
|
6196
6201
|
return
|
|
@@ -6209,6 +6214,8 @@ def cmd_plan_team(st):
|
|
|
6209
6214
|
base, eff = _thinking(ri.get("model")) if ri.get("model") else ("?", "?")
|
|
6210
6215
|
rows.append(("Reviewer", "checks the reviewed steps", st["reviewer"], base, eff,
|
|
6211
6216
|
"" if ri.get("model") else "model not written in the plan"))
|
|
6217
|
+
if summary:
|
|
6218
|
+
return "; ".join(f"{r[0]} {r[2]} {r[3]}" + (f" {r[4]}" if r[4] not in ("", "?", "-") else "") for r in rows)
|
|
6212
6219
|
head = ("Step", "What", "Coder", "Model", "Thinking", "Chosen")
|
|
6213
6220
|
cut = lambda x: x if len(x) <= 30 else x[:29] + "…"
|
|
6214
6221
|
rows = [tuple(cut(str(c)) for c in r) for r in rows]
|
|
@@ -6231,6 +6238,12 @@ def cmd_plan_team(st):
|
|
|
6231
6238
|
if deny:
|
|
6232
6239
|
print(f"Never allowed: {', '.join(deny)}")
|
|
6233
6240
|
print("Change one: orch plan model <Mn|reviewer> <model>@<thinking> (`auto` gives a step back to its level)")
|
|
6241
|
+
print(f"ASK: Keep this team? ({cmd_plan_team(st, summary=True)}) (the question for your picker, with the team "
|
|
6242
|
+
f"in it, after the plan cards and this table are in your chat)")
|
|
6243
|
+
|
|
6244
|
+
|
|
6245
|
+
def plan_not_started(st):
|
|
6246
|
+
return all(st["tasks"][t]["status"] in ("pending", "needs-answer", "skipped") for t in st["order"])
|
|
6234
6247
|
|
|
6235
6248
|
|
|
6236
6249
|
def _plan_section(lines, tid):
|
|
@@ -6439,6 +6452,13 @@ def cmd_plan(args):
|
|
|
6439
6452
|
print(f"\nWARN no `Plain:` line for {', '.join(missing)}: add one sentence in plain words to each "
|
|
6440
6453
|
f"(what the developer will get, no code words), then `orch sync`.")
|
|
6441
6454
|
print("\nEvery detail (files, criteria, models, notes) stays in .orchestrate/plan.md.")
|
|
6455
|
+
if plan_not_started(st):
|
|
6456
|
+
if run_mode(st) != "subagent":
|
|
6457
|
+
print()
|
|
6458
|
+
cmd_plan_team(st)
|
|
6459
|
+
print("\nSHOW IN CHAT: the developer does not see this output: your tool folds command output away (Antigravity, "
|
|
6460
|
+
"Claude Code, Codex, Pi). Write these cards" + ("" if run_mode(st) == "subagent" else " and the team table")
|
|
6461
|
+
+ " in your own reply, as they are, before you ask anything or say go.")
|
|
6442
6462
|
|
|
6443
6463
|
|
|
6444
6464
|
def cmd_events(args):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herdr-orchestra",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.40.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
|
@@ -73,7 +73,7 @@ If any is false, use the full process: run `orch lead plan full` and follow its
|
|
|
73
73
|
- **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").
|
|
74
74
|
- **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.
|
|
75
75
|
- **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").
|
|
76
|
-
- Write the plan (format below), run `orch sync` and fix every ERROR, then
|
|
76
|
+
- 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.
|
|
77
77
|
|
|
78
78
|
```
|
|
79
79
|
# Plan: <short title>
|
|
@@ -323,17 +323,17 @@ Rules for every milestone:
|
|
|
323
323
|
|
|
324
324
|
## 10. Validate and show the plan
|
|
325
325
|
- 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.
|
|
326
|
-
- Run `orch plan show` and
|
|
326
|
+
- Run `orch plan show` and write its cards in your own chat reply, as they are. **Running the command is not showing it**: Antigravity, Claude Code, Codex and Pi 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:
|
|
327
327
|
- 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);
|
|
328
328
|
- the research facts that shaped the plan, the answers from step 2a and where they went, and all open questions;
|
|
329
329
|
- which milestones are hard to undo and why (the cards say so), and the new glossary words.
|
|
330
330
|
Keep code words (file names, functions, endpoints) out of what you write here: they are in plan.md for whoever wants them.
|
|
331
331
|
<!-- quick: Let the developer choose the models (from step 10) -->
|
|
332
|
-
**Let the developer choose the models.** Only now, after the
|
|
333
|
-
1.
|
|
334
|
-
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, e.g. `ask_question` in Antigravity): "Keep this team?" 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.
|
|
332
|
+
**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.
|
|
333
|
+
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.
|
|
334
|
+
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, e.g. `ask_question` in Antigravity): 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.
|
|
335
335
|
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.
|
|
336
|
-
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,
|
|
336
|
+
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.
|
|
337
337
|
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).
|
|
338
338
|
<!-- /quick -->
|
|
339
339
|
- Then say: "Plan written to .orchestrate/plan.md. Edit it if you like: untick `[x]` to skip a milestone, change `Tier` / `Depends on` / `Prefer`, tell me another model for a step or the reviewer (for example "M3 use luna high"), answer open questions under 'Notes from user' and set 'Open questions: - none'. Say **go** (or `/orch-run`, "use the orch-run skill", "Run `orch lead run` and follow it") and I will start the run: I dispatch the milestones, the event manager runs them, and I come back when one finishes, asks a question or needs a decision."
|