Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
63573fb
docs(beans): record resumetip PR #208 approval and calibration on bea…
thomashan Nov 20, 2026
89f6e39
docs(beans): close 0331, 0335, 0337 (PRs #208, #209), add bean 0338, …
thomashan Nov 20, 2026
a17f993
feat(harness): 60 s overlap poll, runner creates missing flow worktre…
thomashan Nov 20, 2026
7efc5d4
docs(beans): start Wave 1 flows for beans 0322 and 0190
thomashan Nov 20, 2026
5da4305
feat(harness): ntfy names the PR; close 0264, 0339, 0343; add beans 0…
thomashan Nov 20, 2026
015ed60
docs(beans): add and start bean 0344 (ghostty, warp casks, ghostty co…
thomashan Nov 20, 2026
c70a263
docs(beans): expand bean 0344 to install ghostty and warp on Linux too
thomashan Nov 20, 2026
f58f179
docs(beans): update bean 0322 for complete gemini-agent removal witho…
thomashan Nov 20, 2026
f0a455f
docs(post-merge): complete bean 0344 following dev-env PR #31 merge
thomashan Nov 20, 2026
267b466
docs(beans): add and start bean 0346 (merge stale choices.yml stow pa…
thomashan Nov 20, 2026
e6e5ce9
docs(beans): add and start bean 0349 (antigravity tmpfs brain/convers…
thomashan Nov 21, 2026
e670247
docs(post-merge): complete bean 0346 following dev-env PR #32 merge
thomashan Nov 21, 2026
79f533b
docs(beans): log bean 0351 to clean up dev-env ansible tasks and fix …
thomashan Nov 21, 2026
2f79715
docs(beans): close beans for PRs #220-#224, audit active beans, log n…
thomashan Nov 21, 2026
017974e
docs(beans): log bean 0353 for stale Stage 3 _ReviewTestGate failure
thomashan Nov 21, 2026
4b7f6ff
docs(post-merge): complete bean 0322 following PR #222 merge
thomashan Nov 21, 2026
9ae3662
docs(post-merge): complete bean 0172 following PR #225 merge
thomashan Nov 21, 2026
f4507f2
docs(post-merge): complete bean 0348 following PR #226 merge
thomashan Nov 21, 2026
cb775d8
docs(post-merge): complete bean 0199 following PR #227 merge
thomashan Nov 21, 2026
76dbdd9
docs(post-merge): complete bean 0358 following PR #237 merge
thomashan Nov 22, 2026
a8006b2
docs(post-merge): complete bean 0357 following PR #238 merge; log bea…
thomashan Nov 23, 2026
5fe903f
docs(post-merge): complete bean 0355 following PR #240 merge
thomashan Nov 23, 2026
1d40245
docs(post-merge): complete bean 0356 following PR #239 merge
thomashan Nov 23, 2026
9ad28b7
docs(post-merge): complete beans 0347 and 0354 following PR #230 merge
thomashan Nov 23, 2026
79f4a84
docs(post-merge): complete bean 0189 following PR #241 merge
thomashan Nov 23, 2026
7d330b6
docs(post-merge): complete bean 0155 following PR #243 merge
thomashan Nov 23, 2026
ef6e603
docs(harness): flow runner limits, review rules, beans 0200/0359/0362
thomashan Nov 23, 2026
9b22b4a
feat(skills): bean-progress skill with time-in-stage and total-time c…
thomashan Nov 23, 2026
9894b19
docs(beans): log bean 0363 to wait for CI after merging main and rest…
thomashan Nov 23, 2026
7cc7d27
docs(post-merge): complete bean 0359 following PR #246 merge
thomashan Nov 23, 2026
8809522
docs(post-merge): complete bean 0362 following PR #247 merge
thomashan Nov 23, 2026
d13a4fa
docs(harness): restart flow queue, PR #244 re-review, dev-env beans 0…
thomashan Nov 23, 2026
7279848
docs(skills): name subagents '#<PR> - <what it is doing>'
thomashan Nov 23, 2026
494dc55
fix: resolve PR #61 hygiene failures and review comment
thomashan Nov 23, 2026
f9e7746
docs(skills): finish '#<PR> - <what>' subagent rename in coordination…
thomashan Nov 23, 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
16 changes: 8 additions & 8 deletions .agents/coordination.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ so that long-running multi-iteration review loops never hijack the user's primar

- **Tier 1 (Main Interactive Agent -> Background Loop Orchestrator)**: The main interactive agent MUST NOT run the
review loop inline. Instead, it immediately spawns 1 background **PR Review Loop Orchestrator** subagent via
`invoke_subagent` (`TypeName: "self"`, `Model: "inherit"`, `Role: "PR Review Loop Orchestrator (<repo> PR #<N>)"`) and
returns control to the user immediately. Multiple PR review loops across different PRs can run concurrently in
isolated Tier 1 orchestrator subagents without blocking the main agent.
`invoke_subagent` (`TypeName: "self"`, `Model: "inherit"`, `Role: "#<N> - review loop orchestrator"`) and returns
control to the user immediately. Multiple PR review loops across different PRs can run concurrently in isolated Tier 1
orchestrator subagents without blocking the main agent.
- **Tier 2 (`PR Review Loop Orchestrator` Subagent -> Per-Pass Reviewer & Resolver Subagents)**: The background
`PR Review Loop Orchestrator` subagent owns the entire loop lifecycle across all iterations (up to
`max_iterations: 25`). Per iteration, it spawns the isolated dry-run reviewer, the 3 parallel `pr-reviewer` ensemble
Expand All @@ -61,7 +61,7 @@ interactive session remains responsive:

- **Interactive Agent Delegation**: The main interactive agent MUST NOT execute `holon flow` inline. Instead, it
immediately spawns 1 background **Holon Flow Subagent** via `invoke_subagent` (`TypeName: "self"`,
`Role: "Holon Flow Subagent (<slug>)"`, `Model: "inherit"`) and returns control to the user immediately (see
`Role: "bean <id> - holon flow <slug>"`, `Model: "inherit"`) and returns control to the user immediately (see
[holon-flow Step 0](skills/holon_flow/SKILL.md#step-0-entrypoint-delegation--spawn-the-background-flow-subagent)).
- **Subagent Flow Ownership**: The background subagent executes `holon flow` directly, watches checkpoints
(`.holon/flow/checkpoint-<slug>.json`), applies the automatic model fallback ladder on quota/session exhaustion,
Expand Down Expand Up @@ -99,10 +99,10 @@ 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-3.8-pro-high` $\rightarrow$
`gemini-3.8-flash-medium` $\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-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.
- **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 Down
11 changes: 7 additions & 4 deletions .agents/holon-flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ stepping down model tiers, always resume through `holon flow <intent.json> --fro
the harness** -- they are not a change-authoring surface. Editing `holon-agentic-coder` or `holon-coherence` source in
a worktree outside the flow bypasses intent provenance, plan metrics, EV accounting, and the execution ledger, and is
therefore prohibited.
- Skipping a stage is not permitted. If a stage cannot run (missing image, failed agent, unreachable remote), the change
is **blocked**: report the blocker instead of hand-applying the diff as a workaround.
- Skipping a stage is not permitted: **never pass `--skip-review`**; no case needs it (maintainer, 2026-11-21). If Stage
4 or any other stage fails or stalls (missing image, failed agent, unreachable remote), the change is **blocked**:
halt and report the blocker instead of bypassing the stage or hand-applying the diff as a workaround.
- **Automatic Model & Runner Fallback on Credit / Quota Exhaustion**: If a stage or subagent fails due to model credit
exhaustion, session quota limits, or rate-limit caps (e.g. `You've hit your session limit`, `insufficient_quota`,
`RESOURCE_EXHAUSTED`, or HTTP 429/quota errors), **do not stop or block** as long as a lower-tier model or alternate
Expand All @@ -62,8 +63,10 @@ stepping down model tiers, always resume through `holon flow <intent.json> --fro
`opus`) $\rightarrow$ `claude-sonnet-4-6` (or `sonnet`) $\rightarrow$ `claude-haiku-4-5` (or `haiku`). Fable is the
preferred top tier for flow stages (maintainer, 2026-11-05); `holon` passes `--model` through to the runner
verbatim, so no engine change is needed.
- **Antigravity (`antigravity-agent` in `holon` CLI) fallback ladder**: `gemini-3.8-pro-high` (or `gemini-3.8-pro`)
$\rightarrow$ `gemini-3.8-flash-medium` $\rightarrow$ `gemini-3.8-flash`.
- **Antigravity (`antigravity-agent` in `holon` CLI) fallback ladder** (maintainer, 2026-11-22): use
`antigravity-agent` with `gemini-4-argon` for all Holon coding tasks until tokens run out, then fall back along
`gemini-4-argon` $\rightarrow$ `gemini-4-hydrogen` $\rightarrow$ `gemini-3.8-flash` (use bare model IDs without
`-high` because `AntigravityRunner` passes `--effort ${HOLON_AGENT_EFFORT:-medium}`).
- **Antigravity (`invoke_subagent` in AGY runtime) fallback ladder**: `Model: "inherit"` / `"pro"` $\rightarrow$
`"flash"` $\rightarrow$ `"flash_lite"`.
- **Cross-Runner Fallback**: If all model tiers on the active runner (`claude-agent` or `antigravity-agent`) share an
Expand Down
4 changes: 2 additions & 2 deletions .agents/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ system safety, and clean documentation. Follow these core guidelines in every se
restarting completed stages:
- **Claude (`claude-agent` / Claude Code)**: `claude-opus-5-5` $\rightarrow$ `claude-sonnet-4-6` $\rightarrow$
`claude-haiku-4-5`.
- **Antigravity (`antigravity-agent` in `holon` CLI)**: `gemini-3.8-pro-high` $\rightarrow$
`gemini-3.8-flash-medium` $\rightarrow$ `gemini-3.8-flash`.
- **Antigravity (`antigravity-agent` in `holon` CLI)**: `gemini-4-argon` $\rightarrow$ `gemini-4-hydrogen`
$\rightarrow$ `gemini-3.8-flash` (default to `gemini-4-argon` for all Holon coding tasks until tokens run out).
- **Antigravity (`invoke_subagent` in AGY runtime)**: `Model: "inherit"` / `"pro"` $\rightarrow$ `"flash"`
$\rightarrow$ `"flash_lite"`.
- **Cross-Runner Continuation**: If an entire runner's session quota is exhausted across all its model tiers (e.g.
Expand Down
1 change: 1 addition & 0 deletions .agents/scripts/validate-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const filesToCheck = [
path.join(rootDir, '.agents/skills/install_coherence/SKILL.md'),
path.join(rootDir, '.agents/skills/post_pr_merge/SKILL.md'),
path.join(rootDir, '.agents/skills/prioritise_beans/SKILL.md'),
path.join(rootDir, '.agents/skills/bean_progress/SKILL.md'),
path.join(rootDir, '.agents/skills/holon_flow/SKILL.md'),
path.join(rootDir, '.agents/watcher/README.md'),
];
Expand Down
93 changes: 93 additions & 0 deletions .agents/skills/bean_progress/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
name: bean-progress
description: >-
Reports live status and progress of all in-flight beans across the Holon ecosystem (holon-agentic-coder,
holon-coherence, dev-env, and harness), correlating .beans/, todo/ intents, flow worktree checkpoints, open GitHub
PRs, and active host/Docker processes across sessions (Antigravity, Claude Code, Codex, terminal) into a concise
Markdown table while strictly excluding completed and scrapped beans. Activate whenever the user asks for bean
progress, in-flight beans, active flows across sessions, or an in-flight bean status table.
---

# Bean Progress Skill (`bean-progress`)

> [!NOTE] **Model tier: lowest.** This skill is mechanical and read-only, so run it directly via its script (or in a
> dedicated subagent on the lowest tier from [`.agents/model-tiers.md`](../../model-tiers.md)). Do not hard-code a model
> name here.

Provides an instant, read-only Markdown table of every bean currently in flight across all local worktrees, open Pull
Requests, and active runner sessions.

---

## Core Invariants & Rules

1. **Strict Exclusion of Completed & Scrapped Beans**:
- Any bean with `status: completed` or `status: scrapped` MUST NEVER appear in the output table, even if leftover
`todo/intent-*.json` files or unpruned flow worktrees still exist on disk.
2. **Strictly Read-Only**:
- Never modify `.beans/`, commit changes, kill processes, or mutate git branches or PRs.
3. **Cross-Session Visibility**:
- Inspects live `run_holon_flow.py`, `holon flow`, Docker role containers, and quota/merge waiters across all
sessions (Antigravity, Claude Code, Codex, and standalone terminal processes) using strict ancestor inspection.
4. **Clean 4-Digit Bean Numbers**:
- Render bean IDs as clean 4-digit numbers (`0193`, `0347, 0354`), never file paths or `file://` links inside table
cells.
5. **Authentic State Only**:
- Every stage, PR link, CI summary, PID, and runner model comes directly from disk state, `gh`, and `ps` output.

---

## Execution Workflow

Run [bean_progress.py](./scripts/bean_progress.py) from the harness root:

```bash
uv run python .agents/skills/bean_progress/scripts/bean_progress.py
```

Return the resulting Markdown table directly to the user verbatim (with a brief one-line summary of totals if helpful).

### CLI Flags

| Flag | Description | Default |
| :------------ | :----------------------------------------------------- | :---------------------- |
| `--repo-root` | Harness repository root path | Auto-detected repo root |
| `--beans-dir` | Explicit directory containing bean markdown files | `<repo-root>/.beans` |
| `--json` | Emit structured JSON array instead of a Markdown table | `false` |
| `--no-gh` | Skip querying open Pull Requests via `gh pr list` | `false` |
| `--no-ps` | Skip inspecting running host/Docker processes via `ps` | `false` |

### Output Table Schema

| Column | Meaning |
| :-------------- | :------------------------------------------------------------------------------------------------------------------- |
| `Bean #` | Clean 4-digit bean ID(s) (`0347, 0354`), or `—` for unmapped active flows/PRs |
| `Target` | Repository target (`HAC`, `Coherence`, `dev-env`, or `harness`) |
| `Title` | Concise bean or flow title |
| `Stage` | Active Holon stage (preferring live Docker role / admission wait over stale disk) |
| `Time in Stage` | How long the bean has been in its current stage (compact: `45s`, `12m`, `1h05m`, `2d3h`; `—` if unknown) |
| `PR & CI` | Open PR link, CI rollup (`pass`/`fail`/`running`), review count, mergeability flags |
| `Total Time` | How long the bean has been in flight overall (same format; `—` if unknown) |
| `Notes` | Runner first (`opus-5-5 · 31m (PID, session)` live, `idle (opus-5-5)` idle), then blockers, warnings, stale attempts |

Rows are merged per bean: when several attempts exist (for example a stale first-attempt worktree plus a live `-v2`
flow), the live or most-advanced attempt is shown and the others are listed in Notes as `stale attempt ...`.

### Mapping rules

- Child intents/PRs of a split flow (branches `I-<ts>-<parent-slug>/P-...--1-<child-slug>/...`) map to the parent intent
slug, which is matched to `todo/intent-<bean#>-*.json` (by the JSON `slug` or the file-name slug, ignoring a trailing
`-vN`). Flows therefore receive their bean number even with no other link.
- A PR is only matched by branch (execution branch, then `I-<ts>-<slug>/`) or by a whole-number bean reference in its
branch or title; digits inside timestamps never match.

### Time sources (real data only)

- **Time in Stage**: in the newest `.holon/flow/checkpoint-*.json` of the flow worktree, the current stage's
`context.stage_results.<stage>.start_time`; if absent, the latest `end_time` of the stages already recorded (the
previous stage ended when this one began); else the checkpoint `timestamp`; else the checkpoint file mtime. A live
Stage 4 iteration still reports time since the stage began, not the iteration.
- **Total Time**: now minus the earliest of the `I-<ts>` epoch in the flow's intent/plan/execution branch and the first
`holon-knowledge/ledger/intents.jsonl` row `created_at` for that intent (including its split children) in the flow
worktree. Only open PRs are inspected, so the end point is always now. The bean's status change is not used (beans
record no status history). PR-only rows use the `I-<ts>` epoch of the PR head branch.
Loading
Loading