> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formation.texturehq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Continuing after context changes

> How a running task keeps working when memories, profiles, or history change under it.

A run's working context moves while it works: a memory is revised or withdrawn,
a participant's profile changes, history is added. None of that stops, rewinds
or restarts the run, and none of it discards a decision the run has already
made. This is [the resilience principle](https://docs.formation.texturehq.com/philosophy.md#the-resilience-principle),
and the rest of this page describes how the runtime keeps to it.

**While the run is working**, a context change only updates what later model
calls see:

* A tool call the model proposed runs. The check before it brings the working
  context up to date; it does not refuse the call.
* A saved decision, and an answer that has not been sent yet, stand when a
  memory was revised or a profile changed after they were made.
* A memory that was withdrawn (forgotten, or its sharing grant revoked) is taken
  out of the memory block later calls are given, and the work continues. It is
  not scrubbed from what the run has already read: a `recall` result that
  returned it stays in the run's working transcript until the run ends, so
  later decisions in the same run can still see it. What is guaranteed is that
  no reply written from it is sent.
* When a run is loaded for its next step, a source of its saved working context
  that its audience may not be shown is recorded and the step proceeds. Nothing
  is cancelled or rewound for it.
* Later model calls always get the current, permitted context. Nothing pins a
  run to the memories it started with.

A changed conversation audience is not one of these events at all: a run keeps
the audience its trigger was observed with and never re-reads it.

**Where something is shared**, the audience decides what may be sent. Before an
answer is sent, the memories, history messages and tool results it was written
from are checked against the audience it is going to. One thing is not held
against a message: that it was posted in the conversation the answer is going
to at a time when the connector could not say who was in that conversation.
Saying it back there discloses nothing. That is the only check skipped, and
only for a message whose own audience is unknown. A message whose audience is
known is checked as before, an earlier reply's own sources (the memories it
recalled, the tool results it used, messages from other conversations) are
still checked through it, and a tool result is always checked against its
recorded audience, so a result fetched with a person's delegated access is not
repeated into a conversation whose membership cannot be verified.

This check covers replies and progress updates. It does not cover the effects
of tools: a tool call already proposed still runs when a source of its decision
stops being shareable, and a tool that posts or sends elsewhere is not checked
here. Those are bounded by the tool's own permissions.

An answer whose sources fail the check is not delivered. Recovery
replaces that one decision and asks for a fresh one from what may be shared. It
retains the run's original source, spent allowance, identity, execution fence
and cancellation boundaries. A context change does not supply missing
authorization or revive a retired task service.

That replacement is bounded, and the bound does not depend on the state of any
step. The first replacement in a run writes a `context_replan` receipt holding
the fixed class of change that caused it (for example `memory not shareable`),
never content; a step it cancels records the same class. A run gets one. If the
decision that replaced a discarded one is refused too, at any operation, the run
ends with one closing notice instead of composing a third. When the refusal is
about the audience itself, no notice is sent into that conversation: the attempt
fails and retries without discarding anything, bounded by the run's deadline.

A follow-up from the requester is a new instruction, not a context change, and
still supersedes a decision that has not been acted on.

The temporary repair load does not dispatch a model or ordinary tool. It checks
current source authority, reconciles started operations and removes obsolete
working content. The context-refresh receipt records the exact cleared step and
model call. Its checkpoint replacement and audience baseline commit together.
A separate `dynamic_adapt` note names only the class of change for the model;
it is neither outbound copy nor a lasting disclosure grant. That note and any
replacement of a saved decision commit together, so an interrupted repair cannot
publish its new note while leaving the old decision in place.

A started call keeps its original identity. Recovery invokes only its separately
declared receipt handler under current registry, contract, account and source
checks. It never invokes the ordinary effect handler again. Completed receipts
remain in the ledger; the refreshed prompt receives content-free status summaries.
A run-level reply intent proves nothing about a particular tool's success. A
started call with no completed receipt remains durably unknown, including after
another worker loads it. Fresh reasoning must inspect its outcome before another
write. Known success and failure receipts retain their recorded meaning.

Unresolved tool obstacles and their correction allowance survive the refresh.
Names derived from omitted context become opaque planning references rather than
callable capabilities. Old receipts cannot restore those names or reuse omitted
observations as successful evidence.

A canonical disclosure refusal records an operator-visible access dependency and
an existing durable review delay. It does not send a request containing protected
content to a denied destination or invent a private notification route. A changed
schedule's cancellation boundary, agent/install stops and execution ownership
checks continue to apply. Recovering context does not reset allowance.

Legacy scope-closing obligations may remain after task retirement. Their receipts
are retained for delivery without reopening work. The closing operation asks a
configured LLM to explain verified, content-free status; unavailable generation
keeps the obligation pending under the existing Temporal retry. It does not consume
the reply attempt, renew work allowance or enable retired tools. Previously
computed scope notices must earn a new LLM draft.

Replacement workers recheck their execution fence and source before saving a
draft. Delivery recovery also requires a generated uncertainty notice before its
single supplementary-send reservation. That reservation checks the recorded
inbound source and current destination in the same fenced transaction, retaining
source and stop locks through commit. A ready draft grants no permission after
revocation. An uncertain send is not repeated.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.