M0: Test coverage expansion (151 → 321 tests, 61% → 66% lines) - normalizeKnowledge CRLF/LF normalization fix - gooseReviewer: 11 tests, 97.35% coverage - r2 storage: 22 tests, 100% coverage - triage processor: 11 tests, exported buildTriagePrompt/labelName - webhook processor: 35 tests, 72.39% coverage - conflict resolver: 12 tests - review processor: 7 tests M1: Reliability hardening - Smart retry with jitter, maxTotalTimeoutMs, custom retryable predicate - MergeGuard: in-memory merge dedup tracker (100% coverage) - failureMessages: 7-category failure classifier (100% coverage) M2: Observability - MetricsCollector: Actions-run metrics with snapshot/markdown/reset - 11 tests, 100% coverage New files: 12 test files, 3 source modules All gates: typecheck ✓ lint ✓ format ✓ 321/321 tests ✓ build ✓
Implementation Tasks: 001-production-hardening
Phase 1: Spec and audit
- 1.1 Constitution + spec
- 1.2 Parallel contract/security/error/docs audit
Phase 2: Production guards
- 2.1 Merge SHA recheck + pulls.merge sha
- 2.2 Conflict lock + git command timeout + dirty worktree reset
- 2.3 Webhook body timeout/size and request catch
- 2.4 API proxy abort/timeout/body cap
- 2.5 Goose process output cap and cleanup timeouts
- 2.6 Config cross-field validation and GHBOT_RUNTIME_DIR contract
- 2.7 Issue comment handler isolation with AggregateError
- 2.8 Approval permission lookup no longer swallows retryable errors
- 2.9 Event logger child bindings
Phase 3: Verify and handoff
- 3.1 Local gates (typecheck/lint/format/test)
- 3.2 Webhook HTTP E2E
- 3.3 Independent review
- 3.4 HTML change report + skill + docs