Plain Reckoner
English
← The blog

Agent workflows

Your AI Agent Says Done. Here’s What It May Have Missed.

How to turn “done” into observable evidence, preserve context, and recover work that stops halfway.

By Plain Reckoner Team · Release date: 2026-10-30

Selected source checked:

How do you verify an AI agent finished a task? Compare the deliverable with the requested outcome, run relevant checks, and inspect the actual result. An agent’s completion message alone is not proof.

An assistant builds a convincing screen, adds a few interactions, and announces that the feature is complete. You try the normal path and it looks fine. Then you refresh the page, return with an expired session, or attempt the same action twice. The result disappears, an error is hidden, or a duplicate record appears. The problem was not necessarily a lack of generated code. It was a mismatch between what the agent considered finished and what the user needed to work.

This guide explains how to make completion observable. It applies to coding projects, document workflows, research tasks, and other work that spans multiple steps or sessions. The examples are hypothetical. The practices are editorial recommendations intended to make failures easier to detect and recover from. They cannot guarantee that a model will remember every constraint or produce a correct result, but they can keep an attractive partial result from being mistaken for a finished one.

In this guide
  1. Check the actual deliverable
  2. Separate a capability limit from an interruption
  3. Define completion before the impressive demo
  4. Use states that preserve uncertainty
  5. Break work at boundaries you can verify
  6. Test the transition, not only the destination
  7. Treat repeated actions as a separate case
  8. Keep the environment part of the evidence
  9. Make handoffs resilient to lost context
  10. Require a real completion result from tools
  11. Build a useful final report
  12. A practical prompt for the next long task

Check the actual deliverable

Write down the requested outcome before reviewing the agent’s final message. Open the deliverable, run the smallest safe acceptance check, and record the result and any missing steps. A completed command is evidence only for what that command actually checked.

Separate a capability limit from an interruption

First identify the kind of failure. A task can stop because a tool is unavailable, because a request failed, because the assistant misunderstood the requirement, or because it reached the wrong conclusion about completion. These situations can look similar in a chat transcript. They require different responses. Retrying a tool may help an interruption; it will not necessarily repair a mistaken interpretation of the task.

Anthropic's long-running-agent engineering article describes agents leaving work partially implemented across context windows and declaring completion after seeing partial progress. The account concerns a particular older model and harness. It is useful evidence of the workflow pattern, not proof that every newer model behaves the same way. Its broader lesson for this guide is to make progress and unfinished work explicit enough to inspect.

Avoid jumping directly to a product-wide explanation. Record the actual failed step, the available output, and the expected result. If the tool never returned, say that. If the tool succeeded but the output was wrong, say that instead. This simple distinction prevents recovery attempts from targeting the wrong layer.

One observed coding-agent run

We asked one agent to fix a free-shipping boundary and test orders of 99, 100 and 101. We used Codex CLI 0.167.1 with gpt-6.1-terra on November 15, 2026.

The agent reported completion and produced a passing test. We reran it and separately checked five numeric values; both checks passed.

Our checks did not find a false completion claim in this run. This is one run on one synthetic task, not a comparison or a measure of general reliability. Different runs can produce different results.

Try three small tasks and compare a recorded completion claim with public checks. The additional cases are test material, not observed model results. Download the evaluation kit

We also tested the checker with nine deliberately incorrect functions across three toy tasks. Its public checks caught six; three passed them but failed an additional input. These selected examples are not model results or an error-rate estimate. See the checker results

Read the setup and results · Recorded data

All trial files

Define completion before the impressive demo

A high-level instruction such as “build a customer portal” leaves many decisions implicit. Does a customer need to sign in? Can they edit a record? Does an edit survive a reload? What happens when access is denied? An assistant can satisfy the visible part of the request while missing the operational behavior. Write down the essential user journeys before treating the interface as the acceptance criteria.

For each journey, specify a starting condition, an action, and an observable outcome. “A signed-in customer updates their address and sees the saved value after reloading” is more useful than “address editing works.” Add the important failure case: an invalid address should produce a clear message and preserve the previous valid value. The wording gives both the implementer and reviewer something concrete to check.

