---
layout: ../../layouts/BlogPost.astro
title: Make your agent's assignments outlive its attempts
description: Keep each assignment as a record of its own so a failed run ends the attempt and leaves the job open.
slug: blog/make-your-agents-assignments-outlive-its-attempts
published: "2026-11-20"
image: /images/durable-assignments-cover.jpg
imageAlt: K.O.R.A. stands beside a glowing glass case holding a sealed assignment, with a conveyor of workstations behind her.
---
*This article is part of [Can an Agent Really Own an Ecosystem?](https://jesselanderson.com/blog/can-an-agent-really-own-an-ecosystem), a series about building an agent that can take responsibility across an ecosystem.*

An agent run is a short life. It starts, it works, something crashes or times out, and the whole thing evaporates. If the assignment lived only inside that run, then the assignment evaporates too, and I'm back to wondering whether anybody ever fixed the thing.

I learned this the usual way. A repair kept failing, hit its limit and stopped, and the problem it was supposed to solve simply left the conversation. The attempt ended. Nobody had told the assignment.

## Give the assignment its own home

Each piece of K.O.R.A.'s work lives in a queue as a record of its own. The record carries what kind of work it is, its state, who owns it right now, when that ownership expires, how many attempts it has used, a key that prevents duplicates, and the result of the last try.

The run is a visitor. The record is the resident. Runs come and go while the record stays put, which makes it the right place to keep the question that matters most, which is whether this is finished.

## Keep the original goal

When a retry happens, the new attempt shouldn't have to guess what the first one was after. K.O.R.A. keeps a snapshot of the original goal, its scope, where to verify the result, and the chain of earlier attempts. Each snapshot also says how far it can be trusted.

That last part matters. The snapshot is marked as unvalidated, or as validated only against stored history, because the repository may have changed since the assignment was written. Keeping the intent is generous. Acting on it blindly would be reckless.

## A cap ends the attempt and leaves the job

Retries have a limit, and they should. An agent that retries forever is a space heater with opinions.

When a repair runs out of attempts, the system records a blocked outcome and keeps the original assignment alive. A card goes to me with the diagnostic trail, the attempt count and a plain statement of what's needed. The attempt is over. The assignment is still open and visibly unresolved.

If the failure came from a provider outage, the waiting time stays attached to the record. A job that is waiting for a provider is waiting for a provider, and nobody should mistake that for abandonment.

![K.O.R.A. compares an old assignment book against an open, glowing piece of equipment before deciding whether to retry.](/images/durable-assignments-revalidation.jpg)

## Keeping a job grants no permission

This part is easy to get wrong. Keeping an old assignment gives nobody authority to run it again. Her notes say so directly. Putting the work back in motion requires checking the repository and its instructions fresh, and the retained record doesn't override the retry cap or clear any provider wait.

An assignment that survives needs a fresh look before it moves again. Otherwise you've built a very reliable way to repeat last month's mistake with this month's confidence.

## Try it before trusting it

Walk a fixture through the awkward cases:

- Interrupt an attempt halfway through and confirm the assignment is still open afterward.
- Exhaust the retries and confirm a blocked outcome appears while the original goal remains.
- Remove some of the supporting evidence and confirm the record admits it.
- Resume the work after the scope has changed and confirm it gets validated again first.

If the only evidence that a problem exists is a log of a run that no longer does, you've stored the attempt and lost the job.
