Docs

Review Hal output before merging

Use this checklist to review AI coding loop output from Hal before merging commits, reports, workflow state, or generated code.

Last updated: May 9, 2026 · Reviewed by ReScience Lab

Why it matters

Hal is built around reviewable state. The merge decision still belongs to a developer who checks behavior, tests, diffs, and unresolved requirements.

How do you review Hal output before merge?

Review Hal output by reopening the original requirement, inspecting every changed file, checking reports and workflow state, running local project checks, and comparing the result against acceptance criteria. A completed loop is not a merge approval; it is agent-generated work prepared for human review.

Start with the requirement

Before reading the diff, reopen the PRD or requirement that started the loop. Confirm what the agent was supposed to change and what was explicitly out of scope.

If the requirement was vague, do not treat a large diff as a success. Tighten the plan and split the work.

Inspect changed files

Review every changed file and look for:

Check commits and reports

Hal can leave commits, reports, progress files, workflow files, and archive state. Use those artifacts to answer basic review questions:

Run local checks

Run the repository’s normal build, typecheck, lint, and test commands. If the project has an AGENTS.md or standards file, confirm the agent followed it.

A passing command does not prove product correctness, but a failing command is a reason to stop and repair.

Review acceptance criteria

Match the implementation against each acceptance criterion. Mark criteria as complete only when behavior is observable and testable.

If a criterion cannot be verified, rewrite it before the next loop.

Merge only after human acceptance

Hal makes coding work more repeatable and inspectable. It does not guarantee code quality, security, CI success, or product fit. Merge only after a developer accepts the change.

Verification and review rule

Before adopting Hal, verify the current source repository, install path, release notes, and supported engine behavior. A completed loop is reviewable agent output, not a guarantee that the code is safe to merge.

Use the PRD readiness checker before planning, read the PRD-driven planning feature, and review whether Hal replaces code review before expanding to larger tasks.

FAQ

Short answers before you put this into an agent workflow.

Should Hal output be merged automatically?

No. Hal can structure autonomous coding loops, but developers should inspect the resulting changes before merging.

What should I inspect first?

Start with the PRD, story status, changed files, tests, commits, and reports. Then check edge cases and any files the agent touched unexpectedly.

What if the output is partially correct?

Keep the useful changes only after review, repair the plan or implementation, and rerun a smaller loop if needed.

Related docs

Keep exploring the pieces of a reviewable coding loop.