Skip to content

Human approval bound to a specific proposed action and version

14 min reading

Bind human approval to immutable proposal identity, scope and expiry.

Page details

GenAI · Lesson 28 of 45 · 4 / 4.1

Sources · 14 min reading · 27 min with practice

Published · Last edited:

More
20px

Progress is saved in this browser when storage is available.

View guided paths and progress

Know first: Shared state and message passing; Kafka/Redis Streams, ownership and cycle limits. Optional help: GenAI foundations.

Optional background references

Hypothetical scenario. Northwind pauses a proposed policy correction for review. Maya changes the requested wording while Priya is reviewing the earlier proposal. Dev sees an approved flag and asks whether the worker can resume with the revised action.

Maya: “The wording changed after the version you reviewed.”

Dev: “The workflow can resume, but the stored approval does not name this edit.”

Priya: “Show the proposal and target revision that execution will actually enforce.”

You will bind approval to proposal identity, reviewer authority, target revision and expiry. Separate a successful pause-and-resume mechanism from evidence that the pending operation remains approved.

Which exact action did the reviewer approve?

Priya reviews a proposed correction to a Northwind policy document. While the workflow waits, another editor changes the policy. The reviewer returns and presses approve. The difficult question is not whether a button was clicked. It is whether that decision still authorizes the operation the worker is about to submit.

An approval record should distinguish the person, their authority, the exact proposal and its target. It should also identify the relevant source revision, decision time and expiry policy. These facts support different checks. Authentication identifies the actor. Authorization establishes their permitted decisions. The proposal identity establishes what they reviewed. A current version check establishes whether the operation still applies to the intended state.

Why a single approved flag loses essential information

A Boolean field can tell a worker that some approval occurred, while discarding everything needed to decide its scope. If the model revises the proposed text after that flag is set, the stored value can accidentally follow the new text. If the action changes from drafting to publishing, the same flag can acquire a different meaning without another decision.

Bind approval to a stable representation of the proposed operation. For example, Northwind can record a proposal identifier, target document, expected source revision and content digest. A digest identifies bytes; it does not establish whether they are appropriate. The review interface still needs an understandable presentation of the change, its consequences and the evidence supporting it.

Bind approval to the artifact the executor will actually use

Hypothetical scenario. A reviewer approves proposal P with fingerprint F, source revision S and bounded authority. The executor compares its actual arguments with F and checks that the approval remains eligible before dispatch. An approval boolean detached from P permits silent substitutions.

Bind approval to the artifact the executor will actually use
ArtifactConcrete evidenceDecision boundary
Proposal Pcanonical arguments and artifact revisionWhat was reviewed
ApprovalP fingerprint, scope, reviewer, expiryBounded authority
Executionactual fingerprint, operation KProtected effect
Review immutable meaning: Specific proposal P → Approval record F.Review immutable meaning: Specific proposal P → Approval record F. Specific proposal P to Approval record F: review immutable meaning; Approval record F to Executor comparison: check actual arguments and validity.Specific proposal PApproval record FExecutor comparisonreview immutable meaningcheck actual arguments and validity
Review immutable meaning: Specific proposal P → Approval record F. Enlarge the diagram to inspect its labels; the surrounding records and explanation give the text alternative.

A human pause is a workflow mechanism; it does not preserve stale external conditions. If a destination, amount, code baseline or source permission changes, choose whether a new approval is required under the contract. Persist approval evidence and the resulting operation identity across resume. The same reviewed intention can be retried safely only through the target effect protocol, not by asking the model to regenerate an equivalent-looking action.

A pause is an execution mechanism

LangGraph's interrupts reference describes suspending graph execution for external input and resuming with a supplied value. This provides an execution mechanism for a review boundary. It does not, on its own, define who may approve a Northwind policy change or how long that approval remains applicable.

Place proposal construction before the durable review boundary. Expose a review record that can be loaded after a worker restart. On resume, validate the actor and proposal binding, then evaluate current business preconditions before execution. A response containing the word “approve” should be interpreted through that contract rather than treated as an unrestricted instruction.

