Expand description
Canonical session bundle export/import support.
A session bundle is the portable JSON envelope that downstream hosts use for local exports, sanitized shares, and replay-only handoffs. The bundle is intentionally built from existing Harn run-record surfaces so replay, transcripts, tool calls, HITL questions, and observability do not fork into a second persistence model.
Structs§
- Bundle
Attachment - Bundle
Event LogPointer - Bundle
Json Entry - Bundle
Mounted Root - Bundle
Permission - Bundle
Producer - Bundle
Replay - Bundle
Runtime - Bundle
Source - Bundle
Tool Call - Bundle
Tools - Bundle
Transcript - Bundle
Transcript Section - Bundle
Usage - Bundle
Worker Snapshot - Bundle
Workspace - Materialized
Worker Snapshot - Redaction
Manifest - Session
Bundle - Session
Bundle Export Options - Session
Bundle Validation Options
Enums§
- Agent
Session Liveness - Liveness of an agent session reconstructed from its event log.
- Session
Bundle Error - Session
Bundle Export Mode
Constants§
- REPLAY_
ONLY_ PLACEHOLDER - SESSION_
BUNDLE_ LIVENESS_ KEY metadatakey carrying the machine-readable liveness verdict ("suspended"|"closed") so a resume host can decide continue-vs-replay without string-matching the human-facingstatus.- SESSION_
BUNDLE_ SCHEMA_ ID - SESSION_
BUNDLE_ SCHEMA_ VERSION - SESSION_
BUNDLE_ STATUS_ COMPLETED - Bundle
source.statusfallback for a session that closed without an explicit status on its terminalSessionClosedevent. - SESSION_
BUNDLE_ STATUS_ SUSPENDED - Bundle
source.statusfor a session reconstructed from an event stream that has no terminalSessionClosedevent — a live loop frozen mid-turn for cross-compute migration (#3682), or a time-traveled prefix truncated before the close. The next action is still pending, so a consumer must CONTINUE the loop, not treat it as finished. - SESSION_
BUNDLE_ TYPE
Functions§
- agent_
session_ liveness - Classify an agent session’s liveness from its replay event stream by finding
the last terminal
SessionClosedevent. The keystone discriminator behind portable suspend/resume (#3682): without it, a frozen-mid-flight or time-traveled session is silently mislabeledcompletedand a resume host replays it instead of continuing the pending turn. - export_
run_ record_ bundle - export_
worker_ snapshot_ bundle - import_
run_ record_ from_ agent_ session_ events - import_
run_ record_ value - import_
run_ record_ value_ with_ materialized_ worker_ snapshots - materialize_
worker_ snapshots - run_
record_ from_ worker_ snapshot - session_
bundle_ from_ agent_ session_ events - session_
bundle_ schema - session_
bundle_ schema_ pretty - validate_
session_ bundle_ str - validate_
session_ bundle_ value