How AI's Actually Work — HAAW

Persistence and Long-Running Agents

What Happens When the Mission Lasts Hours, Days or Weeks?

Most of our early HAAW journey happened quickly: a prompt arrived, the model performed inference, tokens were generated, and an answer appeared. An agentic mission can be very different. It may begin now, wait for something that has not happened yet, resume tomorrow, survive a machine restart, request human approval next week, and continue only after new evidence arrives.

The mission can persist even while the model is not running.

Long-Running Does Not Mean Continuously Thinking

Suppose the mission is:

“Watch for the replacement server to become available. When it does, verify the required specifications and notify the operator.”

The system does not need to run transformer inference continuously for three days.

MISSION CREATED → STATE SAVED → WAIT → EVENT / SCHEDULE → RESUME → INFERENCE / TOOL WORK

Between those events, the GPU may be doing something completely unrelated—or may even be powered off.

Persistent mission ≠ persistent model computation.

What Actually Has to Persist?

For a mission to survive time, the system needs more than the original sentence describing the goal.

Mission

What is the system trying to accomplish?

Constraints

What must it not do, and what requires approval?

Current State

What has already happened? What remains unfinished?

Evidence

Which observations and tool results support the current state?

Dependencies

What future event, time, person or result is the mission waiting for?

Authority

What permissions and approvals remain valid when execution resumes?

Return to Our Five Kinds of “Memory”

The earlier HAAW memory page becomes especially important here.

StateUseful for a Long-Running Mission?Survives a Long Pause?
WeightsProvide the trained model behavior used whenever inference runs.Yes, if stored as model files/checkpoints.
ContextProvides information to a particular inference.Not by itself. It must be retained or reconstructed.
KV CacheSpeeds continued generation for an active sequence.Usually not the right durable mission record.
Agent StateTracks where the mission currently stands.It can, if deliberately persisted.
Persistent StorageStores durable mission records, artifacts, evidence and checkpoints.Yes—this is the durable layer.

A long-running system therefore cannot depend on “the model remembering” in the casual human sense. The surrounding system must preserve enough durable state to reconstruct the job later.

The Mission Record

A durable mission record might conceptually contain:

MISSION ID
MISSION VERSION
GOAL
CONSTRAINTS
CURRENT STATUS
COMPLETED STEPS
PENDING STEPS
DEPENDENCIES
EVIDENCE REFERENCES
AUTHORITY / APPROVAL STATE
NEXT WAKE CONDITION
STOP CONDITIONS

The exact implementation may be a database, queue, workflow engine, file, durable task store or another system. The important point is architectural:

The state required to continue the mission must exist somewhere outside the transient inference itself.

Waiting Is a Real State

Earlier we encountered waiting as a synchronization cost. In a long-running mission, waiting becomes a first-class operating state.

The system might be waiting for:

WAITING is not the same as FAILED, STOPPED or FINISHED.

Event-Driven Resumption

A persistent agent does not necessarily ask itself every second, “Has it happened yet?” A surrounding scheduler or event system can wake the mission when there is reason to do more work.

PERSISTED MISSION → SCHEDULE / EVENT / CONDITION → WAKE → LOAD STATE → CONTINUE

This is another place where the agent system is larger than the LLM. Timers, event queues, databases and workflow software can remain responsible for persistence while the model is completely idle.

Resuming Is Not Simply “Continue Where You Left Off”

Time has passed. The world may have changed.

Before acting on an old plan, a robust system may need to revalidate:

Resume ≠ blindly replay the next old instruction.
A persistent mission may need to reconstruct state and then ask whether the planned next step is still valid.

Time Makes Evidence Stale

At 9:00 AM a tool may report:

Service status: FAILED

If the mission resumes at 2:00 PM, that observation remains valid evidence about what was observed at 9:00 AM. It is not automatically evidence about the service at 2:00 PM.

Evidence has a timestamp. State has a present.

This is why long-running systems need freshness rules and re-observation. Old evidence should not silently masquerade as current state.

Authority Can Become Stale Too

Suppose a human approves a configuration change Monday afternoon, but the system cannot execute it until Tuesday morning.

Is Monday's approval still valid?

The answer depends on the control design. Approval may be scoped by:

If relevant state changed while waiting, the system may need to revalidate or request approval again.

Persistence must preserve authority history without assuming authority lasts forever.

Long-Running Autonomy Has an Envelope Through Time

Our autonomy envelope now gains another dimension: time.

MISSION SCOPE
+ CAPABILITY ARRAY
+ R/W/X PERMISSIONS
+ CONSTRAINTS
+ RESOURCE LIMITS
+ APPROVAL GATES
+ STOP CONDITIONS
+ TIME / VALIDITY CONDITIONS