A workflow can resume inside a node according to its documented runtime behavior. Consequently, operations around the interruption need careful boundaries: generating a new proposal or sending a message again can alter what the person believes they reviewed. Keep the reviewed artifact stable and reconcile external effects through their own identities.

Bring two kinds of evidence together

Follow the decision boundaries

Human Approval: Binding a Decision to the Action That Will RunProposal identity and reviewer authority meet current-state checks. A conflicting observation blocks acceptance.Proposal identityReviewer authorityEvidence or conflictCurrent-state check

The proposed action and the authorized decision meet at a validation boundary. Current target state is a third input. An approval can be genuine while the action is stale. A proposal can be unchanged while the person's role has been revoked. The worker must inspect the facts relevant to the operation it is about to perform.

Calculate the valid set without double-counting failures

Hypothetical scenario. Consider 100 review responses for proposed document changes. Assume the categories below are disjoint because the validator assigns each rejected response its first failing rule. Twelve refer to a superseded proposal, eight arrive after the selected expiry, and five come from actors who no longer have the required role.

The rejected total is 12 + 8 + 5 = 25 responses. The remaining set is 100 − 25 = 75 potentially actionable decisions. The fraction passing these selected checks is 75 / 100 = 0.75, or 75%. This is illustrative arithmetic about the chosen validation rules, not evidence of a real approval system's quality.

Those 75 are not automatically successful writes. Suppose three encounter a target revision conflict at execution. Then 75 − 3 = 72 reach the next execution state under the example's assumptions. The three conflicts return for a new decision or another explicitly permitted path. Counting all 100 responses as completed work would combine receipt, valid authority and confirmed execution into one misleading number.

If failure categories overlap, adding their counts is invalid. A stale response can also be expired. Either use a specified first-failure funnel as above or compute the union of rejected response identities. The metric must describe its classification rule so another reader can reproduce the denominator.

Review capacity is part of the design

For a separate toy workload, assume 60 proposals arrive each hour and a careful review takes four minutes. One fully available reviewer can perform 60 / 4 = 15 reviews per hour under that fixed-time assumption. Four reviewers provide 4 × 15 = 60 reviews per hour of nominal capacity. That exactly equals the assumed arrival rate and leaves no allowance for breaks, uneven arrivals or unusually difficult cases.

If a chosen planning allowance uses only 80% of nominal reviewer capacity, four reviewers supply 60 × 0.8 = 48 reviews per hour. The backlog grows by 60 − 48 = 12 proposals per hour while those conditions hold. The application needs a queue policy, appropriate prioritization and honest waiting states. Removing human review to make the queue disappear changes the authority contract rather than merely improving performance.

In the wild: an interrupt preserves a place to resume

The official LangGraph interruption guide documents a concrete implementation of pause and resume for external input. It is useful evidence that review can be represented as a persistent execution state rather than an in-memory wait in a web request. The guide is an implementation reference, not proof that an application's reviewer identity or approval rules are correct.

The Northwind race is hypothetical. Its lesson is that durable execution and valid consent solve different problems. Inspect both the framework's resumption semantics and the business record that connects an actor's decision to the proposed effect. This distinction also applies when a person edits the proposed action instead of simply accepting it.

An edited action deserves an explicit interpretation

A reviewer may correct a recipient, amount or document paragraph. Decide whether that edit creates a new proposal requiring revalidation, or whether the interface explicitly authorizes the edited operation within a constrained scope. In either case, preserve the relationship between what was displayed, what was changed and what was ultimately submitted.

Useful interfaces show the effect in the vocabulary of the person reviewing it. A document diff is often more inspectable than an opaque tool-argument object. A recipient name may require the underlying address or account identity to disambiguate it. The exact presentation depends on the action, but hiding its target makes the later approval record harder to interpret.

For high-consequence operations, a review action can require a fresh authorization check at the effect boundary. That does not imply every workflow needs multiple reviewers. Select the policy from the operation and threat model, then evaluate its usability. An unnecessarily obscure review process can encourage habitual approval without understanding.

