Checkpoint reactor — automatic git snapshots #9
Labels
No labels
area:config
area:contracts
area:engine
area:eventsourcing
area:frontend
area:git
area:ipc
area:persistence
area:provider
area:scaffold
area:terminal
type:user-story
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/peon#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As a user running an AI agent, I want forge-agent to automatically create a git commit (checkpoint) every time a turn completes, so that I can safely roll back to any previous agent response.
Acceptance criteria
CheckpointReactor (
git/checkpoint.rs)ReactortraitOrchestrationEvent::TurnCompletedeventsGitCore::commit()with the configured signature fromGitConfig(commit_name, commit_email)"forge-agent checkpoint — turn {turn_id}"OrchestrationCommand::CreateCheckpointback to the engine with the git hashGitConfig.auto_checkpoint— does nothing if disabledCheckpoint restore
RestoreCheckpointcommand handling in the decider: validates checkpoint exists, emitsCheckpointRestoredCheckpointRestoredby callinggit reset --hardto the checkpoint'sgit_refThreadStatusChanged(Idle)Tests
Out of scope
References
Dependencies
issue-7-engine