How to Review AI Coding Output After It Lands on Main

Ralph Workflow lands coding-agent work directly on main, automatically, with no pull requests. Nobody merges the agent’s work, so there is no merge step to review before. This page is about the review that remains: checking what landed against the spec.

Today the push runs without checks. Each commit is rebased onto your local main and pushed to origin/main as soon as it is made. Your agent is asked to run the checks in PROMPT.md, but nothing enforces them, and your CI runs after the push. The gate (your suite and acceptance checks, run on the exact commit before every push) has not shipped. Until it does, no landing is verified, and the check below is on you.

Where the decision moved

In a pull-request workflow, the decision is made by reading a diff before it merges. In Ralph Workflow, the decision is made earlier, when you write the spec in PROMPT.md: what done means and how to check it. People approve intent, not diffs.

Once the gate ships, it will run your suite on the exact commit before every push, and a failing commit will go back to the agent instead of landing. Until then, a fast check of what landed, and a fast git revert when it is wrong, is what keeps main healthy.

The after-run check

Do this after every run while the gate is not built:

  1. Read your CI result on main.

    • Your CI runs after the push, on main. Ralph Workflow does not read CI results, so it does not know if a commit broke the build.

    • Look at the result for each new commit, not only the last one.

  2. Run the checks from your spec yourself.

    • The agent was asked to run them. Nothing made sure it did.

    • Run the test command named in PROMPT.md on current main.

  3. Compare what landed with the spec.

    • List the new commits: git log origin/main (or compare against where main was before the run).

    • Does each acceptance criterion hold?

    • Did anything change outside the task?

  4. Look at the commits you did not ask for.

    • The push includes any unpushed commits you already had on local main, and the engine’s own commits (AGENTS.md, CLAUDE.md, policy files, a skill bundle, .gitignore).

    • Nothing checks for committed secrets before the push. Check yourself.

  5. Look for a merge commit.

    • If the agent could not finish a rebase, the engine falls back to a merge commit, and it can land. The first gate will remove that path.

  6. Revert what is wrong.

    • git revert <commit>, then push, like any commit on main. History is not rewritten.

    • Then sharpen the spec so the next run gets it right.

What the run’s own review is, and is not

Each development cycle ends with a review pass by the agent. It runs after the push, and it can loop back to fix problems in new commits. The end-of-run summary in your terminal shows its result, for example Review: [PASS] clean.

That review is the agent reading its own work. It is not an executed check, and a clean review does not mean your tests passed. Treat it as a hint about where to look, not as proof.

Red flags

Slow down if you see any of these:

  • CI on main is red for a commit the run made

  • the change is much broader than the spec

  • a shared boundary (schemas, config, interfaces, migrations, auth, build wiring) changed without the spec asking for it

  • the summary or the agent’s notes say tests passed, but they fail when you run them

  • a merge commit landed

  • a file that looks like a secret or credential was committed

Start where a bad commit is cheap

For a first run, pick one real backlog task on a repository where a bad commit costs one git revert. Read Choose Your First Ralph Workflow Task for how to pick it.

Public links: