If a failing test goes green because an assertion was removed, I reject the model-written fix.
As a demo on a project copy, I diff the test file and keep the original check in view. A pass counts only when I rerun that fixture and that check is still there.
@doanbaonam@SRKDAN Yes. I keep that small set of real failures as fixtures the agent can't edit. When I change a rule, I rerun the whole set, not just the new case. A tighter rule can skip or weaken an older guard, and if any old failure comes back, I don't ship the change.
@lanhaigdq8 I treat both as a fail. I compare the stored order and the charge to the $20 item price, not to the $1 in the body. If either one is $1, I reject the change. Then I check whether the server used the client amount or looked up the item - that just tells me which fix to ask for.
A $1 amount in the checkout body should not stick.
On a copy of the project, I start a model-written checkout for a $20 item, then change that request amount to 1. If the order is created or charged at $1, I reject the change.
Demo workflow, not a recorded run.
@whodeven@whodeven I check the age, but I don't stop there. A captured payload can still be replayed inside that 5-minute window. I keep the old signed request as a fixture, then submit a fresh one twice. If either one still creates a credit, the check isn't real yet.
@AgusMoyano_ I don't scan inside the agent's tool call. It can skip that step or edit the hook. I keep a pre-commit scan the agent isn't allowed to touch, and I plant a canary secret in a file I ask it to commit. If that commit still lands, the hook isn't real.
I submit the settings form from a page I do not own before I merge a model-written update.
On a copy of the project, I post that form with the signed-in cookies attached. If the setting changes, I reject the change.
Demo workflow, not a recorded run.
@_serkanpala@Vtrivedy10 I use programmatic checks for final state, permissions, and leftover writes. The LLM judge only scores the write-up. I also keep a trap task that skips a scope check but reads clean. If that still passes, I don't trust the judge.
A spent 2FA backup code should fail the second time.
On a copy of the project, I use one model-written backup code to finish sign-in, then submit that same code again. If it still authenticates, I reject the change.
Demo workflow, not a recorded run.
@doanbaonam@SRKDAN I replay the failure that made me write the rule, on a copy of the project, with the new rule already in place. If it still restarts everything at once or burns the budget, the rule isn't real yet — it's still just a note.
@arijitghosh02 I still don't treat the prompt as the queue cap. If six agents are waiting on the same flock, the machine still has six processes sitting there. I check the waiter count before I launch another one.
I replay the first signed webhook before I merge a model-written receiver.
On a copy of the project, I submit that same valid payload and signature a second time. If it creates another order or credit, I reject the change.
Demo workflow, not a recorded run.
I slip "role":"admin" into a model-written signup before I merge.
On a copy of the project, I take the create-user request and add a role field the form never showed. If the saved account is an admin, I reject the change.
Demo workflow, not a recorded run.
I open the raw file URL signed out before I merge a model-written private upload.
On a copy of the project, I upload a file as a signed-in user, copy its URL, then open it signed out. If it comes back, I reject the change.
Demo workflow, not a recorded run.
@vanshsoni@vanshsoni A read-only user is the lock I actually trust. I still keep a trap prompt that asks for an UPDATE, and I run it on the same connection the agent gets. If that statement lands, I reject the change.
An off-site next= value is how I test a model-written login redirect before I merge.
On a copy of the project, I finish sign-in with next set to a host I do not own. If the browser leaves my own origin, I reject the change.
Demo workflow, not a recorded run.
@kid_bizarre_the The one I had to write down: a failing test I wrote myself is off-limits. The agent can add tests, but it can't edit or delete that file. Otherwise it 'fixes' the suite by shrinking the case.
@alistyun1x@ziad_makes I don't only git-check after. I hook Agents.md and CLAUDE.md so the session can't edit them. A diff after the fact is useful, but if I wait until then, the next run may already be reading the sabotaged file.