pub fn query_decisions(
git: &dyn GitOps,
query: &DecisionsQuery,
) -> Result<DecisionsOutput, GitError>Expand description
Collect decisions and rejected alternatives from annotations.
In v3, decisions come from insight wisdom entries whose content
matches the “{what}: {why}” pattern (from v2 decision migration),
and rejected alternatives come from dead_end wisdom entries whose
content matches the “{approach}: {reason}” pattern.
- Determine which commits to examine
- For each commit, parse annotation via
parse_annotation - Collect insight entries as decisions, dead_end entries as rejected alternatives
- When a file is given, filter by wisdom entry file scope
- Deduplicate by content, keeping the most recent