An action authorized today may not be authorized next week. A credential can expire. A mission can be cancelled. A human can reduce permissions. A policy can change.

Checkpointing a Mission

We have used the word checkpoint before in training, where a checkpoint can preserve model parameters and related training state. Here the word means something different.

A mission checkpoint is a durable record sufficient to reconstruct meaningful task state after interruption.

WORK → SAVE MISSION STATE → INTERRUPTION / WAIT → RESTORE → REVALIDATE → CONTINUE

That checkpoint might include evidence references rather than copying every observation into one enormous context.

Why Not Keep the Entire Conversation Forever?

Because context is finite and expensive.

A mission lasting weeks could accumulate:

Stuffing all of that into every new inference would consume context capacity and computation.

Long-running systems therefore may externalize detailed history and bring only selected material back into active context.

FULL DURABLE HISTORY → SELECT / RETRIEVE / SUMMARIZE → CURRENT CONTEXT → MODEL INFERENCE

Compression Creates Risk

Summarization is useful—but a summary is not identical to the original evidence.

It can omit:

Compressed state should not silently replace source evidence when the source evidence matters.

This is exactly where provenance becomes important. A summary can point back to the underlying event or artifact.

Mission Identity Matters

If a mission wakes repeatedly over several weeks, each execution needs to know which mission it belongs to.

A stable mission identifier helps distinguish:

This is the same lineage problem we encountered with retries and multi-agent work—now stretched across time.

Duplicate Wake-Ups and Idempotency

Imagine an event arrives twice:

“Shipment 1842 has arrived.”

If two workers resume the same mission independently, the system must avoid performing a one-time external action twice.

Persistent systems therefore often need operation IDs, state versions, locks, transactions, idempotent operations or other coordination mechanisms.

Persistence turns yesterday's retry problem into tomorrow's duplicate-execution problem.

What If the Machine Restarts?

If mission state exists only in RAM, a reboot may erase the mission.

If the durable state has been safely stored, another runtime instance can potentially reconstruct it:

MACHINE A → DURABLE MISSION STATE → MACHINE B / NEW PROCESS → RESUME

The continuity belongs to the persisted mission state—not necessarily to one continuously existing OS process, GPU process or model instance.

Could the Model Change While the Mission Sleeps?

Yes. A long-running system may resume using a different model version, runtime version, tool version or policy configuration.

That raises an important forensic and operational question:

Is the resumed system equivalent to the system that began the mission?

Not necessarily.

A robust record may therefore preserve relevant version information for:

Long-Running Does Not Mean Immortal

Every persistent mission needs conditions under which it ends.

Success

The defined success criteria have been met and verified.

Cancellation

An authorized person or system ends the mission.

Expiration

The mission's time window closes.

Blocked

A required dependency or authority cannot be obtained.

Failure

The system reaches a defined failure condition.

Escalation

The mission stops autonomous progress and waits for a higher authority.

A task that can persist indefinitely without a meaningful stop condition is not merely “very autonomous.” It is a control-design problem.

The WITNESS View

Long-running missions make WITNESS especially valuable because human memory is a poor substitute for a reconstructable event record spread across days or weeks.

WITNESS would want to preserve:

For a long-running agent, the evidence is not merely a transcript.

It is the history of a mission moving through states over time: active, waiting, resumed, replanned, authorized, executed, verified, blocked, completed or stopped.

The Boundary

We can now separate another set of ideas that casual language tends to blend together.

Persistent mission ≠ continuous inference
Waiting ≠ failure
Resume ≠ blind continuation
Old evidence ≠ current state
Stored approval ≠ permanently valid authority

A long-running AI agent is therefore not best pictured as an artificial mind sitting awake for weeks thinking about one problem.

It is better pictured as a durable mission system that preserves state, sleeps when there is nothing useful to do, wakes when a dependency changes, reconstructs the relevant context, revalidates the world and its authority, performs another bounded piece of work, records what happened, and either continues, waits, escalates or stops.

HAAW Checkpoint

Persistent Mission

A mission whose durable state survives beyond one inference or active process.

Waiting State

The mission remains unfinished but no useful next action is currently available.

Wake Trigger

A schedule, event, condition or external result that causes work to resume.

Mission Checkpoint

Durable state sufficient to reconstruct meaningful task progress after interruption.

Revalidation

Checking that mission, evidence, environment and authority are still valid before continuing.

Stale Evidence

An observation that remains evidence of an earlier state but may no longer describe the present.

Mission Identity

A stable identifier and lineage tying work, retries, versions and events to the correct mission.

Central Lesson

The mission can persist even while the model is not running.