6 Commits
Author SHA1 Message Date
Artur Moreira fbf5b0c557 docs: expand README doc index with full docs/ coverage (BIT-1952)
- Add Aggregator Architecture, Operations, Writer Pipeline, Writer Tools, Editorial Brief
- Add i18n doc
- Group Documentation section into Core / Aggregator & Writer Pipeline / Internationalisation

Paperclip-Issue: BIT-1952
Paperclip-Agent: patricia-santos
2026-04-10 00:01:54 +00:00
Artur Moreira 68f85d7f04 docs(runbooks): add runbook index (BIT-1951)
Add docs/runbooks/README.md linking BIT-746 escalation, monitoring,
deployment, smoke script, and paperclip company runbook index. Surface
the index from README and docs/monitoring.md.

Paperclip-Agent: David Santos (urlKey david-santos; id 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376)
Paperclip-Issue: BIT-1951
Paperclip-Run: ac17e30b-ad9a-46fd-bdb6-ffdfa0d99242
Made-with: Cursor
2026-04-09 22:29:32 +00:00
Artur Moreira f15287e589 feat(monitoring): add service health monitoring with alerts (BIT-744)
Automated health monitoring for the news-platform services on CT222,
motivated by the bridge crash-loop incident (BIT-743) where 3,608
restarts went undetected until manual discovery.

Health endpoints:
- Bridge /health enhanced with optional ?checks=true for deep
  dependency probes (WordPress, Redis) and uptime reporting
- Frontend /health.json added as Astro API route

Monitoring infrastructure:
- healthcheck.sh: periodic probe script with HTTP checks, systemd
  restart-count detection, cooldown logic, and Ntfy push alerting
- news-healthcheck.timer: runs every 3 min (detection < 5 min)
- [email protected]: OnFailure template for instant crash alerts
- All three service units updated with OnFailure= directive
- deploy.sh updated to install monitoring units and env file

Paperclip-Agent: peter-spark
Paperclip-Issue: BIT-744
Paperclip-Run: 405ab587-8b8b-4963-8867-0feb95a994e3
2026-04-02 23:37:06 +00:00
Artur Moreira f18e1f9fed feat(writer-pipeline): aggregator-first andebol.net ingest, metrics, optional WP drafts
Add writer-pipeline package: RSS ingest to local store, shortlist, per-cycle
token estimates (aggregator read context vs full HTML), optional Fastify
aggregator API, optional WordPress draft creation via Application Passwords.
Document runbook in docs/WRITER_PIPELINE_ANDEBOL.md; extend README structure.

Refs: BIT-713
Made-with: Cursor
2026-04-02 08:40:12 +00:00
David SantosandPaperclip 7b7830263b docs: architecture document and project scaffold for news-platform
- docs/architecture.md: full architecture with Astro 5 SSR vs Next.js/Nuxt
  justification, component diagram, data flow, multi-domain routing, SEO
  strategy, performance targets, and caching strategy
- docs/frontend.md, bridge.md, domains.md, seo.md, deployment.md: stubs
  with implementation detail for each layer
- config/domains/newsproject.bitreport.pt.json: first domain config
- project skeleton: frontend/, bridge/, wordpress/, config/, deploy/

Covers BIT-348 deliverables. Push pending Gitea repo creation.

Co-Authored-By: Paperclip <[email protected]>
2026-03-23 14:11:39 +00:00
Tiago NevesandPaperclip f7274c9c4e chore: scaffold initial project structure
Creates the base directory layout for the news-platform:
frontend/, bridge/, wordpress/, config/domains/, docs/, deploy/.

Ref: BIT-346 — Create Gitea repo + scaffold project structure

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 14:06:29 +00:00