Codebase Todo Scan

Task Details
← Task Board

Task Description

# TASK: Scan Codebase for TODOs, FIXMEs, and Known Bugs

**Priority:** LOW
**Agent:** engineer
**Filed:** 2026-02-16
**Filed by:** Doug (via Claude Code session)

---

## Goal

Scan the entire Sandbox codebase for TODO, FIXME, HACK, XXX, and BUG comments. Categorize them by severity and area, and produce a prioritized bug/task list that Doug can review.

## Steps

### 1. Scan for markers
```bash
cd /data/Sandbox
grep -rn "TODO\|FIXME\|HACK\|XXX\|BUG" --include="*.py" --include="*.js" --include="*.php" --include="*.html" \
  --exclude-dir=node_modules --exclude-dir=venv --exclude-dir=.git --exclude-dir=__pycache__ \
  | grep -v "vendor/" | grep -v "lib/" | grep -v "site-packages/"
```

### 2. Categorize results
Group by project area:
- **ISOBUS/ISOXML** — isoxml_processor.py, isobus tools
- **Data Pipeline** — file_router.py, processors, api_sync
- **Spray Platform** — farmiq.ai/spray/
- **Field Audit** — FieldNamingAudit/, farmiq.ai/field-audit/
- **AgentPi** — dashboard, auto_claude, agents
- **CNH/Yield** — yield_cleaner, farm_summary_report
- **Website** — farmiq.ai general
- **Other** — everything else

### 3. Assess severity
For each TODO/FIXME:
- **Critical:** Causes data loss, security issue, or incorrect results
- **High:** Missing feature that blocks a workflow
- **Medium:** Improvement that would help but isn't blocking
- **Low:** Nice-to-have, cleanup, cosmetic

### 4. Generate report
Write to `/data/Sandbox/AgentPi/research/codebase_todo_report.md`:

```markdown
# Codebase TODO/FIXME Scan — 2026-02-16

## Summary
- X total markers found
- Y in our code (vs vendor/library code)
- Critical: N, High: N, Medium: N, Low: N

## Critical Issues
...

## By Project Area
### ISOXML Processing
- [ ] TODO at isoxml_processor.py:1234 — description
...
```

### 5. Post summary to dashboard
```bash
curl -X POST http://localhost:8080/api/tasks -H "Content-Type: application/json" \
  -d '{"title":"Codebase TODO Scan Complete", "description":"Found X markers: N critical, N high. Report at /research/codebase_todo_report.md", "category":"report", "priority":"low"}'
```

## DO NOT
- Do NOT fix any of the TODOs — this is a scan/report task only
- Do NOT count TODOs in vendor code (Flask, urllib3, click, jinja2, etc.)
- Do NOT modify any files — read only

Job Queue (0)

No job queue entries for this task yet