Align docker-compose, engines, nvmrc, and CI with the company runtime baseline.
Official wordpress:6-php8.5-fpm ships PHP 8.5.6 today; host Node must move to 24.22.1 Active LTS.
Paperclip-Issue: BIT-31729
Paperclip-Run: 8b5ae44d-b3e7-430e-871e-d5fcb1bd9fb1
FPA media embeds Revista-de-Imprensa filenames with a literal JSON \u2013
escape; new URL turned the backslash into /u2013 and the fetch 404'd.
Decode \uXXXX before parsing and accept en-dash / hashed date filenames.
Paperclip-Issue: BIT-31118
Paperclip-ERRSIG: 97ac27c4c5df
Paperclip-ERRCLUSTER: ddda2b9e3d39
Paperclip-Run: 3f65156a-de49-43a1-876d-75f6285b4bc4
Map PROVA competition codes to public standings URLs so every "Próximos jogos"
card links to the competition table (Flashscore for Betclic leagues; FPA portal
hubs otherwise).
Paperclip-Issue: BIT-31056
Paperclip-Run: 5901136e-753a-494f-bd36-250d1b822690
EHF google-news-sitemap already retries; residual gateway blips (BIT-30847 /
ERRSIG a92b3521aec8) must not open Error Loop tickets. Keep HTTP 500 as error
so broken endpoints like the old /sitemap.xml stay actionable.
Paperclip-Agent: Bug Squasher (urlKey bug-squasher; id 4669adc7-6368-43ef-bf27-5a601a6b7b83)
Paperclip-Issue: BIT-30847
Paperclip-Run: ce265bf3-24dc-4532-b87d-92188cc55399
ERRSIG f723b02cf00e opened on a one-off undici "draft …: fetch failed" for a
record.pt item. Featured-image GETs already retry (BIT-related 6079046); WP
media/post POSTs did not. Retry network-only on those POSTs and report
remaining per-item draft network misses as warning so Error Loop skips them.
Paperclip-Agent: Bug Squasher (urlKey bug-squasher; id 4669adc7-6368-43ef-bf27-5a601a6b7b83)
Paperclip-Issue: BIT-30583
Paperclip-Run: fb6db8e0-afed-4fc1-8f40-a34ffeee3d27
Post-merge Lighthouse re-verification of PR #47 confirmed article TBT
regression is resolved (7416ms -> 0-348ms, Performance 60 -> 99 median,
5 runs, results in PERFORMANCE_BASELINE.md). This follow-up closes a
gap found during that verification and widens the pass margin:
- bridge/package.json: sanitize-html.test.ts (added in the original
fix) was never wired into the test/test:coverage scripts, so the
"28 bridge sanitizer tests pass" claim wasn't actually exercised by
npm test. Fixed.
- Defer mobile-menu and share-button click handlers to
requestIdleCallback (institutional/sports headers, ArticleShareBar)
so they don't compete with hydration-critical work.
- Split Base.astro's theme-flash-prevention script into a minimal
inline snippet (runs before paint) and the deferred click-handler
logic, instead of one blocking script.
- bridge articles route: /articles/:slug/related accepts an optional
?category_id= to skip a redundant WP post-by-slug fetch when the
caller already has it.
Paperclip-Agent: Miguel Teixeira (urlKey miguel-teixeira; id 0f722e1a-bc3e-4381-8d98-76fa3c7aea10)
Paperclip-Issue: BIT-28145
architecture.md §6 still stated the aspirational <30ms Cloudflare-HIT
target as if it were the production contract; PERFORMANCE_BASELINE.md
and PROJECT_STATUS.md were already revised to the measured <150ms
Free-plan contract via #40/#44 but this table was missed. Also flips
the two BIT-28133 status cells in PROJECT_STATUS.md from in_review to
done now that the contract is reconciled everywhere.
The cron-driven webhook-deploy.sh never refreshed /etc/systemd/system,
so new/changed units in deploy/systemd/ silently rotted in git after
the one-shot deploy.sh bootstrap (root cause of the BIT-28132 gap).
Add a step that copies deploy/systemd/*.service and *.timer to
/etc/systemd/system + daemon-reload whenever deploy/systemd/ changes
in the diff; new units still need one manual systemctl enable --now.
Also record the BIT-28183 decision to keep the 5-minute cron poll as
the permanent deploy path on CT222 and leave news-deploy-hook.service
unenabled, in docs/deployment.md.
Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-28183
Paperclip-Run: 267defb1-b2d1-4a95-a8c0-4dd1c777834e
Root cause: FpaAgendaSection (andebol.net-only, up to 48 FPA agenda cards)
Style & Layout main-thread cost, fixed via content-visibility on
.fpa-agenda__card (PR #42, merged as 6b95f4d).
Also documents a separate but directly blocking finding: the ct222-news
deploy cron had been failing silently for ~24h (broken SSH deploy key,
never registered with Gitea) so 15+ merged PRs including this fix never
reached production. Fixed by switching to the standard HTTPS PAT +
credential-helper pattern from CT_DEPLOY_CREDENTIAL_ROTATION_BIT28016;
cron auto-recovered and deployed ec22a04 without further intervention.
Re-measurement is inconclusive on numeric pass/fail: this measurement
host was under heavy unrelated contention (load avg 48-60/24 cores),
confirmed by newsproject.bitreport.pt (a previously-verified-passing
control) also failing in the same session. Fix is confirmed live and
the targeted metric (Style & Layout) improved ~2x in the calmest runs;
authoritative re-verification needs PSI (quota-exhausted today) or a
quiet host window.
Paperclip-Issue: BIT-28144
BIT-28145: newsproject.bitreport.pt article template Total Blocking Time
was 7416ms (Lighthouse Performance 60) vs home 73ms (Performance 97).
Root cause: WordPress oEmbed HTML injected via set:html rendered <script>,
<style>, <link> tags, inline event handlers, and heavy <iframe> embeds
(Twitter, Instagram, YouTube) that blocked the main thread during HTML
parsing. The prior sanitizer only stripped <script> tags and added
loading=lazy to iframes — insufficient for the oEmbed payload.
Changes:
- Enhance bridge and frontend sanitizers to strip <style>, <link>,
and inline event handlers (on* attributes) in addition to <script>
- Replace <iframe> elements with click-to-load placeholders (eliminates
iframe document parsing cost from main thread)
- Add loading=lazy + decoding=async to <img> tags in article body
- Add content-visibility:auto to .article-body CSS (skip off-screen render)
- Add embed-placeholder styles in global.css + click handler in [slug].astro
- Parallelize article/related/trending bridge fetches
- Add preconnect hints for gravatar and featured images
- Document root cause in PERFORMANCE_BASELINE.md
Paperclip-Agent: Miguel Teixeira (urlKey miguel-teixeira; id 0f722e1a-bc3e-4381-8d98-76fa3c7aea10)
Paperclip-Issue: BIT-28145
andebol.net home fails LCP (~8s) and Lighthouse Performance (~26) while
newsproject.bitreport.pt (same bridge/cache stack) passes. Root cause:
FpaAgendaSection is andebol.net-only (fpa_agenda_enabled + institutional
theme, homepage only) and renders up to 48 game cards with heavy per-card
CSS (gradients, color-mix, shadows). Measured andebol.net home DOM at
~2230 elements vs ~468 on newsproject.bitreport.pt, and Style & Layout
main-thread cost consistently ~3x higher, matching the diagnostics in
docs/PERFORMANCE_BASELINE.md (no render-blocking scripts, cost
concentrated in style/layout).
Apply content-visibility: auto + contain-intrinsic-size to
.fpa-agenda__card so the browser skips style/layout/paint for
off-screen cards (most of the 48 sit below the fold).
Incorporate August Lighthouse addendum and board statuses (BIT-28130 done;
follow-ups BIT-28144/28145) so docs do not claim CWV still unmeasured.
Paperclip-Issue: BIT-28131
Paperclip-Run: 73c52077-1860-4763-971f-b6d01d6dd8ac
Align objectives matrix and open-work section with the Aug 2026 governance
sweep children; lead the performance baseline with May HIT evidence instead
of the superseded April cache-gap summary.
Paperclip-Issue: BIT-28131
Paperclip-Run: 52ceb27e-9eda-4fe2-92f2-3794e4a40d1c
Adds unit coverage for resolveFeaturedImageForDraft() so the mandatory
featured-image ERRSIG cluster (BIT-27615 / BIT-26192 / BIT-22288) cannot
silently regress: ordinary drafts still throw when no image resolves,
revista-imprensa leads (by sourceKind or URL) resolve to null instead,
and non-revista URLs are not over-matched. Also covers upsertItem
preserving sourceKind across updates that omit it.
Paperclip-Issue: BIT-28134
Paperclip-Run: d45309d9-128d-4266-93db-9afe285c4486