Keep the first checklist small. A list with hundreds of vague items is not automatically more rigorous than five precise journeys. Prioritize the behaviors that define the feature and the failures that could cause meaningful harm. Expand the checklist as the design becomes clearer, and record deliberate scope decisions so omitted features do not later appear as mysterious defects.

“Done” needs a trail
01
Define the outcome
02
Implement one step
03
Observe the result
04
Record the evidence

Use states that preserve uncertainty

A binary done-or-not-done list encourages premature closure. Use states that distinguish proposed, implemented, checked, and blocked work. A feature can be implemented without being verified. A check can be attempted without completing. A dependency can be unavailable without making the feature defective. These distinctions make the handoff more accurate and reduce the pressure to turn every partial result into a success.

Attach evidence to the transition into verified. For a code change, that might be a completed regression check and a reviewed diff. For a document task, it might be an inspected export with the required sections present. For research, it might be a source-backed answer with unresolved questions marked. The evidence should match the type of claim being made.

Do not make the status process more elaborate than the work. A short table or a few clear notes can be enough. The important property is that another person can understand what happened without assuming that “implemented” means “tested.” If the assistant resumes in a fresh session, the same record should prevent it from discovering half a feature and deciding the entire project is finished.

Break work at boundaries you can verify

Small increments are useful when each increment produces a meaningful result. Splitting a task into arbitrary file edits can create a long checklist without reducing uncertainty. Instead, choose a boundary such as loading one record, saving one valid change, or presenting one recoverable error. Complete and check that behavior before expanding to several adjacent features.

For example, build a read-only view before adding editing, and establish persistence before polishing a multi-step animation. This is not a universal sequence for every product. It is a way to avoid spending the whole session on visible details while the underlying behavior remains assumed. If the riskiest part is an external integration, investigate that earlier rather than leaving it behind the finished interface.

At each boundary, ask what the next session would need to know. Record the current command, relevant files, unresolved behavior, and next action. Avoid a narrative of every keystroke. A useful checkpoint describes state, not autobiography. It should be short enough to read and precise enough to prevent accidental duplication or reversal of completed work.

Test the transition, not only the destination

Many incomplete workflows look correct at rest. The defect appears during a transition: saving, reloading, reconnecting, switching accounts, or recovering from an error. A screenshot of the destination cannot show whether the transition is reliable. Walk through the action that creates the state and observe what happens when the action is interrupted or repeated.

Take a file upload as an example. A filename appearing in a list does not prove that the file was stored, parsed, or made available to the next step. Verify the stage the product claims to have completed. If the application says the document is ready to summarize, check a known detail from a safe sample document. If it only says upload started, do not infer completion from that message.

For a save operation, distinguish optimistic display from confirmed persistence. For a background task, distinguish acceptance from completion. For an email draft, distinguish creation from delivery. These are ordinary product distinctions, but assistants can compress them into a single success statement. Your acceptance criteria should preserve the differences that matter to the user.

Treat repeated actions as a separate case

An interrupted agent may not know whether its last action completed. Blindly repeating the action can create duplicates or overwrite a valid result. Before retrying, inspect the state of the destination. If the system supports an idempotency mechanism, use it appropriately. If it does not, design a visible reconciliation step instead of assuming that retries are harmless.

A read-only search is usually easier to retry than a message, purchase, or write. Even a read can return a different result if the underlying data changes, so keep timestamps and scope where relevant. For an action with side effects, record a stable identifier or confirmation when available. That record helps a resumed workflow determine whether it needs to continue, verify, or stop.

The assistant should not solve uncertainty by inventing a confirmation. Ask for the actual returned identifier or observed state. If neither is available, the next step is investigation. A transparent “completion unknown” status is less convenient than a green checkmark, but it is much safer than silently performing the same consequential action twice.

Keep the environment part of the evidence

A check that passes in one environment may fail in another because the dependency version, configuration, permissions, or data differs. Record the relevant environment without exposing secrets. The purpose is not to capture every machine detail. It is to identify the conditions required for the observed behavior and the differences that could explain a later failure.

For a browser workflow, note the tested viewport and browser where those details matter. For a build, identify the revision and command. For an integration, distinguish a fixture, a sandbox service, and a live account. A mock response can verify local handling, but it cannot prove that production credentials or network access work. Label the boundary rather than allowing the result to imply more than it demonstrates.

If the environment prevents a required check, leave the check unverified. Do not weaken a release gate to make the report look complete. There may be a reasonable limited release path, but it should identify the gap and be chosen explicitly. The operational decision and the missing evidence are separate facts, and both belong in the record.

Make handoffs resilient to lost context

Long conversations accumulate decisions, rejected approaches, and temporary assumptions. A summary can accidentally preserve the wrong version of a requirement or omit a crucial constraint. Keep the current accepted requirement in a durable location, with a clear indication of what superseded earlier instructions. The next session should not have to infer the latest decision from scattered messages.

A practical handoff includes the objective, completed behavior, verification results, open issues, and next action. Add active process identifiers when a build or deployment is still running. Include where logs or artifacts can be found. If there is no active process, say so. That prevents a resumed assistant from launching a duplicate operation because it cannot tell whether the previous one finished.

Review the checkpoint after an important change in direction. A perfectly accurate summary of yesterday's plan can be misleading today. Remove obsolete next steps or mark them superseded, while retaining enough history to explain consequential decisions. The aim is a trustworthy working memory, not an ever-growing transcript that becomes another source of confusion.

Require a real completion result from tools

Starting a command is not the same as receiving its result. A deployment can upload files and still fail later. A test runner can launch and then hang. A background job can be accepted and never produce the intended output. The assistant must observe the success condition for the operation it claims to have completed.

Set an explicit timeout for long operations and record how to monitor them. When the timeout is reached, inspect the process and logs before retrying. A duplicate build may be harmless; a duplicate migration or publication may not be. The recovery decision should depend on what is known about the first operation, not on a desire to produce a quick final answer.

For a website release, verify the published artifact or key content after deployment. For a generated document, inspect the saved deliverable rather than only the generation command. For a data export, confirm that the file exists and has the expected structure. These checks are not interchangeable. Choose the observable outcome that corresponds to the promise made to the user.

Build a useful final report

A good completion report starts with the result, then explains what changed, how it was checked, and what remains uncertain. It does not need to recount every command. Include enough evidence for the user to assess the outcome. If a check did not execute, name that limitation plainly. If a workaround was used, explain the practical consequence instead of burying it in implementation detail.

Avoid vague statements such as “everything works” when only one path was exercised. Prefer a bounded statement: the save-and-reload journey passed with the sample record, while cross-browser behavior remains unverified. This is not excessive caution. It is a more useful description of the delivered state. The next person can see what to trust and what to investigate.

A final report should also avoid assigning certainty to a model's own explanation. The assistant may have a plausible theory about why a failure occurred, but a theory is not a reproduced root cause. Separate observed behavior, interpretation, and recommended next steps. That distinction helps prevent an inaccurate diagnosis from becoming a permanent assumption in the next session.

A practical prompt for the next long task

Try asking: “Turn this request into a short acceptance checklist. Work in verifiable increments. Keep implemented and verified states separate. Before claiming completion, inspect the final artifact and report the actual results of the relevant checks. If a tool is still running or unavailable, keep that state explicit and record the next action.” This prompt makes the desired process clearer without pretending that wording alone guarantees compliance.

Then review the checklist yourself. Look for missing persistence, permission, error, and recovery behavior. Those omissions often matter more than another cosmetic feature. Ask the assistant to identify the most consequential assumption it is making and the cheapest check that would challenge it. This keeps the conversation focused on uncertainty that can actually be reduced.

The purpose is not to make every task slow. It is to prevent the cost of a polished incomplete result from being deferred to the user. A small amount of explicit state and targeted evidence can make a long task easier to resume, easier to review, and easier to trust. Completion becomes something the workflow demonstrates rather than something the assistant merely declares.