Arthur Foo

Case study · AI-assisted development

The AI workflow I designed

A shared workflow for Claude Code and Codex to hand off work, verify changes and review them independently.

Designer and maintainer Aug 2026–present Claude Code · Codex · Markdown 10 dual-review rounds on this portfolio

01 · Summary

Two tools, one rulebook and one task record

I designed this workflow so Claude Code and Codex can hand off work, verify changes and review them independently against the same plan. Decisions that require judgment come back to me.

This portfolio's records include 10 rounds of dual independent review. When the homepage rebuild reached its two-round limit, I decided how to handle the remaining findings.

02 · Problem & constraints

Long rules made it hard to pick up the next step

The early process had stage gates and several parallel fast routes. Entry instructions conflicted, agents struggled to read all the rules, and I often had to tell them to continue to the next stage.

One tool gets no automatic notification when the other runs out of quota. An agent could report completion or review without a matching run record. The handoff needed the current state, the next step and the evidence behind both.

Redrawn timeline of five workflow versions from August to November 2026, from stage-gate governance to a short core, with three observed-failure-to-rule cards and the order used when a mistake repeats: pointer, automated check, then a text rule
Fig 02.1 Simplified Each version kept only what real failures justified. “One query: 16.7 MB → 1.3 KB” refers to a single controlled comparison in October.

03 · My role

I maintain the workflow and use it on my projects

I write the rules, set permission boundaries, approve plans and decide on merges, deployments and business trade-offs. Agents draft, implement, test and review in separate roles.

Redrawn workflow overview: align, execute and deliver stages, task.md as the handoff point, and panels for when work stops, what reviewers do and do not receive, and guardrails enforced in code
Fig 03.1 Simplified I own alignment and approval in the first stage and every merge or deployment; agents carry out execution and delivery against the record.

04 · Architecture & critical path

Why can a change be delivered?

Demo change CHG-012 starts with approved acceptance criteria. The implementer attaches fresh checks to the diff. Two independent reviewers assess the same evidence. A change sent back for revision needs fresh checks before another review.

演示改动 CHG-012 从已批准的验收标准开始。实现者提交 diff 和刚跑过的验证结果,两位独立审查者核对同一份证据。改动被退回时,要重新验证后才进入下一轮审查。

Demo change · CHG-012

Simplified
Pass and revision paths for CHG-012 After the criteria are approved, the implementer gives the diff and fresh evidence to two independent reviewers. A pass yields a delivery report. A return sends findings to the writer, who revises and verifies. The owner decides at the round limit. OWNER Approve criteria CHG-012 IMPLEMENTER Build and verify write to task record INDEPENDENT REVIEW Review the change two reviewers in parallel DELIVERY Report the result CHG-012 IMPLEMENTER Address findings CHG-012 share plan send diff with evidence pass return findings verify again
Review passes. Fresh checks cover the agreed criteria and both reviewers accept the change. The result and evidence for CHG-012 go into the delivery report. 审查通过。 最新验证覆盖约定的验收标准,两位审查者通过。CHG-012 的结果和证据进入交付报告。
Sent back. Findings for CHG-012 return to the writer. The revised change needs fresh evidence before review resumes. At the two-round limit, any unresolved findings go back to me. 退回修改。 CHG-012 的问题交回实现者。修改后要补上新证据才能再审。达到两轮上限时,剩余问题交回给我决定。
  1. The owner approves the acceptance criteria for CHG-012.负责人批准 CHG-012 的验收标准。
  2. The implementer builds and verifies, then gives the diff and fresh evidence to the reviewers.实现者实现并验证,再把 diff 和新证据交给审查者。
  3. Two independent reviewers check the change in parallel.两位独立审查者并行核对改动与证据。
  4. A pass yields a delivery report.通过时提交交付报告。
  5. A return sends findings to the implementer, who revises and verifies again. The owner decides at the round limit.退回时,实现者按意见修改并重新验证;达到轮数上限时交给负责人决定。
Fig 04.1 A change reaches the delivery report after fresh checks meet the approved criteria and independent reviewers accept it.

The workflow has three stages. Align by rechecking the premise and approving a plan. Execute with one writer who records the evidence. Deliver by checking each criterion and running independent review for medium and large tasks.

Handoff record
The record holds the current writer, next step, progress with evidence and the fix and review rounds already used.
Review packet
Both reviewers receive the original request, criteria, diff and verification evidence. The packet excludes the author's conclusion.
Review launch record
Review starts outside the author's session and is backed by a launch record and a returned verdict.
Handoff record · demo change Simplified
Change: CHG-012
Current writer: implementer
Evidence: diff and verification for the approved criteria
Review rounds used: 1 of 2
Next step: address findings, attach fresh checks

05 · Technical choices & trade-offs

Rules guide the work and run records show progress

  1. Pair short rules with automated checks

    Hooks flag risky actions and prompt a handoff after the second context compaction. Configuration changes are checked against the code or runtime output that consumes the setting.

    Trade-off Hooks are a safety net. Permission still comes from the user.

    取舍 hooks 用于兜底,权限仍由用户授予。

  2. Continue after approval until an agreed stop

    Once the plan is approved, the writer continues until an agreed stop, such as a permission boundary, a changed requirement, repeated lack of progress or a spent budget.

    Trade-off The acceptance criteria have to be checkable from the start.

    取舍 验收标准从一开始就要能检查。

  3. Run two independent reviews per round, for up to two rounds

    Two reviewers examine the same packet in parallel and return separate verdicts. At the limit, I decide what happens to any remaining findings.

    Trade-off Each round consumes quota for two reviews.

    取舍 每轮要花两份审查额度。

  4. Change the setup when a mistake repeats

    Start with a pointer to the right entry point, then consider an automated check and add a written rule last.

    When Only when the same kind of mistake happens a second time.

    时机 同类错误第二次出现时才做。

06 · In practice

I decided how to finish the homepage rebuild at the review limit

The homepage rebuild had 12 checkable criteria and two fix rounds per batch. Reviewers raised 10 consolidated findings in the first homepage review. Five remained in the second. At the review limit I chose to fix the remaining findings and have the coordinator verify the result.

Redrawn plan excerpt showing 12 acceptance criteria and limits of two fix rounds per batch and two review rounds
Fig 06.1 Simplified The redrawn plan excerpt shows that the acceptance criteria and round limits were agreed before implementation.
Redrawn review table with separate Claude and Codex verdict columns, both showing needs changes in the two homepage rounds
Fig 06.2 Simplified The redrawn review table shows both reviewers returning “needs changes” in the second homepage round.

07 · Results & verification

The records show what was reviewed, handed off and tested

In three trials, an agent reported a review that had no matching launch in the logs. The workflow now starts reviews outside the author's session and records the launch and verdict as evidence.

CheckResultSource
Dual independent review 10 rounds · 20 reports Portfolio task and review records
Core rulebook One version · about 1,000 lines Core rulebook line count
Core rulebook commits 71 · 30 Oct–18 Nov 2026 Core rulebook Git history
Hook pattern tests 66/66 cases passed Measured Local test · 20 Nov 2026

08 · Limits & next steps

Rework and quota savings remain unmeasured

The command guard was tested on sample commands. Its effect in live sessions has yet to be measured. The current-writer field depends on sessions following the handoff convention. There is no comparison yet for rework or quota savings.