AI project 01 · Agent system

Agent Develop & Agent Review

Two isolated agents for AI-written Shopify app code: one turns a requirement into a branch, the other checks it independently and has to prove every verdict with evidence.

v0 · 16 unit tests pass · end-to-end run in mock mode · benchmark not run yetTypeScriptClaude APIReactBuilt for Shopify rule setNode.js

The problem — and who has it

AI writes code fast, but it is hard to know whether the code does what the ticket asked and whether it follows Shopify's Built for Shopify (BFS) rules. A model that reviews its own work tends to agree with itself.

Who has this problem: me and any small team building Shopify apps with AI, where nobody has time to re-read every line against a 60-item checklist.

The solution

AnalyseRequirement → REQ-01… with testable acceptance criteria
Stop & askBlocking questions or a conflict with a mandatory rule
Check rulesMatrix: every REQ × rule = compliant / conflict / needs real data / n.a.
Approve planFiles, tests and scope approved before any code
DevelopBranch, code + tests, lint/typecheck/test, handoff file
Review ×3Server, Backend, Frontend reviewers in fresh sessions
VerdictFixed rules in code; fail → fix round (max 3)
Merge decisionAlways a person. No auto-merge path
Code decidesAI helpsA person decides

Screens

Run a task
Paste a requirement, pick a rule set and a repo. A stepper shows where the run is and when it needs you.
Requirement × rule matrix
What Agent Develop planned next to what Agent Review found, per rule.
Review report
Verdict, issues with severity / impact / repro / fix criteria, links to file:line, tests the reviewer ran itself, and findings the system discarded for lack of evidence.
Compare rounds
Resolved, still open and new issues between two review rounds.

Demo video (2–3 min on a test environment) comes with the next iteration.

Technical decisions

Objectivity comes from the system, not a prompt

Reviewers never see the developer's reasoning. They get the original requirement, the rules, the diff and their own test runs. The handoff file is passed as untrusted data.

The model never decides the verdict

Fail / conditional pass / pass is computed by code from fixed rules. The model only reports items and issues.

No proof, no pass

A pass without verifiable evidence (a file:line that exists, a test run, a screenshot, a measurement) becomes "not enough evidence". Issues without evidence are discarded but still shown.

Rules are data

Each rule set is a versioned JSON file with code, scope, check method and a flag for rules that need real production data. The finance rule set for project 03 swaps the reviewer scopes.

Test tampering is caught without AI

A diff scan flags removed assertions, deleted test files, .skip/.only and trivial asserts.

Trade-offs I accepted

Measured results

This is a first working build. Numbers marked pending have not been measured yet; they will be published as measured, including misses. Designed against Built for Shopify criteria — not BFS certified.

WhatTargetNow
Seeded-bug detection (20 PRs)≥ 80%, 100% of blockersNot measured yet
Clean PRs failed (10 PRs)≤ 10%Not measured yet
Same verdict on 3 runs≥ 90% of PRsNot measured yet
Pass/issue with verifiable evidence100%Enforced by code (unit tested)
Handoff claims tests pass, tests failDetectedDeterministic check in place
Weakened / skipped testsFlaggedCaught .skip in the end-to-end mock run
Pipeline end to endRunsMock run: 3 fix rounds, then escalated to a human

AI cost per task and real build time will be added from the call logs (every model call records prompt version, tokens, latency and errors).

What was missed — and what I learned

What AI wrote vs what I decided

AI

Drafted most TypeScript, the React screens, the rule-set JSON and the unit tests from my specifications.

Me

Designed the two-agent split, the evidence policy, the verdict rules and the test-guard heuristics; reviewed and corrected the generated code; chose what the model is not allowed to decide.