herdr-orchestra 6.39.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 CHANGED
@@ -2,6 +2,15 @@
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.
5
14
  ## [6.39.0] - 2026-11-28
6
15
 
7
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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.39.0
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
- acc = token_window(kind, path, start, min(end + TOKEN_GRACE_S, cap or float("inf")))
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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herdr-orchestra",
3
- "version": "6.39.0",
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": {