gstack/pr-prep
Benjamin D. Smith b617f7916d feat(pr-prep): step 4.4 — second-opinion via codex review on CLEAN commits
Before filing each CLEAN commit (i.e. not bucketed EXACT_DUP / OVERLAP /
SIBLING), invoke `codex review` for independent second opinion. Codex
CLI uses a different model family (OpenAI vs Claude) so signal is
genuinely independent — catches structural bugs the author missed
during write-up.

Skill is optional: if `codex` CLI not on PATH, emit soft warning
and continue. Don't block on tool availability.

Severity escalation: P0/P1 findings bump commit from CLEAN to OVERLAP
(don't file as new PR until addressed). P2 stays CLEAN with author
discretion (fix-before-file or document in PR body).

Real-world motivating case (2026-05-26): two CLEAN-bucketed PRs to
garrytan/gbrain (#1427 synopsis doc truncate, #1428 models doctor
args[0]) both had codex-caught P2 issues:

  #1427: env-overridable cap not folded into computeCorpusGeneration
    hash → different caps produced same corpus_generation → cache
    invalidation broken.
  #1428: `gbrain models doctor --help` regressed into network probe
    run instead of usage print (ternary ordering bug).

Both fixed pre-merge as follow-up commits. Net cost avoided: 2
review ping-pong cycles + 2 fix PRs after upstream caught it.
2026-05-26 02:11:12 +10:00
..
SKILL.md feat(pr-prep): step 4.4 — second-opinion via codex review on CLEAN commits 2026-05-26 02:11:12 +10:00
SKILL.md.tmpl feat(pr-prep): step 4.4 — second-opinion via codex review on CLEAN commits 2026-05-26 02:11:12 +10:00