bullswarm 0.33.0 → 0.33.1
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 +189 -0
- package/README.md +5 -3
- package/data/openrouter-benchmarks.json +9501 -9389
- package/data/plan-prices.json +149 -3
- package/docs/design/owner-review-2026-09-18/budget-page-current-0.33.1.png +0 -0
- package/docs/design/owner-review-2026-09-18/budget-page-target-0.33.1.png +0 -0
- package/docs/design/owner-review-2026-09-18/home-licence-today-missing-codex-0.33.1.png +0 -0
- package/docs/design/owner-review-2026-09-18/run-plan-strip-desktop-0.33.1.png +0 -0
- package/docs/design/owner-review-2026-09-18/stats-models-stacked-bars-0.33.1.png +0 -0
- package/docs/design/prototype-frames-0.33.1/budget-120-v2.txt +21 -0
- package/docs/design/prototype-frames-0.33.1/budget-120-v3.txt +33 -0
- package/docs/design/prototype-frames-0.33.1/budget-120.txt +40 -0
- package/docs/design/prototype-frames-0.33.1/budget-55-v2.txt +21 -0
- package/docs/design/prototype-frames-0.33.1/budget-55-v3.txt +33 -0
- package/docs/design/prototype-frames-0.33.1/budget-55.txt +26 -0
- package/docs/design/prototype-frames-0.33.1/budget-README.md +53 -0
- package/docs/design/prototype-frames-0.33.1/home-today-120-v2.txt +11 -0
- package/docs/design/prototype-frames-0.33.1/home-today-120.txt +20 -0
- package/docs/design/prototype-frames-0.33.1/home-today-55-v2.txt +17 -0
- package/docs/design/prototype-frames-0.33.1/home-today-55.txt +34 -0
- package/docs/design/prototype-frames-0.33.1/home-today-README.md +35 -0
- package/docs/guide/observing.md +209 -0
- package/docs/guide/routing.md +41 -9
- package/docs/plans/0.33.1.goal.txt +14 -0
- package/docs/plans/0.33.1.program.json +361 -0
- package/docs/plans/handoff.goal.txt +8 -0
- package/docs/plans/handoff.program.json +117 -0
- package/docs/plans/handoff.rev2.json +136 -0
- package/docs/plans/handoff.rev3.json +165 -0
- package/docs/reference/cli.md +66 -3
- package/docs/reference/providers.md +12 -0
- package/mods/bullswarm/README.md +9 -0
- package/mods/bullswarm/hooks/pane.tsx +53 -13
- package/mods/bullswarm/hooks/register.ts +46 -2
- package/mods/bullswarm/hooks/runs.ts +49 -12
- package/package.json +1 -1
- package/skill/references/operations.md +9 -5
- package/src/cli.js +79 -5
- package/src/help.js +9 -6
- package/src/lib/agent-events.js +72 -1
- package/src/lib/assignments.js +13 -1
- package/src/lib/attempt-stream.js +233 -0
- package/src/lib/glyphs.js +2 -0
- package/src/lib/prices.js +177 -2
- package/src/lib/probe.js +209 -0
- package/src/lib/route.js +176 -107
- package/src/lib/state.js +1 -1
- package/src/lib/strategy.js +7 -0
- package/src/lib/tasks.js +148 -0
- package/src/lib/update.js +101 -22
- package/src/lib/usage-basis.js +37 -0
- package/src/lib/usage.js +106 -14
- package/src/lib/watch.js +115 -7
- package/src/meters/framework.js +7 -5
- package/src/provider-cli.js +28 -0
- package/src/providers/README.md +86 -0
- package/src/providers/_schema.json +29 -1
- package/src/providers/claude-code/connector.json +17 -4
- package/src/providers/claude-code/provider.mjs +94 -10
- package/src/workflow/budget-model.js +287 -21
- package/src/workflow/budget-view.js +204 -118
- package/src/workflow/dash-kit.js +60 -6
- package/src/workflow/dashboard.js +1145 -324
- package/src/workflow/fleet-view.js +16 -3
- package/src/workflow/history-view.js +140 -31
- package/src/workflow/history.js +26 -3
- package/src/workflow/rollup.js +36 -2
- package/src/workflow/stats-model.js +90 -4
- package/src/workflow/stats-view.js +199 -43
- package/src/workflow/usage-view.js +1 -142
- package/src/workflow/v2-dispatch.js +400 -29
- package/src/workflow/v2-runtime.js +140 -5
- package/src/workflow/v2-state.js +145 -1
- package/src/workflow/watch-cli.js +28 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,194 @@
|
|
|
1
1
|
# bullswarm changelog
|
|
2
2
|
|
|
3
|
+
## 0.33.1 — say what a number is, or say you do not know
|
|
4
|
+
|
|
5
|
+
- budget: the page is the pool meters and nothing else. Every window a pool
|
|
6
|
+
reports gets its own row — a background-coloured bar whose fill says pace,
|
|
7
|
+
a white tick for how much of the window has elapsed, the used share right-
|
|
8
|
+
aligned in one column down the whole page, and a dim line under it with the
|
|
9
|
+
reset and the pace in percentage points. The `by bullswarm`, `other tools`,
|
|
10
|
+
`room for N more medium runs`, `so far ≈ $N` and `biggest` lines are gone:
|
|
11
|
+
the cost audit of 2026-09-18 traced every one of them to worker minutes
|
|
12
|
+
multiplied by a fitted rate, which produced 129% of a whole window for grok,
|
|
13
|
+
and to the byte-estimate money the same audit found 250 to 1,471 times too
|
|
14
|
+
low. Spend by run lives on Home and Stats. Credits stay with the window they
|
|
15
|
+
meter, and a pool that reports credits but no monthly window keeps them.
|
|
16
|
+
- accounts: two homes holding the same Anthropic login are now discovered as
|
|
17
|
+
one pool. Discovery deduplicated on the access-token string, but signing one
|
|
18
|
+
account in twice mints two unrelated tokens, so `~/.claude` and a
|
|
19
|
+
`~/.claude-<slug>` home on the same subscription surfaced as two pools —
|
|
20
|
+
each reporting the same usage, between them claiming twice the headroom that
|
|
21
|
+
exists, and letting routing delegate work straight back to the account
|
|
22
|
+
already running the session. Discovery now keys on the `accountUuid` that
|
|
23
|
+
`claude` records in each home's `.claude.json`, falling back to the token
|
|
24
|
+
when a home has no account recorded (a home written before the field, or one
|
|
25
|
+
whose credentials were installed by hand). `discoverClaudeConfigDirs` starts
|
|
26
|
+
at the default home, so first-wins keeps the caller's own login and drops the
|
|
27
|
+
duplicate delegate. Observed on a four-home machine where the default home
|
|
28
|
+
and one extra home were the same account: the extra pool was only absent
|
|
29
|
+
because its token had expired, and would have self-delegated the moment it
|
|
30
|
+
was refreshed. New `accountIdentity(configDir)` export.
|
|
31
|
+
- update: a global pnpm install is recognised as its own shape and upgraded with
|
|
32
|
+
`pnpm add -g`, verified through the link under the pnpm global node_modules.
|
|
33
|
+
It used to be read as an npm prefix — but pnpm's `.pnpm/<name>@<version>/`
|
|
34
|
+
is a per-version store directory, so `npm install -g --prefix` wrote into the
|
|
35
|
+
old version's folder and `bullswarm update` could never exit 0. A pnpm
|
|
36
|
+
project dependency is reported as unknown rather than upgraded globally.
|
|
37
|
+
- update: `--json` carries `verifiedAt`, the copy `after` was read from.
|
|
38
|
+
`install.root` is where the RUNNING copy was found, which pnpm leaves behind
|
|
39
|
+
on its old per-version store directory, so it cannot also mean "where
|
|
40
|
+
bullswarm lives now".
|
|
41
|
+
- workflow: a kernel that has taken SIGTERM or SIGINT can no longer write a
|
|
42
|
+
terminal lifecycle. The progress check reached `finalize()` without asking
|
|
43
|
+
whether the run had been signalled, so a run interrupted in that window was
|
|
44
|
+
recorded `cancelled` with a `finishedAt` and a result.json — terminal, and no
|
|
45
|
+
longer the resumable `interrupted` the durability contract promises. The
|
|
46
|
+
guard now sits in `finalize()` itself, the only place a lifecycle becomes
|
|
47
|
+
terminal, rather than at each call site.
|
|
48
|
+
- attempts: the prior-attempt handoff names a connector-default model as
|
|
49
|
+
`<pool> connector default` instead of `unknown`, keeps every `git diff --stat`
|
|
50
|
+
row exactly as git printed it (the first row used to lose its leading space),
|
|
51
|
+
and, when the prior pool declares no `eventStream`, says
|
|
52
|
+
`Last response events: none decoded (…)` instead of dropping the section.
|
|
53
|
+
The `watch` handoff line says `1 file`. An attempt interrupted by a kernel
|
|
54
|
+
`SIGKILL` now carries `outputFile`, `outputBytes`, `streamFile` and `diffFile`
|
|
55
|
+
after resume when those files exist on disk.
|
|
56
|
+
- attempts: every attempt now persists the event stream its connector's
|
|
57
|
+
`eventStream` adapter decodes, as `stream-<action>-attempt-<n>.jsonl` in the
|
|
58
|
+
run directory — one JSON object per line with `seq`, `at` (ISO, stamped by
|
|
59
|
+
the kernel), `source`, `providerType`, `kind`, `status`, and `summary`. A
|
|
60
|
+
`response` event keeps its text there up to the response cap; the live pane
|
|
61
|
+
keeps its 180-character summary. A connector with no `eventStream` gets a bounded plain
|
|
62
|
+
`stdout-<action>-attempt-<n>.log` instead. The JSONL file is bounded as a
|
|
63
|
+
head, one `{"truncated":true,"dropped":<n>}` marker line, and a tail; the
|
|
64
|
+
plain stdout fallback is a marker-free bounded tail. Head records are
|
|
65
|
+
appended synchronously, and an over-cap tail is flushed to `.tail` every 32
|
|
66
|
+
events or 2 seconds, whichever comes first, so a kernel `SIGKILL` can lose
|
|
67
|
+
only the unflushed tail window. Core allows 1048576 bytes per file and 64000
|
|
68
|
+
bytes per response, and a connector manifest may override either in an
|
|
69
|
+
optional `eventStream.capture` block that `bullswarm provider validate` now
|
|
70
|
+
accepts — a contributed connector takes part with no code.
|
|
71
|
+
- handoff: when an attempt ends without success and the step is retried (on
|
|
72
|
+
another pool or the same one; the schema-correction path is unchanged), the
|
|
73
|
+
task handed to the next attempt ends with a `## Prior attempt on this step`
|
|
74
|
+
block filled from on-disk facts: pool, model, start, end, duration, failure
|
|
75
|
+
kind and `why`; the files whose bytes changed inside the step's territory
|
|
76
|
+
(including new, staged, pre-dirty, and deleted files), with a `git diff
|
|
77
|
+
--stat` for tracked files and `+N lines (new)` for untracked files frozen at
|
|
78
|
+
the moment that worker exited, so a sibling's later edits are never blamed
|
|
79
|
+
on it; the path and byte count of its final or partial output; its last three
|
|
80
|
+
`response` events with timestamps, read back out of the persisted stream; the
|
|
81
|
+
stream's path, never its contents; and the sentence that the edits are
|
|
82
|
+
unverified and the new worker must report whether it kept, fixed, or reverted
|
|
83
|
+
them.
|
|
84
|
+
- attempts: the attempt record and the `attempt.finished` event now carry
|
|
85
|
+
`outputFile` with `outputBytes` whenever the file exists — including on
|
|
86
|
+
failure, where `outputFile` used to be `null` with the file sitting on disk —
|
|
87
|
+
plus `streamFile`, `diffFile`, `changedFileCount`, `lastResponse`, and
|
|
88
|
+
`handoff: { from, bytes }` on the receiving attempt. `workflow action show`
|
|
89
|
+
prints all of them, and `workflow watch` prints one line at the handoff
|
|
90
|
+
naming the file count and what the previous worker said last.
|
|
91
|
+
|
|
92
|
+
- routing: a rung that names a free model is checked for life before any work
|
|
93
|
+
is sent to it. Bullswarm sends the one-word prompt `PONG` through that pool's
|
|
94
|
+
own CLI, waits at most 30 seconds, and caches the answer per pool and model
|
|
95
|
+
for 15 minutes in `cache/free-model-probes.json`. A pool that answers is
|
|
96
|
+
dispatched to as before. A pool that does not is benched with the reason
|
|
97
|
+
(`404`, `provider error` or `timeout`), and the work falls through to the
|
|
98
|
+
metered pools — the reason reads `probe: timeout on <pool>` in `routeWhy`,
|
|
99
|
+
on `bullswarm pools` and on the Fleet page. The probe is deliberately
|
|
100
|
+
narrow: it never runs for a rung left on the CLI default, never for a paid
|
|
101
|
+
model, never asks a provider what other models it has, and never substitutes
|
|
102
|
+
a model of its own choosing.
|
|
103
|
+
- attempts: a worker that hits a provider stream error, recovers, and finishes
|
|
104
|
+
its task is no longer failed for the error. When the output it wrote is
|
|
105
|
+
usable the attempt succeeds, and the error is kept on the attempt as a note
|
|
106
|
+
(`kind: "recovered-stream-error"`) so the transport problem is still visible
|
|
107
|
+
without costing a retry.
|
|
108
|
+
- run: single `bullswarm run` tasks are visible everywhere workflow steps are.
|
|
109
|
+
Each dispatch's decision-log entry now records the task file, the output file
|
|
110
|
+
and the lane; a task in flight is read from `~/.bullswarm/assignments/*.json`
|
|
111
|
+
(source `run`). The Runs page lists in-flight tasks in its active block and
|
|
112
|
+
finished tasks as rows in the day table — glyph, lane, pool · model, ok or
|
|
113
|
+
reason, duration, time — Home's today band counts them alongside workflow
|
|
114
|
+
runs, and the Mod pane shows the task in flight instead of "No ongoing
|
|
115
|
+
workflow run". A task recorded before these fields existed still appears,
|
|
116
|
+
showing `—` for what it does not have, and is listed and counted once: the
|
|
117
|
+
day page and the task ledger both offer it, and the de-duplication used to
|
|
118
|
+
key on an `id` those rows do not have, so every one of them was drawn twice
|
|
119
|
+
and every day header double-counted them.
|
|
120
|
+
- budget: a provider's plan no longer has to be typed in. Each provider reports
|
|
121
|
+
the plan name it can detect for itself (Claude's `subscriptionType` /
|
|
122
|
+
`rateLimitTier` from `~/.claude/.credentials.json`, Codex's `plan_type`,
|
|
123
|
+
Command Code's plan, opencode's plan), and `data/plan-prices.json` maps a
|
|
124
|
+
plan name to a monthly USD figure only where a vendor page was actually read,
|
|
125
|
+
quoting its URL and the exact line the number came from. A plan with no
|
|
126
|
+
citable price stays `null` rather than guessed. Budget spends a detected
|
|
127
|
+
price exactly as it spends a declared one and labels which it is —
|
|
128
|
+
`detected` or `declared` — so an operator's own figure is never confused with
|
|
129
|
+
one bullswarm inferred. The plan table is keyed by provider, not by pool, so a
|
|
130
|
+
discovered per-account pool such as `claude-code:wati` resolves against
|
|
131
|
+
`claude-code`'s plans; it used to ask for `claude-code:wati`'s own plans and
|
|
132
|
+
find nothing, which left exactly the pools with one login per account
|
|
133
|
+
without a price.
|
|
134
|
+
- Mod: the pane's `usage` button works with no run in flight — it renders the
|
|
135
|
+
pools page instead of doing nothing — and a `run` assignment in flight is
|
|
136
|
+
shown on the otherwise-empty pane.
|
|
137
|
+
- budget: every meter window a pool actually reports is shown, not just the
|
|
138
|
+
first one: the 5-hour, 7-day and monthly windows each with their local reset
|
|
139
|
+
time and their pace. The header says how old the numbers are (`sampled 5m
|
|
140
|
+
ago`) so a stale reading cannot be mistaken for a live one.
|
|
141
|
+
- run page: attempts record how many output bytes they had written over time,
|
|
142
|
+
so the Run and Step pages draw a live output sparkline from the durable
|
|
143
|
+
record (bounded at 240 samples per attempt). The plan strip prints a pool
|
|
144
|
+
name whole or leaves it out — never `openc…`. A retry after a kernel restart
|
|
145
|
+
still receives its `## Prior attempt on this step` handoff block, rebuilt
|
|
146
|
+
from the durable attempt record rather than from the lost in-memory one. And
|
|
147
|
+
`medianMinutes` — the p50 on `strategy rungs` and the Usage page — no longer
|
|
148
|
+
counts stalled attempts, so a silence timeout cannot inflate a pool's
|
|
149
|
+
typical duration. Dispatch count and ok share are unchanged.
|
|
150
|
+
- run page: the plan section groups its steps by presentation phase instead of
|
|
151
|
+
listing them flat, and Home's licence tile lists every metered pool that did
|
|
152
|
+
work today rather than only the busiest one.
|
|
153
|
+
- stats: hovering a bar in a stacked chart labels the slice under the cursor —
|
|
154
|
+
which series, which day, and its value — and Enter pins that slice's detail
|
|
155
|
+
so it can be read without holding the cursor still.
|
|
156
|
+
- routing: the last-mile 5-hour guard is relaxed. A step may now run a pool all
|
|
157
|
+
the way to 100% of its 5-hour window, because attempt handoff briefs the
|
|
158
|
+
retry on what the stopped worker had already written, so hitting the wall
|
|
159
|
+
mid-attempt costs a handoff rather than the work. Between 75% and the wall a
|
|
160
|
+
pool is only softly penalised in the ordering while another eligible pool is
|
|
161
|
+
behind pace, and a forecast that runs past the wall sorts last but stays
|
|
162
|
+
eligible. `BURST_BLOCK_PCT` moves from 90 to 100; the reason says
|
|
163
|
+
`last mile: <pool> 94.0% of 5h, handoff covers the wall`.
|
|
164
|
+
- home: the today band is rebuilt. Finished work of today is on the left — one
|
|
165
|
+
card-style line per workflow run and per single task, with what it was for
|
|
166
|
+
and its project — and today's measured licence spend per pool is on the
|
|
167
|
+
right, with the share each pool's workflows, single runs and minutes
|
|
168
|
+
depleted. Every figure that is an estimate rather than a measurement says so.
|
|
169
|
+
- usage: attempts now record the provider's own numbers instead of inferring
|
|
170
|
+
them. An attempt keeps the token totals, the cost and the session id the
|
|
171
|
+
provider reported, Claude prompt-cache writes are priced rather than treated
|
|
172
|
+
as free, and `tokenSource` widened to name where each figure came from
|
|
173
|
+
(`provider-reported`, `transcript-summed`, `estimated:utf8-bytes/4`,
|
|
174
|
+
`unknown`). The attempt's provider conversation is durable as
|
|
175
|
+
`attempt.session` — pool, model, session id, generation, and when it was
|
|
176
|
+
opened and last used.
|
|
177
|
+
- usage: every money figure in the dashboard says what kind of figure it is —
|
|
178
|
+
measured from the provider, summed from a transcript, estimated from bytes,
|
|
179
|
+
or unknown — so a byte estimate can no longer be read as a bill. The views
|
|
180
|
+
also report how many of the attempts behind a total were measured.
|
|
181
|
+
- usage: figures recorded before this release stay byte estimates. The 0.33.2
|
|
182
|
+
reprice back-fill will recompute them from the providers' own totals, and
|
|
183
|
+
when it does the spend history will jump by roughly one to two orders of
|
|
184
|
+
magnitude. That jump is the old estimate being corrected, not new spending.
|
|
185
|
+
|
|
186
|
+
The Budget verdict redesign is not in this release: it remains prototype frames
|
|
187
|
+
under `docs/design/prototype-frames-0.33.1/` (`budget-55.txt`,
|
|
188
|
+
`budget-120.txt`, `home-today-55.txt`, `home-today-120.txt` and their READMEs),
|
|
189
|
+
drawn from the real pool figures of 2026-09-18.
|
|
190
|
+
|
|
191
|
+
|
|
3
192
|
## 0.33.0 — the dashboard release
|
|
4
193
|
|
|
5
194
|
- dashboard: the phone `Home` no longer hides data behind its width. The
|
package/README.md
CHANGED
|
@@ -190,9 +190,11 @@ instead.
|
|
|
190
190
|
mechanical chores — not assigned to a fixed pool ahead of time.
|
|
191
191
|
- Among the pools that can do the work, the one furthest behind its own quota
|
|
192
192
|
pace (the most unspent surplus) wins, so quota doesn't expire unused.
|
|
193
|
-
- A pool
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
- A pool close to its rolling 5-hour usage ceiling gives way to one with
|
|
194
|
+
headroom only while another pool is actually behind its own pace — it is an
|
|
195
|
+
ordering penalty, not a cutoff. A step may run a pool all the way to 100% of
|
|
196
|
+
that window, because if the provider stops the worker at the wall the retry
|
|
197
|
+
is briefed on what it had already written.
|
|
196
198
|
- A pool whose weekly or monthly subscription window is about to reset gets
|
|
197
199
|
priority for its remaining surplus, so quota doesn't run out the clock
|
|
198
200
|
unspent.
|