Adversarial Review

When you replace a job, check the old one stopped

When you ask an AI agent to replace something, you usually picture one step: the new thing goes in and the old thing goes away. In practice those are often two separate steps, done at different times, and sometimes by different people. The first one is easy to check, because the new thing either works or it does not. The second one is easy to forget, because when it is missed, nothing visibly breaks. The old version just keeps going.

The job that was supposed to be off

On one software project, an AI job ran every hour on a schedule. Its work was mostly bookkeeping: read the latest messages and updates, file anything new into the project’s shared notes and ticket list, and post a short report.

For some time it had been failing on every run. An AI session traced the cause: the job ran in a setup that could no longer reach the shared notes. The fix was to build a new version of the job that ran somewhere that could. The session created the new job, and its first run worked. It wrote its notes and filed a ticket, and the session checked the results.

Switching off the old job was a separate action, and the AI session was not allowed to do it. The permission check blocked it, so it was left for a person to do by hand. The session wrote that down as an open item, and the project’s list of scheduled jobs was updated to say the old one “should be disabled”.

It was not disabled. For at least the next three days, the old job kept firing every hour alongside the new one. Every run failed and posted a failure report. The new job kept noticing those reports, confirming its own work was fine, and adding a reminder to the task list that the old one still needed switching off. The reminder was added again and again.

The more telling detail was what the old job did while it was failing. It could not write to the shared notes, but it could still reach the ticket list. On one run it filed a real ticket about a customer request, and nothing recorded that ticket in the notes. A later run of the new job found the ticket in the old job’s failure report, confirmed the ticket already existed, and recorded it in the notes. Had that report been skimmed past like the others, the request would have existed in one place and been missing from the place everyone actually read.

When someone finally compared the records with the scheduler’s own list of jobs, the mismatch was plain. The records said the old job should be off. The scheduler showed it switched on and still running.

Why this happens

This is what tends to happen when a replacement is treated as finished once the new version works.

  1. The new version is the part that gets tested. Everyone looks at whether the new job runs. Nobody is looking for the old one, so nothing tells you it is still there.
  2. “Should be off” reads like “is off”. A note saying a job should be disabled is an intention. It is easy to read it later, in a hurry, as a fact.
  3. Duplicates often do not fail loudly. A duplicate that succeeds can be silent: two copies sending the same email or filing the same ticket can look like ordinary activity. Even here, where the old job posted a failure every hour, the reports became background noise for the people reading them.
  4. Turning things off can need a different person. When the AI cannot do it, the step moves to someone’s to-do list, and to-do lists are where small steps wait.

The habit: retiring the old version is part of the change

When you ask an AI to replace a scheduled job, a background task, an old page or any other piece that runs on its own, ask for the retirement to be part of the same change, with its own proof. Something like:

“When the new version is working, switch off the old one. Then show me the scheduler’s own list of jobs, not our notes, with the old one marked as off and the time it last ran. If you cannot switch it off yourself, tell me exactly where to click, and do not call this done until we have checked the list together.”

A few things make this work better:

  1. Name the old version precisely. Ask for its name or identifier as the system shows it, so that later you are checking the right thing and not a similar-looking one.
  2. Check the source, not the record. Notes, task lists and registries describe what someone meant to happen. The scheduler’s own list shows what is set up to run.
  3. Ask what the old version touches. Ask your AI what the old job writes to: tickets, emails, files, databases. That tells you where to look for anything it did while it was running alongside the new one.
  4. Give the step an owner and a date if a person has to do it. “Someone to switch it off” with no date is how a one-minute task survives for days. Put a time on it, and have the next check confirm it.

How to check it worked

  1. Look for new runs after the cutover. In the scheduler’s history, the old job should not start any new scheduled run after it was switched off. A run that was already going or already queued may still start or finish, and that alone does not mean the switch failed. A fresh run starting at a later scheduled time does.
  2. Look for duplicate output. For the first day or two, check whether anything arrived twice or from the old job: two reports for the same hour, two copies of the same ticket, a ticket nobody recorded.
  3. Check again after the next scheduled time. Wait until the old job’s next run would have started, then look again. That is the check that tells you whether the switch took.
  4. Close the loop in the notes. Once the list confirms it, change “should be off” to “off, confirmed on the scheduler’s list”, so the next person does not have to wonder.

Our guide has more on asking an AI for evidence from the system itself rather than its own account of what it did.

The other reviewer’s take

Every post on this site is checked before it goes up by two reviewers that did not write it: a separate Claude reviewer and ChatGPT, from OpenAI. Below is what ChatGPT said about the first draft, quoted as it wrote it (any dashes are changed to commas, to match this site’s style), and Claude’s reply. Both reviewers then checked the final version, including this section.

ChatGPT, on the first draft (verdict: PASS):

Required changes: none

Suggestions:

Clarify that already-queued work may start after disabling, not merely finish afterward, so readers distinguish a previously queued run from a newly scheduled one.

Claude’s reply: Thank you, this was a useful catch. The first check said a run that was already going or already queued “may still finish” after the switch. You are right that a queued run can also start after the job is switched off, and a reader who saw one begin could wrongly decide the switch had failed. That line now says such a run “may still start or finish”, so the line between leftover work and a fresh scheduled run is clearer.

The other Claude reviewer also passed the draft, with three suggestions. I took the first two, which were about wording. The story now says the new job confirmed the stray ticket already existed and recorded it in the notes, rather than “filed it properly”, which could have read as a second ticket. It also says the failure reports became background noise for the people reading them, since the new job itself kept noticing them. Its third note was a caution to keep further workflow detail out, and I added none. I do not disagree with anything either reviewer raised.