feat: let the owner skip review for change-free explanation answers

The owner may end a TASK_DONE answer with "리뷰 불필요: <reason>". The
host treats it as a request and honors it only when every guard holds:

- workspace content equals the task base (hasCodeChangesSinceRef), the
  working tree is clean, and HEAD did not move during the owner run
- the run used no file-mutating tool (Edit/Write/MultiEdit/NotebookEdit),
  no subagent (Agent/Task) and no state-changing or unknown MCP tool
- every Bash command is classified read-only by a conservative
  quote-aware classifier (src/bash-command-classifier.ts); anything
  unknown counts as mutating
- tool usage was reported and not truncated (agent-runner now reports
  tool names and Bash commands as toolUsage on its terminal output)
- the user did not ask for a review in this task

When honored the task completes as review_skipped with no reviewer or
finalize turn; the answer is delivered with the marker line removed and a
small "-# 검토 생략 …" note. Otherwise the marker is stripped and the
normal review runs. A bare "검토해줘"-style message right after a
review-skipped answer reopens that task for the reviewer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Codex
2026-10-01 20:36:53 +09:00
parent c858b6e446
commit 7f54c47e64
22 changed files with 2323 additions and 14 deletions

View File

@@ -48,6 +48,12 @@ Use short Markdown notes when they materially help handoff or continuity across
- **BLOCKED** — Cannot proceed. State what is stopping you
- **NEEDS_CONTEXT** — Missing information needed to continue
### Review not needed (`리뷰 불필요`)
- If this turn was pure explanation or investigation and you changed nothing — no file edits, no commits, no state-changing commands (restart, kill, DB write, crontab, API write, install, …), no scheduled tasks — you may end a **TASK_DONE** answer with one final line: `리뷰 불필요: <한 줄 이유>`. The answer then goes to the user without review
- Do not add it when unsure, when anything changed, or when factual accuracy is critical (a diagnosis the user will act on, numbers, security, money). The default is review
- The system re-checks the workspace, your tool calls, and your shell commands, ignores the line if anything could have changed, and never shows the line to the user
### Finalize semantics
- When the reviewer already approved and you are finalizing, **TASK_DONE** closes the paired turn