You're getting this because you subscribed to The AI Hatchery. Not for you anymore? Unsubscribe in one click.

Hi there,

Imagine asking an agent to create a follow-up task. It replies: “Done.” You open the task list. Nothing is there.

The answer sounded right. The action didn't happen.

This week, let's make that gap concrete. Not by adding another agent to review the first agent's prose. By deciding what you should be able to observe when the job is finished.

“Done” is a claim. What would make it true?

Write the finish line before the prompt

Take an illustrative request: create one follow-up task for a particular lead, with the requested due date.

There are several things an agent could produce that look like progress: a plan, the right tool arguments, an API request, a task ID, or a confident summary.

Those aren't interchangeable. A plan isn't a request. A request isn't necessarily a completed write. And an ID isn't enough if it points to the wrong lead.

Write the observable result first:

  • A task exists in the intended workspace.

  • It belongs to the requested lead.

  • Its due date matches the request.

  • This logical request hasn't created a second task.

That's a proposed completion contract, not a result from a system I've deployed. Your application may need different checks.

Keep three kinds of evidence separate

The model's answer: what it says happened.

The tool result: what the application or service returned.

The resulting state: what now exists where the work was supposed to land.

Suppose the service returns “accepted” and a job ID. The write may still be running. Treating that as “task created” skips a step.

Suppose it returns a task ID. Read that task through an authorized lookup and compare its fields with the requested outcome. Don't ask the model whether its own completion message sounds convincing.

Anthropic's agent guidance calls for environmental ground truth, such as tool results or code execution, to assess progress. A readback is one practical way to apply that principle when a task changes a record.

A lookup isn't a universal guarantee either. It must reach the right workspace and record, and the fields you inspect must actually test your claim.

Make the check small enough to explain

Here's the shape in pseudocode, not tested integration code:

result = create_task(lead_id, requested_date, operation_key)

if result.is_pending:
    return pending(result.job_id)

if not result.task_id:
    return needs_check(result)

actual = read_task(result.task_id)

if actual.lead_id != lead_id:
    return needs_review(actual)

if actual.due_date != requested_date:
    return needs_review(actual)

return verified(actual.id)

This leaves plenty for a real implementation: permissions, response validation, service errors, asynchronous completion and duplicate detection. It doesn't authorize creating the task. The action still needs whatever approval your product requires.

What it does show is a useful boundary: the completion message comes after the check, not instead of it.

A timeout doesn't tell you whether the write happened

Now imagine the task service creates the record, but the connection drops before your agent receives the response.

Retrying the same creation blindly can produce two tasks. Refusing to retry forever can leave you stuck. The missing response doesn't settle which outcome occurred.

Where the service supports it, use an idempotency key for one logical operation and keep that key across retries. Check the service's actual contract; adding a key to a request doesn't make an unsupported API idempotent.

For a concrete example, Stripe's API documentation describes idempotency keys for retrying supported operations. Its API v1 saves a request's status and body after execution begins, and a retry can return the same error response. Key retention and parameter matching also matter.

That is a service-specific example, not a guarantee for your task API. Preventing duplicate execution and proving successful completion are separate jobs.

Test the awkward outcomes, not just the happy path

For a first exercise, use a sandbox or disposable records. Try a rejected write, an accepted-but-pending request, a missing response after a successful write, and a returned record with the wrong fields.

For each, ask: should the application say verified, pending, failed, or needs review? “Unknown” is more useful than a false success.

Don't turn every failed check into an automatic repair. If the record belongs to the wrong lead, a second write could make the problem worse. Decide when to stop and ask a person.

Try this week: pick one action your agent performs. Write its observable finish line, the evidence you'll inspect, and the message you'll show when that evidence is missing. Then test one case where the write succeeds but the response never arrives.

The goal isn't a more persuasive completion message. It's a message that matches what happened.

Sources and scope are on the web version.

Latest Season1 explainers

Tokenization · Published November 25, 2026.

See why a token isn't necessarily a word or a letter, and why you should count realistic requests with the actual encoding rather than an English rule of thumb.

AI agent engineer roadmap · Published November 23, 2026.

Build from model fundamentals through inference and retrieval to a bounded agent loop, using small projects to expose the next thing you need to learn.

From perceptron to neural net · Published November 20, 2026.

Work through AND and XOR to see what a nonlinear hidden layer changes, and keep a network's ability to represent a function separate from learning its weights.

Community projects

These are the first three eligible project submissions in the selected weekly project display thread's Reddit Top order, excluding AutoModerator, checked November 25, 2026, at 9:30 a.m. Pacific. Displayed order is not a quality endorsement; the descriptions below use official documentation, not hands-on tests.

1. TokenMS

TokenMS is a local-first MCP service that parses a repository into a symbol graph and assembles relevant code within a token budget. Its README documents hybrid lexical/vector retrieval, cross-module relationship traversal and knapsack-based context assembly for coding agents.

2. Forge

Forge describes itself as a context-driven agentic workspace, with links to Mac, iPhone and browser versions. Its public release repository distributes signed macOS builds and the update manifest; the application source is private.

3. CCode

CCode is a terminal coding agent that lets developers bring their own model connection or use its hosted plan. Its official site documents permission modes, changes shown as diffs, rewind, checked goals and background sessions, with a macOS sandbox for constraining writes.

Yujian

P.S. What's one action where your agent says “done” but you still check by hand? Hit reply and tell me.

Want to choose which Hatchery emails you get? Update your preferences.

Sources and scope

Checked November 25, 2026. The task example and pseudocode are teaching illustrations, not a deployed integration or measured reliability result.

Building effective agents: the Agents section recommends grounding progress in environmental results. Its introduction notes that tooling has changed since December 2024; this issue uses the verification principle, not historical tool recommendations.

Stripe: Idempotent requests: service-specific retry behavior, including API v1 response caching, key retention and parameter matching. This is not a claim about every API.

The three Season1 recap articles were confirmed published in beehiiv and their original public pages returned HTTP 200 with matching titles and canonical numbers on November 25. Community Top order was checked in the exact selected thread and reconfirmed November 25 at 9:30 a.m. Pacific. Twenty-five displayed comment elements were inspected, including AutoModerator; this is not a claim of an exhaustive thread census or numeric vote ranking. Project descriptions follow current official sources. No projects were executed or independently benchmarked; no performance, security, savings or financial results are endorsed.

Reply

Avatar

or to participate