Journal Export
journal_exportExport a past session's replay script, environment, and call ledger with SHA-256 hashes from the on-disk journal. Read-only access to session history for auditing or replay.
Instructions
Export a past session from the on-disk journal (off by default; on with
ANKUSDRIVE_JOURNAL_DIR) as session_transcript would have: the replay script, the
recorded environment, and the ordered call ledger with each result's SHA-256.
Read-only. session: an id or "latest"; omit to list sessions. workspace: default
is the one current when the session ended. provenance=False skips solver version
probes. A redacted journal (ANKUSDRIVE_JOURNAL_REDACT) exports an audit record,
not a runnable script. More options: ankusdrive journal export.
Returns {enabled, dir, live_session, sessions} when listing, else {session, workspace, env, script, ledger, warnings, prerequisites, truncated, redacted, integrity, provenance, ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | ||
| workspace | No | ||
| provenance | No |