Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If the baked decisions themselves contradict each other (e.g., two different lan
- **Correctness** — the requirements are technically sound and internally consistent; the problem statement is accurate.
- **Feasibility** — implementable within the stated tools and constraints, with no obvious blockers.
- **Clarity** — a builder would know what to build; acceptance criteria are testable; terminology is consistent.
- **Structure** — the spec follows the delivered template (`protocols/spir/templates/spec.md`), which the specify prompt inlines. A spec that ignores the template's headings — usually because the builder pattern-matched an older spec in `codev/specs/` — is a defect: `REQUEST_CHANGES` for a wholesale departure (most headings missing or renamed). A single genuinely-inapplicable section reduced to a one-line "N/A — [reason]" with its heading kept is fine, not grounds for `REQUEST_CHANGES`.
- **Structure** — the spec follows the SPIR spec template that the specify prompt inlines. A spec that ignores the template's headings — usually because the builder pattern-matched an older spec in `codev/specs/` — is a defect: `REQUEST_CHANGES` for a wholesale departure (most headings missing or renamed). A single genuinely-inapplicable section reduced to a one-line "N/A — [reason]" with its heading kept is fine, not grounds for `REQUEST_CHANGES`.

You are reviewing the specification (WHAT is built), not code or implementation (HOW) — that is the plan and implementation reviews. Be constructive: name the issue and suggest a fix.

Expand Down
2 changes: 1 addition & 1 deletion codev-skeleton/protocols/aspir/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"spec_has_required_sections": {
"command": "grep -qF '## Problem Statement' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Current State' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Desired State' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Success Criteria' codev/specs/${PROJECT_TITLE}.md",
"description": "Spec must follow the canonical template delivered by the specify prompt (protocols/spir/templates/spec.md). Required headings: ## Problem Statement, ## Current State, ## Desired State, ## Success Criteria"
"description": "Spec must follow the canonical template the specify prompt inlines. Required headings: ## Problem Statement, ## Current State, ## Desired State, ## Success Criteria"
}
},
"max_iterations": 3,
Expand Down
2 changes: 1 addition & 1 deletion codev-skeleton/protocols/spir/consult-types/spec-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If the baked decisions themselves contradict each other (e.g., two different lan
- **Correctness** — the requirements are technically sound and internally consistent; the problem statement is accurate.
- **Feasibility** — implementable within the stated tools and constraints, with no obvious blockers.
- **Clarity** — a builder would know what to build; acceptance criteria are testable; terminology is consistent.
- **Structure** — the spec follows the delivered template (`protocols/spir/templates/spec.md`), which the specify prompt inlines. A spec that ignores the template's headings — usually because the builder pattern-matched an older spec in `codev/specs/` — is a defect: `REQUEST_CHANGES` for a wholesale departure (most headings missing or renamed). A single genuinely-inapplicable section reduced to a one-line "N/A — [reason]" with its heading kept is fine, not grounds for `REQUEST_CHANGES`.
- **Structure** — the spec follows the SPIR spec template that the specify prompt inlines. A spec that ignores the template's headings — usually because the builder pattern-matched an older spec in `codev/specs/` — is a defect: `REQUEST_CHANGES` for a wholesale departure (most headings missing or renamed). A single genuinely-inapplicable section reduced to a one-line "N/A — [reason]" with its heading kept is fine, not grounds for `REQUEST_CHANGES`.

You are reviewing the specification (WHAT is built), not code or implementation (HOW) — that is the plan and implementation reviews. Be constructive: name the issue and suggest a fix.

Expand Down
2 changes: 1 addition & 1 deletion codev-skeleton/protocols/spir/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"spec_has_required_sections": {
"command": "grep -qF '## Problem Statement' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Current State' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Desired State' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Success Criteria' codev/specs/${PROJECT_TITLE}.md",
"description": "Spec must follow the canonical template delivered by the specify prompt (protocols/spir/templates/spec.md). Required headings: ## Problem Statement, ## Current State, ## Desired State, ## Success Criteria"
"description": "Spec must follow the canonical template the specify prompt inlines. Required headings: ## Problem Statement, ## Current State, ## Desired State, ## Success Criteria"
}
},
"max_iterations": 3,
Expand Down
1 change: 1 addition & 0 deletions codev-skeleton/roles/architect.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ regardless of what the tests say.
- Run `afx` commands only from the main workspace root, never from inside a builder worktree — spawning from a worktree nests builders and breaks the workspace.
- **Use PR comments for anything long** — `afx send` is for short messages.
- **Let builders own their work** — guide, don't take over.
- **Finding files.** Never search from the filesystem root (`find /`, a whole-drive search): search within the project directory or use your built-in file search tools. A framework file (protocol, prompt, template, role) that is not in the project is delivered to you another way, so do not go looking for it.
- **Make sure the issue closes when the PR merges.** The PR body's `Fixes #<N>` / `Closes #<N>`
closes it on merge; close it yourself when no keyword did (a partial fix, a forge without close
keywords). Builders never close issues by hand.
Expand Down
4 changes: 4 additions & 0 deletions codev-skeleton/roles/builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ reads succeed, writes succeed, and nothing corrects you until a later `git add`
- In Bash, prefer relative paths — `cwd` is your worktree, so a relative path cannot be anchored
to the wrong root.

