#432 Add deep-review-docs agent + wire into /deep-review-next orchestrator#452
Conversation
There was a problem hiding this comment.
Review — PR #452
Files reviewed: .claude/agents/deep-review-docs.md (59-line new agent), .claude/skills/deep-review-next/SKILL.md (+11/-3 orchestrator wiring)
deep-review-docs.md — agent definition
- Frontmatter ✅
name: deep-review-docs,description,tools: Read, Grep, Glob,model: sonnetall set correctly per issue #432 spec. - Checklist (lines 35–51): all 6 split rules encoded — new file/directory (README structure block), CI workflow drift, CI repository variables,
.envkeys, behavioral rules inCLAUDE.md, workflow steps inSKILL.md— plus coverage-matrix and MCP server items (scope extension per PR body).No-op case(line 51) handles AC4. - Output format (lines 53–65):
pass/fail/N/A+Summary: X pass / Y fail / Z N/A+ ordered failure list withfile:line— matches siblingdeep-review-project-checklist.mdschema. Closes withFailures: none.per spec. - Inputs paragraph (lines 22–24): identical wording to
deep-review-simplification.md— maintained as a known cross-agent hazard per the PR body's scope notes. Not a blocking issue.
deep-review-next/SKILL.md wiring
- Roster table (line 74):
deep-review-docsrow added with correct description; trailing|and column alignment match existing rows. - Roadmap table (line 82):
deep-review-docs | #432row removed — consistent with the same move in sibling PRs. - Task dispatch (lines 91–93): unconditional
Task(subagent_type="deep-review-docs", ...)placed in the parallel batch before conditional dispatches, as specified in the orchestrator. - Aggregate output (lines 101–103):
### deep-review-docssection +Summary: <pass> / <fail> / <N/A>added at the right position (after python, before aggregate block). - Aggregate total + status (lines 108–109):
/ <DF> docs failappended tototal:;and zero docs failadded to thestatus:ready-condition. Both extend the existing schema without altering the existing segments.
No-op checklist item
The new agent's item 9 ("No-op case") correctly delegates the AC4 requirement (empty findings on doc-irrelevant diffs) to the agent. Since the diff is doc-shaped, this item is not applicable for this review.
Verdict
All checklist items pass. Orchestrator wiring is mechanically correct and consistent with the sibling-pattern PRs (#426/#427/#428/#429/#444). No Playwright, TypeScript, or Python files are in scope — project-checklist and language-specialist agents would be SKIPPED.
Approve.
Reviewed by proxy/@preset/minimax-minimax-m2-7-no-thinking
# Conflicts: # .claude/skills/deep-review-next/SKILL.md
There was a problem hiding this comment.
Summary
PR #432 adds the deep-review-docs specialist agent and wires it into the /deep-review-next orchestrator. Two files changed: a new agent definition file and an updated orchestrator SKILL.md.
What was reviewed: agent file correctness, SKILL.md consistency, README/CLAUDE.md split compliance.
deep-review-docs.md (new file)
- Agent name/type
deep-review-docsmatches thesubagent_typereferenced in the Task call — ✅ - Model
sonnetis a valid override value — ✅ toolsblock (Read, Grep, Glob) is appropriate for a docs-only reviewer — ✅- Agent is correctly placed in
.claude/agents/— consistent with the project's documented agent directory
deep-review-next/SKILL.md (modified)
- New row added to the agent roster table with a concise description — ✅
- Roadmap entry
deep-review-docs | #432removed (story is being shipped) — ✅ - Unconditional
Task(...)dispatch added in the correct location (between architecture and ci dispatches) — ✅ - Aggregate block updated to track
<DF> docs failcount — ✅ statusformula updated to block ondocs fail— ✅
Documentation split compliance
- The agent definition (new file under
.claude/agents/) is correctly placed per the README's repository structure — existing entry already covers this directory - SKILL.md remains the single source of truth for the orchestrator workflow — ✅
- CLAUDE.md MCP servers table and README MCP servers section are unchanged (no new server) — N/A
- No new CI workflow, env var, or
.envkey added — N/A - Behavioral rule not introduced — N/A
Consistency with existing patterns
- New agent follows the same frontmatter + role-prompt structure as every existing agent file — ✅
Task(...)dispatch pattern matches the unconditional dispatches above it — ✅- Roadmap removal on issue completion is consistent with the project's documented lifecycle
No blocking issues. The PR correctly implements the planned deep-review-docs agent, removes its roadmap entry, and integrates it into the orchestrator with proper accounting in the aggregate block.
Reviewed by proxy/@preset/minimax-minimax-m2-7-no-thinking
Summary
Adds
.claude/agents/deep-review-docs.md— a documentation-consistency specialist agent for the/deep-review-nextorchestrator under epic #436. The agent verifies that staged + unstaged changes are reflected in the right doc per the project's documented split rules (README.md= reference,CLAUDE.md= behavioral,.claude/skills/<n>/SKILL.md= workflow ownership). It runs read-only (Read, Grep, Glob), receives the diff inline from the orchestrator like the other sibling agents, and emits findings in the sharedpass / fail / N/Aschema (matchesdeep-review-project-checklist.md).Per the sibling pattern (PRs #426 / #427 / #428 / #429 / #444), this PR also wires
deep-review-docsinto/deep-review-next: adds the row to the current roster table, removes the row from the Pending table, adds an unconditionalTask(...)dispatch in Step 1's parallel batch (the agent has aNo-op casechecklist item that returns empty findings on doc-irrelevant diffs — matches AC4), adds the### deep-review-docssection to the Step 2 aggregate output, and extends thetotal:line andstatus:rule to include<DF> docs fail/zero docs fail.Closes #432
Contributes to #436
DoD coverage
.claude/agents/deep-review-docs.mdwritten with split rules encoded as a checklist.claude/agents/deep-review-docs.mdlines 23–43CLAUDE.md, workflow steps in the relevantSKILL.md)toolsandmodeltools: Read, Grep, Glob,model: sonnetAcceptance criteria mapping
README.mdRepository structure blockREADME.mdCLAUDE.mdvs. a skill fileScope notes
.vars.example+ README CI variables table), new.envkeys (.env.example+ README Credentials), coverage-matrix drift, and.mcp.jsonserver-list changes. These are implied by the same split philosophy inCLAUDE.mdand parallel sibling project-checklist coverage; they are not additional acceptance criteria.deep-review-simplification.md. Claude Code agent files have no include mechanism, so the wording is intentionally repeated rather than diverged. If/when more sibling agents are added, this is a known maintenance hazard worth tracking but not worth solving with a one-off divergence here.deep-review-typescript/deep-review-python(gated by file extension),deep-review-docsruns on every diff. Rationale: AC4 explicitly delegates the no-op case to the agent itself, and the agent's primary check ("any added file or directory must appear in README structure block") is true on most non-trivial diffs — a glob-gate would skip very few runs.Test plan
git diff origin/main --statshows two files:.claude/agents/deep-review-docs.md(new, 56 lines),.claude/skills/deep-review-next/SKILL.md(+11/-3, orchestrator wiring).name,description,tools: Read, Grep, Glob,model: sonnetset per issue spec.No-op casefor AC4..claude/skills/deep-review-next/SKILL.md:26; row removed from Pending table; unconditionalTask(...)call appears in the Step 1 parallel batch at:111;### deep-review-docssection +<DF> docs failcounter +zero docs failstatus condition added at:167/:172/:173.main:.env.example,.vars.example,.mcp.json,playwright/typescript/coverage-matrix.json.<pass> pass / <fail> fail / <N/A> N/A+Failures: none.closing line) matches siblingdeep-review-project-checklist.md./deep-review-next(not the legacy/deep-review) — aligned with #425 Rename /deep-review to /deep-review-next in REFERENCES + project-checklist agent prose #451./security-review(manual against this branch's diff): clean — no executable code, no secrets, no auth surface, Markdown only./deep-reviewchecklist: 2 pass / 0 fail / 12 N/A (Markdown-only diff exercises the consistency item; rest areplaywright/typescript/-specific).playwright-typescript-lint.yml) is N/A for this PR (noplaywright/typescript/**changes); GitHub will skip it./deep-review-nextend-to-end smoke that exercises the new dispatch (verifiesdeep-review-docsreturns the expected schema and the aggregate counters wire up correctly). Sequence with the other agent rollouts; not tracked here.