Commit Graph
134 Commits
Author SHA1 Message Date
José Alves addd607210 feat(writer-pipeline): smart featured-image backfill for andebol.net (BIT-25556)
Tests / writer-pipeline tests (push) Successful in 31s
Tests / bridge tests (push) Successful in 33s
Tests / frontend lib tests (push) Successful in 38s
Tests / bridge tests (pull_request) Failing after 12s
Tests / writer-pipeline tests (pull_request) Successful in 36s
Tests / frontend lib tests (pull_request) Successful in 30s
Add backfill-featured-smart.ts: extracts source URLs from post content,
queries FPA WP API for matching featured images, scrapes og:image from
IHF/EHF/Handball-Planet sources, falls back to FPA title search for
Portuguese articles, and finally tries WebDAV archive. More robust than
the slug-only backfill-featured-from-fpa.ts.

All 147 published posts now have featured_media (backfill ran in prior
heartbeat). New npm script backfill:featured-smart for future re-runs.

Paperclip-Issue: BIT-25556
Paperclip-Run: f182fddd-6d43-437a-9d2f-644fd0a76330
2026-06-18 10:26:06 +00:00
José Alves 3f7b4eff71 feat(writer-pipeline): PT imprensa ingest for andebol.net (BIT-25559)
Tests / bridge tests (push) Failing after 7s
Tests / writer-pipeline tests (push) Successful in 31s
Tests / frontend lib tests (push) Successful in 31s
Tests / writer-pipeline tests (pull_request) Successful in 26s
Tests / bridge tests (pull_request) Successful in 27s
Tests / frontend lib tests (pull_request) Successful in 31s
Add html_listing ingest for Record and A Bola andebol sections and
revista_imprensa PDF index parsing from FPA media. Document AGGREGATOR_URL
in bridge.env.example and AGGREGATOR_OPERATIONS.md.

Paperclip-Issue: BIT-25559
Paperclip-Run: 0ab092e1-68ab-4e5a-90bd-4262e9c3d9fc
2026-06-18 10:01:28 +00:00
spark 129c43336b Merge pull request 'fix(writer-pipeline): stop eurohandball sitemap timeout error loop (BIT-25342)' (#22) from fix/BIT-25342-eurohandball-sitemap-timeout into main
Tests / bridge tests (push) Successful in 1m45s
Tests / frontend lib tests (push) Successful in 1m44s
Tests / writer-pipeline tests (push) Successful in 1m49s
2026-06-16 18:09:49 +01:00
José AlvesandCursor 4238ee0aa3 fix(writer-pipeline): stop eurohandball sitemap timeout error loop (BIT-25342)
Tests / writer-pipeline tests (push) Successful in 1m24s
Tests / bridge tests (push) Successful in 1m40s
Tests / frontend lib tests (push) Successful in 1m34s
Tests / writer-pipeline tests (pull_request) Successful in 1m44s
Tests / bridge tests (pull_request) Successful in 1m13s
Tests / frontend lib tests (pull_request) Successful in 1m45s
Narrow eurohandball pathIncludes to news/match pages, add pageTimeoutMs,
and report per-URL sitemap probe failures as warnings so transient
timeouts do not reopen ERRCLUSTER:97ab5f145754.

Co-authored-by: Cursor <[email protected]>
2026-06-16 17:03:00 +00:00
spark 58e1fb85eb Merge pull request 'fix(deploy): ensure writer-pipeline var is writable by www-data (BIT-25140/BIT-25141)' (#21) from task/BIT-25140-writer-var-eacces into main
Tests / writer-pipeline tests (push) Failing after 17s
Tests / bridge tests (push) Successful in 42s
Tests / frontend lib tests (push) Successful in 49s
fix(deploy): ensure writer-pipeline var is writable by www-data
2026-06-14 21:13:11 +01:00
José Alves 31a6431b54 ci: retrigger writer-pipeline tests (BIT-25141)
Tests / writer-pipeline tests (push) Failing after 10s
Tests / bridge tests (push) Failing after 12s
Tests / frontend lib tests (push) Successful in 40s
Tests / writer-pipeline tests (pull_request) Successful in 43s
Tests / bridge tests (pull_request) Successful in 42s
Tests / frontend lib tests (pull_request) Successful in 41s
Paperclip-Issue: BIT-25141
2026-06-14 20:09:16 +00:00
José AlvesandCursor be0b0c9c6f fix(deploy): ensure writer-pipeline var is writable by www-data
Tests / writer-pipeline tests (push) Failing after 11s
Tests / bridge tests (push) Successful in 29s
Tests / frontend lib tests (push) Successful in 31s
Tests / writer-pipeline tests (pull_request) Failing after 11s
Tests / bridge tests (pull_request) Failing after 13s
Tests / frontend lib tests (pull_request) Successful in 29s
Writer systemd oneshots run as www-data but deploy never chowned
writer-pipeline/var, causing EACCES on aggregated-items.json when
the store was created by root. Mirror BIT-743 bridge/config/writers
fix; rebuild writer-pipeline on webhook when that tree changes.

Paperclip-Issue: BIT-25140
Co-authored-by: Cursor <[email protected]>
2026-06-14 20:04:03 +00:00
spark eff2fdc9de Merge pull request 'fix(writer-pipeline): retry featured-image fetches on transient network errors (BIT-25135)' (#20) from task/BIT-25135-writer-fetch-retry into main
Tests / writer-pipeline tests (push) Successful in 1m53s
Tests / bridge tests (push) Successful in 1m51s
Tests / frontend lib tests (push) Successful in 2m2s
2026-06-14 20:28:56 +01:00
José AlvesandCursor dbd8c52359 ci: retrigger writer-pipeline push checks (BIT-25135)
Tests / writer-pipeline tests (push) Successful in 2m37s
Tests / bridge tests (push) Successful in 2m50s
Tests / writer-pipeline tests (pull_request) Successful in 3m1s
Tests / frontend lib tests (push) Successful in 3m7s
Tests / bridge tests (pull_request) Successful in 3m4s
Tests / frontend lib tests (pull_request) Successful in 3m19s
Paperclip-Issue: BIT-25135
Co-authored-by: Cursor <[email protected]>
2026-06-14 19:24:50 +00:00
José AlvesandCursor 6079046c5c fix(writer-pipeline): retry featured-image fetches on transient network errors
Tests / writer-pipeline tests (push) Failing after 55s
Tests / bridge tests (push) Successful in 1m45s
Tests / frontend lib tests (push) Successful in 1m44s
Tests / bridge tests (pull_request) Successful in 1m28s
Tests / frontend lib tests (pull_request) Successful in 1m56s
Tests / writer-pipeline tests (pull_request) Successful in 1m59s
Handball Planet draft publish failed with undici "fetch failed" on a single
cycle; ingest already retries but publish-path HTML/image GETs did not.

Co-authored-by: Cursor <[email protected]>
2026-06-14 19:20:37 +00:00
spark 70cdc516dc Merge pull request 'feat(writer-pipeline): report ingest failures to error hub (BIT-25125)' (#19) from task/BIT-25023-error-hub-reporters into main
Tests / writer-pipeline tests (push) Successful in 1m47s
Tests / bridge tests (push) Successful in 1m45s
Tests / frontend lib tests (push) Successful in 1m49s
feat(writer-pipeline): report ingest failures to error hub (BIT-25125)
2026-06-14 19:01:37 +01:00
José AlvesandCursor bcb95f6a0e feat(writer-pipeline): report ingest failures to error hub (BIT-25125)
Tests / writer-pipeline tests (push) Successful in 1m20s
Tests / bridge tests (push) Successful in 1m18s
Tests / frontend lib tests (push) Successful in 1m23s
Tests / writer-pipeline tests (pull_request) Successful in 1m27s
Tests / bridge tests (pull_request) Successful in 1m26s
Tests / frontend lib tests (pull_request) Successful in 1m25s
Wire run-cycle ingest and publish errors to errors.bitreport.pt using the
same reporter as bridge; document ERROR_REPORTING_* in writer env examples.

Paperclip-Agent: Artur Moreira (id ac1be104-8818-496a-80c5-fbc590a87855)
Paperclip-Issue: BIT-25125
Paperclip-Run: 06e3abea-e97b-481b-a1d5-70b286cf8983
Co-authored-by: Cursor <[email protected]>
2026-06-14 17:45:23 +00:00
spark 7a43a8c67f Merge pull request 'feat(error-hub): wire BitReport error reporter (BIT-25023)' (#18) from task/BIT-25023-error-hub-reporters into main
Tests / writer-pipeline tests (push) Successful in 2m20s
Tests / frontend lib tests (push) Successful in 2m18s
Tests / bridge tests (push) Successful in 2m20s
2026-06-12 18:06:04 +01:00
José Alves dc5e7808e3 docs(env): document ERROR_REPORTING vars for bridge (BIT-25023)
Tests / writer-pipeline tests (push) Successful in 3m30s
Tests / bridge tests (push) Successful in 2m18s
Tests / frontend lib tests (push) Successful in 2m17s
Tests / writer-pipeline tests (pull_request) Successful in 2m49s
Tests / bridge tests (pull_request) Successful in 3m56s
Tests / frontend lib tests (pull_request) Successful in 2m57s
Paperclip-Issue: BIT-25023
Paperclip-Run: f1482381-ca8c-43d6-889f-effd16f8a314
2026-06-12 11:06:53 +00:00
spark 6695e1d2c7 Merge pull request 'docs(deploy): add .env runtime preservation rules (BIT-25005)' (#17) from task/BIT-25008-env-preservation into main
Tests / writer-pipeline tests (push) Successful in 2m5s
Tests / bridge tests (push) Successful in 2m23s
Tests / frontend lib tests (push) Successful in 2m45s
docs(deploy): add .env runtime preservation rules (BIT-25005)
2026-06-11 17:21:00 +01:00
José Alves ea9a7ad5d9 docs(deploy): add .env runtime preservation rules (BIT-25005)
Tests / writer-pipeline tests (push) Successful in 3m9s
Tests / bridge tests (push) Successful in 3m9s
Tests / frontend lib tests (push) Successful in 3m26s
Tests / writer-pipeline tests (pull_request) Successful in 3m16s
Tests / bridge tests (pull_request) Successful in 1m48s
Tests / frontend lib tests (pull_request) Successful in 1m40s
Propagate DEPLOY_STANDARD.md §3.1 to this repo: prohibit cp .env.example .env
over existing production .env, require rsync excludes, and mandate
PRODUCTION_ACCESS_SYNC_LOG entries for credential changes.

Paperclip-Task: BIT-25008
2026-06-11 15:37:19 +00:00
spark 8a330be214 Merge pull request 'feat(writer-pipeline): FPA featured-image backfill + media:content ingestion — BIT-24384' (#16) from feat/BIT-24389-backfill-featured-fpa into main
Tests / writer-pipeline tests (push) Successful in 32s
Tests / bridge tests (push) Successful in 31s
Tests / frontend lib tests (push) Successful in 34s
2026-06-05 03:31:09 +01:00
José Alves e08840af18 feat(writer-pipeline): FPA featured-image backfill + media:content ingestion — BIT-24384
Tests / writer-pipeline tests (push) Successful in 31s
Tests / bridge tests (push) Successful in 32s
Tests / frontend lib tests (push) Successful in 34s
Tests / writer-pipeline tests (pull_request) Successful in 28s
Tests / bridge tests (pull_request) Successful in 32s
Tests / frontend lib tests (pull_request) Successful in 31s
- Add backfill-featured-from-fpa.ts: matches andebol.net post slugs against
  FPA portal WP REST API and uploads featured images for matched posts
- Export attachFeaturedImageToPost from wp-publish.ts for reuse by backfill
- Add npm script backfill:featured for one-shot execution
- Extend RSS ingest to extract media:content and media:thumbnail fields
  (BIT-24388: FPA feed uses <media:content> for images, not <enclosure>)
- Update config/domains/andebol.net.json: wp_endpoint → public HTTPS URL
- Update docs; add pino-pretty dev dep to bridge

Backfill result (2026-06-05): 30 updated, 52 skipped (no FPA match), 0 errors.

Paperclip-Agent: José Alves (urlKey jos-alves; id 11179220-3cec-4f0f-880d-2771ff64fce8)
Paperclip-Issue: BIT-24389
2026-06-05 02:29:47 +00:00
spark fc1c9066b6 Merge pull request 'fix(docs): CT222 IP 10.10.50.140 → 10.10.50.204 static — BIT-24053' (#15) from fix/bit-24053-ct222-static-ip into main
Tests / writer-pipeline tests (push) Successful in 26s
Tests / bridge tests (push) Successful in 28s
Tests / frontend lib tests (push) Successful in 29s
2026-06-01 14:30:46 +01:00
José Alves cba153cfc1 fix(docs): update CT222 IP from 10.10.50.140 to 10.10.50.204 — BIT-24053
Tests / bridge tests (push) Successful in 29s
Tests / writer-pipeline tests (push) Successful in 30s
Tests / frontend lib tests (push) Successful in 31s
Tests / writer-pipeline tests (pull_request) Successful in 28s
Tests / bridge tests (pull_request) Successful in 28s
Tests / frontend lib tests (pull_request) Successful in 26s
CT222 news-project-test changed IP following DHCP re-lease (BIT-24050
emergency fix). IP is now static at 10.10.50.204 via systemd-networkd.
Update all doc references, deploy script post-install notes, and
wordpress/README direct-access URLs.

Paperclip-Agent: Tiago Neves (devops; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-24053
Paperclip-Run: 9c69919d-4c21-48b0-8eb7-2b9745bed65c
2026-06-01 13:12:36 +00:00
spark 0e7897ba77 Merge pull request 'fix(nginx): add wp_andebol_content volume to nginx-andebol (BIT-23734)' (#14) from fix/BIT-23734-nginx-andebol-wp-content-volume into main
Tests / writer-pipeline tests (push) Successful in 39s
Tests / bridge tests (push) Successful in 38s
Tests / frontend lib tests (push) Successful in 37s
2026-05-26 00:32:35 +01:00
Tiago Neves 86261a1a54 fix(nginx): add wp_andebol_content volume to nginx-andebol (BIT-23734)
Tests / writer-pipeline tests (push) Successful in 50s
Tests / bridge tests (push) Successful in 1m3s
Tests / frontend lib tests (push) Successful in 1m3s
Tests / bridge tests (pull_request) Successful in 1m11s
Tests / writer-pipeline tests (pull_request) Successful in 1m14s
Tests / frontend lib tests (pull_request) Successful in 1m9s
nginx-andebol was missing the wp_andebol_content volume mount, causing
uploaded files to return 404 even though they were written correctly to
the wp_andebol_content Docker volume by the WordPress PHP-FPM container.

Paperclip-Task: BIT-23734
Paperclip-Agent: devops
2026-05-25 23:25:52 +00:00
spark 0c9e5df61c Merge pull request 'feat(writer-pipeline): newsproject.bitreport.pt writer cycle and WP env split' (#12) from feat/BIT-22288-newsproject-writer into main
Tests / writer-pipeline tests (push) Successful in 13s
Tests / bridge tests (push) Successful in 13s
Tests / frontend lib tests (push) Successful in 14s
Reviewed-on: #12
2026-05-14 19:10:00 +01:00
José Alves aaaafd0c8f ci: re-trigger push checks after runner cache fix
Tests / writer-pipeline tests (push) Successful in 11s
Tests / bridge tests (push) Successful in 15s
Tests / frontend lib tests (push) Successful in 16s
Tests / writer-pipeline tests (pull_request) Successful in 15s
Tests / bridge tests (pull_request) Successful in 15s
Tests / frontend lib tests (pull_request) Successful in 15s
Empty commit to re-run push-event CI (previous failure was runner
infrastructure — missing act cache entry for actions/setup-node@v4).

Paperclip-Issue: BIT-22306
Paperclip-Run: 9c297293-f7c3-491c-9f8e-a4488578d556
2026-05-14 18:09:29 +00:00
spark 369e0b27c2 Merge pull request 'fix(writer-pipeline): handle ns0: XML namespace prefix in WebDAV PROPFIND parser (BIT-22306)' (#13) from fix/BIT-22306-webdav-ns-prefix into main
Tests / writer-pipeline tests (push) Successful in 12s
Tests / bridge tests (push) Successful in 12s
Tests / frontend lib tests (push) Successful in 13s
Merge fix(writer-pipeline): handle ns0: XML namespace prefix in WebDAV PROPFIND parser (BIT-22306)
2026-05-14 17:46:59 +01:00
Artur Moreira 738c1a56d0 fix(writer-pipeline): handle ns0: XML namespace prefix in WebDAV PROPFIND parser (BIT-22306)
Tests / writer-pipeline tests (push) Successful in 14s
Tests / bridge tests (push) Successful in 14s
Tests / frontend lib tests (push) Successful in 15s
Tests / writer-pipeline tests (pull_request) Successful in 11s
Tests / bridge tests (pull_request) Successful in 12s
Tests / frontend lib tests (pull_request) Successful in 13s
Python's xml.etree.ElementTree auto-assigns numeric prefixes like ns0: for
the first namespace it encounters. The PROPFIND regex [a-z]+: did not match
ns0: because of the digit, causing parsePropfindImageHrefs to return empty
on any WebDAV server backed by Python (WsgiDAV, some NextCloud configs).

Change [a-z]+: → [a-z][a-z0-9]*: in all three namespace-tagged element
patterns (response, href, getlastmodified). Test added with a real WsgiDAV
multistatus fixture.

Paperclip-Issue: BIT-22306
2026-05-14 16:33:49 +00:00
Artur Moreira 0a220c158f docs(writer-pipeline): clarify WebDAV disabled vs unreachable fallback
Tests / writer-pipeline tests (push) Failing after 5s
Tests / bridge tests (push) Successful in 20s
Tests / writer-pipeline tests (pull_request) Successful in 16s
Tests / bridge tests (pull_request) Successful in 16s
Tests / frontend lib tests (push) Successful in 20s
Tests / frontend lib tests (pull_request) Successful in 17s
Document that when WRITER_WEBDAV_ENABLED is off the archive is not used,
and that enabled-but-failing PROPFIND/GET surfaces an explicit error with
operational fallback (disable or restore connectivity). Aligns BIT-22292
acceptance wording with actual pipeline behaviour.
2026-05-14 16:10:14 +00:00
Artur MoreiraandCursor 7c0a515368 feat(writer-pipeline): newsproject.bitreport.pt writer cycle and WP env split
Tests / writer-pipeline tests (push) Failing after 5s
Tests / bridge tests (push) Failing after 6s
Tests / frontend lib tests (push) Successful in 14s
Tests / writer-pipeline tests (pull_request) Successful in 11s
Tests / bridge tests (pull_request) Successful in 13s
Tests / frontend lib tests (pull_request) Successful in 14s
Add site-scoped WP credentials (NEWSPROJECT_* vs ANDEBOL_*), RSS sources
config, systemd oneshot/timer offset from andebol, env template, and
deployment docs so BIT-22288 covers both stacks.

Co-authored-by: Cursor <[email protected]>
2026-05-14 14:40:09 +00:00
spark 9d03d489e0 Merge pull request 'feat(writer-pipeline): WebDAV archive fallback + handball shortlist (BIT-22292 / BIT-22288)' (#11) from feat/bit-21912-cf-cache-rules-script into main
Tests / writer-pipeline tests (push) Failing after 10s
Tests / bridge tests (push) Successful in 14s
Tests / frontend lib tests (push) Successful in 16s
2026-05-14 15:27:09 +01:00
spark b4af1397b7 Merge pull request 'fix(frontend): auth redirects use strict false-check for auth_links (BIT-22298)' (#10) from fix/BIT-22298-auth-redirect into main
Tests / writer-pipeline tests (push) Successful in 11s
Tests / bridge tests (push) Successful in 11s
Tests / frontend lib tests (push) Successful in 12s
Merge fix/BIT-22298-auth-redirect: auth redirects strict false-check (BIT-22298)
2026-05-14 14:52:54 +01:00
Artur Moreira 11cea53dab fix(frontend): auth redirects use strict false-check for auth_links (BIT-22298)
Tests / writer-pipeline tests (push) Successful in 13s
Tests / bridge tests (push) Successful in 12s
Tests / frontend lib tests (push) Successful in 12s
Tests / writer-pipeline tests (pull_request) Successful in 11s
Tests / bridge tests (pull_request) Successful in 13s
Tests / frontend lib tests (pull_request) Successful in 14s
/entrar and /registar redirected to / because !config.auth_links is
truthy when auth_links is undefined (config fallback).  Change both
pages to config.auth_links === false so only an explicit opt-out sends
the user home; missing or true both forward to wp-login.php.

Also add Cache-Control: no-store to the redirect response so edge
proxies never cache auth flows, and extend smoke-andebol.sh to assert
/entrar and /registar resolve to a wp-login URL.

Paperclip-Issue: BIT-22298
Paperclip-Agent: d706f4e6-5d05-4cec-b6e8-f8fb1f203aae
2026-05-14 13:48:27 +00:00
Artur MoreiraandCursor 72a5ccd65c feat(writer-pipeline): handball-only shortlist for andebol.net
Tests / writer-pipeline tests (push) Successful in 13s
Tests / bridge tests (push) Successful in 15s
Tests / frontend lib tests (push) Successful in 15s
Tests / writer-pipeline tests (pull_request) Successful in 11s
Tests / bridge tests (pull_request) Successful in 12s
Tests / frontend lib tests (pull_request) Successful in 13s
Disable Record/SAPO/Guardian world feeds that are not handball-scoped
(BIT-22288). Shortlist andebol.net items with topic handball only so new
drafts align with owner editorial rules.

Co-authored-by: Cursor <[email protected]>
2026-05-14 13:05:37 +00:00
Artur MoreiraandCursor 6819297e0d feat(writer-pipeline): WebDAV federation archive fallback for featured images
Tests / writer-pipeline tests (push) Successful in 14s
Tests / bridge tests (push) Successful in 14s
Tests / frontend lib tests (push) Successful in 15s
When RSS/HTML provide no image, optional WRITER_WEBDAV_* env enables PROPFIND
depth-1 listing, headline-based file pick, Basic-auth GET, and WP caption from
Credit___filename pattern or WRITER_WEBDAV_DEFAULT_CREDIT (BIT-22292).

Co-authored-by: Cursor <[email protected]>
2026-05-14 13:02:14 +00:00
Artur MoreiraandCursor 12b76980c6 feat(writer-pipeline): require featured image and credits on WP drafts
Enforce BIT-22288: extract og/twitter images at ingest, RSS image
enclosures, optional HTML refetch before publish, upload to WP media
with caption and alt_text, and set featured_media on draft posts.
Fail closed when no usable image URL exists. Optional ANDEBOL_WP_SITE_DOMAIN
for X-Site-Domain on bridge-hosted WordPress.

Co-authored-by: Cursor <[email protected]>
2026-05-14 12:10:03 +00:00
spark 35e8b60684 Merge pull request 'feat: add Node.js CI workflow' (#9) from feature/add-ci-workflow into main
Tests / writer-pipeline tests (push) Successful in 13s
Tests / bridge tests (push) Successful in 13s
Tests / frontend lib tests (push) Successful in 14s
Merge feature/add-ci-workflow (branch cleanup BIT-22162)
2026-05-13 22:57:30 +01:00
Artur MoreiraandCursor 9ecc4ac659 docs: note BIT-2030 children-completed wake; link perf row to CF issues
Clarify intro for issue_children_completed parent reopen. Extend
objective #2 traceability with BIT-21847/BIT-21912 aligned to baseline.

Co-authored-by: Cursor <[email protected]>
2026-05-12 22:43:33 +00:00
Artur MoreiraandCursor 9b6029f369 docs: fix Cloudflare cache verification (GET vs HEAD) after BIT-21847
Document GET-based curl checks, Free-plan contains paths, and Edge TTL
note aligned with cf-cache-rules-apply.sh. Add baseline operator footnote
and independent HIT smoke.

Co-authored-by: Cursor <[email protected]>
2026-05-12 22:42:29 +00:00
Artur MoreiraandPaperclip a1107167d3 docs(perf): update PERFORMANCE_BASELINE.md with Cloudflare HIT measurements (BIT-21912)
Tests / writer-pipeline tests (push) Successful in 13s
Tests / bridge tests (push) Successful in 15s
Tests / frontend lib tests (push) Successful in 13s
Cache Rule applied 2026-05-12T22:39 UTC; both zones now return cf-cache-status:
HIT on repeat GET /. TTFB on HIT ~81-130 ms (down from ~220-380 ms DYNAMIC).

Co-Authored-By: Paperclip <[email protected]>
2026-05-12 22:40:57 +00:00
Artur Moreira 95dbcbd9af fix(deploy): correct cf-cache-rules-apply.sh for CF Free plan (BIT-21922)
Tests / bridge tests (push) Successful in 16s
Tests / writer-pipeline tests (push) Successful in 19s
Tests / frontend lib tests (push) Successful in 16s
Five bugs found and fixed during live application to andebol.net and
newsproject.bitreport.pt:

- Endpoint was /entrypoints (plural); CF API requires /entrypoint (singular)
- origin_cache_control alone does not cache HTML on CF Free; added
  edge_ttl: {mode: override_origin, default: 60} which is required
- starts_with operator not supported on CF Free plan; replaced with contains
- newsproject.bitreport.pt has no own CF zone; zone lookup must use bitreport.pt
- Verification used curl -I (HEAD); rule expression matches GET only, so
  verification must use GET requests (-D - -o /dev/null)

Paperclip-Issue: BIT-21922
2026-05-12 22:37:55 +00:00
spark da7a01a1c1 Merge pull request 'feat(deploy): cf-cache-rules-apply.sh for BIT-21912 / BIT-21847' (#8) from feat/bit-21912-cf-cache-rules-script into main
Tests / writer-pipeline tests (push) Successful in 12s
Tests / bridge tests (push) Successful in 14s
Tests / frontend lib tests (push) Successful in 15s
2026-05-12 12:33:47 +01:00
Artur Moreira 938a59dc3d feat(deploy): add cf-cache-rules-apply.sh for BIT-21912 / BIT-21847
Tests / writer-pipeline tests (push) Successful in 15s
Tests / bridge tests (push) Successful in 14s
Tests / frontend lib tests (push) Successful in 14s
Tests / writer-pipeline tests (pull_request) Successful in 11s
Tests / bridge tests (pull_request) Successful in 12s
Tests / frontend lib tests (pull_request) Successful in 13s
Cloudflare HTML Cache Rule apply + verify script for andebol.net and
newsproject.bitreport.pt. Needs CF_API_TOKEN (Cache Rules write); auto-
discovers zone IDs, upserts the rule from deployment.md runbook expression,
and runs double-curl verification. Ready to run once token is injected.

Paperclip-Issue: BIT-21912
2026-05-12 11:22:15 +00:00
Artur MoreiraandCursor 95b3c1b703 docs(news-platform): tighten Cloudflare HTML cache runbook for BIT-21847
Add /api/ exclusion and per-zone filter expressions in deployment.md.
Record continuation verification in PERFORMANCE_BASELINE (still DYNAMIC).
Execution moves to Paperclip child BIT-21912 for DevOps dashboard apply.

Co-authored-by: Cursor <[email protected]>
2026-05-12 11:00:07 +00:00
Artur Moreira 740f3b38d6 docs(perf): update BIT-21610 addendum with fresh TTFB samples (2026-05-12 10:50 UTC)
Add 3-sample min/median/max TTFB measurements confirming ~220ms origin
latency. Both domains return cache-control: s-maxage=60, stale-while-revalidate=300.
Cloudflare edge caching (cf-cache-status: HIT) still pending Cache Rule
in BIT-21847.

Paperclip-Issue: BIT-21610
Paperclip-Run: $PAPERCLIP_RUN_ID
2026-05-12 10:51:25 +00:00
Artur MoreiraandCursor be8c48c039 docs: close BIT-2030 sweep in PROJECT_STATUS
All direct children are done on the board; mark parent BIT-2030 done,
update objective #2 and WIP section, and note sweep completion in intro.

Co-authored-by: Cursor <[email protected]>
2026-05-12 08:05:36 +00:00
Artur Moreira 84821111e4 docs(perf): add 2026-05-12 re-measurement addendum to PERFORMANCE_BASELINE
Cache-Control headers (BIT-2261) confirmed live on both domains.
TTFB improved from ~300ms to ~220ms. Remaining gap: Cloudflare Cache
Rule needed for HTML caching (cf-cache-status still DYNAMIC).

Paperclip-Issue: BIT-21610
2026-05-12 07:26:02 +00:00
Artur MoreiraandCursor 5af57b37d6 docs: reflect BIT-21770 recovery and BIT-21610 todo in PROJECT_STATUS
Paperclip API drift: add child BIT-21770, set BIT-21610 to todo, WIP row
for recovery task.

Co-authored-by: Cursor <[email protected]>
2026-05-12 05:48:53 +00:00
Artur MoreiraandCursor a34c369fba docs: sync PROJECT_STATUS with board after BIT-2079/21615 closure
Reflect API state: BIT-2079 and BIT-21615 done; BIT-21610 in_progress;
objective #11 and WIP table updated accordingly.

Co-authored-by: Cursor <[email protected]>
2026-05-11 22:48:24 +00:00
Artur Moreira 6282e73926 feat(BIT-2079): add systemd service+timer for andebol.net writer pipeline
Tests / writer-pipeline tests (push) Successful in 18s
Tests / bridge tests (push) Successful in 17s
Tests / frontend lib tests (push) Successful in 17s
Daily oneshot cycle at 06:00 UTC via news-writer-andebol.timer;
env template covers ANDEBOL_WP_* credentials; deployment.md updated
with install steps, log tailing, and manual test run instructions.

Paperclip-Issue: BIT-2079
2026-05-11 21:51:33 +00:00
Artur MoreiraandCursor ea264a85ac docs: index BIT-21615 fila escalation under PROJECT_STATUS
Record the daily fila orphan_lock escalation subtask as an operational
child of BIT-2030 for parity with the board tree.

Co-authored-by: Cursor <[email protected]>
2026-05-11 21:37:58 +00:00
Artur MoreiraandCursor 9ba8801e83 docs: link runbooks to objectives; track prod perf validation as BIT-21610
Add runbooks README cross-reference to PROJECT_STATUS/architecture
objectives. Extend PROJECT_STATUS with child BIT-21610 and WIP row for
post-baseline production cache/TTFB validation.

Co-authored-by: Cursor <[email protected]>
2026-05-11 21:33:05 +00:00