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 ✓
name: ghbot-production-hardening description: Production close-out workflow for ghbot: spec, audit, fix P0/P1 guards, gates, webhook HTTP smoke, independent review, docs. metadata: last_verified: "2026-08-23" repo_baseline: "v1.1.0-hardening"
ghbot production hardening skill
When to use
Closing a production iteration of this GitHub review bot. Not for adding unrelated SaaS features.
Do not use
- Changing AUTO_MERGE default
- Reusing old review cache as a new-head approval
- Running paid LLM E2E without budget
- Pushing to remotes without write permission
Inputs
Current repo, CLAUDE.md red lines, .specify/memory/constitution.md.
Steps
- Read constitution, CLAUDE.md, workflow_status.md, last verification record.
- Rebuild facts: git status, typecheck, test.
- Audit contract/security/error/docs before coding.
- Fix P0 then P1 with tests. Skip 1700-line processor extraction unless an event-loop harness exists.
- Gates: typecheck, lint, format:check, test, build, npm audit --omit=dev.
- Webhook HTTP smoke on a spare port: /healthz, HMAC 202, bad sig 401, duplicate, /metrics.
- Independent critic. Repair only confirmed Blocking/Required.
- Sync README/.env.example/workflows. Write HTML report under docs/reports/.
Stop
Missing credentials, origin 403, paid API, production deploy, no progress after two review loops.
Verify
Never claim LLM review E2E or origin push without command evidence.