Skip to content

Interface: AgentContinuationFrame ​

Defined in: ports/agent-continuation-frame.ts:12

Serialized continuation frame for an P.agent execution session (kind: 'agent-frame').

Persisted inside ContinuationFrame[] stacks in LedgerStore and SuspendedForkRecord to support deterministic crash recovery, sibling-interrupt suspension, and resumeFork.

Properties ​

PropertyModifierTypeDescriptionDefined in
accumulatedLessonOutcomes?readonlyReadonly<Record<string, LessonOutcome>>Deduplicated per-lesson 4-state outcome map accumulated during standalone agent execution.ports/agent-continuation-frame.ts:60
activeLeasesreadonlyreadonly LeaseDelta[]Active capability leases granted to this agent session.ports/agent-continuation-frame.ts:34
activeSkillActivationsreadonlyReadonly<Record<string, { callId: string; messageId: string; }>>Map of active skillId to its { messageId, callId } activation frame coordinates for completeSkill.ports/agent-continuation-frame.ts:38
activeSkillIdsreadonlyreadonly string[]Identifiers of skills currently mounted via activateSkill in this session.ports/agent-continuation-frame.ts:36
agentIdreadonlystringLogical identifier of the AgentNode.ports/agent-continuation-frame.ts:16
bufferedGateRecoveries?readonlyreadonly unknown[]Buffered in-session gate recovery pairs awaiting loop acceptance and winner commit before distillation.ports/agent-continuation-frame.ts:58
conflictCheckArmed?readonlybooleanWhether scopeNode.conflictCleanCheck is armed due to a prior conflicted merge or rebase.ports/agent-continuation-frame.ts:50
costUsdreadonlynumberCumulative model invocation cost in USD for this agent session.ports/agent-continuation-frame.ts:30
elapsedDurationMsreadonlynumberCumulative elapsed execution time in milliseconds for this agent session.ports/agent-continuation-frame.ts:32
injectedScopedRuleIdsreadonlyreadonly string[]Identifiers of ScopedRuleNode directives already injected into this session.ports/agent-continuation-frame.ts:44
inputJsonreadonlystringJSON-serialized validated input payload for the agent session.ports/agent-continuation-frame.ts:24
kindreadonly"agent-frame"Discriminant identifying an agent continuation frame.ports/agent-continuation-frame.ts:14
lastGateFailureJson?readonlystringOptional JSON-serialized snapshot of the most recent beforeStop gate failure for .onGateRecovery().ports/agent-continuation-frame.ts:56
leafMessageIdreadonlystring | nullIdentifier of the latest persisted WireFrameRecord in the session transcript, or null.ports/agent-continuation-frame.ts:26
modelIdreadonlystringProvider model identifier used by the active session.ports/agent-continuation-frame.ts:20
neutralSyncContinuation?readonlybooleanWhether the next completion check follows a neutral [TOPOLOGY_SYNC_REVERIFY] continuation.ports/agent-continuation-frame.ts:52
observedEffectsreadonlyreadonly ToolEffect[]Cumulative ToolEffect descriptors recorded during this session.ports/agent-continuation-frame.ts:42
pausedAtPhasereadonly"TOOL_BOUNDARY" | "BEFORE_STOP_GATE" | "LIMIT_EXCEEDED_FLUSH"High-level execution boundary at which the session is currently paused.ports/agent-continuation-frame.ts:46
pauseStatereadonlyAgentPauseStatePhase-specific discriminated pause payload.ports/agent-continuation-frame.ts:48
roleKeyreadonlystringCanonical order-independent roleKey selecting the actor's wire toolset.ports/agent-continuation-frame.ts:18
stepExecIdreadonlystringUnique step execution identifier in LedgerStore.ports/agent-continuation-frame.ts:22
syncedToPrerequisiteCheckpoint?readonlystringCheckpoint marker set during 'SUSPENDED' prerequisite wakeup once syncRoot is persisted.ports/agent-continuation-frame.ts:54
turnsTakenreadonlynumberCumulative number of LLM turns completed in this agent session.ports/agent-continuation-frame.ts:28

Released under the MIT License.