Repository navigation
Description
Surfaced during #1011 (framework-file delivery fix). Split out per that issue's scope discipline: #1011 is plumbing (how framework files reach the builder); this issue is about the
bugfixprotocol document itself.
Two related gaps in the bugfix protocol doc
1. Absent from the skeleton
codev-skeleton/protocols/bugfix/ ships no protocol.md (only protocol.json, builder-prompt.md, prompts/). Every other protocol ships its protocol.md in the skeleton. Meanwhile codev/protocols/bugfix/protocol.md exists in this repo (548 lines, tracked) but was never copied into the skeleton.
Consequence: bugfix/builder-prompt.md:28 references codev/protocols/bugfix/protocol.md, which resolves to nothing in a fresh install. #1011 handles that dead pointer by dropping it (its Layer 2 sweep) — safe, because the builder-relevant guidance (300-LOC scope, escalation criteria, mandatory regression test, PR-body structure) already lives in bugfix's phase prompts (investigate.md / fix.md / pr.md), delivered correctly via porch. So this is not a builder-blocking bug — it's doc consistency.
2. Partly stale relative to porch orchestration
codev/protocols/bugfix/protocol.md describes a pre-porch manual architect-builder flow that no longer matches how bugfix runs under porch:
- Manual merge trigger (
afx send architect "Merge it"→ builder runsgh pr merge) instead of a porch gate approval. - A manual architect CMAP /
--type integrationreview step (porch's verify block handles consultation now). - A "BUGFIX issues are NOT tracked in
codev/projectlist.md" section — projectlist is deprecated; GitHub Issues are the source of truth. - Internal inconsistency: branch naming shown as both
bugfix/<N>-descriptionandbuilder/bugfix-<N>-<slug>.
Decision this issue needs
Pick one:
- (a) De-stale and ship: bring
bugfix/protocol.mdin line with porch orchestration and copy it into the skeleton, uniform with the other protocols. - (b) Intentionally doc-light: decide bugfix is builder-prompt + phase-prompt only (no
protocol.md), and trim/remove thecodev/copy so the two trees agree.
Out of scope
- The framework-file delivery-channel fix itself (scaffold: deliver framework files (protocol.md, templates, workflow-ref) via resolver-aware channels (fresh-install class fix) #1011).
- Staleness audits of other protocol docs (file separately if found).
Suggested protocol
Likely MAINTAIN (doc hygiene) once direction (a)/(b) is chosen, or a quick design call first.
Related: #1011.
Scope expansion (added per review of #1011)
3. experiment/protocol.md commits a partial copy of its notes template
experiment/protocol.md has a ## notes.md Template section that quotes part of codev-skeleton/protocols/experiment/templates/notes.md inline (via a relative templates/notes.md reference, "See templates/notes.md for the full template. Key sections:"). This is the same staleness class as the bugfix issue: a committed partial copy of a framework template that will drift from the canonical file.
It is pre-existing and was left untouched by #1011 (which scoped to the absolute-path references the architect enumerated). #1011 introduced the fix pattern for this class: a fresh-at-delivery include placeholder ({{> protocols/<name>/templates/<file>}}) resolved by the spawn layer, so the canonical template stays single-source.
Action: replace the committed partial copy in experiment/protocol.md's ## notes.md Template section with the {{> protocols/experiment/templates/notes.md}} include (or remove the partial copy and rely on the ## Template: notes.md include #1011 already added), so experiment has no committed template duplicate.
Audit other protocol docs for the same relative-path partial-copy pattern while here.
Activity
[PIR #1011] Resolve bugfix sub-decision (drop pointer); file doc hygi…
[-]protocols: bugfix protocol.md absent from skeleton and partly stale (porch-era cleanup)[/-][+]protocols: protocol-doc hygiene (bugfix skeleton-absence + staleness; experiment committed template copy)[/+][PIR #1011] Fold in #1013: de-stale bugfix protocol.md + drop experim…
amrmelsayed commentedon Jun 9, 2026
Being implemented as part of #1015 (folded into the #1011 framework-file fix):
bugfix/protocol.mdrewritten concise + porch-accurate and shipped to the skeleton;experiment/protocol.md's relative-ref partial template copy removed in favour of the fresh-at-delivery include. Will close on that PR's merge.[PIR #1011] Remove {{#if protocol_reference}} guard; enforce protocol…