akmon replay
Documented for Akmon 2.0.0.
Who this is for
Engineers replaying recorded sessions to detect divergences and regression behavior.
What you will have at the end
- A replay pass/fail report (
defaultorstrictmode). - Optional persisted replay session in a target journal.
Prerequisites
- Source session UUID.
- Journal access to source session.
Steps
akmon replay <session-id> [OPTIONS]
akmon replay <session-id> \
[--journal <path>] \
[--mode <default|strict>] \
[--persist --persist-to <path>] \
[--format <human|json>]
- Run default replay:
akmon replay <session-id>
- Use strict mode if you want tighter mismatch handling:
akmon replay <session-id> --mode strict
- Use JSON in CI:
akmon replay <session-id> --format json
- Persist replay output only with explicit target:
akmon replay <session-id> --persist --persist-to /path/to/replay-journal
Exit codes
| Code | Meaning |
|---|---|
0 | Replay completed with no divergences (passed: true) |
1 | Replay completed with divergences (passed: false) |
2 | Usage error (invalid arguments or invalid flag combinations) |
3 | I/O or environment error (missing source session, malformed source, unwritable persist target, etc.) |
Verification
akmon replay <session-id> --format json | jq '.passed'
Expected result: true for equivalent replay; false if divergences are detected.
Examples
1) Replay a session with default mode
$ akmon replay 550e8400-e29b-41d4-a716-446655440000
2) Replay in strict mode
$ akmon replay 550e8400-e29b-41d4-a716-446655440000 --mode strict
3) JSON output for CI
$ akmon replay 550e8400-e29b-41d4-a716-446655440000 --format json | jq '.passed'
4) Persist replay output in a target journal
$ akmon replay 550e8400-e29b-41d4-a716-446655440000 \
--persist \
--persist-to ./replay-journal
5) Replay from a non-default journal
$ akmon replay 550e8400-e29b-41d4-a716-446655440000 --journal /custom/journal
Troubleshooting
- If
--persistfails, ensure--persist-tois provided and writable. - If replay cannot load source data, validate
--journalpath and source session UUID. - If replay fails with divergences, inspect JSON
divergencesfor event-level mismatch details. - For integrity-first workflow, run
akmon verify <session-id>before replay.