feat(session): optional git-notes checkpoint for audit trail#68
Merged
RyderFreeman4Logos merged 1 commit intomainfrom Feb 13, 2026
Merged
feat(session): optional git-notes checkpoint for audit trail#68RyderFreeman4Logos merged 1 commit intomainfrom
RyderFreeman4Logos merged 1 commit intomainfrom
Conversation
Owner
Author
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[MOTIVATION] Sessions need a lightweight audit trail that integrates with git's native features. Git notes provide this without modifying session files. [IMPLEMENTATION DETAILS] - Add checkpoint module to csa-session with write/read/list operations - Notes stored under refs/notes/csa-checkpoints namespace - Notes target the session-specific commit (not HEAD) for correctness - Structured TOML format: session_id, tool, status, turns, token usage - Deterministic tool selection (alphabetical) for multi-tool sessions - CLI: `csa session checkpoint -s <id>` and `csa session checkpoints` - 11 tests covering roundtrip, session targeting, deterministic tools Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e7dde46 to
a74c423
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
csa session checkpoint --session <id>to write audit-trail git notes on session commitscsa session checkpointsto list all checkpoint notesCheckpointNotestruct with session metadata, token usage, and timestampsChanges
crates/csa-session/src/checkpoint.rs— core checkpoint module (~360 lines, 11 tests)crates/csa-session/src/lib.rs— register checkpoint modulecrates/cli-sub-agent/src/cli.rs— addCheckpointandCheckpointssubcommandscrates/cli-sub-agent/src/main.rs— dispatch new subcommandscrates/cli-sub-agent/src/session_cmds.rs— handler implementationsTest plan
cargo clippy -p csa-session -p cli-sub-agent -- -D warningscargo test -p csa-session -p cli-sub-agent(845 unit + 8 E2E)just pre-commit🤖 Generated with Claude Code