loki-mode 9.53.0 → 9.54.2
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/SKILL.md +2 -2
- package/VERSION +1 -1
- package/autonomy/completion-council.sh +28 -5
- package/autonomy/council-v2.sh +13 -7
- package/autonomy/lib/done-recognition.sh +24 -16
- package/autonomy/lib/proof-check.sh +11 -3
- package/autonomy/lib/proof-generator.py +36 -5
- package/autonomy/lib/voter-agents.sh +8 -3
- package/autonomy/lib/workspace_diff.py +106 -12
- package/autonomy/prd-checklist.sh +19 -11
- package/autonomy/run.sh +503 -52
- package/dashboard/__init__.py +1 -1
- package/dashboard/api_v2.py +4 -0
- package/dashboard/audit.py +9 -1
- package/dashboard/auth.py +16 -4
- package/dashboard/registry.py +34 -12
- package/dashboard/rigour_integration.py +25 -17
- package/dashboard/server.py +252 -104
- package/dashboard/static/cost.html +55 -26
- package/dashboard/static/index.html +475 -1544
- package/dashboard/static/proofs.html +1 -1
- package/docs/INSTALLATION.md +1 -1
- package/docs/air-gapped.md +7 -2
- package/docs/image-provenance.md +4 -2
- package/docs/v10/BACKLOG.md +82 -2
- package/docs/v10/BOARD.md +105 -0
- package/docs/v10/DECISIONS.md +71 -0
- package/docs/v10/METRICS.md +2 -1
- package/docs/v10/PROGRESS.md +60 -0
- package/docs/v10/SWARM-PROMPT.md +98 -0
- package/docs/v10/SWARM.md +237 -0
- package/loki-ts/dist/loki.js +323 -322
- package/mcp/__init__.py +1 -1
- package/package.json +1 -1
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/providers/aider.sh +8 -0
- package/providers/cline.sh +8 -0
- package/providers/codex.sh +9 -0
- package/providers/opencode.sh +9 -0
- package/web-app/dist/assets/AdminPage-CZrBkzRF.js +32 -0
- package/web-app/dist/assets/Avatar-gQIp6FBI.js +11 -0
- package/web-app/dist/assets/{Badge-BF3mhT57.js → Badge-D2_fBTFY.js} +1 -1
- package/web-app/dist/assets/{Button-BDp9aJ9q.js → Button-D5qDd2ef.js} +1 -1
- package/web-app/dist/assets/CockpitPage-DVMk2RUK.js +47 -0
- package/web-app/dist/assets/ComparePage-NMLyE1xL.js +1 -0
- package/web-app/dist/assets/{ErrorBoundary-ut3wrUmu.js → ErrorBoundary-BRABI-BT.js} +1 -1
- package/web-app/dist/assets/EvidenceReceiptPanel-D2LNKqUx.js +1 -0
- package/web-app/dist/assets/GitHubIssuesPanel-BC5GzKUN.js +7 -0
- package/web-app/dist/assets/{GitHubPRsPanel-DurZgSaj.js → GitHubPRsPanel-BSlmoVTS.js} +3 -3
- package/web-app/dist/assets/HomePage-D_CDMoen.js +12 -0
- package/web-app/dist/assets/{LoginPage-HeRGJeZy.js → LoginPage-BBNA_N9t.js} +1 -1
- package/web-app/dist/assets/{MagicPage-CUKrqsZs.js → MagicPage-CnFRZCMx.js} +1 -1
- package/web-app/dist/assets/MetricsPage-CPfLMRlh.js +6 -0
- package/web-app/dist/assets/{NotFoundPage-BZDZ-B77.js → NotFoundPage-lA0XSGTz.js} +1 -1
- package/web-app/dist/assets/ProjectPage-CNAPbr9z.js +256 -0
- package/web-app/dist/assets/ProjectsPage-CMtm8goN.js +6 -0
- package/web-app/dist/assets/SettingsPage-BhIjVMYE.js +10 -0
- package/web-app/dist/assets/{ShowcasePage-BGS2jTGH.js → ShowcasePage-BndtGeYo.js} +1 -1
- package/web-app/dist/assets/SystemSettingsPage-euXI-KXE.js +1 -0
- package/web-app/dist/assets/TeamsPage-ClUKecun.js +11 -0
- package/web-app/dist/assets/TemplatesPage-BWHWVk0L.js +29 -0
- package/web-app/dist/assets/{TerminalOutput-togzv9Zl.js → TerminalOutput-Cv3N3Szf.js} +1 -1
- package/web-app/dist/assets/{activity-Dreyb_Kr.js → activity-dEhz-bXR.js} +1 -1
- package/web-app/dist/assets/{bell-DWH0drES.js → bell-B3XUMq1t.js} +1 -1
- package/web-app/dist/assets/{bot-78MoCuDl.js → bot-X-ssNlwR.js} +1 -1
- package/web-app/dist/assets/{check-ikfylPst.js → check-C_9Nx7kb.js} +1 -1
- package/web-app/dist/assets/{chevron-left-DXUqkd8J.js → chevron-left-tvNswo3A.js} +1 -1
- package/web-app/dist/assets/{circle-alert-Da74VO8P.js → circle-alert-CSB88nEs.js} +1 -1
- package/web-app/dist/assets/{clock-mlGCFq8l.js → clock-C8p2e4NI.js} +1 -1
- package/web-app/dist/assets/{cloud-B_Y5ZrIO.js → cloud-CKp2ZvhG.js} +1 -1
- package/web-app/dist/assets/{code-xml-Bbom7YWV.js → code-xml-dY70LCHD.js} +1 -1
- package/web-app/dist/assets/{database-CLcofiVp.js → database-DObn5fmn.js} +1 -1
- package/web-app/dist/assets/{dollar-sign-C5mkjXIM.js → dollar-sign-DSu6n3K3.js} +1 -1
- package/web-app/dist/assets/{file-code-corner-CVrkaOQP.js → file-code-corner-DpCnS73z.js} +1 -1
- package/web-app/dist/assets/{file-plus-BV9240gX.js → file-plus-D3IPKCf1.js} +1 -1
- package/web-app/dist/assets/{globe-aZ0Zso4I.js → globe-C9QXkgH_.js} +1 -1
- package/web-app/dist/assets/{hammer-EgOQNukG.js → hammer-D_FtWe1y.js} +1 -1
- package/web-app/dist/assets/index-CI54rara.css +1 -0
- package/web-app/dist/assets/{index-DvZ0Kk2x.js → index-Cz7q1bvC.js} +2 -2
- package/web-app/dist/assets/{layers-BOVKmepE.js → layers-DsW7jnJX.js} +1 -1
- package/web-app/dist/assets/{loader-circle-0K8yLgHl.js → loader-circle-B3HspjKR.js} +1 -1
- package/web-app/dist/assets/{lock-XzlDMy8M.js → lock-DSI29pct.js} +1 -1
- package/web-app/dist/assets/{package-BtXTKusI.js → package-CLNxtA2x.js} +1 -1
- package/web-app/dist/assets/{plus-PxeiD8ju.js → plus-DyI4WC4_.js} +1 -1
- package/web-app/dist/assets/{refresh-cw-CjqzYczt.js → refresh-cw-D2dv0xA0.js} +1 -1
- package/web-app/dist/assets/{rotate-ccw-CY0os4DH.js → rotate-ccw-CBvihA-a.js} +1 -1
- package/web-app/dist/assets/scroll-text-DvoOvAl_.js +6 -0
- package/web-app/dist/assets/{server-pIIs9vNp.js → server-DenWvSUt.js} +1 -1
- package/web-app/dist/assets/{shield-alert-CsDqKXwA.js → shield-alert-40cX_FvG.js} +1 -1
- package/web-app/dist/assets/{thumbs-up-CAh3HVzH.js → thumbs-up-BrjZ6QuV.js} +12 -7
- package/web-app/dist/assets/trash-2-C6evwkEH.js +16 -0
- package/web-app/dist/assets/{trending-down-DrtBd_C9.js → trending-down-CfbZis3O.js} +1 -1
- package/web-app/dist/assets/{trending-up-D-DbCHXm.js → trending-up-DWuEK3WC.js} +1 -1
- package/web-app/dist/assets/{upload-D4l6DCOt.js → upload-B9DFBcPG.js} +1 -1
- package/web-app/dist/assets/{usePolling-D0aoTX80.js → usePolling-BryVC-T1.js} +1 -1
- package/web-app/dist/assets/{user-BQf_XJO_.js → user-DMRXwZiw.js} +1 -1
- package/web-app/dist/index.html +2 -2
- package/web-app/server.py +122 -47
- package/web-app/dist/assets/AdminPage-y6_b2Xo4.js +0 -32
- package/web-app/dist/assets/Avatar-BFPkXhIJ.js +0 -6
- package/web-app/dist/assets/CockpitPage-5TKICCoA.js +0 -47
- package/web-app/dist/assets/ComparePage-BSuNsUHy.js +0 -1
- package/web-app/dist/assets/EvidenceReceiptPanel-CcaBwEI-.js +0 -1
- package/web-app/dist/assets/GitHubIssuesPanel-DJeYgzAa.js +0 -12
- package/web-app/dist/assets/HomePage-Bs451LAy.js +0 -28
- package/web-app/dist/assets/MetricsPage-DvY1csgz.js +0 -6
- package/web-app/dist/assets/ProjectPage-CqHkEZkl.js +0 -257
- package/web-app/dist/assets/ProjectsPage-CLvCK1Y8.js +0 -6
- package/web-app/dist/assets/SettingsPage-DP7OmdwP.js +0 -10
- package/web-app/dist/assets/SystemSettingsPage-P_rlLh0x.js +0 -1
- package/web-app/dist/assets/TeamsPage-DxtBDcBC.js +0 -11
- package/web-app/dist/assets/TemplatesPage-5e-faH3W.js +0 -29
- package/web-app/dist/assets/folder-open-D_6yV78G.js +0 -11
- package/web-app/dist/assets/index-BSgmPwC0.css +0 -1
- package/web-app/dist/assets/lightbulb-DdASgqOG.js +0 -6
- package/web-app/dist/assets/mail-COu670_W.js +0 -6
- package/web-app/dist/assets/minus-bQpUt9ff.js +0 -6
- package/web-app/dist/assets/save-v8qep5cY.js +0 -6
- package/web-app/dist/assets/trash-2-Dt6urTyY.js +0 -6
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# The swarm
|
|
2
|
+
|
|
3
|
+
Adopted 2026-09-26, superseding the one-cycle-at-a-time loop in `docs/v10/PROGRESS.md`
|
|
4
|
+
for everything after cycle 4. Goal: 10-20x more releases per day than cycles
|
|
5
|
+
1-4 (about 3 releases in 18 hours), without weakening anything in
|
|
6
|
+
`docs/LOKI-10-BUILD-PROMPT.md` sections 2, 5b or 5c, or any global "never do"
|
|
7
|
+
rule. Full text of the founder's prompt: `docs/v10/SWARM-PROMPT.md`.
|
|
8
|
+
|
|
9
|
+
## Why cycles were slow
|
|
10
|
+
|
|
11
|
+
Each cycle batched 3-6 slices into one release, reviewed the whole batch in
|
|
12
|
+
serial council rounds (cycle 1 took 9 rounds, cycle 3 took 6, cycle 4's P7
|
|
13
|
+
property was found falsely PROVEN in three consecutive rounds before a fourth
|
|
14
|
+
caught it), then verified every channel before the next cycle started. Every
|
|
15
|
+
release waited on the slowest slice and on every round.
|
|
16
|
+
|
|
17
|
+
## Changes from the swarm prompt, and why (see DECISIONS.md D12, D13)
|
|
18
|
+
|
|
19
|
+
- **D12: unanimous APPROVE, not "3 of 4".** The founder's prompt scored
|
|
20
|
+
HIGH-tier review as "3 of 4 approve". CLAUDE.md's SDLC fleet pattern
|
|
21
|
+
requires unanimous APPROVE and a full re-run on any CONCERN or REJECT.
|
|
22
|
+
Cycle-4 round 3 was APPROVE, APPROVE, CONCERN, and the concern was a real
|
|
23
|
+
false PROVEN; a vote-count rule would have shipped it. A HIGH-tier round may
|
|
24
|
+
add a fourth adversarial reviewer for extra recall, but any reviewer's
|
|
25
|
+
blocking finding with a working reproduction blocks the slice regardless of
|
|
26
|
+
the count, and the whole council re-runs after the fix.
|
|
27
|
+
- **D13: every review or council agent pins its model explicitly.** Round 4
|
|
28
|
+
of the cycle-4 council was launched with two of three lenses left to
|
|
29
|
+
inherit the session model; the session model changed between launch and
|
|
30
|
+
the lenses resolving, so a round meant to run 2 Opus + 1 Sonnet in fact ran
|
|
31
|
+
3 Sonnet-5 lenses. It was killed and relaunched with every lens pinned.
|
|
32
|
+
Every council, review or HIGH-tier script from here on sets `model`
|
|
33
|
+
explicitly; composition is enforced by the script, never assumed from the
|
|
34
|
+
session.
|
|
35
|
+
- **Section 5c.5 (single writer) still governs.** One agent, the Release
|
|
36
|
+
Captain, writes `main`, `VERSION`, tags and publishes. Builders are each a
|
|
37
|
+
single writer on their own declared file set, never on `main`. Parallel
|
|
38
|
+
reviewers are read-only. This is what the swarm's role split already is;
|
|
39
|
+
it is restated here because the swarm looks superficially like
|
|
40
|
+
peer-to-peer and it is not.
|
|
41
|
+
- **`scripts/release.sh` is stale**, covering only `VERSION`,
|
|
42
|
+
`package.json`, `vscode-extension/package.json`. The Captain does not run
|
|
43
|
+
it as-is; the Captain follows CLAUDE.md's 14-file release checklist
|
|
44
|
+
directly (see Captain brief below), and fixing `scripts/release.sh` to
|
|
45
|
+
match is a queued LOW slice (BOARD).
|
|
46
|
+
- **Budget:** the founder was asked whether to size wave 1 to a conservative
|
|
47
|
+
estimate or launch at planned scale without a live cost feed, given
|
|
48
|
+
cycle-5 alone had already run about 3.3M subagent output tokens before the
|
|
49
|
+
swarm started. Founder chose full scale. METRICS.md still records a
|
|
50
|
+
labelled *estimate* per wave (subagent token counts from workflow
|
|
51
|
+
journals, not exact billing) so spend stays visible even though it does
|
|
52
|
+
not gate wave size. If a wave's estimate would cross a plausible reading of
|
|
53
|
+
founder-queue item 3, the swarm drops to 3 builders, keeps shipping LOW
|
|
54
|
+
slices, and adds a founder-queue line asking for a clearer budget signal.
|
|
55
|
+
|
|
56
|
+
## Roles
|
|
57
|
+
|
|
58
|
+
All roles are agents spawned through `Workflow`, run in git worktrees for
|
|
59
|
+
isolation except the Product Owner and Release Captain, which touch shared
|
|
60
|
+
state files and must serialize.
|
|
61
|
+
|
|
62
|
+
### 1. Product Owner (PO)
|
|
63
|
+
|
|
64
|
+
One agent per wave planning step (re-spawned fresh each time it is needed;
|
|
65
|
+
it writes `BACKLOG.md` and `BOARD.md`, never code). Ranks the backlog per
|
|
66
|
+
build-prompt section 3 (moat and red-main first, then metric-moved / effort).
|
|
67
|
+
Cuts work into release-sized slices:
|
|
68
|
+
|
|
69
|
+
- under about 300 changed lines;
|
|
70
|
+
- one owner;
|
|
71
|
+
- a declared file set that overlaps no other in-flight slice (hot files and
|
|
72
|
+
generated bundles are never in a builder's file set: see "Hot files"
|
|
73
|
+
below);
|
|
74
|
+
- acceptance checks written before building (the Wall, section 5c.1);
|
|
75
|
+
- a risk tier (HIGH / MEDIUM / LOW, see Reviewers).
|
|
76
|
+
|
|
77
|
+
Keeps roughly twice the builder count of ready slices queued.
|
|
78
|
+
|
|
79
|
+
### 2. Builders
|
|
80
|
+
|
|
81
|
+
6-10 in parallel, `isolation: "worktree"`, one slice each, single writer on
|
|
82
|
+
that slice. Each builder:
|
|
83
|
+
|
|
84
|
+
- runs `git merge --ff-only <captain's current main sha>` first (worktrees
|
|
85
|
+
cut from origin/main, not local main: see memory
|
|
86
|
+
`feedback-worktree-agents-base-branch`);
|
|
87
|
+
- implements with red-then-green tests;
|
|
88
|
+
- runs diff-scoped tests plus `bash tests/moat/run.sh` in its own worktree;
|
|
89
|
+
- never touches `main`, `VERSION`, or any hot file or bundle listed below;
|
|
90
|
+
- returns BLOCKED (never guesses past its file set) if the slice needs a
|
|
91
|
+
file outside its declared set, so the PO can re-slice.
|
|
92
|
+
|
|
93
|
+
### 3. Reviewers
|
|
94
|
+
|
|
95
|
+
Read-only, parallel, diff-scoped, tiered by risk. Every finding needs a
|
|
96
|
+
reproduction (file:line, a concrete failing scenario, the fix). Models are
|
|
97
|
+
always pinned explicitly (D13):
|
|
98
|
+
|
|
99
|
+
- **HIGH** (verifier, Seal, gates, council, exit codes, auth, secrets,
|
|
100
|
+
`tests/moat`, anything touching the trust core): 3 reviewers with
|
|
101
|
+
different lenses (correctness, security/bypass, fail-closed) plus 1
|
|
102
|
+
adversarial reviewer told to find a false pass. All 4 pinned to `opus`
|
|
103
|
+
except the adversarial slot, which may run `sonnet` for a genuinely
|
|
104
|
+
different read. **Unanimous APPROVE required (D12).** Any blocking finding
|
|
105
|
+
with a reproduction blocks regardless of the other votes; after a fix,
|
|
106
|
+
the whole HIGH council re-runs from round 1.
|
|
107
|
+
- **MEDIUM** (runtime, CLI behavior, dashboard logic without a trust-core
|
|
108
|
+
path): 2 reviewers, pinned `opus`. Unanimous APPROVE required; one
|
|
109
|
+
CONCERN re-runs both after the fix.
|
|
110
|
+
- **LOW** (docs, copy, tests-only, UI with no data path, deleting
|
|
111
|
+
unreachable code): 1 reviewer, may be pinned `sonnet`. APPROVE required;
|
|
112
|
+
a CONCERN re-runs it after the fix.
|
|
113
|
+
|
|
114
|
+
After 3 rounds at any tier without unanimous APPROVE, the slice goes back to
|
|
115
|
+
the PO to be cut smaller. It never blocks the line: other slices keep moving
|
|
116
|
+
through the pipeline.
|
|
117
|
+
|
|
118
|
+
### 4. Release Captain
|
|
119
|
+
|
|
120
|
+
Exactly one, never parallelized, serialized by a promise chain within one
|
|
121
|
+
Workflow run (see "Cross-wave exclusion"). The only agent allowed to write
|
|
122
|
+
`main`, bump `VERSION`, tag, or publish. For each approved slice, in order:
|
|
123
|
+
|
|
124
|
+
1. Rebase the slice onto current `origin/main`.
|
|
125
|
+
2. Apply any hot-file additions the slice requested (below), mechanically.
|
|
126
|
+
3. Rebuild every bundle the slice's file set could affect (below).
|
|
127
|
+
4. Run `bash scripts/local-ci.sh` (fast tier) and `bash tests/moat/run.sh`.
|
|
128
|
+
The ratchet (`pending.txt` shrink-only, `cases.txt` grow-only, D2) must
|
|
129
|
+
not regress; a regression refuses the merge and returns the slice to its
|
|
130
|
+
builder.
|
|
131
|
+
5. Stage by name (never `git add -A`), commit with the repo-local asklokesh
|
|
132
|
+
identity, push.
|
|
133
|
+
6. Bump `VERSION` and the other 13 files per CLAUDE.md's release checklist
|
|
134
|
+
(`scripts/release.sh` is stale; do this directly, not through the
|
|
135
|
+
script), rebuild dashboard and dist, run the full pre-publish validation,
|
|
136
|
+
commit as the push head, push with `PRE_PUSH_SKIP=1` (D5).
|
|
137
|
+
7. Wait for the previous release's required-ci (Tests, Bun Parity, Security
|
|
138
|
+
Audit) to go green before bumping `VERSION` again, so releases never
|
|
139
|
+
cancel each other's CI (the v9.7-v9.9 failure, and
|
|
140
|
+
`feedback-release-push-cancels-tests`). If several slices are ready
|
|
141
|
+
while waiting, batch them into the next release rather than idle.
|
|
142
|
+
8. On a code conflict, send the slice back to its builder with the new base.
|
|
143
|
+
The Captain never resolves a code conflict itself.
|
|
144
|
+
9. After a required-ci failure, rerun the failed job once; if the second
|
|
145
|
+
run also fails, do a full `gh run rerun` (never `--failed`) on the whole
|
|
146
|
+
Release run, and wait out the roughly 4-minute npm propagation window
|
|
147
|
+
before treating a publish as real
|
|
148
|
+
(`feedback-release-rerun-must-be-full-not-failed`,
|
|
149
|
+
`feedback-npm-propagation-window-4min`).
|
|
150
|
+
|
|
151
|
+
**Hot files** (never in any builder's declared file set; the Captain applies
|
|
152
|
+
requested additions mechanically at merge time):
|
|
153
|
+
`tests/moat/cases.txt`, `tests/moat/pending.txt` (merge with
|
|
154
|
+
`scratchpad/union_cases.py`'s approach: union for cases, intersection-aware
|
|
155
|
+
shrink for pending), `CHANGELOG.md`, `docs/v10/BACKLOG.md`,
|
|
156
|
+
`docs/v10/BOARD.md`, `docs/v10/PROGRESS.md`, `docs/v10/METRICS.md`,
|
|
157
|
+
`scripts/local-ci.sh` (`_FAST_KEEP` entries and `run_check` call sites),
|
|
158
|
+
`tests/run-all-tests.sh`.
|
|
159
|
+
|
|
160
|
+
**Generated bundles** (never edited by hand by a builder; the Captain
|
|
161
|
+
rebuilds all three after every merge that could touch their sources):
|
|
162
|
+
`loki-ts/dist/loki.js` (from `loki-ts/src`), `dashboard/static/index.html`
|
|
163
|
+
and `dashboard-ui/dist` (from `dashboard-ui/scripts/build-standalone.js` and
|
|
164
|
+
components), `web-app/dist` (from `web-app/src`).
|
|
165
|
+
|
|
166
|
+
**Cross-wave exclusion:** a promise chain only serializes within one
|
|
167
|
+
`Workflow` run. The swarm runs the PO-refill and Captain-queue loop inside a
|
|
168
|
+
single long-running `Workflow` invocation rather than launching a fresh one
|
|
169
|
+
per wave, so there is exactly one Captain at any time. If a script must be
|
|
170
|
+
edited and re-invoked, the previous run is stopped first (`TaskStop`) and its
|
|
171
|
+
in-flight slices are recovered from `BOARD.md` before the new run starts.
|
|
172
|
+
|
|
173
|
+
### 5. Channel Verifier
|
|
174
|
+
|
|
175
|
+
One, async, read-only, spawned after each release. Checks npm `latest` and
|
|
176
|
+
`gitHead`, the tag, the GitHub release, Docker amd64/arm64, the Homebrew
|
|
177
|
+
sha256, and a smoke test from a fresh PATH. Never blocks the next merge. A
|
|
178
|
+
failure becomes a HIGH-priority fix-forward slice through the normal PO
|
|
179
|
+
queue. Never unpublishes or deletes a version.
|
|
180
|
+
|
|
181
|
+
## Orchestration
|
|
182
|
+
|
|
183
|
+
- Repeated `Workflow` waves inside one long run: the PO produces up to 10
|
|
184
|
+
ready slices, then `pipeline(slices, build -> verify -> review/fix loop ->
|
|
185
|
+
captain queue)`. `pipeline`, not `parallel`, so a LOW slice ships while a
|
|
186
|
+
HIGH slice is still mid-review.
|
|
187
|
+
- The Captain step in the pipeline is itself a promise chain
|
|
188
|
+
(`captainQueue = captainQueue.then(() => mergeAndRelease(slice))`), so
|
|
189
|
+
exactly one merge or release runs at a time even though builders and
|
|
190
|
+
reviewers for other slices run concurrently.
|
|
191
|
+
- BOARD.md (slice id, owner, file set, tier, status, blockers) is the
|
|
192
|
+
coordination surface between agents; only the PO and the Captain write it.
|
|
193
|
+
- The next wave's PO step starts as soon as ready slices run low; the
|
|
194
|
+
script never waits on Channel Verifier output before starting more work.
|
|
195
|
+
|
|
196
|
+
## Speed levers, in priority order
|
|
197
|
+
|
|
198
|
+
1. One slice, one release.
|
|
199
|
+
2. Risk-tiered review; most slices are LOW or MEDIUM.
|
|
200
|
+
3. Parallel reviewers per slice instead of serial whole-batch rounds.
|
|
201
|
+
4. Asynchronous channel verification.
|
|
202
|
+
5. Diff-scoped tests while building; the full fast tier plus moat run only
|
|
203
|
+
at merge.
|
|
204
|
+
6. Flaky tests: rerun once, record it in `BACKLOG.md`, open a slice. Never
|
|
205
|
+
pass a flake silently (BACKLOG 93).
|
|
206
|
+
|
|
207
|
+
## Guardrails (restated; speed pressure erodes them first)
|
|
208
|
+
|
|
209
|
+
- Priority when goals conflict: moat > Seal accuracy > delivered accuracy >
|
|
210
|
+
cost > speed (build prompt 5b).
|
|
211
|
+
- The moat ratchet never regresses on `main`.
|
|
212
|
+
- If two releases in a row fail required-ci, stop releasing, fix `main`,
|
|
213
|
+
resume only when green.
|
|
214
|
+
- No force push. Never delete versions or tags. Never disable a test or
|
|
215
|
+
guard to get green.
|
|
216
|
+
- Every "never do" item in build-prompt section 1 still applies without
|
|
217
|
+
exception, swarm or not.
|
|
218
|
+
- Section 5c.5 (single writer): one agent writes a given change; parallel
|
|
219
|
+
agents are read-only; parallelize only across independent items under one
|
|
220
|
+
central coordinator, never peer-to-peer.
|
|
221
|
+
- Section 5c.11 (injection-safe intake): P9's split jobs and token
|
|
222
|
+
withholding (cycle 5) are the concrete form of this rule; the swarm's own
|
|
223
|
+
agent-authored slices never combine untrusted input, an agent, and push
|
|
224
|
+
rights either.
|
|
225
|
+
|
|
226
|
+
## Metrics (appended to METRICS.md after every wave)
|
|
227
|
+
|
|
228
|
+
- releases in the last 24h
|
|
229
|
+
- median slice lead time (ready to npm)
|
|
230
|
+
- review rounds per slice, by tier
|
|
231
|
+
- moat proven count
|
|
232
|
+
- required-ci failures
|
|
233
|
+
- spend estimate (subagent output tokens from workflow journals x published
|
|
234
|
+
per-token price, labelled ESTIMATE, not exact billing)
|
|
235
|
+
|
|
236
|
+
Target: at least 30 releases per 24h at steady state, moat proven count never
|
|
237
|
+
decreasing.
|