## Finding files

Never search from the filesystem root (`find /`, a whole-drive search): search within the project directory or use your built-in file search tools. A framework file (protocol, prompt, template, role) that is not in the project is delivered to you another way, so do not go looking for it.

## Scope

Build what the spec says. If part of it is blocked, finish everything else and say plainly what
Expand Down
22 changes: 12 additions & 10 deletions codev-skeleton/templates/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ This project uses **Codev** for AI-assisted development.

## Available Protocols

- **SPIR**: Multi-phase development with consultation (`codev/protocols/spir/protocol.md`)
- **ASPIR**: Autonomous SPIR — no human gates on spec/plan (`codev/protocols/aspir/protocol.md`)
- **AIR**: Autonomous Implement & Review for small features (`codev/protocols/air/protocol.md`)
- **BUGFIX**: Bug fixes from GitHub issues (`codev/protocols/bugfix/protocol.md`)
- **PIR**: Plan / Implement / Review — issue-driven with three human gates (plan-approval, dev-approval, pr) (`codev/protocols/pir/protocol.md`)
- **EXPERIMENT**: Disciplined experimentation (`codev/protocols/experiment/protocol.md`)
- **MAINTAIN**: Codebase maintenance (`codev/protocols/maintain/protocol.md`)
- **RESEARCH**: Multi-agent research with 3-way investigation, synthesis, and critique (`codev/protocols/research/protocol.md`)
- **SPIKE**: Time-boxed feasibility investigation — findings, not shipped code (`codev/protocols/spike/protocol.md`)
- **SPIR**: Multi-phase development with consultation
- **ASPIR**: Autonomous SPIR — no human gates on spec/plan
- **AIR**: Autonomous Implement & Review for small features
- **BUGFIX**: Bug fixes from GitHub issues
- **PIR**: Plan / Implement / Review — issue-driven with three human gates (plan-approval, dev-approval, pr)
- **EXPERIMENT**: Disciplined experimentation
- **MAINTAIN**: Codebase maintenance
- **RESEARCH**: Multi-agent research with 3-way investigation, synthesis, and critique
- **SPIKE**: Time-boxed feasibility investigation — findings, not shipped code

## File Resolution (How Codev Finds Protocols and Templates)

Expand All @@ -45,6 +45,8 @@ Codev resolves protocol files, prompts, agent definitions, and roles through a f

**The absence of `codev/protocols/<name>/` on disk is not a missing reference** — it's the normal case for any protocol you haven't customized. The protocol resolves from the installed package's skeleton at runtime. Only protocols you want to customize need to live in your repo's `codev/protocols/`.

**Finding files:** Never search from the filesystem root (`find /`, a whole-drive search): search within the project directory or use your built-in file search tools. A framework file (protocol, prompt, template, role) that is not in the project is delivered to you another way, so do not go looking for it.

**Implication for `codev update` and CLAUDE.md / AGENTS.md merges:** when an updated template references a protocol, do NOT drop the reference because `codev/protocols/<name>/` is absent locally. The protocol resolves via the package skeleton, and dropping the reference removes it from your available-protocol list while it's still callable from the CLI.

## Protocol Names You Don't Recognize
Expand Down Expand Up @@ -157,4 +159,4 @@ Agent Farm is configured via `.codev/config.json` at the project root. Created d

## For More Info

Read the full protocol documentation in `codev/protocols/`.
Porch and `afx spawn` give each agent the full text of the protocol it is running.
22 changes: 12 additions & 10 deletions codev-skeleton/templates/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ This project uses **Codev** for AI-assisted development.

## Available Protocols

