repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Drop Projects from the ADW trail (#142)

54c8dd598b031abf068a829977e3f1346d0a73d3

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

## Motivation
User-owned Projects v2 are not viable for the App-token ADW path; the
i16 probe could neither create nor resolve the board.

## Decision
Keep ADW visibility on issues, labels, milestones, PRs, checks,
releases, and Git history.

## Surface
docs/plans/AGENTIC-DEVELOPMENT.md and
docs/super/specs/2026-07-26-adw-provider-resilience-design.md.

## Tests
git grep for removed Project-board language.

Changed files (2)

+52 / −58 text lines

Diff layout

docs/plans/AGENTIC-DEVELOPMENT.md

Modified

+49 / −55 text lines

33> Guide and overview, **not** the source of truth. The ADW *is* the encoded
44> config — `.github/workflows/`, GitHub settings (CODEOWNERS, rulesets, labels,
5> the Project board), and `.claude/` (agents, settings, skills). This doc
5> milestones), and `.claude/` (agents, settings, skills). This doc
66> explains and ties those together; when the doc and the config disagree, **the
77> config wins** and the doc is corrected — never the reverse, because the config
88> is what actually runs. `docs/SPEC.md` stays canonical for what Smith *is*;
7272| merge gates / auto-merge | native auto-merge + `merge-gate` check + ruleset | ✅ `adw-automerge.yml` + `adw-gate.yml` + ruleset (`merge-gate` required); ⚠️ ruleset applied by hand | workflow + ruleset |
7373| routing labels | `.github/labels.yml` + a label-sync action | ✅ if adopted as-code | `labels.yml` |
7474| waves | Milestones | ❌ GitHub API/UI | GitHub |
75| lifecycle board | Project (v2) | ❌ mostly (scriptable via `gh`) | GitHub |
7675| bot identity | GitHub App + secrets | ⚠️ App-manifest JSON can live in repo; key/install manual | GitHub |
7877**Rule:** prefer the as-code option for anything that can be one (rulesets,
7978labels-as-code, the App manifest) so the ADW is reviewable and reproducible;
80accept that the Project board, milestones, and the App installation are
81irreducibly GitHub-side. A `xtask adw` (or CI) check can assert the in-repo
79accept that milestones and the App installation are irreducibly GitHub-side. A
80`xtask adw` (or CI) check can assert the in-repo
8281artifacts agree with this doc's tables — the same no-drift discipline as the
8382arch gate.
106105| Agent | Woken by (in the workflow) | Mission | Artifact it owns | Model | Effort |
107106|-------|----------------------------|---------|------------------|-------|--------|
108| `planner` | spec change on `main`; a `needs:breakdown` epic; weekly `schedule` | interpret spec diffs into work-orders, slice epics into single work-orders, and groom the backlog + board | **Issues** + `docs/plans/*` | fable | xhigh |
107| `planner` | spec change on `main`; a `needs:breakdown` epic; weekly `schedule` | interpret spec diffs into work-orders, slice epics into single work-orders, and groom the backlog | **Issues** + `docs/plans/*` | fable | xhigh |
109108| `surveyor` | `schedule` | measure the spec-vs-code gap and open the next unbuilt slice as a work-order | **one Issue** per tick | fable | high |
110109| `reviewer` | `pull_request` | adversarial correctness review vs the spec — a *second* model | a **PR review** | opus | xhigh |
111110| `security-reviewer` | PR on sensitive surface / `needs:security` / `adw-alerts` daily sweep or manual dispatch | security review; escalate high severity | a **PR review** + `risk:*` | opus | high |
116115| `docs-writer` | merged PR changes user-facing / SDK behavior | keep user + plugin-author docs and the site true to the product | doc sources + Pages, via **PR** | terra | medium |
117116| `dependency-manager` | Dependabot bump PR | shepherd version bumps through the gates; escalate risky ones | **Dependabot PRs** | terra | medium |
118117| `release-manager` | `v*` tag | draft notes, verify the §14 matrix, publish the Release | a **GitHub Release** | terra | medium |
119| `triager` | issue opened | triage a raw issue into a labeled, ranked, spec-anchored work-order related to the open backlog — routed to a builder, or `needs:breakdown` to the planner if it is an epic/meta issue | the **Issue** + board card | luna | medium |
120| `sweeper` | `schedule` | unstick stalls, enforce WIP, brake runaways | **Issues/PRs/board** labels | luna | low |
118| `triager` | issue opened | triage a raw issue into a labeled, ranked, spec-anchored work-order related to the open backlog — routed to a builder, or `needs:breakdown` to the planner if it is an epic/meta issue | the **Issue** | luna | medium |
119| `sweeper` | `schedule` | unstick stalls, enforce WIP, brake runaways | **Issues/PRs** + labels | luna | low |
121120| `pioneer` (skill) | issue labeled `needs:prototype` (`adw-pioneer.yml`) | prove/disprove an unproven spec claim with a prototype | `prototypes/*` + a **PR** | opus | high |
123122**Two builders, by domain.** The `triager` routes each `ready`-able issue by
194193 Note over Owner,Board: Touchpoint 2 — issues
195194 Owner->>Board: file an issue
196195 Board-->>Tri: issue opened
197 Tri->>Board: classify · anchor · size · route · card→Ready
196 Tri->>Board: classify · anchor · size · route · labels
198197 Note over Tri,Board: epic/meta issue → needs:breakdown (planner slices it), no builder
200 Board-->>Bld: labeled `ready` (card→In Progress)
199 Board-->>Bld: labeled `ready`
201200 loop until gates green
202201 Bld->>CI: push slice
203202 CI-->>Bld: red → self-heal
204203 end
205 Bld->>PR: open PR, closes #N (card→In Review)
204 Bld->>PR: open PR, closes #N
206205 PR-->>Rev: pull_request
207206 PR-->>Sec: pull_request
219218 alt reviewed + security-cleared, no blocking label
220219 Note over PR,Trunk: native auto-merge, gated by merge-gate
221 PR->>Trunk: squash-merge (signed) — card→Done
220 PR->>Trunk: squash-merge (signed)
222221 Trunk-->>Sur: front clears → next slice
223222 else risk:high / sev:high
224223 Note over PR,Owner: Touchpoint 3 — PR review
299298routes to the human via one of `needs:spec`, `risk:high`, or `needs:info`.
301300The last row is the pipeline's dead-man's switch. The ruleset names `merge-gate`
302as the sole required check, which makes it the sole way the whole board can
301as the sole required check, which makes it the sole way the whole queue can
303302seize: fail-closed is right for one bad PR and catastrophic when the gate
304303*itself* breaks — a yanked action, an expired App token, a bad edit to
305304`adw-gate.yml`. Then no single PR is "wrong" and the jam is invisible from any
306one PR. `adw-jam-detector` watches the whole board: a deterministic, no-LLM scan
305one PR. `adw-jam-detector` watches the whole queue: a deterministic, no-LLM scan
307306reduces each check name to its latest run, then tallies active `merge-gate`
308307failures across open non-draft PRs. An ordinary red gate is control state, not
309308illness: while a verdict is missing or a blocking label is present, it is
463462| Concern | Feature | Owned by |
464463|---|---|---|
465464| unit of work | **Issues** (+ sub-issues) | triager / planner / surveyor |
466| lifecycle state | **Project (v2)** board: Triage → Ready → In Progress → In Review → Security → Done; fields for risk / wave / owner | each agent moves its own card; `sweeper` reconciles drift |
465| lifecycle state | **Labels** (`ready`, `codex`, `blocked`, `stalled`, `reviewed`, `security-cleared`, `risk:*`) | each agent moves labels; `sweeper` reconciles drift |
467466| routing & gates | **Labels** (`.github/labels.yml`, as code) | triager / planner / security-reviewer |
468467| grouping | **Milestones** = waves | `planner` opens + assigns; `surveyor` fills the current one; `release-manager` closes |
469468| every change | **PRs** linked to issues, agent-reviewed | builder |
476475| site + book | **Astro site + mdBook book → Pages** (`.github/workflows/pages.yml`, one deploy on push to `main`) | docs-writer |
477476| compute | **Actions** workflows | — |
479Projects v2, Discussions, Pages, and Releases aren't reachable from the MCP
480toolset but are reachable from `gh` / `gh api graphql` inside Actions — so the
481agents (which run in Actions) drive them. Code scanning, secret scanning, and
482push protection are **repo settings** the owner enables once; the agents then
483triage their alerts.
478Discussions, Pages, and Releases aren't reachable from the MCP toolset but are
479reachable from `gh` inside Actions — so the agents (which run in Actions) drive
480only the surfaces Smith actually uses. Projects v2 is deliberately excluded:
481GitHub App installation tokens cannot resolve or create the user-owned Project
482v2 board this repo would need, so issues, labels, milestones, PRs, checks, and
483Git history are the reviewed trail. Code scanning, secret scanning, and push
484protection are **repo settings** the owner enables once; the agents then triage
485their alerts.
485487### Cross-family review — extra eyes, not extra gates
581583 builds only if its manifest exists and deploy is skipped until at least one is
582584 scaffolded, so `main` stays green until those work-orders land.
584### Milestones and the board — planning in the open
586### Milestones and labels — planning in the open
586The two features exist to make the plan *visible on GitHub itself*, not buried in
587`docs/plans/`. They carry different axes and have different maturity:
588The visible plan lives in GitHub primitives the App can drive in this user-owned
589repo:
589- **Milestones = waves (wire now).** A milestone is one wave of the walking
590 skeleton. `planner` opens a milestone per wave and files each work-order into it;
591- **Milestones = waves.** A milestone is one wave of the walking skeleton.
592 `planner` opens a milestone per wave and files each work-order into it;
591593 `surveyor` only opens slices from the **current** milestone, in order, and does
592594 not reach into the next wave until the current one closes — that ordering is what
593595 keeps autonomous build-out marching the skeleton rather than sprawling.
594596 `release-manager` treats a milestone going all-closed-and-green as the trigger to
595 cut a release. Milestones are first-class REST (reachable from the MCP `milestone`
596 field and from `gh`), so this is cheap and encoded now — no proof needed.
597- **The board = lifecycle (gated on proof).** The Project (v2) board carries the
598 *state* axis milestones don't: Triage → Ready → In Progress → In Review →
599 Security → Done, with fields for risk / wave / owner. Each agent moves its own
600 card as the diagram annotates (`triager`→Ready, `builder`→In Progress→In Review,
601 reviewers→Security/Done, merge→Done), and `sweeper` reconciles cards that drift
602 from reality (a card stuck "In Review" on a PR that already merged). **But
603 Projects v2 is reachable only via `gh api graphql`, which p35 did not exercise** —
604 so board-driving is *designed, not yet proven*. It is gated on two things: the
605 board existing (owner, issue #14) and a mechanic proof that an Action step can
606 read and move a card with the App token (a `needs:prototype`, the same discipline
607 p35 applied to the action). Until both land, **issues + labels + milestones are
608 the load-bearing state**, and the board is best-effort mirror, not source of
609 truth. This keeps the cycle honest: no agent blocks on a surface that isn't
610 proven to work.
597 cut a release. Milestones are first-class REST (reachable from the MCP
598 `milestone` field and from `gh`), so this is cheap and encoded now — no proof
599 needed.
600- **Labels = lifecycle and gates.** Triage, routing, review, security, risk,
601 blocking, and stalls are label state on issues and PRs. Labels are visible in
602 the GitHub UI, diffable as `.github/labels.yml`, readable by deterministic
603 shell checks, and writable by the App installation token. This is the ADW's
604 lifecycle surface.
606Projects v2 is intentionally not used. The i16 proof showed the App installation
607token cannot create a user-owned Project v2 and cannot resolve the owner-created
608user Project #1. An org-owned Project could work, but Smith is a user-owned repo;
609adding an org just to host a board would add identity and permission machinery
610without adding correctness. Issues, labels, milestones, PRs, checks, and Git are
611the reviewed trail.
612613## Release lifecycle — Releases, not Packages
639640The App is provisioned: **`agent-smith-bugabinga-adc`** is created, installed on
640641the repo, and its `APP_ID` / `APP_PRIVATE_KEY` are stored as secrets. It is
641required, not optional, for two reasons:
6431. **Cascade.** Actions taken with the default `GITHUB_TOKEN` do **not** trigger
644 downstream workflows — an agent-opened PR would never trip the review
645 workflow. An App installation token cascades, so the chain actually flows.
6462. **Projects scope.** Projects v2 is org/user-scoped; `GITHUB_TOKEN` can't
647 write it. The App can be granted project permission.
642required, not optional: actions taken with the default `GITHUB_TOKEN` do **not**
643trigger downstream workflows — an agent-opened PR would never trip the review
644workflow. An App installation token cascades, so the chain actually flows.
649646Bonus: every autonomous action is attributable to the bot, not the human — a
650647clean audit identity.
652649### TL;DR — creating the App
6541. **Settings → Developer settings → GitHub Apps → New GitHub App** (org-level if
655 the Project is org-owned).
6511. **Settings → Developer settings → GitHub Apps → New GitHub App**.
6566522. **Permissions:** Contents RW, Issues RW, Pull requests RW, Checks R, Actions
657653 **RW** (the no-Claude watchers relay `push`/`issues` via `gh workflow run`, which
658 needs Actions:write); Organization **Projects RW** (and repo Projects if used);
659 Discussions RW and Metadata R as needed.
654 needs Actions:write); Discussions RW and Metadata R as needed.
6606553. **Install** the App on the `smith` repo.
6616564. **Generate a private key**; store `APP_ID` + `PRIVATE_KEY` as repo/org
662657 secrets.
6636585. In each workflow, mint an installation token with
664659 `actions/create-github-app-token@v1` and pass it as the action's
665 `github_token` (and to `gh` via `GH_TOKEN`). That token both cascades and
666 carries Projects scope.
660 `github_token` (and to `gh` via `GH_TOKEN`). That token cascades downstream
661 workflows.
668663## Signed commits — verified trail, now; enforced, later
777772## Phased rollout
779774- **Phase 0** — CODEOWNERS + branch protection on the spec (enforces touchpoint
780 #1); create the Project board; land the `.claude/agents/*` personas. No
781 autonomy yet.
775 #1); land the `.claude/agents/*` personas. No autonomy yet.
782776- **Phase 1** — `issues → triager → implementer → PR` on the existing proven CI;
783777 **human reviews every PR** (build trust in the trail).
784778- **Phase 2** — add `reviewer` + `security-reviewer`; enable gated auto-merge for

docs/super/specs/2026-07-26-adw-provider-resilience-design.md

Modified

+3 / −3 text lines

129129| #21 | Liveness cliff, revise thrash, and no post-merge recovery. | Bounded WIP with one alternate unblocked slice, per-PR revise counter, and post-merge red-CI revert PR path. |
130130| #20 | Some event triggers are unproven. | Treat schedules/reconciliation as load-bearing; prototype only events that remain load-bearing. |
131131| #17 | `merge-gate` is labels-only until real CI is required. | No hands-off auto-merge until `xtask check` is a required status beside `merge-gate`. |
132| #16 | Project v2 board driving is unproven. | Labels, issues, milestones remain source of truth; board stays disabled/best-effort until proven. |
132| #16 | User-owned Projects v2 are not App-token viable for Smith. | Drop Projects; issues, labels, milestones, PRs, checks, and Git are the ADW trail. |
133133| #122 | Release workflow must stay thin and invoke `xtask release`. | Release-manager uses the same provider runner; release mechanics wait on #104/#120 and stay xtask-owned. |
135135Closed ADW incidents cluster into the same roots: merge-gate jams (#39, #43, #58-#76, #84), stale labels (#94), label drift (#113), no-verdict recovery (#128/#129), stale CodeQL config (#116), auth/setup blockers (#13/#14/#32/#47), and wrong-signing diagnosis (#115). They argue for fewer moving pieces, not more per-incident patches.
139139The minimal system is four boring layers:
1411. **State:** GitHub issues, labels, milestones, required checks. Project boards are mirrors only.
1411. **State:** GitHub issues, labels, milestones, PRs, required checks, and Git history. No Projects board.
1421422. **Runner:** one provider runner contract prepares trusted inputs, runs Claude or Codex, and proves the artifact.
1431433. **Reducer:** deterministic shell logic reduces provider results into labels, comments, PRs, or failures.
1441444. **Reconciler:** scheduled sweeper/doctor repairs missed events, stalled work, and provider outages.
1591594. Convert triage, sweep, planner, surveyor, docs, deps, release, pioneer, and doctor to the same runner.
1601605. Add ADW coverage matrix and liveness rules to `docs/plans/AGENTIC-DEVELOPMENT.md`.
1611616. Keep auto-merge disabled until real CI is required with `merge-gate`.
1627. Leave Project v2 disabled as source of truth until #16 is proven.
1627. Remove Project v2 from the ADW model; do not replace it with another board.
164164Each step must preserve current artifact contracts before adding new behavior.