Expand description
Commit tracking and detection for spec finalization.
Handles finding commits associated with a spec by searching for the
chant(spec-id): description pattern in commit messages.
Structs§
- Agent
Detection Result - Result of agent detection for a commit.
Enums§
- Commit
Error - Enum to distinguish between different commit retrieval scenarios
Functions§
- detect_
agent_ in_ commit - Check if a single commit has agent co-authorship. Returns the detection result with details about what was found.
- detect_
agents_ in_ spec_ commits - Check if any commits for a spec have agent co-authorship. Returns a list of all commits that have agent signatures. Designed for future approval workflow integration.
- get_
commits_ for_ spec - Get commits for a spec, failing if no commits match the pattern.
- get_
commits_ for_ spec_ allow_ no_ commits - Get commits for a spec, using HEAD as fallback if no commits match.
- get_
commits_ for_ spec_ with_ branch - Get commits for a spec with branch context for better error messages. If spec_branch is provided, searches that branch first before current branch.
- get_
commits_ for_ spec_ with_ branch_ allow_ no_ commits - Get commits for a spec with branch context, allowing no commits (HEAD fallback). If spec_branch is provided, searches that branch first before current branch.
- has_
agent_ coauthorship - Check if any commits for a spec have agent co-authorship. Simplified helper that returns just a boolean. Designed for future approval workflow integration.