repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Make the build tier think as its tier promises, and true up the doc (#37)

ed79fa76435bf782686c50f6ccf0e782f4ea789a

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

## What forced this
A post-merge consistency scan of the 13-PR ADW backlog found the stacked
tiering/cross-family/codex/jam edits left doc-vs-config drift. One item
was behavioral, not cosmetic: the tier table promises the *build* tier
the `think` budget, but only `builder` carried the keyword.

## The call
Wire `Think.` into `adw-docs`, `adw-deps`, `adw-release`, and
`adw-revise` so all four build-tier agents get the budget the design
assigns them; correct four doc statements to match config exactly.

## What we deliberately didn't do
Didn't water the doc down to "only builder thinks" — the tier design
(thinking climbs with stakes) is the intent, so config was the thing
that was wrong. Didn't touch models, the gate, or any mission-critical
tier.

## Evidence
Blocking-label list now equals `adw-gate.yml`'s exact set
(`changes-requested` was missing; `needs:*` wrongly included
`needs:security`). Auto-merge phrasing corrected from "`risk:low` only"
to "any PR not marked `risk:high`" (the gate never requires `risk:low`
present). Alerts-sweep security-reviewer runs without `ultrathink` — now
documented as deliberate.

## Surface touched
Four `.github/workflows/adw-*.yml` prompts + five lines of
`docs/plans/AGENTIC-DEVELOPMENT.md`.

## If this ages badly
Drop the `Think.` keywords if the added reasoning isn't worth the cost
on these low-frequency workflows; the doc corrections are pure accuracy
and stand regardless.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01LABEHeVpg74oyZNtWLUWpB)_

Co-authored-by: Claude <noreply@anthropic.com>

Changed files (5)

+18 / −7 text lines

Diff layout

.github/workflows/adw-deps.yml

Modified

+1 / −1 text lines

3939 Follow .claude/agents/dependency-manager.md: pass it through the
4040 gates; a clean semver-compatible bump is merge-eligible; a
4141 semver-incompatible / MSRV-raising / budget-tripping bump escalates
42 with an issue for the owner. Never add a crate.
42 with an issue for the owner. Never add a crate. Think.
4343 claude_args: --model claude-sonnet-5

.github/workflows/adw-docs.yml

Modified

+1 / −0 text lines

4444 docs to match (SDK `---@` annotations, guides, `smith help` topics, and
4545 the site/book sources) and open a PR. If nothing user-facing changed,
4646 do nothing. Never invent undocumented behavior; never edit docs/SPEC.md.
47 Think.
4748 claude_args: --model claude-sonnet-5

.github/workflows/adw-release.yml

Modified

+1 / −0 text lines

5454 draft notes from the PRs merged since the previous tag, verify the SPEC
5555 §14 target matrix still cross-builds, and publish a GitHub Release for
5656 the tag. Releases, not Packages. Do not move the tag or edit the spec.
57 Think.
5758 claude_args: --model claude-sonnet-5

.github/workflows/adw-revise.yml

Modified

+1 / −1 text lines

5151 label to acknowledge. Then read the review comments and the linked
5252 issue, address every finding on the SAME branch (never open a new PR),
5353 keep `cargo run -p xtask -- check` green, and push. The reviewers
54 re-run automatically on your push; do not merge.
54 re-run automatically on your push; do not merge. Think.
5555 claude_args: --model claude-sonnet-5

docs/plans/AGENTIC-DEVELOPMENT.md

Modified

+14 / −5 text lines

6363| Concept | Encoded in | In repo? | Authority |
6464|---|---|---|---|
6565| agent persona / model / tool scope | `.claude/agents/<role>.md` | ✅ | the file |
66| which agent runs on which event | `.github/workflows/<role>.yml` | ✅ | the workflow |
66| which agent runs on which event | `.github/workflows/adw-*.yml` (verb-named; `adw-review` hosts both reviewers) | ✅ | the workflow |
6767| shared rules all agents inherit | `CLAUDE.md` (+ nested) | ✅ | the file |
6868| Claude runtime settings | `.claude/settings.json` | ✅ | the file |
6969| reusable role workflows | `.claude/skills/<name>/SKILL.md` | ✅ | the file |
146146a second opinion, not self-congratulation. `release-manager` and `planner` are the
147147next candidates if the mission-critical tier ever widens.
149The tier applies to each agent's **gate role**. On the `adw-alerts` sweep path the
150`security-reviewer` runs as a Fable subagent under an Opus orchestrator without the
151`ultrathink` budget — deliberately: that path triages already-landed alerts and
152opens escalation issues, it is not a merge gate, so it does not warrant the gates'
153top reasoning budget.
149155## How the cycle pushes Smith forward
151157The state of Smith advances spec → issue → branch → review → trunk, with the
315321 The load-bearing check is **`merge-gate`** (`adw-gate.yml`) — a plain, no-LLM
316322 job that reads the PR's labels and is green only when both review verdicts are
317323 in (`reviewed` + `security-cleared`) and no blocking label
318 (`risk:high`, `blocked`, `needs:*`, `stalled`) is present. CI checks join this
319 list once the workspace CI lands.
324 (`risk:high`, `blocked`, `changes-requested`, `needs:info`, `needs:spec`,
325 `needs:prototype`, `stalled`) is present — the exact set `adw-gate.yml` holds
326 on. CI checks join this list once the workspace CI lands.
3203273. The reviewers cast their verdict **as labels**, not approvals — deliberately.
321328 `builder`, `reviewer`, and `security-reviewer` are one GitHub identity (the
322329 App), and GitHub forbids approving your own PR, so a required *approval* could
646653## Open decisions (owner / spec)
6481. ~~**Auto-merge gates.**~~ **Decided: native auto-merge, low-risk** (see
6551. ~~**Auto-merge gates.**~~ **Decided: native auto-merge, risk-gated** (see
649656 *Merging* below). The gate is: required checks green (incl. `merge-gate`) +
650657 `reviewed` + `security-cleared` + no blocking label. `risk:high` holds it for
651658 the owner. Encoded, not just described.
662669- **Phase 1** — `issues → triager → implementer → PR` on the existing proven CI;
663670 **human reviews every PR** (build trust in the trail).
664671- **Phase 2** — add `reviewer` + `security-reviewer`; enable gated auto-merge for
665 `risk:low` only (requires decision #1).
672 any PR **not** marked `risk:high` (the gate merges on `reviewed` +
673 `security-cleared` with no blocking label — it never requires `risk:low` to be
674 present; requires decision #1).
666675- **Phase 3** — add `surveyor` (self-advancing build-out) + `sweeper` (the
667676 circuit-breaker); full autonomy with the human at the three touchpoints.