Add trajectory reviewer - #80
Conversation
- `view_trajectories()` → `trajectory_review()` - `read_trajectory_reviews()` → `trajectory_reviews_read()` - Update documentation and examples accordingly
simonpcouch
left a comment
There was a problem hiding this comment.
Super excited about this! Some initial thoughts here.
| #' @return A list of actionable review records in file order: all notes and | ||
| #' currently active flags. When `trajectories` is supplied, each record also | ||
| #' contains `turns`. | ||
| #' @export |
There was a problem hiding this comment.
Part of me wonders whether we ought to write the reviews with the turns 'joined' in in the first place. Since it's a human that reviews the responses, I would guess that the scale of these wouldn't reach past 100s of comments, so these files wouldn't ultimately end up huge.
The reason I say this is because I would suspect that humans would not be the ones to then go and read in all of the reviews + process them, so I'd prefer we not export a function mostly for the coding agent's usage. Instead, that format that contains both the turns and the reviews could be document with a few-liner in the trajectory_review() docs that gets the agent most of the way there.
There was a problem hiding this comment.
Garrick thinks we should probably have a function like this. He also suggested maybe this ends up being a directory of markdown files so that they're super agent-readable (whether that's immediately what they become or get post-processed into after this intermediate state)
There was a problem hiding this comment.
I like Garrick's idea, and I think regardless of format, the review writing and ingesting process needs a second look. For now:
- I removed
trajectory_reviews_read()for the reason you stated, and because the trajectory review format may change. It's not needed to read in the trajectories, so this doesn't result in any loss of functionality. - I did not change the review
jsonlformat to include the turns because the format may change and I am also a bit hesitant to duplicate that data (but could definitely be convinced that this isn't a problem). - I can plan to revisit the review log format for v2.
How does that sound?
|
Feedback from Paul & Garrick:
|
Adds a trajectory reviewer app.
Launch the reviewer app with:
Trust tags are reconstructed from the conversation, see #79.
Notes and flags are written to an append-only JSONL file. There is probably later work to do on how the review data is stored. You can join the review data back to the trajectories data for analysis:
Addresses #53