Repository navigation
Description
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
waleedkadous commentedon Apr 20, 2026
On it! Working on a fix now.
[Bugfix #685] Require Closes/Fixes keyword in PR prompts
[Bugfix #685] Use <N> placeholders in PR body templates
Merge pull request #687 from cluesmith/builder/bugfix-685-builder-pro…