Work Plan Execution Command
Pipeline mode: This command operates fully autonomously. All decisions are made automatically.
Execute a research implementation plan systematically. The focus is on shipping complete, reproducible research code by understanding requirements quickly, following existing patterns, and maintaining estimation quality throughout.
Input Document
#$ARGUMENTS
If no input document is provided: Look for the most recent plan in docs/plans/ and use it. If no plans exist, state "No plan found. Run /workflows:plan first." and stop.
Execution Workflow
Phase 1: Quick Start
Read Plan
- Read the work document completely
- Review any references, brainstorm origins, or linked code paths
- Identify the estimation method, identification strategy, and key deliverables
- Note any open questions from planning — resolve by picking the conservative default and documenting the choice
- Proceed immediately — do not wait for approval
Setup Environment
First, detect the project environment:
# Detect estimation language
if [ -f "requirements.txt" ] || [ -f "setup.py" ] || [ -f "pyproject.toml" ]; then
echo "LANG=python"
elif [ -f "DESCRIPTION" ] || [ -f "renv.lock" ] || [ -f ".Rprofile" ]; then
echo "LANG=R"
elif [ -f "Project.toml" ]; then
echo "LANG=julia"
elif ls *.do >/dev/null 2>&1; then
echo "LANG=stata"
fi
# Detect pipeline tools
ls Makefile Snakefile dvc.yaml 2>/dev/null
Then check the current branch:
current_branch=$(git branch --show-current)
default_branch=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
if [ -z "$default_branch" ]; then
default_branch=$(git rev-parse --verify origin/main >/dev/null 2>&1 && echo "main" || echo "master")
fi
If already on a feature branch (not the default branch):
- Continue working on it. Proceed to step 3.
If on the default branch:
Option A: Create a new branch (default)
git pull origin $default_branch
git checkout -b <branch-name-from-plan>
Use a meaningful name derived from the plan (e.g., feat/callaway-santanna-did, fix/blp-convergence).
Option B: Use a worktree (for parallel estimation runs)
See references/worktree-patterns.md if the plan involves parallel workstreams or the user has multiple active branches.
Automatically choose Option A unless the plan explicitly mentions parallel workstreams.
Activate Research Environment
Read compound-science.local.md for environment configuration. Then activate:
Python:
# Activate virtual environment
if [ -d ".venv" ]; then source .venv/bin/activate
elif [ -d "venv" ]; then source venv/bin/activate
elif command -v conda &>/dev/null; then conda activate $(basename $PWD)
fi
# Verify key packages
python -c "import numpy, scipy, pandas; print('Core packages OK')"
R:
# Check renv status
Rscript -e "if (file.exists('renv.lock')) renv::status()"
Verify data paths:
# Check that referenced data files exist
ls data/ 2>/dev/null | head -5
Create Task List
- Use TodoWrite to break plan into actionable tasks
- Include dependencies between tasks
- Prioritize based on the plan's phase structure
- Include estimation-specific quality check tasks:
- Convergence verification after each estimation step
- Standard error computation and diagnostic tests
- Robustness checks specified in the plan
- Keep tasks specific and completable
Phase 2: Execute
Task Execution Loop
For each task in priority order:
while (tasks remain):
- Mark task as in_progress in TodoWrite
- Read any referenced files from the plan
- Look for similar patterns in codebase
- Implement following existing conventions
- Write tests for new functionality
- Run Estimation Quality Check (see below)
- Run tests after changes
- Mark task as completed in TodoWrite
- Mark off the corresponding checkbox in the plan file ([ ] → [x])
- Evaluate for incremental commit (see below)
Estimation Quality Check — Before marking an estimation task done:
| Check |
What to verify |
| Convergence |
Did the optimizer converge? Check exit flag, gradient norm, iteration count. Multiple starting values yield consistent results? |
| Sensible estimates |
Are parameter signs correct? Magnitudes economically reasonable? No values at boundary constraints? |
| Standard errors |
Computed with appropriate method (robust, clustered, bootstrap)? Positive definite Hessian? No suspiciously small or large SEs? |
| Diagnostics |
First-stage F > 10 (if IV)? Overidentification test (if overidentified)? Hausman or specification tests where relevant? |
| Numerical stability |
Log-likelihood (not likelihood) used? Condition number of key matrices acceptable? No NaN/Inf in outputs? |
| Reproducibility |
Random seeds set? Results identical across runs? Dependencies pinned? |
When to skip: Pure data cleaning, documentation updates, or pipeline configuration changes that don't involve estimation. If the task is purely additive (new utility function, data loading), the check takes 10 seconds and the answer is "no estimation, skip."
When this matters most: Any change that touches estimation routines, moment conditions, likelihood functions, or simulation code.
IMPORTANT: Always update the original plan document by checking off completed items. Use the Edit tool to change - [ ] to - [x] for each task you finish.
Incremental Commits
After completing each task, evaluate whether to create an incremental commit:
| Commit when... |
Don't commit when... |
| Estimation step complete with verified convergence |
Partial estimation code that won't run |
| Data pipeline stage verified |
Incomplete data transformation |
| Tests pass + meaningful progress |
Tests failing |
| About to switch contexts (data work → estimation) |
Purely scaffolding with no behavior |
| Robustness check complete |
Would need a "WIP" commit message |
Heuristic: "Can I write a commit message that describes a complete, verifiable change? If yes, commit."
Commit workflow:
# 1. Verify tests pass (use project's test command)
# Examples: pytest, Rscript tests/run_tests.R, etc.
# 2. Stage only files related to this logical unit
git add <files related to this logical unit>
# 3. Commit with conventional message
git commit -m "feat(estimation): description of this unit"
Note: Incremental commits use clean conventional messages. The final Phase 4 commit/PR includes full attribution.
Follow Existing Patterns
- The plan should reference similar code — read those files first
- Match naming conventions exactly (variable names, function signatures, file organization)
- Reuse existing estimation utilities where possible
- Follow project coding standards (see CLAUDE.md)
- When in doubt, grep for similar implementations
Test Continuously
- Run relevant tests after each significant change
- Don't wait until the end to test
- Fix failures immediately
- Add new tests for new functionality
- For estimation code: verify convergence AND test with known-parameter DGP if feasible
Track Progress
- Keep TodoWrite updated as you complete tasks
- Note any convergence issues or unexpected results
- Create new tasks if scope expands (e.g., new robustness check needed)
- Log estimation results at milestones (point estimates, standard errors, diagnostics)
Phase 3: Quality Check
Run Core Quality Checks
Always run before submitting:
# Run full test suite
# Python: pytest
# R: Rscript tests/run_tests.R or testthat::test_dir("tests")
# Run linting (per CLAUDE.md)
# Python: ruff check . or flake8
# R: lintr::lint_dir()
Estimation-Specific Validation
For any work involving estimation:
Consider Reviewer Agents (Optional)
Use for complex or risky changes. Read agents from compound-science.local.md frontmatter (review_agents). If no settings file, create one following the template in workflows-review/references/project-config.md.
Run configured agents in parallel with Task tool. Address critical issues before proceeding.
Default agents for estimation work:
econometric-reviewer — identification and inference review
numerical-auditor — numerical stability and convergence
identification-critic — identification argument completeness
Final Validation
- All TodoWrite tasks marked completed
- All tests pass
- Linting passes
- Estimation converges with sensible results
- Standard errors and diagnostics computed
- Code follows existing patterns
- Random seeds set and documented
- No console errors or warnings
Phase 4: Ship It
Create Commit
git add <relevant files>
git status # Review what's being committed
git diff --staged # Check the changes
git commit -m "$(cat <<'EOF'
feat(estimation): description of what and why
Brief explanation if needed.
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
Create Pull Request
git push -u origin <branch-name>
gh pr create --title "feat(estimation): [Description]" --body "$(cat <<'EOF'
## Summary
- What was implemented
- Methodological approach and key decisions
- Estimation results summary (if applicable)
## Estimation Quality
- Convergence: [status]
- Diagnostics: [first-stage F, overid test, specification tests]
- Robustness: [alternative specifications checked]
## Testing
- Tests added/modified
- Estimation verified with [approach]
## Reproducibility
- Random seeds: [set/documented]
- Pipeline: [runs end-to-end / specific steps]
- Dependencies: [pinned in requirements.txt/renv.lock]
## Research Impact
- Identification: [any changes to assumptions]
- Estimation: [computational cost, convergence]
- Robustness: [new checks added/updated]
- Replication: [package changes]
EOF
)"
Update Plan Status
If the input document has YAML frontmatter with a status field, update it:
status: active → status: completed
Summary
- Display what was completed
- Link to PR
- Summarize estimation results if applicable
- Note any follow-up work needed (additional robustness checks, referee suggestions)
Phase 5: Handoff
Pipeline mode (when invoked from /lfg or /slfg):
- Skip the interactive menu
- Auto-invoke
/workflows:review on the files that were changed
Standalone mode (when invoked directly by the user):
- After the Phase 4 summary, present options:
- Proceed to review (Recommended) — Immediately run
/workflows:review in this session
- Continue working — Return to Phase 2 task loop for additional implementation
- End session — Stop here; changes are committed
Swarm Mode (Optional)
For complex plans with multiple independent workstreams, enable swarm mode for parallel execution.
When to Use Swarm Mode
| Use Swarm Mode when... |
Use Standard Mode when... |
| Plan has independent estimation specifications |
Single estimation pipeline |
| Multiple robustness checks can run in parallel |
Sequential estimation steps |
| Monte Carlo with independent DGP variants |
Simple parameter change |
| Large replication package with separable components |
Small feature or bug fix |
Enabling Swarm Mode
To trigger swarm execution, say:
"Make a Task list and launch an army of agent swarm subagents to build the plan"
See references/orchestration-patterns.md in the slfg skill for detailed swarm patterns and best practices.
Key Principles
Start Fast, Execute Methodically
- Read the plan, set up environment, then execute
- Don't wait for perfect understanding — resolve ambiguity by picking conservative defaults
- The goal is to finish the implementation with verified estimation quality
The Plan is Your Guide
- Plans reference existing code, methods papers, and brainstorm decisions — load those references
- Follow the plan's phase structure and acceptance criteria
- Don't reinvent — match existing patterns in the codebase
Test Estimation Quality Continuously
- Verify convergence after each estimation step, not at the end
- Check diagnostics as you go — fix issues immediately
- Continuous quality checking prevents late-stage surprises
Quality is Built In
- Follow existing patterns
- Write tests for new code
- Verify estimation convergence and diagnostics
- Run linting before pushing
- Use reviewer agents for complex or risky estimation changes only
Ship Complete, Reproducible Research
- Mark all tasks completed before moving on
- Don't leave estimation code 80% done — partial results are worse than no results
- A finished, reproducible implementation ships; a perfect but incomplete one doesn't
- Seeds set, dependencies pinned, pipeline runs end-to-end
Quality Checklist
Before creating PR, verify:
Common Pitfalls to Avoid
- Skipping convergence checks — verify estimation converged, don't assume it did
- Wrong standard errors — check clustering level, robustness to heteroskedasticity, bootstrap if needed
- Missing seeds — set random seeds BEFORE any stochastic computation
- Ignoring plan references — the plan has code paths and method citations for a reason
- Testing at the end — test continuously or discover convergence failures too late
- 80% done syndrome — finish the estimation, run diagnostics, compute standard errors
- Hardcoded paths — use relative paths, check data directory structure
Routes To
/workflows:review — review the implementation
/workflows:compound — document solutions discovered during implementation
1---2name: workflows-work3description: Execute research implementation plans efficiently while maintaining estimation quality and finishing features4---56# Work Plan Execution Command78**Pipeline mode:** This command operates fully autonomously. All decisions are made automatically.910Execute a research implementation plan systematically. The focus is on **shipping complete, reproducible research code** by understanding requirements quickly, following existing patterns, and maintaining estimation quality throughout.1112## Input Document1314<input_document> #$ARGUMENTS </input_document>1516**If no input document is provided:** Look for the most recent plan in `docs/plans/` and use it. If no plans exist, state "No plan found. Run `/workflows:plan` first." and stop.1718## Execution Workflow1920### Phase 1: Quick Start21221. **Read Plan**2324 - Read the work document completely25 - Review any references, brainstorm origins, or linked code paths26 - Identify the estimation method, identification strategy, and key deliverables27 - Note any open questions from planning — resolve by picking the conservative default and documenting the choice28 - **Proceed immediately** — do not wait for approval29302. **Setup Environment**3132 First, detect the project environment:3334 ```bash35 # Detect estimation language36 if [ -f "requirements.txt" ] || [ -f "setup.py" ] || [ -f "pyproject.toml" ]; then37 echo "LANG=python"38 elif [ -f "DESCRIPTION" ] || [ -f "renv.lock" ] || [ -f ".Rprofile" ]; then39 echo "LANG=R"40 elif [ -f "Project.toml" ]; then41 echo "LANG=julia"42 elif ls *.do >/dev/null 2>&1; then43 echo "LANG=stata"44 fi4546 # Detect pipeline tools47 ls Makefile Snakefile dvc.yaml 2>/dev/null48 ```4950 Then check the current branch:5152 ```bash53 current_branch=$(git branch --show-current)54 default_branch=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')55 if [ -z "$default_branch" ]; then56 default_branch=$(git rev-parse --verify origin/main >/dev/null 2>&1 && echo "main" || echo "master")57 fi58 ```5960 **If already on a feature branch** (not the default branch):61 - Continue working on it. Proceed to step 3.6263 **If on the default branch:**6465 **Option A: Create a new branch (default)**66 ```bash67 git pull origin $default_branch68 git checkout -b <branch-name-from-plan>69 ```70 Use a meaningful name derived from the plan (e.g., `feat/callaway-santanna-did`, `fix/blp-convergence`).7172 **Option B: Use a worktree (for parallel estimation runs)**73 See `references/worktree-patterns.md` if the plan involves parallel workstreams or the user has multiple active branches.7475 Automatically choose Option A unless the plan explicitly mentions parallel workstreams.76773. **Activate Research Environment**7879 Read `compound-science.local.md` for environment configuration. Then activate:8081 **Python:**82 ```bash83 # Activate virtual environment84 if [ -d ".venv" ]; then source .venv/bin/activate85 elif [ -d "venv" ]; then source venv/bin/activate86 elif command -v conda &>/dev/null; then conda activate $(basename $PWD)87 fi88 # Verify key packages89 python -c "import numpy, scipy, pandas; print('Core packages OK')"90 ```9192 **R:**93 ```bash94 # Check renv status95 Rscript -e "if (file.exists('renv.lock')) renv::status()"96 ```9798 **Verify data paths:**99 ```bash100 # Check that referenced data files exist101 ls data/ 2>/dev/null | head -5102 ```1031044. **Create Task List**105 - Use TodoWrite to break plan into actionable tasks106 - Include dependencies between tasks107 - Prioritize based on the plan's phase structure108 - Include estimation-specific quality check tasks:109 - Convergence verification after each estimation step110 - Standard error computation and diagnostic tests111 - Robustness checks specified in the plan112 - Keep tasks specific and completable113114### Phase 2: Execute1151161. **Task Execution Loop**117118 For each task in priority order:119120 ```121 while (tasks remain):122 - Mark task as in_progress in TodoWrite123 - Read any referenced files from the plan124 - Look for similar patterns in codebase125 - Implement following existing conventions126 - Write tests for new functionality127 - Run Estimation Quality Check (see below)128 - Run tests after changes129 - Mark task as completed in TodoWrite130 - Mark off the corresponding checkbox in the plan file ([ ] → [x])131 - Evaluate for incremental commit (see below)132 ```133134 **Estimation Quality Check** — Before marking an estimation task done:135136 | Check | What to verify |137 |-------|---------------|138 | **Convergence** | Did the optimizer converge? Check exit flag, gradient norm, iteration count. Multiple starting values yield consistent results? |139 | **Sensible estimates** | Are parameter signs correct? Magnitudes economically reasonable? No values at boundary constraints? |140 | **Standard errors** | Computed with appropriate method (robust, clustered, bootstrap)? Positive definite Hessian? No suspiciously small or large SEs? |141 | **Diagnostics** | First-stage F > 10 (if IV)? Overidentification test (if overidentified)? Hausman or specification tests where relevant? |142 | **Numerical stability** | Log-likelihood (not likelihood) used? Condition number of key matrices acceptable? No NaN/Inf in outputs? |143 | **Reproducibility** | Random seeds set? Results identical across runs? Dependencies pinned? |144145 **When to skip:** Pure data cleaning, documentation updates, or pipeline configuration changes that don't involve estimation. If the task is purely additive (new utility function, data loading), the check takes 10 seconds and the answer is "no estimation, skip."146147 **When this matters most:** Any change that touches estimation routines, moment conditions, likelihood functions, or simulation code.148149 **IMPORTANT**: Always update the original plan document by checking off completed items. Use the Edit tool to change `- [ ]` to `- [x]` for each task you finish.1501512. **Incremental Commits**152153 After completing each task, evaluate whether to create an incremental commit:154155 | Commit when... | Don't commit when... |156 |----------------|---------------------|157 | Estimation step complete with verified convergence | Partial estimation code that won't run |158 | Data pipeline stage verified | Incomplete data transformation |159 | Tests pass + meaningful progress | Tests failing |160 | About to switch contexts (data work → estimation) | Purely scaffolding with no behavior |161 | Robustness check complete | Would need a "WIP" commit message |162163 **Heuristic:** "Can I write a commit message that describes a complete, verifiable change? If yes, commit."164165 **Commit workflow:**166 ```bash167 # 1. Verify tests pass (use project's test command)168 # Examples: pytest, Rscript tests/run_tests.R, etc.169170 # 2. Stage only files related to this logical unit171 git add <files related to this logical unit>172173 # 3. Commit with conventional message174 git commit -m "feat(estimation): description of this unit"175 ```176177 **Note:** Incremental commits use clean conventional messages. The final Phase 4 commit/PR includes full attribution.1781793. **Follow Existing Patterns**180181 - The plan should reference similar code — read those files first182 - Match naming conventions exactly (variable names, function signatures, file organization)183 - Reuse existing estimation utilities where possible184 - Follow project coding standards (see CLAUDE.md)185 - When in doubt, grep for similar implementations1861874. **Test Continuously**188189 - Run relevant tests after each significant change190 - Don't wait until the end to test191 - Fix failures immediately192 - Add new tests for new functionality193 - For estimation code: verify convergence AND test with known-parameter DGP if feasible1941955. **Track Progress**196 - Keep TodoWrite updated as you complete tasks197 - Note any convergence issues or unexpected results198 - Create new tasks if scope expands (e.g., new robustness check needed)199 - Log estimation results at milestones (point estimates, standard errors, diagnostics)200201### Phase 3: Quality Check2022032041. **Run Core Quality Checks**205206 Always run before submitting:207208 ```bash209 # Run full test suite210 # Python: pytest211 # R: Rscript tests/run_tests.R or testthat::test_dir("tests")212213 # Run linting (per CLAUDE.md)214 # Python: ruff check . or flake8215 # R: lintr::lint_dir()216 ```2172182. **Estimation-Specific Validation**219220 For any work involving estimation:221222 - [ ] Estimation converges with sensible parameters (check all specifications)223 - [ ] Standard errors computed correctly (appropriate clustering/robustness)224 - [ ] Diagnostic tests run and results documented225 - [ ] Multiple starting values checked (if nonlinear estimation)226 - [ ] Results reproducible with fixed random seed227 - [ ] No numerical warnings (NaN, overflow, singular matrices)2282293. **Consider Reviewer Agents** (Optional)230231 Use for complex or risky changes. Read agents from `compound-science.local.md` frontmatter (`review_agents`). If no settings file, create one following the template in `workflows-review/references/project-config.md`.232233 Run configured agents in parallel with Task tool. Address critical issues before proceeding.234235 Default agents for estimation work:236 - `econometric-reviewer` — identification and inference review237 - `numerical-auditor` — numerical stability and convergence238 - `identification-critic` — identification argument completeness2392404. **Final Validation**241 - All TodoWrite tasks marked completed242 - All tests pass243 - Linting passes244 - Estimation converges with sensible results245 - Standard errors and diagnostics computed246 - Code follows existing patterns247 - Random seeds set and documented248 - No console errors or warnings249250### Phase 4: Ship It2512521. **Create Commit**253254 ```bash255 git add <relevant files>256 git status # Review what's being committed257 git diff --staged # Check the changes258259 git commit -m "$(cat <<'EOF'260 feat(estimation): description of what and why261262 Brief explanation if needed.263264 Co-Authored-By: Claude <noreply@anthropic.com>265 EOF266 )"267 ```2682692. **Create Pull Request**270271 ```bash272 git push -u origin <branch-name>273274 gh pr create --title "feat(estimation): [Description]" --body "$(cat <<'EOF'275 ## Summary276 - What was implemented277 - Methodological approach and key decisions278 - Estimation results summary (if applicable)279280 ## Estimation Quality281 - Convergence: [status]282 - Diagnostics: [first-stage F, overid test, specification tests]283 - Robustness: [alternative specifications checked]284285 ## Testing286 - Tests added/modified287 - Estimation verified with [approach]288289 ## Reproducibility290 - Random seeds: [set/documented]291 - Pipeline: [runs end-to-end / specific steps]292 - Dependencies: [pinned in requirements.txt/renv.lock]293294 ## Research Impact295 - Identification: [any changes to assumptions]296 - Estimation: [computational cost, convergence]297 - Robustness: [new checks added/updated]298 - Replication: [package changes]299 EOF300 )"301 ```3023033. **Update Plan Status**304305 If the input document has YAML frontmatter with a `status` field, update it:306 ```307 status: active → status: completed308 ```3093104. **Summary**311 - Display what was completed312 - Link to PR313 - Summarize estimation results if applicable314 - Note any follow-up work needed (additional robustness checks, referee suggestions)315316### Phase 5: Handoff317318**Pipeline mode** (when invoked from `/lfg` or `/slfg`):319- Skip the interactive menu320- Auto-invoke `/workflows:review` on the files that were changed321322**Standalone mode** (when invoked directly by the user):323- After the Phase 4 summary, present options:324 1. **Proceed to review** (Recommended) — Immediately run `/workflows:review` in this session325 2. **Continue working** — Return to Phase 2 task loop for additional implementation326 3. **End session** — Stop here; changes are committed327328---329330## Swarm Mode (Optional)331332For complex plans with multiple independent workstreams, enable swarm mode for parallel execution.333334### When to Use Swarm Mode335336| Use Swarm Mode when... | Use Standard Mode when... |337|------------------------|---------------------------|338| Plan has independent estimation specifications | Single estimation pipeline |339| Multiple robustness checks can run in parallel | Sequential estimation steps |340| Monte Carlo with independent DGP variants | Simple parameter change |341| Large replication package with separable components | Small feature or bug fix |342343### Enabling Swarm Mode344345To trigger swarm execution, say:346347> "Make a Task list and launch an army of agent swarm subagents to build the plan"348349See `references/orchestration-patterns.md` in the `slfg` skill for detailed swarm patterns and best practices.350351---352353## Key Principles354355### Start Fast, Execute Methodically356357- Read the plan, set up environment, then execute358- Don't wait for perfect understanding — resolve ambiguity by picking conservative defaults359- The goal is to **finish the implementation with verified estimation quality**360361### The Plan is Your Guide362363- Plans reference existing code, methods papers, and brainstorm decisions — load those references364- Follow the plan's phase structure and acceptance criteria365- Don't reinvent — match existing patterns in the codebase366367### Test Estimation Quality Continuously368369- Verify convergence after each estimation step, not at the end370- Check diagnostics as you go — fix issues immediately371- Continuous quality checking prevents late-stage surprises372373### Quality is Built In374375- Follow existing patterns376- Write tests for new code377- Verify estimation convergence and diagnostics378- Run linting before pushing379- Use reviewer agents for complex or risky estimation changes only380381### Ship Complete, Reproducible Research382383- Mark all tasks completed before moving on384- Don't leave estimation code 80% done — partial results are worse than no results385- A finished, reproducible implementation ships; a perfect but incomplete one doesn't386- Seeds set, dependencies pinned, pipeline runs end-to-end387388## Quality Checklist389390Before creating PR, verify:391392- [ ] All TodoWrite tasks marked completed393- [ ] Tests pass394- [ ] Linting passes395- [ ] Estimation converges with sensible parameters396- [ ] Standard errors computed correctly397- [ ] Diagnostic tests run and documented398- [ ] Random seeds set and results reproducible399- [ ] Code follows existing patterns400- [ ] Commit messages follow conventional format401- [ ] PR description includes estimation quality section402- [ ] PR description includes reproducibility section403- [ ] PR description includes research impact section404- [ ] Plan file updated with completed checkboxes405406## Common Pitfalls to Avoid407408- **Skipping convergence checks** — verify estimation converged, don't assume it did409- **Wrong standard errors** — check clustering level, robustness to heteroskedasticity, bootstrap if needed410- **Missing seeds** — set random seeds BEFORE any stochastic computation411- **Ignoring plan references** — the plan has code paths and method citations for a reason412- **Testing at the end** — test continuously or discover convergence failures too late413- **80% done syndrome** — finish the estimation, run diagnostics, compute standard errors414- **Hardcoded paths** — use relative paths, check data directory structure415416## Routes To417418- `/workflows:review` — review the implementation419- `/workflows:compound` — document solutions discovered during implementation