Skip to content

Investigate: issue linking for local pre-PR reviews in /review-council #312

Closed

Description

@yvonnedevlinrh

Split from #177 (Phase 1)

Summary

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.

Context

Investigation Questions

  1. 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?
  2. What sources are available locally?
    • Commit messages on the branch (git log main..HEAD)
    • Spec artifacts discovered by Protocol 1 (which may
      reference issues)
    • CLI arguments (e.g., /review-council --issues 177,296)
    • Branch naming conventions (e.g., fix/177-...)
  3. 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

Dependencies

  • None — this is a standalone investigation

Activity

  1. yvonnedevlinrh commented on Jun 30, 2026

    @yvonnedevlinrh
    ContributorAuthor

    Triage Summary

    Field Value
    Verdict VALID
    Category Question (design investigation)
    Objectivity Subjective
    Agents 5 consulted, 5 available
    Dissent None
    Duplicates None (but see related issues below)
    Split Not recommended

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

    Related Issues

    Issue Relationship
    #177 Parent epic
    #296 Predecessor — review-context skill migration (closed)
    #314 Phase 3 — GitHub review posting; naturally enables Protocol 2
    #308 Sibling — Spec Review Mode skill integration evaluation

    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

  2. moved this to In Progress 📋 in Unbound Force Planningon Jun 30, 2026
  3. added
    enhancement
    on Jun 30, 2026
  4. moved this from In Progress 📋 to Done ✔️ in Unbound Force Planningon Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions