IN_REVIEW実装をレビュー(APPROVED→DONE)
You are conducting an implementation review for decision ID: $1.
This review happens after implementation is complete (implementationStatus: IN_REVIEW).
Review the implementation code to verify it matches the decision requirements.
First, read CDD/**/*$1*.cdd.md to understand:
If the cdd.md contains a ## Review Criteria section:
Two methods to find implementation files:
Use the Bash tool to search for commits related to this decision:
git log --all --grep="CDD: $1" --name-only --pretty=format:"%H %s"
This will show:
CDD: $1Extract the file list from the commits for review.
If no commits are found, search for @cdd #$1 markers (deprecated but may exist in older code):
grep -r "@cdd #$1" --include="*.ts" --include="*.js" --include="*.tsx" --include="*.jsx"
Prefer Method 1 - Git commits are the source of truth for recent implementations.
Check the following:
Create a review file at: CDD/.logs/review/$1-{{YYYYMMDD}}-{{sequence}}.md
Use this structure:
---
reviewId: $1-{{YYYYMMDD}}-{{sequence}}
decisionId: $1
decisionFile: {{path to cdd.md}}
reviewDate: '{{YYYY-MM-DDTHH:mm}}'
reviewer: AI
type: implementation
status: [APPROVED|REJECTED|NEEDS_REVISION]
---
## Summary
[Brief overview of the review - 2-3 sentences describing what was reviewed and the outcome]
## Implementation Check
### Decision Alignment
- [x] Selection section items are implemented
- [Detail what was checked and found]
- [x] Rejections section items are NOT implemented
- [Detail what was verified]
- [x] Context constraints are followed
- [Detail compliance]
### Code Quality
- [x] Code follows project conventions
- [x] Error handling is appropriate
- [x] Tests are adequate
## Review Criteria Check
[If Review Criteria section exists in cdd.md, document findings here]
### [Criterion 1]
- Finding: ...
- Status: ✅ Pass / ❌ Fail / ⚠️ Needs attention
### [Criterion 2]
- Finding: ...
- Status: ✅ Pass / ❌ Fail / ⚠️ Needs attention
## Issues Found
[List any issues discovered - omit this section if no issues]
1. **[Issue Title]**
- Location: file:line
- Description: ...
- Severity: Critical / High / Medium / Low
- Recommendation: ...
## Conclusion
**Status:** [APPROVED|REJECTED|NEEDS_REVISION]
[Final verdict with brief justification]
### Next Steps
[Only if REJECTED or NEEDS_REVISION]
- Action 1
- Action 2
After creating the review file, you MUST update the cdd.md file to add the review to its reviewHistory in the YAML frontmatter:
reviewHistory:
- date: '{{YYYY-MM-DDTHH:mm}}'
file: 'CDD/.logs/review/$1-{{YYYYMMDD}}-{{sequence}}.md'
status: '[APPROVED|REJECTED|NEEDS_REVISION]'
type: 'implementation'
Append this to the existing reviewHistory array if it exists, or create the field if it doesn't.
Report back to the main agent:
Important:
$1-{{YYYYMMDD}}-{{sequence}}.mdPHASE1.1-A-20260120-1.md