M2.2: marchwarden replay <trace_id> CLI command #9

Closed
opened 2026-04-08 20:48:45 +00:00 by claude-code · 0 comments
Collaborator

Phase 2 — CLI Shim, milestone 2.

Goal

Replay a prior research run from its JSONL trace file.

Scope

  • replay subcommand in cli/main.py
  • Resolve trace file at ~/.marchwarden/traces/<trace_id>.jsonl (trace dir configurable, matching M1.2)
  • Stream JSONL, pretty-print each step: step #, action, result summary, decision, content_hash
  • Friendly error if trace_id is unknown

Tests

  • Fixture JSONL file, CliRunner, assert key fields rendered
  • Unknown trace_id error path

Deliverable

marchwarden replay <id> shows the full audit trail for a prior run.

Branch

feat/cli-replay

Depends on: M2.1

Phase 2 — CLI Shim, milestone 2. ## Goal Replay a prior research run from its JSONL trace file. ## Scope - `replay` subcommand in `cli/main.py` - Resolve trace file at `~/.marchwarden/traces/<trace_id>.jsonl` (trace dir configurable, matching M1.2) - Stream JSONL, pretty-print each step: step #, action, result summary, decision, content_hash - Friendly error if trace_id is unknown ## Tests - Fixture JSONL file, CliRunner, assert key fields rendered - Unknown trace_id error path ## Deliverable `marchwarden replay <id>` shows the full audit trail for a prior run. ## Branch `feat/cli-replay` Depends on: M2.1
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: archeious/marchwarden#9
No description provided.