Session transcript export tool #1346

Closed
opened 2026-10-27 13:40:01 +00:00 by sam · 0 comments
Owner

Problem: Operators cannot export complete session transcripts. Messages and tool data are persisted internally but not accessible for review.

Solution: Add a transcript export tool that generates a full JSON transcript file and delivers it via send_file.

Technical design:

  1. New tool in internal/gateway
  2. Fetches full session history via MessageHistory interface
  3. Serializes to JSON with all fields (messages, tool calls, tool results, timestamps)
  4. Writes to temp file under workspace confinement
  5. Uses send_file to deliver to operator

Security:

  • Tool arguments stored in MessageCall.Arguments are raw JSON (not redacted)
  • Export should include raw data; operator can choose to redact before sharing
  • Path confinement follows read_tool policy (workspace-only unless unrestricted)

Acceptance:

  • Operator can request full transcript of any session
  • Export contains every message with full tool arguments and outputs
  • File delivered via send_file, not truncated in tool response
  • Honesty flag: export notes if any data was rotated/missing
  • Tests verify complete session export with large tool outputs

Close reason

Closed on GitHub; syncing bead state


Imported from beads archie-core-gwx6 · GitHub #814 · type task · priority P2 · created 2026-09-09 · closed 2026-09-26

**Problem**: Operators cannot export complete session transcripts. Messages and tool data are persisted internally but not accessible for review. **Solution**: Add a transcript export tool that generates a full JSON transcript file and delivers it via send_file. **Technical design**: 1. New tool in internal/gateway 2. Fetches full session history via MessageHistory interface 3. Serializes to JSON with all fields (messages, tool calls, tool results, timestamps) 4. Writes to temp file under workspace confinement 5. Uses send_file to deliver to operator **Security**: - Tool arguments stored in MessageCall.Arguments are raw JSON (not redacted) - Export should include raw data; operator can choose to redact before sharing - Path confinement follows read_tool policy (workspace-only unless unrestricted) **Acceptance**: - Operator can request full transcript of any session - Export contains every message with full tool arguments and outputs - File delivered via send_file, not truncated in tool response - Honesty flag: export notes if any data was rotated/missing - Tests verify complete session export with large tool outputs ### Close reason Closed on GitHub; syncing bead state --- _Imported from beads `archie-core-gwx6` · GitHub #814 · type task · priority P2 · created 2026-09-09 · closed 2026-09-26_
sam added the mediumtask labels 2026-10-27 13:40:01 +00:00
sam self-assigned this 2026-10-27 13:40:01 +00:00
sam closed this issue 2026-10-27 13:40:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1346