Replay
This content is for 0.1. Switch to the latest version for up-to-date documentation.
Replay is the highest-risk Chronicle boundary. It consumes canonical sessions and protocol interfaces; it does not reconnect to the recorded production destination.
Safe defaults
Section titled “Safe defaults”- Command mode grants execution and read effects only for the Chronicle-owned supervised listener, after target-independent planning finishes.
- Explicit-target mode stays dry-run until
--executeand all required target/effect gates are supplied. - Writes always require explicit authorization (
--allow-write); authentication, publication, and unknown effects remain denied. - Every canonical connection needs a target mapping.
- Recorded destinations are never a fallback.
- Incomplete, malformed, unmatched, unsupported, pipelined, or ambiguous-loss operations remain visible and are not attempted.
Command mode
Section titled “Command mode”Command mode starts a supervised copy of the application and discovers one unique loopback listener owned by that scope:
chronicle replay checkout -- ./my-appPlanning and denial checks finish before the target is spawned. Command mode can infer a loopback target and matching host for the supervised copy, but it does not grant write, authentication, publication, or unknown effects.
Explicit-target mode
Section titled “Explicit-target mode”For an already-running application, provide a loopback IP-literal target and all necessary gates:
chronicle replay checkout \ --target http://127.0.0.1:8080 \ --allow-host 127.0.0.1 \ --allow-read \ --executeExplicit-target mode requires:
http://with a loopback IP literal;- a matching repeated
--allow-hostvalue; - effect authorization such as
--allow-reador--allow-write; --execute.
Writes additionally require --allow-write. Configuration cannot silently supply these execution gates.
HTTP request handling
Section titled “HTTP request handling”For bounded plaintext HTTP/1.1, replay removes captured Host, hop-by-hop fields, Authorization, Proxy-Authorization, Cookie, forwarding headers, Expect, and Transfer-Encoding. It emits one target Host and a recomputed Content-Length; it never follows redirects. Optional authorization comes only from a configured environment-variable name, never from captured credentials.
Verification
Section titled “Verification”Verification compares status, body SHA-256/size, and ordered non-ignored headers. Details do not print bodies or arbitrary header values. Outcomes distinguish passed, failed, skipped, inconclusive, and unsupported operations.