Skip to main content

Module commits

Module commits 

Source
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§

AgentDetectionResult
Result of agent detection for a commit.

Enums§

CommitError
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.