Constructive Critic Review Guide
Provides a structured checklist and output template for reviewing AI-generated refactoring plans, focusing on feasibility, risks, and AI-specific pitfalls.
What this file does
Provides a structured checklist and output template for reviewing AI-generated refactoring plans, focusing on feasibility, risks, and AI-specific pitfalls.
When to use it
- Reviewing a multi-phase refactoring plan before execution
- Evaluating AI-generated code or architecture proposals
- Running a structured peer review on a complex software change
- Establishing a repeatable review process for AI-assisted development
Constructive Critic Review Guide
Purpose: Review the refactoring plan for feasibility, completeness, and risk mitigation
Reviewer Role: Experienced software architect, skeptical of AI-generated plans
Review Focus: Identify gaps, unnecessary complexity, and risks
Review Checklist
1. Phase Boundaries
- Are phases appropriately sized? (Can each be completed in 2-6 AI sessions?)
- Are dependencies between phases clear?
- Could any phases be combined without increasing risk?
- Should any phase be split due to complexity?
Questions to Answer:
- Is Phase 4 (Separate Computation from I/O) too large? Should it be split into data loading and computation extraction?
- Is Phase 5 (Break Up TAfunctions.py) appropriately sequenced after Phase 4?
- Are there any hidden dependencies between phases not documented?
2. Test Coverage
- Does each phase have adequate test coverage?
- Are the tests actually validating behavioral equivalence?
- Are there edge cases not covered?
Questions to Answer:
- Are the end-to-end tests (7 commands) sufficient to catch behavioral changes?
- Should there be unit tests for specific functions in earlier phases?
- Is the test for "exact output match" too strict? (timestamps in logs, etc.)
3. Risk Assessment
- Are risks appropriately identified for each phase?
- Are mitigation strategies adequate?
- What could go wrong that's not documented?
Questions to Answer:
- What if the baseline capture itself has issues?
- What if HDF5 data changes between baseline and validation runs?
- What if exception handling changes expose a failure that was previously silently caught and now breaks the pipeline?
4. AI Model Recommendations
- Are model assignments appropriate for task complexity?
- Is cost optimization appropriate without sacrificing quality?
- Are there tasks where a different model would be better?
Questions to Answer:
- Is Kimi K2.5 sufficient for Phase 1, or should Claude be used throughout for consistency?
- Is o1 necessary for Phases 4-5, or would Claude 4.5 Sonnet be sufficient?
- Should there be a "human review checkpoint" after Phase 2 before proceeding to higher-risk phases?
5. "AI Slop" Detection
- Are there unnecessary abstractions?
- Is there over-engineering?
- Are there patterns that look good but add complexity without value?
Questions to Answer:
- Is the exception logging decorator (
exception_logger.py) unnecessary complexity? - Is the module decomposition in Phase 5 creating too many small files?
- Are the data loader abstractions in Phase 4 adding indirection without benefit?
6. Operational Considerations
- Will daily/monthly workflows be disrupted?
- Is the rollback plan practical?
- Are there operational risks not addressed?
Questions to Answer:
- What if a phase introduces a bug that's only caught during the monthly model recommendation run?
- Should there be a "canary" period where both old and new code run side-by-side?
- Is the git commit strategy appropriate for a trading system where stability is critical?
7. Missing Elements
- What's missing from the plan?
- Are there prerequisites not addressed?
- Are there post-phase activities not documented?
Questions to Answer:
- Should there be a performance benchmarking phase?
- Should there be a security review of the refactored code?
- Should there be documentation updates as part of each phase?
Review Output Template
## Constructive Critic Review: PyTAAA Refactoring Plan
**Reviewer:** [AI Model or Human Name]
**Date:** [Review Date]
**Plan Version:** 1.0
### Overall Assessment
[GO / NO-GO / GO WITH MODIFICATIONS]
### Strengths
1. [Strength 1]
2. [Strength 2]
3. [Strength 3]
### Concerns
#### High Priority
1. **[Concern Title]**
- **Issue:** [Description]
- **Impact:** [What could go wrong]
- **Recommendation:** [How to address]
#### Medium Priority
1. **[Concern Title]**
- **Issue:** [Description]
- **Impact:** [What could go wrong]
- **Recommendation:** [How to address]
#### Low Priority
1. **[Concern Title]**
- **Issue:** [Description]
- **Impact:** [What could go wrong]
- **Recommendation:** [How to address]
### Specific Recommendations
#### Phase-Specific Changes
**Phase 1:**
- [Recommendation 1]
- [Recommendation 2]
**Phase 2:**
- [Recommendation 1]
- [Recommendation 2]
[Continue for all phases]
#### General Recommendations
1. [Recommendation that applies to multiple phases or overall plan]
2. [Another general recommendation]
### AI Model Recommendation Changes
| Phase | Current | Recommended | Rationale |
|-------|---------|-------------|-----------|
| [N] | [Current Model] | [New Model] | [Why change] |
### Additional Considerations
[Anything else the reviewer wants to highlight]
### Final Verdict
[Summary of whether the plan is ready for human review and execution]
Review Process
- Initial Review: AI constructive critic reviews the plan using this guide
- Feedback Integration: Architect addresses feedback, updates plan
- Re-review (if needed): Critic reviews updated plan
- Human Review: Human reviews final plan and critic feedback
- Approval: Human approves plan for execution
Example Review Snippets
Example: High Priority Concern
#### High Priority
1. **Phase 2 Exception Handling Risk**
- **Issue:** The two-step approach (logging mode then fix mode) doubles the work
and may not catch all exception types in the logging phase if test coverage
doesn't trigger all code paths.
- **Impact:** Exceptions that only occur in production (network timeouts,
specific data edge cases) won't be observed during testing, leading to
incomplete exception specifications.
- **Recommendation:** Add a "safety fallback" where the specific except clause
also catches Exception and logs unexpected types for future refinement:
```python
try:
risky_operation()
except (ExpectedError1, ExpectedError2) as e:
handle_expected(e)
except Exception as e:
logger.error(f"Unexpected exception type {type(e)}: {e}")
raise # Re-raise to maintain existing behavior
```
Example: AI Slop Detection
### "AI Slop" Detection
1. **Exception Logger Decorator**
- **Issue:** The `exception_logger.py` module creates a new abstraction that
is only used temporarily during Phase 2.
- **Impact:** Adds code that will be deleted, increasing churn.
- **Recommendation:** Inline the logging logic directly in the except blocks
during the logging phase, then remove it in the fix phase. Don't create
a separate module for temporary code.
End of Review Guide
What's inside
7 review checklist sections, 1 output template, 1 review process, 2 example snippets
Change this for your project
- Replace
PyTAAAin the output template title with your project name - Replace
Phase 4 (Separate Computation from I/O)and other phase references with your own phases - Replace model names like
Kimi K2.5,Claude,o1with your chosen AI models
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Worth borrowing
- Checklist for detecting 'AI slop' like unnecessary abstractions or over-engineering
- Template for structured review output with priority levels and phase-specific recommendations
- Two-step review process: AI critic then human approval
Related Documents
Setup & Deployment Checklist
Guides you through 10 phases to set up, test, deploy, and customize a content agent system using OpenRouter and Streamlit.
RealDiag Demo Video Script
Provides a complete 5-7 minute demo video script for a clinical decision support tool, including timing, visual cues, and production notes.
š± Mobile Phone Preview - Quick Start
Walks you through four ways to preview a React Native Expo app on real devices and emulators, plus a testing checklist and troubleshooting guide.
š Product Hunt Launch Prep
Provides a Product Hunt launch checklist, listing copy, and newsletter template for an open-source AI vulnerability database.