Expiry, cancellation and revocation are separate transitions

Expiry bounds the time within which a decision can be used. Cancellation withdraws a particular task or proposal. Revocation changes an actor's authority. These events can happen independently. Preserve their distinct reasons so that a person can understand whether to repeat a review, revise a proposal or resolve an access issue.

A cancellation arriving after an external effect has committed does not erase that effect. The workflow may need to report completion and offer a separately authorized corrective action. Connecting approval to the durable action ledger keeps this case visible instead of treating every late cancel message as proof that nothing happened.

What an approval mechanism cannot infer

A signed-in user is the correct reviewer. Identity alone does not establish role, scope or the current decision policy.

A screenshot is a sufficient execution record. It can help explain the interface, but the worker needs structured identity and proposal binding to validate the operation.

Approval turns uncertain input into truth. A person can accept a proposal based on mistaken evidence. Preserve the evidence and evaluate the resulting decisions; approval is an authority event, not a factual guarantee.

Show the reviewer the decision that execution will enforce

A review screen should make the target and change understandable before asking for a decision. For a policy correction, display the relevant existing text, proposed replacement and the document identity. For a message, expose the recipient and material content. The representation can vary, but a later audit should connect it to the same operation the worker validated.

Consider what happens when a reviewer has several similar tasks open. An interface that labels every action simply “approve” can hide which document or proposal it applies to. Stable task and proposal identities help the application prevent a response for one item from completing another. They also support a useful error when a stale browser tab submits a superseded decision.

Avoid using a person as an invisible exception handler for an ill-defined workflow. If the evidence is missing, explain what is missing. If the action exceeds the person's scope, route it according to policy rather than encouraging approval through repeated prompts. A clear rejection or request for clarification is a legitimate review outcome.

After the decision, report what happened next. “Approved and waiting for execution” and “change confirmed” describe different states. Preserving that distinction lets the reviewer understand a delay without submitting another action that could duplicate the effect.

The boundaries of this review contract

The example chooses version binding, expiry and role checks to make the decision inspectable; actual operations can require different controls. Human review introduces delays and human error, while persistent interrupts depend on the chosen backend and framework version. These patterns do not provide legal consent guidance or certify regulatory compliance. External writes still require their own concurrency and reconciliation contracts after a valid review.

Test the proposal p boundary

The model changes the destination after approval but leaves the approved flag true. What must happen?

Reveal the design reasoning

Reject dispatch or obtain a new approval for the changed proposal. Compare application-owned fingerprints and current scope; model text cannot extend the review.

Decision: Approve exact meaning and revalidate at the last enforceable dispatch boundary.

Decide whether execution may continue

The reviewer approves proposal A, but the worker now holds proposal B. Can it reuse the decision?

Only if the original decision policy explicitly authorized that particular transformation and the record proves it. Ordinarily the proposal binding fails, so preserve A's decision as history and send B through validation and review. A generic approved flag is insufficient.

Can the three rejection counts be added when one response can fail several checks?

Not without a classification rule or overlap accounting. The worked example assigns a first failing rule, making its categories disjoint. With overlapping sets, count unique rejected response identities or calculate their union before subtracting from 100.

Why do four reviewers not provide comfortable capacity for the assumed workload?

Four people supply only 60 nominal reviews per hour, exactly the assumed arrival rate. At the selected 80% allowance, available throughput is 48 per hour and the queue grows by 12. Report the wait or change capacity and prioritization without silently weakening the required review.

Northwind decision log

  1. Bind the review decision to a stable proposal and actor scope.
  2. Revalidate applicable target state before executing the approved operation.
  3. Report approval, execution and confirmation as different states.

Go deeper: supporting mechanisms

Related: Agentic systems · Retries and tool outcomes.

Carry the decision forward

Northwind has version-bound review. Page 29 combines specification, architecture, coding and QA artifacts into a software-agent workflow that must preserve those bindings through rejection and recovery.