Skip to content

TODO: Implement full replay engine with event stream processing #41

@jpleva91

Description

@jpleva91

Source

  • Type: TODO
  • Location: src/cli/replay.ts:3
  • Original text: TODO(roadmap): Phase 4 — Full replay engine: feed stored event stream through encounter generator

Task Description

The current agentguard replay CLI command exists but lacks the full replay engine. The implementation needs to:

  1. Read stored event streams from JSONL files (.agentguard/events/<runId>.jsonl)
  2. Feed events through the encounter generator to reconstruct the governance session
  3. Support playback of the full kernel loop (propose → normalize → evaluate → execute → emit) from persisted events

This is a prerequisite for deterministic replay (#seeded RNG) and the replay comparator. The existing src/cli/replay.ts is a stub referencing this work.

Related ROADMAP items

  • Phase 3: CLI replay command (done) — this extends it with the full engine
  • Phase 3: Deterministic replay with seeded RNG (depends on this)
  • Phase 3: Replay comparator (depends on this)

Labels

Created automatically by the Backlog Steward skill.


Discovered by backlog-steward on 2026-03-09T00:00:00Z

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions