Summary
When an LLC agent produces unexpected output or fails, there is no way to replay the run to understand what happened. Replay lets developers and operators re-execute a recorded run deterministically for debugging, testing prompt changes, or audit investigations.
What Users Want
- Each heartbeat run's inputs (context package, work item, tool calls, responses) recorded to an immutable replay log
- UI to browse and replay any past run: re-execute with same inputs, compare output
- Step-through mode: pause between tool calls to inspect intermediate state
- Fast-forward: replay at 10x speed with output diff highlighted
- Export run as a test fixture (for regression testing prompt changes)
- Redact PII from replay logs before sharing
AutoBot Fit
autobot-backend/llc/models/heartbeat_run.py already stores run metadata. Extend with a RunReplayLog table capturing: inputs at invocation, each tool call + response, final output. New /api/llc/runs/{id}/replay endpoint that feeds stored inputs back through the adapter. Frontend: replay panel in the heartbeat run detail view.
Acceptance Criteria
Summary
When an LLC agent produces unexpected output or fails, there is no way to replay the run to understand what happened. Replay lets developers and operators re-execute a recorded run deterministically for debugging, testing prompt changes, or audit investigations.
What Users Want
AutoBot Fit
autobot-backend/llc/models/heartbeat_run.pyalready stores run metadata. Extend with aRunReplayLogtable capturing: inputs at invocation, each tool call + response, final output. New/api/llc/runs/{id}/replayendpoint that feeds stored inputs back through the adapter. Frontend: replay panel in the heartbeat run detail view.Acceptance Criteria