---
title: Goal with test-suite oracle
description: Give a long-running agent migration a hard finish line by requiring it
  to satisfy an existing test suite.
url: https://subramanya.ai/awesome-loops/goal-test-suite-migration-loop/
tags:
- migration
- goals
- tests
---

# Goal with test-suite oracle

Use this when a large task needs an external oracle instead of vibes.

1. Identify the reference implementation and test suite.
2. Make the success condition explicit: the new implementation must pass those tests.
3. Run the tests before changing code and record the baseline.
4. Implement in small passes.
5. Rerun failing tests after each pass.
6. Keep a compatibility ledger for known gaps.

Stop when the reference suite passes or the blocker is precise enough for a human decision.
