Overview
Agent time travel ties historical reads to capability invocations. It answers: what database state did the capability see, what would it do now, and what changed after the decision?
The run id used here is produced by Synapsor when you invoke a capability. Store the returned agent_run_id or run_resource with the user-visible answer/proposal, or query synapsor_agent_runs later by trace_id.
AS OF queries are read-only. If a reviewer needs to test a fix from an old snapshot, create a branch from the agent run, version, or timestamp.
Do not silently fall back to current rows when a snapshot is expired. Replay and audit depend on proving the requested historical state is still retained.
Developer notes
- Use original replay for audits and current replay for regression checks.
- Create branches from historical snapshots when investigation needs writable state.
- Grant READ on agent-run resources before exposing replay to auditors.
- Treat SNAPSHOT_EXPIRED as a hard failure, not a reason to read current state.