Expand description
Ground-truth constraints and conversation-trajectory context fed into review.
Ground truth = inviolable constraints discovered from TRUTH.md/AGENTS.md/
CLAUDE.md at any nested level plus OpenSpec specs. Trajectory = a bounded
window of recent user/agent messages so the reviewer judges direction, not
just the isolated diff.
Structs§
- GitLog
Provider - Recent commit subjects as agent messages — a universal trajectory proxy when no explicit transcript is configured.
- Jsonl
Transcript Provider - Reads a
{"role":"user|agent","text":"..."}-per-line transcript. - Transcript
Message
Enums§
Traits§
- Trajectory
Provider - Yields recent conversation messages (oldest-first).
Functions§
- build_
review_ context - Build the combined review-context block (constraints + trajectory).
- collect_
ground_ truth - Collect ground-truth constraints from the repo, shallowest (repo-root) first,
bounded by
max_bytes. Deterministic ordering (by depth then path) for tests. - render_
trajectory - trajectory_
provider - Pick a trajectory provider: the configured JSONL transcript if present, else recent commits.
- window_
trajectory - Keep the last
window_useruser messages and lastwindow_agentagent messages, preserving chronological order, then trim oldest tomax_bytes.