Pin merge SHA, lock conflict repair, bound subprocess/proxy output, fail-fast incomplete R2/webhook config, redact validation/stderr secrets, and document that webhook 202 is best-effort after ACK. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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