- **SPIR**: Multi-phase development with consultation (`codev/protocols/spir/protocol.md`)
- **ASPIR**: Autonomous SPIR — no human gates on spec/plan (`codev/protocols/aspir/protocol.md`)
- **AIR**: Autonomous Implement & Review for small features (`codev/protocols/air/protocol.md`)
- **BUGFIX**: Bug fixes from GitHub issues (`codev/protocols/bugfix/protocol.md`)
- **PIR**: Plan / Implement / Review — issue-driven with three human gates (plan-approval, dev-approval, pr) (`codev/protocols/pir/protocol.md`)
- **EXPERIMENT**: Disciplined experimentation (`codev/protocols/experiment/protocol.md`)
- **MAINTAIN**: Codebase maintenance (`codev/protocols/maintain/protocol.md`)
- **RESEARCH**: Multi-agent research with 3-way investigation, synthesis, and critique (`codev/protocols/research/protocol.md`)
- **SPIKE**: Time-boxed feasibility investigation — findings, not shipped code (`codev/protocols/spike/protocol.md`)
- **SPIR**: Multi-phase development with consultation
- **ASPIR**: Autonomous SPIR — no human gates on spec/plan
- **AIR**: Autonomous Implement & Review for small features
- **BUGFIX**: Bug fixes from GitHub issues
- **PIR**: Plan / Implement / Review — issue-driven with three human gates (plan-approval, dev-approval, pr)
- **EXPERIMENT**: Disciplined experimentation
- **MAINTAIN**: Codebase maintenance
- **RESEARCH**: Multi-agent research with 3-way investigation, synthesis, and critique
- **SPIKE**: Time-boxed feasibility investigation — findings, not shipped code

## File Resolution (How Codev Finds Protocols and Templates)

Expand All @@ -43,6 +43,8 @@ Codev resolves protocol files, prompts, agent definitions, and roles through a f

**The absence of `codev/protocols/<name>/` on disk is not a missing reference** — it's the normal case for any protocol you haven't customized. The protocol resolves from the installed package's skeleton at runtime. Only protocols you want to customize need to live in your repo's `codev/protocols/`.

**Finding files:** Never search from the filesystem root (`find /`, a whole-drive search): search within the project directory or use your built-in file search tools. A framework file (protocol, prompt, template, role) that is not in the project is delivered to you another way, so do not go looking for it.

**Implication for `codev update` and CLAUDE.md / AGENTS.md merges:** when an updated template references a protocol, do NOT drop the reference because `codev/protocols/<name>/` is absent locally. The protocol resolves via the package skeleton, and dropping the reference removes it from your available-protocol list while it's still callable from the CLI.

## Protocol Names You Don't Recognize
Expand Down Expand Up @@ -155,4 +157,4 @@ Agent Farm is configured via `.codev/config.json` at the project root. Created d

## For More Info

Read the full protocol documentation in `codev/protocols/`.
Porch and `afx spawn` give each agent the full text of the protocol it is running.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
id: bugfix-1910
title: prompts-name-framework-paths-t
protocol: bugfix
phase: pr
plan_phases: []
current_plan_phase: null
gates:
pr:
status: pending
requested_at: '2026-11-22T23:54:03.751Z'
iteration: 1
build_complete: false
history: []
started_at: '2026-11-22T23:29:54.501Z'
updated_at: '2026-11-22T23:54:03.752Z'
pr_ready_for_human: true
2 changes: 1 addition & 1 deletion codev/protocols/aspir/consult-types/spec-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If the baked decisions themselves contradict each other (e.g., two different lan
- **Correctness** — the requirements are technically sound and internally consistent; the problem statement is accurate.
- **Feasibility** — implementable within the stated tools and constraints, with no obvious blockers.
- **Clarity** — a builder would know what to build; acceptance criteria are testable; terminology is consistent.
- **Structure** — the spec follows the delivered template (`protocols/spir/templates/spec.md`), which the specify prompt inlines. A spec that ignores the template's headings — usually because the builder pattern-matched an older spec in `codev/specs/` — is a defect: `REQUEST_CHANGES` for a wholesale departure (most headings missing or renamed). A single genuinely-inapplicable section reduced to a one-line "N/A — [reason]" with its heading kept is fine, not grounds for `REQUEST_CHANGES`.
- **Structure** — the spec follows the SPIR spec template that the specify prompt inlines. A spec that ignores the template's headings — usually because the builder pattern-matched an older spec in `codev/specs/` — is a defect: `REQUEST_CHANGES` for a wholesale departure (most headings missing or renamed). A single genuinely-inapplicable section reduced to a one-line "N/A — [reason]" with its heading kept is fine, not grounds for `REQUEST_CHANGES`.

You are reviewing the specification (WHAT is built), not code or implementation (HOW) — that is the plan and implementation reviews. Be constructive: name the issue and suggest a fix.

Expand Down
2 changes: 1 addition & 1 deletion codev/protocols/aspir/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"spec_has_required_sections": {
"command": "grep -qF '## Problem Statement' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Current State' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Desired State' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Success Criteria' codev/specs/${PROJECT_TITLE}.md",
"description": "Spec must follow the canonical template delivered by the specify prompt (protocols/spir/templates/spec.md). Required headings: ## Problem Statement, ## Current State, ## Desired State, ## Success Criteria"
"description": "Spec must follow the canonical template the specify prompt inlines. Required headings: ## Problem Statement, ## Current State, ## Desired State, ## Success Criteria"
}
},
"max_iterations": 3,
Expand Down
2 changes: 1 addition & 1 deletion codev/protocols/spir/consult-types/spec-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If the baked decisions themselves contradict each other (e.g., two different lan
- **Correctness** — the requirements are technically sound and internally consistent; the problem statement is accurate.
- **Feasibility** — implementable within the stated tools and constraints, with no obvious blockers.
- **Clarity** — a builder would know what to build; acceptance criteria are testable; terminology is consistent.
- **Structure** — the spec follows the delivered template (`protocols/spir/templates/spec.md`), which the specify prompt inlines. A spec that ignores the template's headings — usually because the builder pattern-matched an older spec in `codev/specs/` — is a defect: `REQUEST_CHANGES` for a wholesale departure (most headings missing or renamed). A single genuinely-inapplicable section reduced to a one-line "N/A — [reason]" with its heading kept is fine, not grounds for `REQUEST_CHANGES`.
- **Structure** — the spec follows the SPIR spec template that the specify prompt inlines. A spec that ignores the template's headings — usually because the builder pattern-matched an older spec in `codev/specs/` — is a defect: `REQUEST_CHANGES` for a wholesale departure (most headings missing or renamed). A single genuinely-inapplicable section reduced to a one-line "N/A — [reason]" with its heading kept is fine, not grounds for `REQUEST_CHANGES`.

You are reviewing the specification (WHAT is built), not code or implementation (HOW) — that is the plan and implementation reviews. Be constructive: name the issue and suggest a fix.

Expand Down
2 changes: 1 addition & 1 deletion codev/protocols/spir/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"spec_has_required_sections": {
"command": "grep -qF '## Problem Statement' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Current State' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Desired State' codev/specs/${PROJECT_TITLE}.md && grep -qF '## Success Criteria' codev/specs/${PROJECT_TITLE}.md",
"description": "Spec must follow the canonical template delivered by the specify prompt (protocols/spir/templates/spec.md). Required headings: ## Problem Statement, ## Current State, ## Desired State, ## Success Criteria"
"description": "Spec must follow the canonical template the specify prompt inlines. Required headings: ## Problem Statement, ## Current State, ## Desired State, ## Success Criteria"
}
},
"max_iterations": 3,
Expand Down
27 changes: 27 additions & 0 deletions codev/resources/1280-retirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,3 +472,30 @@ pre-existing flakiness".
2. **Guard kept, not retired.** Only the baselines move.
3. **Audit trail.** This entry and `bugfix-1902-prompt-sweep.test.ts`, which asserts no
agent-facing file (PIR included) tells a builder to skip a flaky test.

