repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Wire Codex and Copilot in as advisory cross-family review (#31)

3c1d20b6475437cc01ae2e90e9ff055776d645dc

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

## What forced this
Anthropic agents reviewing Anthropic-built code share blind spots.
Copilot (GitHub) and Codex (OpenAI) have *different* ones — the
strongest use of a foreign model in a system already built on "a
different model than the builder."

## The call
Bring them in for review *diversity*, but **advisory, never gating**.
`reviewer` and `security-reviewer` now weigh a Copilot/Codex review as a
cross-family second opinion, folding real findings in, while keeping
sole ownership of the verdict labels the `merge-gate` reads.

## What we deliberately didn't do
Did not put any external tool in the merge-gate's critical path — an
outage or a silent tool can never deadlock a merge or become
load-bearing for landing code. Did not blind-wire a Codex CI reviewer:
that needs its subscription auth proven like p35 proved Claude's (a
metered OpenAI key is off the table).

## Evidence
Follows the established "different model than the builder" invariant;
the merge-gate remains driven solely by our agents' labels (proven safe
by p36).

## Surface touched
`.claude/agents/{reviewer,security-reviewer}.md` and the GitHub-features
table + a Cross-family review section in
`docs/plans/AGENTIC-DEVELOPMENT.md`.

## If this ages badly
Drop the advisory lines; nothing depends on the external tools, so
removing them changes no gate.

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

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

Changed files (3)

+35 / −0 text lines

Diff layout

.claude/agents/reviewer.md

Modified

+7 / −0 text lines

3434missing a case, or self-contradictory, that is the **escape valve**: don't approve
3535around it and don't guess the intent — open a `needs:spec` issue with the
3636contradiction and its SPEC anchor, and leave the PR blocked for the owner.
38**Weigh the cross-family review.** A **Copilot** or **Codex** review may already be
39on the PR — read it as a second opinion from a *different model family*, with
40blind spots yours doesn't share, and fold anything real into your findings. But it
41is advisory: you own the verdict label, and never rubber-stamp or defer to theirs.
42If they flag something you can't confirm, request the test that settles it rather
43than approving past it.

.claude/agents/security-reviewer.md

Modified

+5 / −0 text lines

3434secret-handling rule the spec never pins down — the fix is not a code patch on this
3535PR but a spec correction. Open a `needs:spec` issue with the gap and its SPEC
3636anchor (the **escape valve**), alongside your `risk:*` verdict.
38A **Copilot** or **Codex** review on the PR is a cross-family second opinion — a
39security flag from a different model is worth taking seriously and confirming, not
40dismissing. But it is advisory: you own `risk:*`, and you never downgrade a real
41finding just because an external tool stayed silent.

docs/plans/AGENTIC-DEVELOPMENT.md

Modified

+23 / −0 text lines

387387| routing & gates | **Labels** (`.github/labels.yml`, as code) | triager / security-reviewer |
388388| grouping | **Milestones** = waves | `planner` opens + assigns; `surveyor` fills the current one; `release-manager` closes |
389389| every change | **PRs** linked to issues, agent-reviewed | builder |
390| review diversity | **Copilot code review** (advisory) + **Codex** (contributor / advisory reviewer) — cross-family second opinions | `reviewer` / `security-reviewer` weigh |
390391| spec protection | **CODEOWNERS** + branch **ruleset** | (owner) |
391392| dependency updates | **Dependabot** (`.github/dependabot.yml`) — bumps as maintenance | dependency-manager |
392393| code scanning | **DevSkim** (`.github/workflows/devskim.yml`, SARIF → Security tab) + **CodeQL** (Rust) + `cargo audit`/`cargo deny` in CI | security-reviewer |
401402push protection are **repo settings** the owner enables once; the agents then
402403triage their alerts.
405### Cross-family review — extra eyes, not extra gates
407Anthropic agents reviewing Anthropic-built code share blind spots. **Copilot**
408(GitHub) and **Codex** (OpenAI) have *different* ones, so they are wired in for
409review *diversity* — the strongest use of a foreign model in a system that already
410prizes "a different model than the builder."
412- **Copilot code review** — enabled as a repo setting so it auto-reviews each PR.
413 Its comments are **advisory**: `reviewer`/`security-reviewer` read and weigh them,
414 but Copilot never sets a gate label.
415- **Codex** — two depths, owner's choice: as a **contributor**, Codex opens PRs
416 (from its ChatGPT cloud agent connected to the repo) that ride the *existing*
417 gate — reviewed, labeled, squash-merged like any PR, no new workflow; and/or as
418 an **advisory reviewer** in CI, which first needs its subscription-auth mechanics
419 proven the way p35 proved Claude's (a `needs:prototype`), since a metered OpenAI
420 API key is off the table.
422**Deliberately advisory, never gating.** External tools stay *out* of the
423`merge-gate`'s critical path: our own reviewers own the verdict labels, so a
424Copilot or Codex outage can never deadlock a merge, and no external service becomes
425load-bearing for landing code. They enrich the judgment; they don't hold the key.
404427Two owner-added workflows already sit on `main` and the plan wraps around them
405428rather than replacing them: