Skip to content

Builder prompts should require Closes/Fixes keyword in final PR body #685

Closed

Description

@waleedkadous

Source: Protocol inconsistency report from Shannon project's architect, based on PR #796 leaving issue #786 open after merge. Received 2026-04-20.

Problem

Some protocols require the final PR body to include a GitHub close-keyword (`Closes #N` / `Fixes #N` / `Resolves #N`), so GitHub auto-closes the driving issue on merge. Others don't.

Current state of builder prompts (`codev/protocols//builder-prompt.md` and `prompts/pr.md`):

Protocol Close-keyword required?
bugfix ✅ (`Fixes #{{issue.number}}` in `prompts/pr.md:26`)
spir ❌
aspir ❌
air ❌
experiment ❌
maintain ❌

Shannon hit this on PR #796 (a SPIR PR for spec 786): PR merged, issue stayed open, manual close required.

Fix

Add close-keyword directive to the builder prompts for SPIR, ASPIR, AIR, experiment, and maintain protocols, modeled on how bugfix already does it.

Suggested directive wording (place near the existing PR checklist in each prompt):

PR body requirements: The final PR body MUST include `Closes #` (for feature issues) or `Fixes #` (for bug issues) for the driving issue. If the PR closes multiple issues (e.g. duplicates consolidated), include one keyword per issue. Without this, GitHub will not auto-close the issue on merge.

Exception: if this PR only partially addresses the issue (e.g. one phase of a multi-PR effort), DO NOT use `Closes`/`Fixes` — reference the issue with `Refs #` or `Part of #` instead. The issue stays open until the follow-up PR closes it.

Scope (tight)

  • Edit builder prompts for: SPIR, ASPIR, AIR, experiment, maintain (5 files minimum; may also need `prompts/pr.md` in some)
  • Check `codev-skeleton/protocols/` counterparts and sync them
  • Do NOT add a porch gate check in this PR — defer to a follow-up if drift continues after the prompt fix

Out of scope (file separate if needed)

  • Porch pr-gate check that scans PR body for close-keyword before allowing `pr-ready` to advance
  • Auto-injection of close-keyword based on issue metadata (Shannon explicitly flagged this as a non-goal — builder should know what it's closing)

Acceptance

  • All protocol builder prompts (spir, aspir, air, experiment, maintain, bugfix) include consistent close-keyword guidance
  • The partial-fix exception is explicit so builders don't blindly add `Closes` on a phase-partial PR
  • `codev-skeleton/protocols/` matches `codev/protocols/`

Activity

  1. added
    bug
    on Apr 20, 2026
  2. waleedkadous commented on Apr 20, 2026

    @waleedkadous
    ContributorAuthor

    On it! Working on a fix now.

  3. added 2 commits that reference this issue on Apr 20, 2026
  4. added a commit that references this issue on Apr 20, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions