Skip to content

chore(skills): run /ship review loops as Workflow scripts - #610

Merged
BorisTyshkevich merged 1 commit into
mainfrom
chore/ship-review-loop-workflows
Aug 5, 2026
Merged

chore(skills): run /ship review loops as Workflow scripts#610
BorisTyshkevich merged 1 commit into
mainfrom
chore/ship-review-loop-workflows

Conversation

@BorisTyshkevich

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #609: the /ship review loops now run as Workflow scripts instead of prose instructions, so the loop mechanics are enforced by code:

  • plan-review-loop.workflow.mjs — the full plan loop in one run. Each pass: one serialized chatgpt-review plan call (with one resume-retry on incomplete status), schema-validated verdict parsing (missing/malformed ⇒ REVISE, fail-closed), one read-only verifier agent per finding in parallel, then a revise agent that folds accepted findings into the plan file in place (path = session identity) and records rejections as ## Review responses rebuttals. The 5-pass cap is a for-loop bound. Returns approved / needs_human (FULL STOP) / error.
  • code-review-pass.workflow.mjs — exactly one PR pass per run: review (publishes the PR comment), parallel finding verification, and — when findings are accepted — a fix agent that applies them with tests, loops the full local gate to green, and commits locally only. The coordinator keeps push, CI-wait keyed on head SHA, re-invocation, and the merge gate; the 3-pass cap remains enforced by the chatgpt-review CLI. Returns certified-pending-proofs / fixed-await-push / no-accepted-findings / fix-failed / needs_human / error.
  • review-loops.md — the invocation contract: args, return-status tables with required coordinator actions, and the hard rules (coordinator launches review workflows one at a time — agent Chrome is a single session; question files must carry the verdict protocol; accepted/rejected findings are always returned and recorded).

SKILL.md (operating rules, steps 2.2/2.3/3.5), per-issue-cycle.md (plan-review worker part), footguns, and .wiki/Project-Skills.md rewired to match. Both scripts pass a syntax check under the workflow runtime's async-wrapper semantics and avoid the forbidden runtime APIs (Date.now/Math.random/new Date).

Behavior change: review revisions to a plan are made by the loop's revise agent, not the waiting worker — the worker re-reads the approved plan file before implementing, making the file (not worker memory) the contract.

Process/tooling only — no src/ changes, no CHANGELOG entry.

🤖 Generated with Claude Code

https://claude.ai/code/session_01E4bdx3RwYDjVdPdFCggKVQ

Encode the plan and code review loops as deterministic Workflow scripts
instead of prose the coordinator follows by hand:

- references/plan-review-loop.workflow.mjs — the whole 5-pass plan loop in
  one run: serialized chatgpt-review plan passes, schema-validated verdict
  (fail-closed to REVISE), parallel read-only verification of every
  finding, and a revise agent that folds accepted findings into the plan
  file in place (rejected ones become "## Review responses" rebuttals).
  Cap 5 is a loop bound.
- references/code-review-pass.workflow.mjs — one PR pass per run: review
  (publishes the comment), parallel verification, then a fix agent that
  applies accepted findings with tests, loops the full local gate to
  green, and commits locally only. The coordinator still owns push, CI
  wait, re-invocation, and the gate; the 3-pass cap stays enforced by the
  chatgpt-review script.
- references/review-loops.md — the invocation contract: args, return
  statuses and required coordinator actions, and the hard rules
  (coordinator-only, one review workflow at a time, question files carry
  the verdict protocol, findings never silently dropped).

SKILL.md steps 2.2/2.3/3.5, the operating rules, per-issue-cycle.md's plan
review section, and the footguns are rewired accordingly. One behavior
change: the loop's revise agent (not the waiting worker) edits the plan
file, so the worker re-reads the approved plan before implementing — the
file, not the worker's draft, is the contract.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E4bdx3RwYDjVdPdFCggKVQ
@BorisTyshkevich
BorisTyshkevich merged commit 4bab0ca into main Aug 5, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant