Add 4 new operational runbooks to complement the existing ops index:
1. DEPLOY_AND_ROLLBACK.md — Complete deployment flow, pre-deployment checks,
post-deployment validation, and rollback procedures for rapid recovery
2. INCIDENT_RESPONSE.md — Structured playbooks for common failures:
- 502 / Service Down
- High memory usage / OOM
- Stuck / hanging article generation
- WordPress connectivity failures
- RSS feed failures
Each playbook includes: detection, diagnosis, resolution, escalation steps
3. ESCALATION.md — When and how to escalate issues, team contacts, SLAs,
communication channels, on-call procedures, incident post-mortem template
4. TROUBLESHOOTING.md — Advanced diagnostics for:
- Log analysis and debugging
- Performance diagnostics (CPU, memory, response times)
- Configuration & environment issues
- Database & persistence issues
- Network & connectivity issues
- Development & component testing
Updated docs/runbooks/README.md with index linking to new guides and quick
start navigation. Updated root README.md with "Operations & Troubleshooting"
section pointing to comprehensive runbooks and providing operational cheat sheet.
All runbooks are production-ready, tested against current service architecture,
and linked with cross-references for operational continuity.
Co-Authored-By: Paperclip <[email protected]>
- Rename 'Lint' step to 'ESLint' for clarity
- Add npm audit step that fails on moderate+ vulnerabilities
- Add verification step for c8 HTML coverage report generation
- Ensures all code quality gates are enforced in CI
BIT-2981
Co-Authored-By: Paperclip <[email protected]>
- Add comprehensive test suite for src/writer/ai.js (helper functions: openaiMaxAttempts, openaiRetryBaseMs, shouldRetryOpenAIRequest)
- Add comprehensive test suite for src/http/status-server.js (escapeHtml, getListenFeatureFlags, applyHttpServerTimeouts)
- Add basic test suite for src/index.js module structure and dependencies
- Enhance src/crawler/rss.js test suite with readBoundedInt and mapFeedItems helper function tests
- Export internal helper functions for testability in ai.js, status-server.js, and rss.js
- All 174 tests passing; current coverage at 43.77%
Progress toward target:
- src/writer/ai.js: 40.47% coverage (target: 70%)
- src/http/status-server.js: 34.52% coverage (target: 70%)
- src/crawler/rss.js: 53.14% coverage (target: 70%)
- Overall: 43.77% (target: 80%)
Co-Authored-By: Paperclip <[email protected]>
- Add config/validator.js with validation for sources.json, site configs, and social.json
- Validate required fields, types, URLs, and enum values for all configs
- Add comprehensive test suite with 30+ test cases for validator
- Integrate validation at CLI startup to catch config issues early
- Log validation errors and warnings to help users fix configuration problems
Validations include:
- RSS sources: name, url (valid URL), category, lang
- Site configs: name, wp_url, user, password, category_default, status_default, lang
- Social config: x.queries array, max_results_per_query integer
- Warnings for optional/empty configurations
Co-Authored-By: Claude Haiku 4.5 <[email protected]>
Auto-resolved conflicts: merged main into task/BIT-2983-test-coverage using -X theirs strategy (base branch version preferred in conflicts).
Please review the merge commit to verify correctness.
BitReport PR Conflict Resolver
**Auto-resolved conflicts**: merged `main` into `task/BIT-2983-test-coverage` using `-X theirs` strategy (base branch version preferred in conflicts).
Please review the merge commit to verify correctness.
_BitReport PR Conflict Resolver_
Auto-resolved conflicts: merged main into task/BIT-2983-test-coverage using -X theirs strategy (base branch version preferred in conflicts).
Please review the merge commit to verify correctness.
BitReport PR Conflict Resolver
**Auto-resolved conflicts**: merged `main` into `task/BIT-2983-test-coverage` using `-X theirs` strategy (base branch version preferred in conflicts).
Please review the merge commit to verify correctness.
_BitReport PR Conflict Resolver_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Auto-resolved conflicts: merged
mainintotask/BIT-2983-test-coverageusing-X theirsstrategy (base branch version preferred in conflicts).Please review the merge commit to verify correctness.
BitReport PR Conflict Resolver
Auto-resolved conflicts: merged
mainintotask/BIT-2983-test-coverageusing-X theirsstrategy (base branch version preferred in conflicts).Please review the merge commit to verify correctness.
BitReport PR Conflict Resolver
CI green; export mapFeedItems/readBoundedInt for rss tests.