Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
f12b1d1
docs(beans): log bean 0366 to install zsh on Linux and unify nvm node…
thomashan Nov 23, 2026
b509376
docs(post-merge): refresh triage matrix after PR #61 merge
thomashan Nov 23, 2026
e490f5f
docs(post-merge): complete bean 0200 following PR #249 merge
thomashan Nov 23, 2026
55b84ff
docs(beans): log beans 0367 (no fallback calibration report) and 0368…
thomashan Nov 23, 2026
8006e7e
docs(beans): log bean 0369 for wrong Stage 5 calibration reports (bug…
thomashan Nov 23, 2026
8adfc69
docs(post-merge): complete bean 0175 following PR #244 merge
thomashan Nov 23, 2026
8ba6a5f
docs(subagents): name subagents via the Agent name field; start bean …
thomashan Nov 23, 2026
4d2c198
docs(beans): complete bean 0366 after dev-env PR #39; refresh triage …
thomashan Nov 23, 2026
1e0a5fd
docs(post-merge): complete bean 0363 following PR #250 merge
thomashan Nov 23, 2026
2c5dab3
docs(beans): log bean 0371 (per-flow ledger fragments, CI promotion);…
thomashan Nov 23, 2026
39d2e37
docs(beans): log beans 0372 (approval survives main merge) and 0373 (…
thomashan Nov 23, 2026
e1fbabe
docs(beans): 0371 searches pending and in-flight ledger fragments
thomashan Nov 23, 2026
cd9361e
docs(post-merge): complete bean 0157 following PR #248 merge; log bea…
thomashan Nov 23, 2026
4e70311
docs(post-merge): complete bean 0173 following PR #251 merge; record …
thomashan Nov 23, 2026
0bcf8b8
docs(post-merge): complete bean 0373 following PR #252 merge; refresh…
thomashan Nov 23, 2026
f1f6eb6
docs(beans): log bean 0375 (Stage 3 resume ignores interrupted execut…
thomashan Nov 23, 2026
4f0a8fd
docs(beans): 0371 covers add/add conflicts on KB entry files
thomashan Nov 23, 2026
ec10afd
docs(beans): 0191 child 3 recovered manually, PR #255 open
thomashan Nov 23, 2026
3a8d37c
docs(post-merge): complete bean 0369 following PR #253 merge; refresh…
thomashan Nov 23, 2026
d7fcb4f
docs(post-merge): Step 4 deletes the merged flow's branches, earlier …
thomashan Nov 23, 2026
1254b30
docs(post-merge): Step 4c deletes stale worktrees after a bundle backup
thomashan Nov 23, 2026
cb70e56
docs(clean-workspace): Phase 3b deletes stale plans and stale worktre…
thomashan Nov 23, 2026
d1093f8
docs(beans): log bean 0370 (dev-env converge fixes and Ubuntu e2e tes…
thomashan Nov 23, 2026
2355768
docs(post-merge): reset stale-plan and stale-worktree beans to todo a…
thomashan Nov 23, 2026
1e9ecf0
docs(beans): start bean 0333
thomashan Nov 23, 2026
ef844ee
docs(post-merge): complete bean 0174 following PR #256 merge; refresh…
thomashan Nov 23, 2026
0d18e90
docs(beans): log bean 0376 (in-flow conflict resolution at every stage)
thomashan Nov 23, 2026
a9fa87b
docs(beans): 0376 resolver uses the lowest tier first, escalates on f…
thomashan Nov 23, 2026
a50e044
docs(beans): log bean 0377 (rename *_fuzz tests, reproducible secrets…
thomashan Nov 23, 2026
a6c5c0d
docs(beans): 0377 touch set wording
thomashan Nov 23, 2026
0d747a7
docs(holon-flow): a flow whose PR conflicts at the end is rerun from …
thomashan Nov 23, 2026
a8b4222
docs(beans): 0376 checks for conflicts at flow start, every stage, ev…
thomashan Nov 23, 2026
77c8124
docs(beans): 0376 merges the target on a conflict or at stage start, …
thomashan Nov 23, 2026
e2c5675
docs(post-merge): complete bean 0372 following PR #254 merge
thomashan Nov 23, 2026
a72838a
docs(beans): start beans 0376 and 0377; 0333 progress note
thomashan Nov 23, 2026
79f0bdd
docs(beans): log bean 0378 (stale-calibration warning after a mechani…
thomashan Nov 23, 2026
a76bf52
docs(rules): no logic in __init__.py; log bean 0379
thomashan Nov 23, 2026
5277ef4
docs(beans): 0379 corrects the budget note (cli is outside the budget…
thomashan Nov 23, 2026
f79667a
docs(beans): log bean 0380 (module budget on every package, including…
thomashan Nov 23, 2026
fb6494a
docs(holon-flow): after a mechanical merge rerun from calibrate, not …
thomashan Nov 23, 2026
f813afb
docs(post-merge): complete bean 0333 following PR #258 merge
thomashan Nov 23, 2026
287b929
docs(beans): 0191 plan branch merged with main (5f3076dc); 0333 notes
thomashan Nov 23, 2026
d0261b7
docs(post-merge): complete bean 0367 following PR #257 merge
thomashan Nov 23, 2026
27672a2
docs(holon-flow): flows run on claude-fable-5-2 (Fable 5.2); ladder s…
thomashan Nov 23, 2026
90f751a
feat(bean-progress): add Agent and Model columns to the in-flight table
thomashan Nov 23, 2026
1ead04a
docs(beans): start bean 0378
thomashan Nov 23, 2026
d7139f3
feat(bean-progress): add a Last Activity column (live role, HEAD comm…
thomashan Nov 23, 2026
e342a3e
docs(holon-flow): Fable 5.2 needs HOLON_TURN_STALL_SECONDS=600 (revie…
thomashan Nov 23, 2026
6274fa6
docs(post-merge): complete bean 0377 following PR #261 merge
thomashan Nov 23, 2026
e176bc7
docs(beans): start bean 0360
thomashan Nov 23, 2026
5d75a17
feat(bean-progress): compact table that fits a terminal, details as a…
thomashan Nov 23, 2026
3735b20
docs(post-merge): complete bean 0191 following PR #260 merge
thomashan Nov 23, 2026
90fe069
fix(holon-flow): quota detection scans only the end of the output and…
thomashan Nov 23, 2026
4073511
docs(beans): start bean 0374
thomashan Nov 23, 2026
51d56d0
docs(beans): log beans 0381-0388 (bugs hit on 2026-11-23: bare-resume…
thomashan Nov 23, 2026
c400a04
feat(run-247): watcher follows todo/flow-*.log, probes for a credit r…
thomashan Nov 23, 2026
6b6b9f6
docs(beans): triage refresh 2026-11-23 after PR #260 merges
thomashan Nov 23, 2026
d07602c
docs(post-merge): record holon-coherence PR #44 merge for bean 0381
thomashan Nov 24, 2026
dc771fd
docs(post-merge): complete bean 0378 following PR #263 merge
thomashan Nov 24, 2026
3d46b5c
docs(post-merge): record holon-coherence PR #45 merge for bean 0153
thomashan Nov 24, 2026
23c37bc
docs(post-merge): complete bean 0382 following PR #267 merge
thomashan Nov 24, 2026
579a161
docs(post-merge): record holon-coherence PR #46 merge for bean 0153
thomashan Nov 24, 2026
5597e0d
docs(post-merge): record holon-coherence PR #47 merge for bean 0153
thomashan Nov 24, 2026
829841c
docs(post-merge): record holon-coherence PR #48 merge for bean 0153
thomashan Nov 24, 2026
ce78b08
docs(post-merge): record holon-agentic-coder PR #268 merge for bean 0350
thomashan Nov 24, 2026
465da5f
chore(harness): default Antigravity flows to gemini-4-neon; wait out …
thomashan Nov 24, 2026
2994d91
docs(post-merge): complete bean 0225 following PR #271 merge
thomashan Nov 24, 2026
40161e2
docs(post-merge): record holon-coherence PR #50 merge for bean 0153
thomashan Nov 24, 2026
40bbc0f
docs(post-merge): record holon-coherence PR #49 merge for bean 0153
thomashan Nov 24, 2026
99dc710
docs(post-merge): record holon-coherence PR #51 merge for bean 0153
thomashan Nov 24, 2026
159c374
docs(post-merge): record holon-coherence PR #52 merge for bean 0153
thomashan Nov 24, 2026
b6d6bfd
docs(bean-0153): record coherence-addon-tests-self-doc flow launch
thomashan Nov 24, 2026
907c025
docs(audit): record fifth-merge self-improvement audit and beans 0415…
thomashan Nov 24, 2026
fdce435
docs(post-merge): record holon-coherence PR #53 merge for bean 0153
thomashan Nov 24, 2026
39ee4ce
docs(post-merge): close bean 0226 after holon-agentic-coder PR #269 m…
thomashan Nov 24, 2026
9275987
docs(post-merge): record holon-coherence PR #54 merge for bean 0153
thomashan Nov 24, 2026
a37c9c0
docs(beans): mark 0393, 0399, and 0380 (coherence) in-progress
thomashan Nov 24, 2026
78f7f8c
docs(post-merge): close bean 0387 after holon-agentic-coder PR #270 m…
thomashan Nov 24, 2026
3be3f2e
docs(beans): mark 0265 in-progress for split-cli-init-modules flow
thomashan Nov 24, 2026
427cdbc
docs(post-merge): record holon-coherence PR #55 merge for bean 0380
thomashan Nov 24, 2026
1a97541
docs(post-merge): close bean 0393 after holon-agentic-coder PR #274 m…
thomashan Nov 24, 2026
f83c935
docs(audit): record fifth-merge self-improvement audit and beans 0426…
thomashan Nov 24, 2026
31ab610
docs(bean-0153): record launcher-containers-self-doc flow launch
thomashan Nov 24, 2026
7b2bb19
docs(bean-0153): record cli-commands-exec-self-doc flow launch
thomashan Nov 24, 2026
c94b49b
docs(bean-0153): record cli-commands-misc-self-doc flow launch
thomashan Nov 24, 2026
9f81842
docs(bean-0153): record e2e-self-doc flow launch
thomashan Nov 24, 2026
2c9e103
docs(bean-0153): record entrypoint-exec-self-doc flow launch
thomashan Nov 24, 2026
251ab33
chore(beans): record PR #284 ready and entrypoint-helpers-self-doc la…
thomashan Nov 24, 2026
c092e00
chore(beans): record PR #285 calibration and ledger-self-doc backfill…
thomashan Nov 24, 2026
1e2a1e5
chore(beans): record PR #285/#286 ready and core-helpers-self-doc lau…
thomashan Nov 24, 2026
29a242d
chore(beans): record 0376 PR #283 ready and git-utils-self-doc backfi…
thomashan Nov 24, 2026
5fd2698
chore(beans): log 0433 for Stage 3 in_flight 406 diff too_large
thomashan Nov 24, 2026
8851d85
chore(beans): record PR #288 ready and knowledge-self-doc backfill (0…
thomashan Nov 24, 2026
a4ab039
chore(beans): record PR #287 calibration and infra-helpers-self-doc b…
thomashan Nov 24, 2026
7f7b771
chore(beans): park infra-helpers on PR #287 overlap and launch cohere…
thomashan Nov 24, 2026
cdaad39
chore(beans): record PR #289 ready and executor-pkg-self-doc backfill…
thomashan Nov 24, 2026
ffb521b
chore(beans): record coherence #56 ready and config-env-self-doc back…
thomashan Nov 24, 2026
fdcdf36
chore(beans): record PR #291 ready and review-meta-self-doc backfill …
thomashan Nov 24, 2026
da71be4
chore(beans): record post-merge for HAC #282 cli-commands-misc-self-d…
thomashan Nov 24, 2026
8df514c
docs(post-merge): record PR #272 merge for bean 0403 (left open) and …
thomashan Nov 24, 2026
9a8fbd1
chore(beans): record PR #290 complete and git-flow-self-doc backfill …
thomashan Nov 24, 2026
f11b2c0
chore(beans): record PR #293/#283 clean and local-llm-self-doc backfi…
thomashan Nov 24, 2026
721b898
docs(post-merge): record PR #275 merge for bean 0405 and refresh triage
thomashan Nov 24, 2026
43fd096
chore(beans): add generic dev-env bean with Shift+Enter and focus-eve…
thomashan Nov 24, 2026
5d3ad52
docs(post-merge): record PR #276 merge for bean 0153 (left open) and …
thomashan Nov 24, 2026
b17583d
chore(beans): record dev-env PR #41 ready to merge (0435)
thomashan Nov 25, 2026
6194538
docs(post-merge): complete bean 0399 following PR #277 merge
thomashan Nov 25, 2026
30ee828
docs(audit): record fifth-merge self-improvement audit (0438-0441)
thomashan Nov 25, 2026
14f62ca
docs(post-merge): record PR #278 merge for beans 0404 and 0419 (both …
thomashan Nov 25, 2026
e9f79d2
docs(post-merge): record PR #280 merge under bean 0153
thomashan Nov 25, 2026
f455673
docs(bean-0153): record PR #301 (preflight-self-doc)
thomashan Nov 25, 2026
812777f
docs(bean-0153): record PR #302 and backfills
thomashan Nov 25, 2026
29563a6
docs(bean-0153): record PR #300 and git-refs-self-doc backfill
thomashan Nov 25, 2026
b94dffd
docs(bean-0153): record PR #303 and github-pr-merge-self-doc backfill
thomashan Nov 25, 2026
1c4bea5
docs(bean-0153): record PR #304 and github-misc-self-doc backfill
thomashan Nov 25, 2026
445e3ed
docs(bean-0153): record PR #305 (git-refs-self-doc)
thomashan Nov 25, 2026
d572909
docs(bean-0153): record PR #307 (github-misc-self-doc)
thomashan Nov 25, 2026
2a01d7d
docs(post-merge): record PR #281 merge in bean 0153
thomashan Nov 25, 2026
0f0525f
docs(post-merge): complete bean 0376 following PR #283 merge
thomashan Nov 25, 2026
6a76d7a
docs(bean-0153): record PR #306 (github-pr-merge-self-doc)
thomashan Nov 25, 2026
1baeb17
docs(bean-0407): mark in-progress and record flow launch
thomashan Nov 25, 2026
406ae5a
docs(post-merge): record holon-agentic-coder#284 merge in bean 0153
thomashan Nov 25, 2026
db6c5c7
docs(post-merge): record PR #285 merge in bean 0153
thomashan Nov 25, 2026
f099791
docs(post-merge): record PR #286 merge in bean 0153
thomashan Nov 25, 2026
1e6e8e8
docs(audit): fifth-merge self-improvement audit (2026-11-25T02:54Z)
thomashan Nov 25, 2026
a3a9c98
docs(post-merge): record PR #287 merge in bean 0153
thomashan Nov 25, 2026
d46d9c6
docs(post-merge): record PR #288 merge in bean 0153
thomashan Nov 25, 2026
513fda1
docs(post-merge): record holon-agentic-coder#289 merge in bean 0153
thomashan Nov 25, 2026
9ee8f9d
audit(harness): record fifth-merge self-improvement audit (2026-11-25…
thomashan Nov 25, 2026
8735a6f
docs(post-merge): record PR #290 merge on bean 0153
thomashan Nov 25, 2026
2d45536
docs(bean-0435): record dev-env#41 merge and launch item 2
thomashan Nov 25, 2026
194fb6a
docs(resolve-conflict): send ntfy notification when conflict resoluti…
thomashan Nov 25, 2026
4319ccb
docs(bean-0153): record PR #291 merged
thomashan Nov 25, 2026
09e11e6
docs(bean-0435): record dev-env#42 ready to merge
thomashan Nov 25, 2026
2fb4739
docs(bean-0153): record PR #292 merged
thomashan Nov 25, 2026
f2c3ea4
docs(bean-0153): record PRs #293 and #294 merged
thomashan Nov 25, 2026
6aaf358
docs(bean-0153): record PR #295 merged
thomashan Nov 25, 2026
5a5dd84
docs(bean-0265): close after PR #296 merged
thomashan Nov 25, 2026
87654fc
audit(harness): record fifth-merge self-improvement audit (2026-11-25…
thomashan Nov 25, 2026
ae07885
docs(bean-0153): record PRs #297 and #298 merged
thomashan Nov 25, 2026
261a130
docs(beans-0433-0437): close after PR #299 merged
thomashan Nov 25, 2026
0e55014
docs(bean-0153): record PR #300 merged
thomashan Nov 25, 2026
da742b5
docs(bean-0153): record PR #301 merged
thomashan Nov 25, 2026
d5ba130
audit(harness): record fifth-merge self-improvement audit (2026-11-25…
thomashan Nov 25, 2026
51e3135
docs(bean-0153): record PRs #302, #303, #304 merged
thomashan Nov 25, 2026
4d3ba6b
audit(harness): record fifth-merge self-improvement audit (#300-#304)
thomashan Nov 25, 2026
f549984
docs(bean-0153): record PR #305 merged
thomashan Nov 25, 2026
82019d1
docs(bean-0153): record PR #306 merged
thomashan Nov 25, 2026
b4e8b2f
docs(bean-0153): record PR #307 merged
thomashan Nov 25, 2026
757bbf0
docs(post-merge): complete bean 0438 following PR #309 merge
thomashan Nov 25, 2026
53cc14f
docs(post-merge): record holon-coherence#56 in bean 0153 and refresh …
thomashan Nov 25, 2026
e5b1de8
docs(post-merge): record bean 0405 slice 2 (workspace survival job) f…
thomashan Nov 26, 2026
0b1d299
docs(post-merge): complete bean 0464 following dev-env#43 merge
thomashan Nov 26, 2026
c7cafb8
docs(post-merge): record dev-env#42 merge in bean 0435 and refresh tr…
thomashan Nov 26, 2026
0dcf8b2
docs(post-merge): complete bean 0371 following PR #314 merge; add bea…
thomashan Nov 26, 2026
357e9b3
docs(post-merge): complete bean 0470 following dev-env#45 merge
thomashan Nov 26, 2026
2aed601
docs(beans): record PR #319 in bean 0400, refresh triage; beans 0482-…
thomashan Nov 26, 2026
1f78a2f
docs(harness): blocked flows are parked and do not hold a slot; backf…
thomashan Nov 26, 2026
a935aaf
docs(post-merge): complete bean 0380 following PR #317 merge
thomashan Nov 26, 2026
739829b
docs(post-merge): record PR #320 merge in bean 0480 (stays in-progres…
thomashan Nov 26, 2026
ee15719
docs(post-merge): complete bean 0419 following PR #321 merge; record …
thomashan Nov 26, 2026
394e6ae
docs(post-merge): record bean 0405 batch 3 following PR #323 merge
thomashan Nov 26, 2026
4aa76aa
docs(post-merge): fix bean 0405 batch 3 bullet layout (PR #323)
thomashan Nov 26, 2026
5ad0287
feat(bean-progress): one row per flow/PR, stale-row handling, split-f…
thomashan Nov 26, 2026
212b0f7
docs(beans): audit, flow and bug beans 0485-0501; bean progress notes…
thomashan Nov 26, 2026
10ce8a1
docs(post-merge): record bean 0405 batch 1 following PR #325 merge
thomashan Nov 26, 2026
1d86f9a
docs(post-merge): record bean 0405 batch 5 following PR #327 merge
thomashan Nov 26, 2026
60ea712
docs(post-merge): record bean 0489 step 1 following PR #326 merge
thomashan Nov 26, 2026
671c601
docs(post-merge): complete bean 0475 after PR #329; flow progress not…
thomashan Nov 26, 2026
3b46131
fix(holon-flow): stream wrapper and flow output to the log as it happ…
thomashan Nov 26, 2026
3bce1c4
docs(post-merge): complete bean 0452 following PR #331 merge
thomashan Nov 26, 2026
655f1e0
docs(post-merge): refresh triage following PR #330 merge (bean 0427 c…
thomashan Nov 26, 2026
d7ae86b
docs(post-merge): complete bean 0461 after PR #333; audit beans 0505-…
thomashan Nov 26, 2026
d1f64a2
docs(post-merge): record PR #332 merge (bean 0405 batch 2); scrap 051…
thomashan Nov 26, 2026
54e25ea
docs(post-merge): complete bean 0453 following PR #336 merge
thomashan Nov 26, 2026
af62350
docs(post-merge): complete beans 0401, 0431, 0471, 0484, 0510 followi…
thomashan Nov 26, 2026
4b271f8
docs(post-merge): record PR #341 merge (bean 0462 stays in-progress);…
thomashan Nov 26, 2026
77098b2
docs(post-merge): complete bean 0407 following PR #334 merge; refresh…
thomashan Nov 26, 2026
8d35dcc
docs(post-merge): complete bean 0198 following PR #343 merge
thomashan Nov 26, 2026
4fdf9c3
docs(post-merge): complete bean 0444 following PR #340 merge; refresh…
thomashan Nov 26, 2026
f80c447
docs(post-merge): complete bean 0375 following PR #345 merge; refresh…
thomashan Nov 26, 2026
427dd40
docs(audit): log 2026-11 architecture review beans, KB specs, and report
thomashan Nov 26, 2026
248c988
docs(post-merge): complete bean 0197 following PR #347 merge; refresh…
thomashan Nov 26, 2026
05f7112
docs(post-merge): record PR #342 on bean 0436, refresh triage, log in…
thomashan Nov 26, 2026
d962e5c
docs(post-merge): complete bean 0454 following PR #346 merge; refresh…
thomashan Nov 26, 2026
8d0498a
docs(post-merge): complete bean 0508 following PR #348 merge; fold 05…
thomashan Nov 26, 2026
0c984ab
docs(post-merge): complete PR #350 bean 0518 follow-up; refresh triage
thomashan Nov 26, 2026
578da8a
docs(post-merge): complete bean 0517 following PR #349 merge; refresh…
thomashan Nov 26, 2026
29a5ee0
docs(harness): coordinator failure ledger with today's lessons
thomashan Nov 26, 2026
a3ee7a8
docs(post-merge): complete bean 0516 following PR #352 merge; refresh…
thomashan Nov 26, 2026
89a2e56
docs(post-merge): complete bean 0469 following PR #355 merge; refresh…
thomashan Nov 26, 2026
48dafb5
docs(harness): self-explaining code invariant; '# why:' is the only c…
thomashan Nov 26, 2026
ef6fe54
feat(bean-progress): Live column after In Stage
thomashan Nov 26, 2026
4c6308c
docs(beans): beans 0549-0550 (test-failure loop, port failure ledger …
thomashan Nov 26, 2026
27bdb6b
fix(harness): ruff findings failing PR #62 hygiene
thomashan Nov 26, 2026
04be899
docs(harness): ledger CF entries on git stash and --no-verify; bean 0551
thomashan Nov 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 49 additions & 5 deletions .agents/coordination.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,25 @@ interactive session remains responsive:
`send_message` **only once** upon terminal completion or an unresolvable blocker.
- **Re-Entrancy Guard**: If the executing agent is already the spawned `Holon Flow Subagent`, it proceeds directly to
flow execution without spawning another nested subagent.
- **4-Flow Concurrency Cap & Merge Backfill (maintainer, 2026-11-24)**: On hosted runtimes, up to **4 concurrent
`holon-flow` background subagents** may run at once, each in its own dedicated `flow-<slug>` worktree and honouring
dependencies, solo-sweep rules, and disjoint touch sets. Once a target-repo PR merges, backfill open slots up to 4 by
launching the next highest-priority ready bean via `holon-flow`.
- **Slots must always be doing work (maintainer, 2026-11-26)**: only flows that are executing, reviewing or
calibrating count toward the 4; check this on every progress report and after every merge.
- **Park blocked flows**: a flow refused at Stage 3 admission on a touch-set overlap, or otherwise waiting on another
flow's PR, does not hold a slot. Stop only that flow's own wrapper/poll loop, keep its worktree, branches and
checkpoint, note on its bean
`parked <date>: blocked by <PR/flow> on <files>; resume from checkpoint when <condition>`, and end its subagent.
- **Backfill at once** with the next highest-priority ready bean whose touch set is disjoint from every live and
parked flow.
- **Resume from checkpoint**: once the blocker merges or releases the files, resume the parked flow with
`--checkpoint` (never a fresh launch, which re-runs intent and plan and leaves duplicate `I-*` branches). Resuming
takes the next free slot ahead of new beans.
- **Intent goal carries the invariant (maintainer, 2026-11-27)**: every intent written for a backfilled or new flow
includes this sentence in its `goal`: "Code is self-explaining: no docstrings and no comments except '# why:'
comments that record a reason the code cannot show." Before reporting a PR ready, scan its diff for docstrings and
non-`# why:` comments.

### 4. Generic Subagent Protocol (Any Coding Agent)

Expand Down Expand Up @@ -99,10 +118,11 @@ When executing within the **Antigravity (AGY)** environment:
child sessions. If credit, quota, or session allowance runs out on the higher-level model (for either **Claude** or
**Antigravity**), automatically fall back to the next lower tier that has available credit (`Model: "inherit"` /
`"pro"` $\rightarrow$ `"flash"` $\rightarrow$ `"flash_lite"` in AGY `invoke_subagent`; `claude-opus-5-5` $\rightarrow$
`claude-sonnet-4-6` $\rightarrow$ `claude-haiku-4-5` in `claude-agent`; `gemini-4-argon` $\rightarrow$
`gemini-4-hydrogen` $\rightarrow$ `gemini-3.8-flash` in `antigravity-agent`, or switch `--agent` across `claude-agent`
$\leftrightarrow$ `antigravity-agent` if an account-wide session limit is reached) and continue the in-progress flow
or review loop from its current stage/iteration without losing completed work.
`claude-sonnet-4-6` $\rightarrow$ `claude-haiku-4-5` in `claude-agent`; `gemini-4-neon` $\rightarrow$ `gemini-4-argon`
$\rightarrow$ `gemini-4-hydrogen` $\rightarrow$ `gemini-3.8-flash` in `antigravity-agent`; never switch `--agent`
across runners on your own: if an account-wide session limit exhausts the runner's ladder, stay on it and ask the
maintainer before switching) and continue the in-progress flow or review loop from its current stage/iteration without
losing completed work.
- **Reactive Wakeup (Zero Polling)**: AGY resumes parent execution automatically upon child message arrival or task
completion. **Never poll, sleep, or loop on task status.**

Expand All @@ -123,7 +143,9 @@ answer and no tool call), and a constrained host can be pushed into swap or cras

The rule:

- **Hosted runtime** -- dispatch independent children concurrently (the default in `pr-reviewer` and `pr-review-loop`).
- **Hosted runtime** -- dispatch independent children concurrently (the default in `pr-reviewer` and `pr-review-loop`);
for target-repo `holon-flow` executions, up to **4 concurrent background flow subagents** are permitted (with
automatic highest-priority bean backfill upon PR merge).
- **Local runtime** -- dispatch LLM-inference children **serially**: launch one child, wait for it to finish, then
launch the next. Concurrency for LLM work is capped at 1. Serialising changes **only the launch schedule**:
- Each pass still runs in its **own fresh child context**, with its own prompt, its own report file and its own vote.
Expand All @@ -144,3 +166,25 @@ The rule:
- Review the subagent's report upon reactive resumption.
- In multi-turn workflows, inspect output artifacts (e.g. `.subagent/<repo>_pr<N>_dry_run_review_iter_*.md`, namespaced
per the `pr-review-loop` skill's artifact convention) and verify commits before proceeding to subsequent phases.

### 7. Skill Subagents and Delegation (maintainer rules)

- **Harness operations run through their skills in subagents, never inline** (maintainer, 2026-11-23): flows
(`holon-flow`), conflict resolution (`resolve-conflict`), review loops and calibration (`pr-review-loop`). A quick
manual check does not excuse skipping the skill. When a resolve-conflict subagent escalates a code conflict, spawn a
new one a tier up with the decision in its prompt; the main session only decides and delegates.
- **Name every subagent**: description `#<PR> - <what>` (or `bean <id> - <what>` before a PR exists), and set its name
field too (`pr<PR>-<what>` or `bean<id>-<what>`, letters, digits, `_` and `-` only).
- **Keep the main thread for coordination** (maintainer, 2026-11-24): diagnosing failures, measuring, reading across
several files and editing or testing harness code go to subagents on the lowest tier that fits. Inline only: status
checks, briefing subagents, single small edits and replies.

### 8. Coordinator failure ledger

`.agents/ledger/coordinator-failures.jsonl` records the coordinator's own mistakes (maintainer, 2026-11-27); the target
repositories' ledgers stay for flows and never reference harness paths. It is append-only, one JSON object per line;
corrections are new lines with `supersedes`. Fields: `id` (`CF-0001`...), `created_at` (ISO UTC), `session_date`,
`category` (brief, readiness-check, overlap-scheduling, intent-scope, measurement, conflict-handling, bookkeeping,
verification), `failure`, `my_part`, `cost`, `rule`, `refs`. Append an entry for every halt, park, wasted run, false
readiness or wrong brief before moving on. Check every brief, readiness check and launch against its rules. Validate
with `uv run python .agents/scripts/check_failure_ledger.py`.
42 changes: 37 additions & 5 deletions .agents/engineering-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,27 @@ sizing. Moved verbatim from `AGENTS.md`.
`ACT-POST`, tool operations) and lifecycle summaries (`entry_type: "summary"`, such as `E-...`, `REV-...`) MUST be
interleaved chronologically inside `executions.jsonl` under `LedgerLock`. Auxiliary ledgers fragment the provenance
trail, break downstream query engines, and are strictly prohibited.
- **Per-Flow Pending Fragments and CI Promotion (maintainer, 2026-11-23; Bean 0371)**: Per-flow pending fragments
(`holon-knowledge/ledger/pending/<ledger>/<intent-id>.jsonl`) are the same three ledgers split by flow, not
auxiliary ledgers: each fragment holds rows of exactly one of `intents`, `plans` or `executions`, in the canonical
row format. Once Bean 0371 lands, flows append only to their own fragments and never write the canonical `*.jsonl`
files; readers merge canonical rows and all fragments by `created_at`; and only the CI promotion job on push to
`main` folds fragments into the canonical ledgers (append-only, idempotent, ledger-only commit). Until then, flows
keep writing the canonical files and the conflict rules below apply.
- **Ledger-Only Conflict Resolution (No Tests Required)**: When syncing or merging `origin/main` into a flow branch
results in conflicts strictly confined to ledger files (`holon-knowledge/ledger/*.jsonl`), **do NOT run the test
suites**. Simply interleave or append the JSONL records chronologically by their `created_at` timestamp, verify
that all lines parse cleanly as valid JSON, commit the resolved merge, and push.
suites**. Keep `origin/main`'s ledger file exactly as it is on main, in main's order, and append only the rows the
branch adds (ordered by `created_at` among themselves); never move or re-sort a row already on main (the one-time
chronological sort is a separate, deliberate change tracked in the harness beans). Verify that all lines parse
cleanly as valid JSON, commit the resolved merge, and push.
- **Mandatory Target-Branch Conflict Resolution Before Review & Calibration**: Prior to posting an approved
consensus review to GitHub or executing Stage 5 calibration, agents and loop orchestrators **MUST** verify that
the PR is clean and mergeable against the target branch (`gh pr view <pr> --json mergeable,mergeStateStatus`). If
`mergeable == "CONFLICTING"` or `mergeStateStatus == "DIRTY"` (which frequently occurs when concurrent PRs merge
new entries into `holon-knowledge/ledger/`), the agent **MUST immediately fetch `origin/main`, merge `origin/main`
into the PR execution branch, resolve the conflicts (interleaving ledger entries chronologically), commit, and
push to origin**. Never post an approved review, never calibrate, and never report a PR as ready to merge while it
is in a conflicting state against the target branch.
into the PR execution branch, resolve the conflicts (ledgers: main's rows unchanged in main's order, then the
branch's own rows appended), commit, and push to origin**. Never post an approved review, never calibrate, and
never report a PR as ready to merge while it is in a conflicting state against the target branch.
15. **Modular File Sizing & 200-Line Sizing Guideline**: Source files exceeding **200 lines** should generally be
decomposed into modular packages and focused single-responsibility modules (e.g. `flow/`, `cli/commands/`, `proxy/`,
`executor/`, `calibration/`). This is a recommended guideline and best practice rather than a rigid hard rule,
Expand All @@ -51,3 +60,26 @@ sizing. Moved verbatim from `AGENTS.md`.
files where sensible.

---

16. **Module Budgets Force a Split** (maintainer, 2026-11-20): a module line budget is a ceiling that forces a big
module to be divided, never a number to raise. A change that would push a module over budget splits the module.
Never raise, lower, add or delete a budget entry (or label a PR `module-budget-change`) without the maintainer's
explicit instruction for that change; an unauthorised budget change is a Critical review finding.
17. **Tests Isolate Their Own Setup; No Shared Directory conftest** (maintainer, 2026-11-26): "all test should isolate
as much set up as possible so different tests don't rely on the same conftest.py". A test module owns its setup. A
fixture or stub that only some tests need lives in the test module, or in a small helper module (plain install
function plus a non-autouse fixture) that the module imports and applies with `pytest.mark.usefixtures`. A
`conftest.py` holds only universal safety guards (hermetic git config, ambient credentials, home, network and `gh`
write guards, checkout write guards), stays under 200 lines, and a directory `conftest.py` below `tests/` is not
added. No autouse fixture unless every test needs it, and no `pytest_plugins` in a test module (it applies to every
module collected after it). A new fixture never goes into a shared `conftest.py`; a flow that needs one adds it to
the module under test or an imported helper, so conftests stop being touch-set magnets. A new autouse fixture, or a
new fixture in a directory `conftest.py`, is an Important review finding; an autouse fixture that hides a real call
(a stub that makes a test pass) is Critical. The existing conftests are split by the series in the harness bean for
`conftest.py` (0540).
18. **Self-Explaining Code** (maintainer, 2026-11-27): code carries no docstrings and no explanatory comments in any
language; names state intent, and the only allowed comment is a `# why:` comment recording a reason the code cannot
show (full text: rule 5 in [rules.md](rules.md)). Machine directives (shebangs, encoding lines, `# noqa`, `# type:`,
`# pragma`, `# fmt:`, shellcheck) stay. Every intent the coordinator writes carries this sentence in its goal: "Code
is self-explaining: no docstrings and no comments except '# why:' comments that record a reason the code cannot
show." The review flags a docstring or a non-`# why:` explanatory comment added in the diff as an Important finding.
Loading
Loading