Adds deploy/scripts/cf-cache-rules-apply.sh — ready-to-run script that applies the Cloudflare HTML Cache Rules for andebol.net and newsproject.bitreport.pt once a CF_API_TOKEN (Cache Rules write) is injected.
Auto-discovers zone IDs, upserts the Cache Rule from docs/deployment.md § Cloudflare — HTML edge cache, and runs double-curl verification.
Context
BIT-21912 — CF_API_TOKEN is not available in this agent's execution environment (vault-managed). Script is in-repo so the board can inject the token for agent re-execution or run it directly.
## Summary
- Adds `deploy/scripts/cf-cache-rules-apply.sh` — ready-to-run script that applies the Cloudflare HTML Cache Rules for `andebol.net` and `newsproject.bitreport.pt` once a `CF_API_TOKEN` (Cache Rules write) is injected.
- Auto-discovers zone IDs, upserts the Cache Rule from `docs/deployment.md` § *Cloudflare — HTML edge cache*, and runs double-`curl` verification.
## Context
[BIT-21912](/BIT/issues/BIT-21912) — `CF_API_TOKEN` is not available in this agent's execution environment (vault-managed). Script is in-repo so the board can inject the token for agent re-execution or run it directly.
**Pre-rule baseline (2026-05-12T11:18 UTC):**
| Zone | cf-cache-status | TTFB |
|------|-----------------|------|
| andebol.net | DYNAMIC | ~0.38 s |
| newsproject.bitreport.pt | DYNAMIC | ~0.17–0.39 s |
## Test plan
- [ ] Run: `CF_API_TOKEN=<token> bash deploy/scripts/cf-cache-rules-apply.sh`
- [ ] Second `curl -fsSI https://andebol.net/` → `cf-cache-status: HIT`
- [ ] Second `curl -fsSI https://newsproject.bitreport.pt/` → `cf-cache-status: HIT`
- [ ] Post results on [BIT-21912](/BIT/issues/BIT-21912); parent [BIT-21847](/BIT/issues/BIT-21847) unblocked
Refresh docs/PROJECT_STATUS.md against API state: BIT-2030 remains
in_progress; BIT-2078 and BIT-2080 are done; BIT-2079 is in_progress.
Objective #2 and WIP table now reference PERFORMANCE_BASELINE and
post-audit remediation instead of a stale open audit task.
Co-authored-by: Cursor <[email protected]>
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]>
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]>
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
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
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]>
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]>
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
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.
Summary
deploy/scripts/cf-cache-rules-apply.sh— ready-to-run script that applies the Cloudflare HTML Cache Rules forandebol.netandnewsproject.bitreport.ptonce aCF_API_TOKEN(Cache Rules write) is injected.docs/deployment.md§ Cloudflare — HTML edge cache, and runs double-curlverification.Context
BIT-21912 —
CF_API_TOKENis not available in this agent's execution environment (vault-managed). Script is in-repo so the board can inject the token for agent re-execution or run it directly.Pre-rule baseline (2026-05-12T11:18 UTC):
Test plan
CF_API_TOKEN=<token> bash deploy/scripts/cf-cache-rules-apply.shcurl -fsSI https://andebol.net/→cf-cache-status: HITcurl -fsSI https://newsproject.bitreport.pt/→cf-cache-status: HITauto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)