You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate: issue linking for local pre-PR reviews in /review-council #312
The review-context skill's Protocol 2 (Issue Linking) parses Fixes/Closes/Resolves #N references from a PR body to extract acceptance criteria for alignment checking. /review-council is a local pre-PR command with no PR body, so Protocol 2 is deliberately skipped (#296).
This investigation evaluates whether alternative issue discovery sources would add value for local pre-PR reviews, and if so, which approach is most practical.
The question remains: is there a viable and valuable way to discover linked issues without a PR body?
Investigation Questions
Is there value? Would the Guard persona produce meaningfully better drift detection with acceptance criteria from linked issues, compared to its current spec-based approach?
What sources are available locally?
Commit messages on the branch (git log main..HEAD)
Spec artifacts discovered by Protocol 1 (which may
reference issues)
Is the benefit worth the complexity? Adding a local-mode variant to Protocol 2 increases skill complexity. Is the same value better achieved when PR context becomes available (Phase 3 of Enrich /review-council with /review-pr capabilities #177)?
Possible Outcomes
Implement locally: Add a local-mode Protocol 2 variant that discovers issues from commit messages or spec metadata
Defer to Phase 3: Issue linking becomes naturally available when /review-council gains GitHub review posting (PR context)
Close as not applicable: The Guard's spec-based drift detection is sufficient; issue linking adds marginal value for local reviews
The Divisor review panel unanimously classifies this as a valid investigation with a clear recommendation: defer to Phase 3
(#314).
Investigation Answers
1. Is there value? Marginal. The Guard persona's drift detection is fundamentally spec-based — it reads spec.md, plan.md, and tasks.md and compares against the diff. Issue acceptance criteria checkboxes would be supplementary at best.
Spec artifacts already capture intent more rigorously than issue descriptions.
2. What sources are available locally? Commit messages (git log main..HEAD) and branch naming conventions are the primary candidates, but both are heuristic and unreliable. Not all commits reference issues, not all branches follow naming conventions. The false-negative rate would undermine confidence in the feature.
3. Is the benefit worth the complexity? No. A local-mode Protocol 2 variant would:
Create a second discovery code path for the same capability (architectural concern)
Introduce untrusted input handling for git log output (security concern)
Require mocking git log and branch patterns for testing (test surface concern)
Produce inherently unreliable results (operational concern)
Recommendation
Close as "Defer to Phase 3." This is the issue's own third proposed outcome, and the panel unanimously agrees it is the
right one.
#314 adds optional GitHub review posting to /review-council.When a PR exists, PR context becomes available, and the review-context skill's existing Protocol 2 (Issue Linking) can execute without modification. #314's own design considerations section already anticipates this:
"Protocol 2 becomes available: With PR context, the
review-context skill's Protocol 2 (Issue Linking) can be
executed. This may resolve the issue linking investigation
without requiring a local-mode variant."
The existing Protocol 2 is already hardened (digits-only validation, same-repo URL scoping, 5-issue fetch limit, 2000-char body truncation). Reusing it through #314 avoids duplicating that sanitization logic.
Activity
yvonnedevlinrh commentedon Jun 30, 2026
Triage Summary
Panel Assessment
The Divisor review panel unanimously classifies this as a valid investigation with a clear recommendation: defer to Phase 3
(#314).
Investigation Answers
1. Is there value? Marginal. The Guard persona's drift detection is fundamentally spec-based — it reads
spec.md,plan.md, andtasks.mdand compares against the diff. Issue acceptance criteria checkboxes would be supplementary at best.Spec artifacts already capture intent more rigorously than issue descriptions.
2. What sources are available locally? Commit messages (
git log main..HEAD) and branch naming conventions are the primary candidates, but both are heuristic and unreliable. Not all commits reference issues, not all branches follow naming conventions. The false-negative rate would undermine confidence in the feature.3. Is the benefit worth the complexity? No. A local-mode Protocol 2 variant would:
Recommendation
Close as "Defer to Phase 3." This is the issue's own third proposed outcome, and the panel unanimously agrees it is the
right one.
#314 adds optional GitHub review posting to
/review-council.When a PR exists, PR context becomes available, and thereview-contextskill's existing Protocol 2 (Issue Linking) can execute without modification. #314's own design considerations section already anticipates this:The existing Protocol 2 is already hardened (digits-only validation, same-repo URL scoping, 5-issue fetch limit, 2000-char body truncation). Reusing it through #314 avoids duplicating that sanitization logic.
Related Issues
This triage was performed by the Divisor review panel.
Triage-verdict: VALID
Triage-category: question
Triage-recommendation: close-defer-to-phase-3
Related-issue: #314