error-logging · git:20260601.da7723a · 2026-06-01 · sha256 2d297640b59645f0

error-logging git:20260601.da7723aC

Immutable. This exact content is served forever at /api/v1/blob/2d297640b59645f0.

---
graph:
  domains: [domain:software-engineering]
  skillAreas: [skill-area:agentic-loops, skill-area:orchestration-loop]
  workflows: [workflow:feature-development]
  topics: [topic:developer-experience]
  roles: [role:tech-lead, role:backend-engineer]
---

# Error Logging

Log all errors with full context, detect patterns, and suggest approach mutations to avoid repeated failures.

## Agent
Error Analyst - `pwf-error-analyst`

## Workflow
1. Log ALL errors immediately to progress.md (Rule 3)
2. Include error context, stack traces, and reproduction steps
3. Tag errors with severity: critical, warning, informational
4. Analyze error patterns across phases and iterations
5. Suggest approach mutations for known failure patterns (Rule 4)
6. Track error resolution status for verification

## Inputs
- `projectPath` - Root path for planning files
- `phaseName` - Phase where error occurred
- `errors` - Array of error objects
- `errorHistory` - Previous errors for pattern detection

## Outputs
- Updated progress.md error section
- Approach mutations with alternative strategies
- Error resolution report for verification

## Process Files
- `planning-orchestrator.js` - Error logging during phases
- `planning-execution.js` - Immediate error logging, pattern analysis
- `planning-verification.js` - Error resolution checking