diff options
| author | Jesse Vincent <jesse@primeradiant.com> | 2026-05-23 16:14:05 -0700 |
|---|---|---|
| committer | Jesse Vincent <jesse@primeradiant.com> | 2026-05-23 16:14:05 -0700 |
| commit | b2212dc9135efff326167bdff0323ee4a3dcb5a5 (patch) | |
| tree | 7f5492e14ccb44669acf07ac0b2763b84af4d487 /tests/opencode/test-plugin-loading.sh | |
| parent | 180f0090907b6964733d59407b01ae677f192913 (diff) | |
Scope spec reviewer to task diff and make reviewers read-only
Two problems with the SDD reviewer prompts on dev:
- spec-reviewer-prompt.md never received a git range, so the
general-purpose subagent had to crawl the entire codebase to find what
changed. Reporter measured 20-33 minute spec reviews on simple tasks
(#1538).
- Neither reviewer prompt told the subagent that review is read-only.
A spec reviewer running `git checkout <parent-sha>` for historical
comparison silently detached HEAD on the controller's branch, then
subsequent task commits accumulated on the detached HEAD and were
effectively orphaned (#1543, reproduced independently in #1543's
thread).
Add a Git Range to Review section to spec-reviewer-prompt.md that
mirrors the one code-reviewer.md already has, plus a Read-Only Review
section in both reviewer prompt templates stating the principle: do
not mutate the working tree, the index, HEAD, or branch state. Allow
inspecting other revisions via a separate temporary worktree, so the
read-only rule does not block legitimate historical comparison.
Closes #1538.
Closes #1543.
Diffstat (limited to 'tests/opencode/test-plugin-loading.sh')
0 files changed, 0 insertions, 0 deletions
