Skip to content

fix(source-control): block only a negated closing reference in the PR body linkage hooks #10778

Description

@kyle-sexton

Parent: #5683

The 2026-10-27 decision on the parent (record) makes the PR body linkage hooks block only a negated closing reference. CI already treats missing contract sections and a missing closing line as advisory (.claude/rules/pr-body-contract.md), but plugins/source-control/hooks/pr-linkage-validator.sh still adds a blocking problem for each.

Done when

  • pr-body-linkage-gate.sh and pr-linkage-mcp-gate.sh exit 2 only for a negated closing reference (does not close #N). A body missing a contract section or a closing line exits 0. Each change has a stay-quiet test that fails before the fix, and the negated-closer block tests still pass. linkage::section_problems and the pull-request skill's pre-create check that shares it stay unchanged.
  • The source-control README rows for both hooks and a changelog fragment say the hooks block only a negated closing reference.

Activity

  1. added
    status: ready
    on Oct 28, 2026
  2. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: change the two PR body linkage hooks (pr-body-linkage-gate.sh and pr-linkage-mcp-gate.sh) so they exit 2 only for a negated closing reference. A body missing a contract section or closing line should exit 0. The change needs stay-quiet tests, plus README and changelog updates. The scope and done-when items are clear, and the decision on the parent is linked. No duplicates found among the open issues.

    Automated triage, applied by the lanes App.

  3. added
    admission-deferred
    agent-ready
    and removed
    admission-deferred
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readystatus: ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions