← Back to the journal

DataFocus · Journal

Approve the plan, not the idea: bind AI change approvals to one plan and one base version

An approval of an AI-proposed change means something only if it names the immutable plan and the base version the reviewer saw. We trace draft to read-back, show how a Flash r56 plan binds version, hash and idempotency key, and give a rule for when to ask again.

A human approval of an AI-proposed change has to name two things: the plan, meaning the exact edit, and the base version, meaning the exact state that edit was diffed against. Drop either and the approval can be applied to something the reviewer never saw, because an agent can revise the proposal after the click and a colleague can move the record underneath it. The fix is structural, not procedural: make the plan immutable, carry the base version inside it, have the apply step refuse a plan whose base is no longer current, and treat any change to plan or base as a new decision. DataFocus states the rule outright: approval applies to a specific plan and base version and must be confirmed again when either changes.

Two races a yes/no flag cannot see

A hypothetical case: an agent proposes "raise the reorder threshold for supplier X from 120 to 150 units". A planner reads it and approves. Between that click and the commit there are two windows, and a boolean on a ticket is blind to both.

The first is plan drift. The agent, or a second agent in the same session, revises the proposal so it touches three suppliers, or changes lead time as well. The ticket still says approved.

The second is base drift. While the planner was reading, someone in procurement edited supplier X by hand. The "before" value of 120 no longer exists; the diff the planner saw is a diff against history.

In both cases the reviewer said yes to a sentence and the system applied a different change to a different state. OWASP's LLM06:2025 Excessive Agency entry (OWASP GenAI Security Project, 2025) defines the risk as damaging actions performed in response to unexpected, ambiguous or manipulated LLM outputs, and lists among the mitigations human-in-the-loop control that requires a person to approve high-impact actions before they are taken. That mitigation holds only if what the person approved is, byte for byte, what runs; otherwise the record proves that someone agreed, but not to what.

Six stages, and what each one settles

DataFocus's permissions documentation describes a write as moving through six stages: draft, diff, validation, approval, commit and read-back. Each settles a question the next depends on, and each leaves behind something a later stage can check.

StageQuestion it settlesWhat it leaves behind
DraftWhat does the agent want to change?A proposal the agent cannot apply itself
DiffHow does it differ from the current state?A before/after view pinned to a base version
ValidationIs the change well formed and permitted?Pass or fail, before a human is asked
ApprovalDoes an authorized person accept this plan against this base?A decision bound to plan identity and base version
CommitApply it, if the bindings still holdA receipt saying whether it applied
Read-backDid the system land where the approved diff said?Stored result compared with the approved diff

Two rows carry most of the weight. The first removes the agent's write path: DataFocus's product brief states that when AI wants to change something it can only submit a draft, which takes effect after a person approves it. A prompt that persuades the agent cannot persuade the system; the most an injection can produce is a draft a reviewer will read. The fourth row is where "the idea" is replaced by "this plan against this base"; commit and read-back exist to prove the binding held. Validation sits before approval because reviewer attention is the scarcest resource in the pipeline: the machine refuses malformed or disallowed changes so the human only sees candidates that could run.

How the Flash r56 agent manual pins a plan to a version

The most concrete public description of the binding is the OT Flash r56 agent manual. It covers authoring artifacts such as control panel specs and view specs, with the authoring feature enabled and the caller holding the relevant scope and original administrator write permissions. The sequence for an artifact change is:

  1. Read a bounded context. It carries a contract version, a context hash, a base artifact hash and a base artifact version.
  2. The client generates a candidate without executing its code.
  3. Submit the candidate with a stable client request id; read back a proposal id, a candidate hash, a checksum and a preview.
  4. Create a plan. The plan is immutable.
  5. Obtain approval.
  6. Apply. Only a receipt with status APPLIED means the change took effect.

Three mechanisms in that sequence carry the argument.

The plan binds target version, candidate hash and idempotency key. The base artifact version read in step 1 is carried into the plan in step 4. According to the manual, once the target has changed, the old plan can no longer be applied and the context must be re-read. A plan whose target has moved is simply not applicable; no reviewer has to notice.

The plan is immutable. Plan drift is handled by construction. An approval attached to an editable object approves whatever the object contains at commit time. Because the plan cannot change, "approved plan P against base version V" stays true, and any revision is a different plan with a different candidate hash.

The approval token is server-issued. The manual states that the approval token is server-issued material an agent cannot replace by writing a string. Generic artifact plans require original human approval; plans that comply with an ontology's auto-publish policy are handled according to the configured approval mode.

The business-action path has the same shape with more fields. Per the manual, the action-plan tool takes a release id, release hash, canonical IR hash, agent manifest hash, command type, an idempotency key and the payload, and the caller keeps the expected record version of each target record. At execution the published version, the hashes, target record versions, plan expiry, idempotency and approvals are re-checked. So the binding covers more than the data row: a new release or a changed agent manifest also invalidates the plan, because the reviewer approved a plan produced under a particular contract.

A worked trace, illustrative and not run

