Answers
The agent wrote the test that proves its own change. What should the next session believe?
People who let an agent write the tests put the irritation in one sentence: the agent writes tests as if they were gospel, and the team runs them, spending money and time. A test written in the same session, by the agent that wrote the change, asserts what the change does. A green run is the agent agreeing with itself. It is not a decision, and it is not an independent check of the rule a person accepted. The next session reads that rule before it plans. The test can stay in the suite, labeled as written by the agent in that session. Use Arroway so “the tests passed” is not the line the next agent inherits. The install page is the first step. Keep people and their AIs on the same page.
Last updated December 5, 2026
A green test the agent wrote is the change describing itself
An independent check is a sentence you did not write in the same sitting as the change, against a rule you accepted before the change. A test the agent adds so its own diff will pass has the opposite shape. It encodes the behaviour the agent just produced, often the happy number, and it omits the condition the agent found inconvenient. The suite goes green because the test and the change were born together. The next session, trying to be helpful, treats the green run as the rule. The rule was the line a person accepted, and the test never quoted it. The check that would have caught it asserts a refusal: one case per condition of the line, written by a session that never saw the diff, which goes red when the change lets the order through.
What this is not
A suite you already had, which goes green while a business rule the suite does not contain is already broken, is the neighbouring page. That page is about a check that never included the rule. This page is about a new test, written to bless a new change. What the next session should believe when an agent says it is done is a second neighbour: “done” is a claim until there is a source you can reopen. Why code written by agents looks the way it does is a third: a choice that became the house style without ever being a decision. A reader of those three can still record “tests passed” as the finding. That recording is the failure here.
When to use Arroway
Use Arroway when a second agent, or the same agent next week, will meet the same kind of job and will look for permission in whatever went green. The line a person accepted — the threshold, the exception, who accepted it, what would end it — is what the next session reads first. The test stays a check of the mechanism. It is not copied into the project as a decision. The install page is the first step. An empty first read is a place to write the line. It is not a reason to let the suite stand in for it. This page does not keep the connection steps, and it does not ask you to delete the test. Keep people and their AIs on the same page.
When a test the agent wrote is still worth running
Run it when it checks a mechanism a person already stated, and the line in the project is what the next session reads, not the test. A test that a €30 refund of a 2-day-old order goes out, while the line still carries the 7-day limit and the confirmation above €40, is a check of the path. It becomes the failure when someone deletes the line and keeps the test, or when the next session is pointed at the suite instead of the project. Do not run, as if it were gospel, a test that asserts a behaviour no person accepted.
The common error: the happy number becomes the whole rule
€30 is the most quotable part of the test, so it becomes the memory. “Under €40 is fine” is how a 20-day-old order gets refunded. The line had two other constraints, and the test was never asked to fail them. If the record does not say that, a perfect green run still teaches the next agent the wrong rule. The repair is not a second green test. It is a red case for each constraint the happy number left out.
What it looks like in practice
A shop of eleven, selling to other shops. The accepted line, from the person who owns the books: refunds are one order at a time, a person confirms above €40, and an order older than 7 days is not refunded by an agent. On Wednesday an agent changes the job so anything under €40 can go out in a batch. In the same session it writes a test: an order of €30 is refunded, and the test passes. The 7-day condition is not in the test. The run costs the time and the invoice of a suite that only restates the change. The chat says the tests passed. Three weeks later a new agent is asked to clear a queue before Friday. It reads the green test, not the line, and refunds a €30 order from 20 days ago. Four orders. The suite was green. The line was not what it read. The lines that should have been in the project on Wednesday afternoon are the ones already accepted, including the 7 days, with the name of who accepted them. The test stays in the suite, labeled as written by the agent in the session that made the change, and it is not a decision. The shop is illustrative. Nothing here was measured on a customer’s refunds.
Keep the green run from becoming the rule
- Name the test and the session. “Wednesday, the agent that changed the refund job also added a test that an order of €30 is refunded, and it passed.” If you cannot say who wrote the test, treat it as the agent’s until you can show otherwise.
- Write the accepted line beside it, including the condition the test skipped. “One order at a time, a person confirms above €40, nothing older than 7 days, accepted by the person who owns the books.” If the test does not mention the 7 days, the green run did not check them.
- Turn each condition of the line into a test that asserts a refusal, written from the line and not from the diff, by a session that has not seen the change: €40.01 with no confirmation, an order of €30 placed 8 days ago, two orders in one batch. Add the edges that must still go out: €40.00, and an order placed exactly 7 days ago. Run them against Wednesday’s change. In the example, the 8-day order and the batch go red, and €40.01 is still held for a person. Each red is a condition the agent dropped. A refusal case that cannot go red is not checking anything.
- Do not record “the tests passed” as a decision in the project. Record the line, or leave the line that was already there. A proposal that says the suite is the rule is still a proposal, and it should be labeled as one, or the next agent will treat it as accepted.
- Leave the test in the suite if it checks a mechanism you still want. Label it, in the commit or in the note beside it, as written by the agent in that session. A label is not a deletion. An unlabeled green test is how the next session learns the rule.
- Open a new session and ask it to read the project before it plans the same kind of job. It should state the €40 confirmation and the 7-day limit. If it only says the tests passed, or it offers to refund a 20-day-old order of €30, it did not read.
- If that tool cannot read the project, stop and use the install page. Running the suite again spends the same invoice on the same agreement. An empty first read is a place to write the line. It is not a reason to promote the test.
Questions people ask about this
- Should I delete the test?
- Not because it is green. Delete it when it asserts a behaviour no person accepted. Otherwise keep it as a check of the mechanism, labeled as written by the agent in that session, and do not let the next session treat the green run as the decision.
- Is this the page about a suite that was already green while the business rule was broken?
- No. That page is a check you already had, which never contained the rule. This page is a test born in the same session as the change, written so the change would pass. Whether the agent’s “done” is something the next session should believe is a third question.
- Where do I start?
- On the install page, with the tool the next agent will open. Connect it, and write the line you are tired of seeing replaced by a green test. If you cannot state the condition the test skipped, you do not have a rule yet. This page does not keep the connection steps.
Where this is verifiable
Product documentation on this site (How it works, Install). The neighbouring answers are the one on a green suite that is not the business rule, the one on what the next session should believe when an agent says it is done, and the one on why code written by agents looks the way it does. The opening irritation follows what people say when an agent’s tests are run as if they were the rule, with no name attached. The shop is illustrative. Nothing here was measured on a customer’s invoice or refunds.
https://www.arroway.app/en/answers/the-test-the-agent-wrote-agrees-with-itself