## R9 — re-baseline spir/aspir spec-review.md for Bugfix #1910 (framework path named by location)

**Status: APPROVED by the owner, 2026-11-23, for issue #1910 (relayed by the architect, main). Applied
in PR #1949.**

| | |
|---|---|
| **Assertion** | `spec-1280-prompt-deletion-guard.test.ts` → *"no baseline line has been deleted"* (kept, not retired) |
| **Files (2)** | `codev/protocols/{spir,aspir}/consult-types/spec-review.md` |
| **Originating issue** | #1910 (Spec 1658 finding M14) |
| **Baselines** | `fixtures/spec-1280-baselines/{spir,aspir}-spec-review.md.baseline`, re-captured |

### What was removed

One line per file, the Structure bullet, replaced in place. "the spec follows the delivered
template (`protocols/spir/templates/spec.md`), which the specify prompt inlines" now reads "the
spec follows the SPIR spec template that the specify prompt inlines". In an adopter workspace that
path exists only inside the installed package, so a reviewer that read it literally searched the
disk for it.

### Class-invariant compliance

1. **Behaviour grep green.** Both keep `Baked Decisions` and `do not autonomously`; mirror parity
holds.
2. **Guard kept, not retired.** Only the baselines move.
3. **Audit trail.** This entry and `bugfix-1910-framework-paths.test.ts`.
1 change: 1 addition & 0 deletions codev/roles/architect.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ regardless of what the tests say.
- Run `afx` commands only from the main workspace root, never from inside a builder worktree — spawning from a worktree nests builders and breaks the workspace.
- **Use PR comments for anything long** — `afx send` is for short messages.
- **Let builders own their work** — guide, don't take over.
- **Finding files.** Never search from the filesystem root (`find /`, a whole-drive search): search within the project directory or use your built-in file search tools. A framework file (protocol, prompt, template, role) that is not in the project is delivered to you another way, so do not go looking for it.
- **Make sure the issue closes when the PR merges.** The PR body's `Fixes #<N>` / `Closes #<N>`
closes it on merge; close it yourself when no keyword did (a partial fix, a forge without close
keywords). Builders never close issues by hand.
Expand Down
Loading
Loading