A hypothetical walk through the artifact flow with invented identifiers; not output from a live system. The happy path:

StepAgent actionWhat the server holdsOutcome
1Reads context for control panel cp-inventorybase version 41, base hash a9f3…Pinned starting point
2–3Submits candidate with client request id req-7cproposal prop-118, candidate hash 5d2e…Preview ready
4Creates planplan-33 = {target version 41, candidate 5d2e…, key req-7c}Plan frozen
5Planner approves the previewserver-issued approval token on plan-33Approval bound to plan and base
6Calls apply on plan-33version 41 still currentReceipt APPLIED

Three ways the real world departs from that table, and what the structure does with each.

Base drift. Between steps 5 and 6 an administrator edits cp-inventory by hand and the base version becomes 42. The agent calls apply on plan-33; the plan says 41, the target is 42, so it can no longer be applied. The agent re-reads context, submits a fresh candidate against 42, creates plan-34 and asks again. The planner's approval of plan-33 was not wrong and was not revoked; it described a state that no longer exists, and the system declines to pretend otherwise.

Plan drift. Between steps 3 and 5 the agent decides two more suppliers need the same threshold and submits a revised candidate, which gets a new hash, c81b…. The planner's approval, when it arrives, is on plan-33, which names 5d2e…. The revised candidate has no plan and no approval; to run it the agent must create plan-34 around c81b… and ask again. There is no path by which a yes to 5d2e… becomes a yes to c81b….

Transport timeout. The apply call in step 6 returns no response. The manual is explicit that a timeout does not prove failure: query status with the original proposal id or plan id, and remember that READY is not APPLIED. For business actions, the status tool recovers the original plan and retries preserve the original idempotency semantics. The stable key req-7c lets the server recognise a retry as a retry rather than a second change.

In none of the three branches did the agent have to detect the problem; the plan carried enough state for the server to do it.

What an approval record has to contain

DataFocus's homepage states that every change records before and after, the diff and who approved it, and that approval binds a specific version and scope, with a version change meaning another review. The product brief adds that every change has an approval record and every agent action is also recorded in an audit log.

What must a record contain so that, a year on, someone can answer "what exactly did we authorise?" DataFocus's documentation names before/after, diff and approver; the remaining items below are a design observation, what the binding implies.

  • the base version (and hash, where available) the draft was generated against
  • the plan or candidate identity, preferably a content hash
  • the diff as rendered to the approver, not regenerated later
  • the approver's identity, the time, and the server-issued approval material
  • the apply receipt with its status, and the read-back result compared with the approved diff

An audit log without the first two items establishes that a person approved something, but not what, and "what" is the one fact an incident review needs. Regulators ask for the same thing from the other direction: Article 12 of the EU AI Act, in the text of Regulation (EU) 2024/1689, requires high-risk AI systems to technically allow automatic recording of events over the system's lifetime; an approval record naming plan and base version is that kind of event log.

When does the approval have to be asked again?

A decision rule for any agent change pipeline. The first two rows are the core; the rest follow from approving a thing, not a category.

What changed after approvalWhy the approval is staleAction
The plan or candidateThe reviewer approved a different hashNew plan, new approval
The base version of the targetThe diff was against a state that no longer existsRe-read context, regenerate the diff, ask again
The scope (one record becomes many)Approval binds version and scope; widening is a new decisionNew plan, new approval
The operation typeOntology maintenance, ERP order changes, payments, email and SQL/shell operations have different interfaces and permissionsSeparate confirmation per task
The release or agent manifest (business actions)The plan's contract has changedRe-plan under the current release
Nothing, but apply timed outNothing is stale; the outcome is unknownQuery status with the original id; never resubmit with a new key

The last row inverts the others: they say "ask again"; it says "create nothing new until you know what happened". A fresh key turns one approved change into two.

A checklist for agent developers

Illustrative, not run:

[ ] The agent can only produce drafts; no direct write path
[ ] The plan is immutable; any edit produces a new plan
[ ] The approval stores plan identity + base version + scope
[ ] Apply refuses a plan whose base version is no longer current
[ ] Approval material is server-issued; the agent cannot write it
[ ] Retries reuse the original idempotency key; new operations get new keys
[ ] A timeout triggers a status query, never a blind resubmit
[ ] The record keeps before, after, diff, approver and apply receipt

Trade-offs

Binding approval to a version produces more re-confirmations on hot data. A reviewer can be asked twice for the same intent because a colleague touched the record in between; that is intended, and its cost is reviewer time. The lever is scope: a plan targeting one artifact or record is invalidated by fewer unrelated edits than one spanning a dozen, so keep plans narrow where records are contested.

The flow does not judge whether a change is a good idea; it guarantees only that the person who judged it judged the change that actually runs. The manual's auto-publish policy path lets plans that meet pre-set rules skip the human step. Decide that deliberately, per ontology: every plan routed that way is one no reviewer sees.

Next step

Read the OT product brief for how drafts, approval and the audit log fit the ontology, and the Flash r56 agent manual for the full artifact and action-plan sequences. Both editions are on the download page.