Expand description
Subagents on the durable task journal. An rlm.spawn child runs as a child conversation of the session’s durable
runtime (harness::chat::children: an ultron.child task owning its conversation), so its model calls and
cells are as durable as the root’s: a worker that dies leaves it to the next one, which resumes it (a pinned
request is resent, a running cell reports interrupted) and reattaches the delegation host’s task to it.
The delegation host keeps its task journal in the session, where the TypeScript product keeps it
(createSessionTaskStore: value ultron.tasks / root), so finished results stay collectable after a restart,
and rlm.results(), rlm.collect and rlm.list_subagents() read the same tasks.
Structs§
- Durable
Children - Subagents as child conversations of the session’s durable runtime.
- Session
Usage Store - The usage ledger’s document (
ultron.usage/root), which the operation journal also writes: each run counts its model turns there as it commits them. A ledger write keeps those counts: a root’sturnsare the stored ones when they are ahead of the ledger’s.
Constants§
- CONTRACTS_
NAMESPACE - The contract (
role,contract,hop) of each subagent spawned with one, a session value per task id asdelegation::host::Delegation::contract_ofdescribes it (Rust-only, like the names): a child reattached after a restart is still held to it. Sessions without these values reattach their children unchecked, as before. - CONVERSATION_
LANE_ PREFIX - The lane of another root conversation of the session (
ultron.conversation.<id>). - NAMES_
NAMESPACE - The
rlm.spawn(name=...)of each subagent, a session value per task id (Rust-only: the task journal and the child task keep no name), so a revived subagent keeps its name.
Functions§
- subagent_
name - The name subagent
task_idwas spawned with, if this session recorded it. - unfinished
- The subagent tasks the stored journal holds unfinished (read before the host reopens it, which records them interrupted).
- value_
store - A document kept as one session value (
createSessionTaskStore,createSessionDefinitionStore) of a session no worker hands over (anultron claudeserver’s).