Plans
The eight clauses you said in one sentence, kept as eight runs in order. Readable before it runs, re-runnable after, and undoable as the execution it actually was.
The gap this closes. The quarterly cleanup is a real procedure that exists nowhere. It is a sequence somebody worked out once, performed by hand, and will work out again from scratch next quarter, slightly differently, with no record of what the last one did.
A plan is a definition. It holds an ordered list of runs, each one a tool with its scope, and it can be fired any number of times without being rewritten.
Runs can depend on each other. A run can be guarded on what an earlier run did, and a run can scope itself to the records an earlier run produced. So find the duplicates, then merge only what was found, then tell the owners of what changed is one plan rather than three jobs and a person in between.
Failure has a posture. A plan says whether a failed run halts the rest or lets it continue, because those are different decisions for a cleanup and for a nightly sweep.
The distinction
One is what you wrote. The other is what happened the time it ran. Keeping them apart is what makes a plan safe to run twice.
A definition. It answers whether this may run.
One execution. It answers what happened that time.
How it goes
Reversal
Which is the only way it can be correct for a plan that has run more than once.
A plan that runs nightly has fired thirty times this month. Asking to undo the plan is not a question with an answer. Asking to undo Tuesday's firing is, and that is the one the product accepts.
Each firing carries its own record of what its runs wrote, so reversing it restores exactly what that execution changed and leaves every other firing alone. A firing can be previewed before it is reversed, so you see what putting it back would actually do.
For agents
Reads are free and need no permission to write. Anything that changes a record is a separate grant.
list_plans every plan on this tenant readget_plan one plan, run by run readpreview_plan_reversal what undoing a firing would restore readcreate_plan author an ordered sequence writedispatch_run start a run the plan names writeThe rest of it
Where to start
The readiness scan reads your CRM and reports what it finds, before you describe a single change.