docs(andebol): establish editorial brief and publication criteria

Introduces comprehensive editorial standards for andebol.net to ensure:
- Only Portuguese-language (PT-PT) content is published
- Real, verifiable news with proper source attribution
- No plagiarism or copy-pasted content
- Clear content categories, writing templates, and quality checklist

Addresses the urgent need for editorial governance following an English-language
article publication incident. Includes templates for match reports, transfers,
analysis, and competition updates.

Updates writer pipeline docs to reference the new editorial brief.

Paperclip-Agent: f0251a61-38e1-4a9b-8cd1-38d96a320cab
Paperclip-Issue: BIT-740
Paperclip-Run: 248bfdd9-8f8e-4ff3-8f25-1726da6a5e16
This commit is contained in:
Artur Moreira committed 2026-04-02 20:05:02 +00:00
1 parent 9a4c144f27
commit 4d60425f7d
2 files changed
+307 -3

No files matched your search

+292
View File
@@ -0,0 +1,292 @@
# Editorial Brief — andebol.net
**Owner:** AI News Writer (Nelson Alves agent)
**Updated:** 2026-04-02
**Related issues:** [BIT-738](/BIT/issues/BIT-738) (emergency), [BIT-739](/BIT/issues/BIT-739) (i18n fix), [BIT-740](/BIT/issues/BIT-740)
---
## Editorial Mission
**andebol.net** publishes verified, original news and analysis about Portuguese and international handball. All content must be:
- **In European Portuguese (PT-PT)** — no English, no Brazilian Portuguese unless explicitly translated
- **Verifiable** — based on sources cited in the article body or linked
- **Original** — written from scratch, not copy-pasted from source material
- **Neutral** — factual reporting without sensationalism or personal opinion
- **Timely** — relevant to current handball events and competitions
---
## Real News vs Automated Content
### ✅ What counts as **real news** (publishable)
Content that:
1. Reports a **specific event** or announcement (match result, transfer, injury, disciplinary action, awards)
2. **Cites a primary source** (official federation, club, international body, credible journalist)
3. **Includes context or analysis** explaining why this matters to handball (league standings impact, player performance, competition significance)
4. **Is written for a Portuguese audience** — uses language and references relevant to PT handball
5. **Has not appeared verbatim on andebol.net before** — even if aggregating from multiple sources, the article itself must be new
### ❌ What does NOT count as real news (skip / do not publish)
- Machine-generated summaries with no added context
- Duplicate stories published in the last 30 days on andebol.net
- Copy-pasted text from source URLs (plagiarism)
- Articles in non-Portuguese languages
- Speculative content ("rumours suggest", "allegedly", "unconfirmed")
- Content about non-handball sports republished without handball angle
- Links to merchandise, betting, or non-editorial offers without journalistic framing
---
## Content Categories
### 1. **Match reports** (reportagens)
- When: After official league matches, cups, or international competitions
- Length: 300–500 words
- Must include: final score, key moments, standout players, next fixtures
- Source: official match stats + team/federation statements
### 2. **Transfer & roster news** (mercado)
- When: Official announcements of signings, departures, contract extensions
- Length: 200–350 words
- Must include: names, clubs, deal terms (if public), effective date
- Source: official club/federation statement only; no rumour mills
### 3. **Injury & disciplinary** (lesões & castigos)
- When: Official club or federation announcement
- Length: 150–250 words
- Must include: player name, club, reason, estimated return date / suspension length
- Source: official statement; never speculate on severity
### 4. **Competition updates** (competições)
- When: League/cup standings changes, schedule changes, or regulatory announcements
- Length: 200–400 words
- Must include: competition name, dates, implications
- Source: official federation or organizer
### 5. **Awards & recognition** (prémios)
- When: Official awards or record announcements
- Length: 150–300 words
- Must include: award name, criteria, previous winners
- Source: official awarding body
### 6. **Analysis & backgrounder** (análise)
- When: Context for ongoing competitions or player/team milestones
- Length: 400–600 words
- Must cite: stats, quotes from official sources, expert opinions (attributed)
- Source: combination of data sources; never invent details
---
## Writing Standards
### Language
- **Always PT-PT**, never Brazilian Portuguese
- Check: "séries" vs "series", "treinador" vs "técnico", "equipamento" vs "equipação"
- Avoid: colloquialisms, slang, English technical terms without Portuguese equivalent
### Headline (Título)
- **Max 70 characters** (including spaces)
- **Active voice preferred:** "Portugal vence Suécia" not "Suécia é vencida por Portugal"
- **Include key fact:** score, date, player name, or competition name
- **SEO-friendly:** use focus keyword naturally
- **No clickbait:** headline must match article content exactly
**Examples:**
- ✅ "FPA anuncia Bruno Neves como selecionador de sub-20"
- ✅ "Benfica e Porto empatam 29-29 na final da Taça de Portugal"
- ❌ "Notícias chocantes do andebol português!" (clickbait)
- ❌ "Big news in Portuguese handball" (English)
### Opening paragraph (Lede)
- **Answer the 5 W's:** Who, What, When, Where, Why
- **One sentence,** 2–3 lines max
- **Include the date** of the event (not the publication date)
- **Example:** "O Sporting CP venceu o Benfica por 28-25 na final da Supertaça Nacional, em Viseu, no sábado, revalidando o título conquistado há um ano."
### Body (Corpo)
- **Inverted pyramid:** most important info first, detail and context later
- **Use subheadings** (`## `) for sections (e.g., "Resultado final", "Próximas jornadas")
- **Quotes:** only use direct quotes present in the source; always attribute ("disse João Silva, treinador do Sporting")
- **Links:** to official sources, standings, or previous andebol.net articles where relevant
- **Paragraphs:** 2–4 sentences each; break long paragraphs into two
### Tone
- **Neutral, informative**
- **No opinions** ("Benfica played poorly" → "Benfica scored 3 fewer goals than Sporting")
- **No sensationalism** (no "shocking", "incredible", "devastating" unless quoting a source)
- **Professional** but not dry; engage the reader with context
### Attribution
- For data or specific claims, always name the source: "De acordo com a FPA…" or "Segundo o site oficial da competição…"
- For quotes: "João Silva, treinador do Sporting, disse que…"
- Never pass off source data as your own reporting
---
## SEO & Metadata
### Title (post title)
- Same as headline (max 70 chars)
- Should include the most important keyword (player name, team, competition)
### Excerpt (1–2 sentences for previews)
- Summarize the article in one complete sentence
- Example: "Sporting CP conquistou a Supertaça Nacional após vencer Benfica por 28-25."
### Tags
- Player names (if article focuses on a player)
- Team names (Sporting, Benfica, Porto, etc.)
- Competition name (Supertaça, Taça de Portugal, Liga)
- League region (if applicable)
- Do NOT tag generic terms like "andebol" or "notícias"
### Featured Image (obrigatório)
- Rights-cleared image: prefer original BitReport photography or official FPA/federation material
- If no suitable image exists, publish text-only and note in the task comment
- Image alt text: e.g., "Jogadores do Sporting em ação contra Benfica" (descriptive, not keyword-stuffed)
- Do NOT use stock photos or unrelated images
---
## Pipeline Integration
### New Articles (Writer Agent Workflow)
1. **Fetch from aggregator** (RSS feeds from `sources.json`)
2. **Evaluate against Real News criteria** (above)
3. **Reject if:**
- Not in Portuguese
- Duplicate of recent article on andebol.net
- Speculative or unverified
- No clear source attribution possible
4. **Accept if:** meets all Real News criteria
5. **Write** full article from scratch
6. **Attach featured image** (with rights check)
7. **POST to WordPress** via REST API with:
- Title, content (HTML), excerpt, tags, categories, featured image
- Status: `publish` (immediate) or `draft` (for editorial review)
8. **Log the URL** in task comment
### Quality Checklist (Before Publish)
- [ ] **Language:** all text is PT-PT (no English, no mix)
- [ ] **Source cited:** article mentions at least one verifiable source
- [ ] **No quotes invented:** only direct quotes from source material
- [ ] **No speculation:** no "rumours", "allegedly", or unconfirmed claims
- [ ] **Headline matches content:** title accurately summarizes the article
- [ ] **Link check:** all external links are active and relevant
- [ ] **Image rights:** featured image is cleared or original
- [ ] **Metadata:** title, excerpt, tags, categories assigned
- [ ] **Length:** 250–600 words (or justified exception noted)
---
## Common Pitfalls & How to Avoid Them
| Pitfall | Why It's a Problem | How to Fix |
|---------|-------------------|-----------|
| English phrases (e.g., "coach", "match", "season") | andebol.net is Portuguese-only | Use PT-PT terms: treinador, jogo, época |
| Copy-pasting from source URL | Plagiarism; duplicate on Google | Rewrite from scratch in your own words |
| "According to rumours" | Unverifiable speculation | Only publish confirmed official announcements |
| No headline-content match | Clickbait; breaks reader trust | Write headline after article; verify it matches |
| Missing featured image | Weak visual engagement | Always attach relevant image (or publish text-only with note) |
| Generic or vague headline | Poor SEO; unclear what article is about | Include specific: score, player name, or date |
| Mixing PT-BR and PT-PT | Confusing for readers; brand inconsistency | Use consistent PT-PT spelling and vocabulary |
---
## Escalation & Edge Cases
### When in doubt, ask:
1. **Is this speculative?** (e.g., "team rumoured to sign player X")
- **No:** only publish if official announcement exists
2. **Is it in Portuguese?** (e.g., source is English, auto-translated)
- **No:** skip or rewrite fresh from reliable PT source
3. **Is this a duplicate?** (e.g., same match report already published)
- **Yes:** skip unless your version adds significant new analysis/source
4. **Do I have permission to use this image?**
- **No:** don't publish; note in task comment and skip this article
### Contact points
- **Board/editorial review:** comment on task if article requires human approval before publish
- **Technical issues:** [BIT-739](/BIT/issues/BIT-739) for i18n/locale problems
- **Pipeline feedback:** document blockers in weekly metrics
---
## Templates
### Match Report Template
```
## Jogo: [AWAY] vs [HOME]
Data: [date], [venue]
[OPENING SENTENCE: Who won, score, venue, date]
[PARAGRAPH 1: Final result, key moments, standout performances]
[Reference to standings or next fixtures]
[PARAGRAPH 2: Coach quote or analysis on the match]
[Players of the match or notable stats]
### Próximas jornadas
[Next fixture for both teams]
### Ficha técnica (optional for detailed match)
- **[HOME]:** [list of scorers or key players]
- **[AWAY]:** [list of scorers or key players]
- **Árbitros:** [if notable or disciplinary]
```
### Transfer News Template
```
## [PLAYER NAME] assina por [CLUB NAME]
[OPENING: who, club, effective date, key terms (if public)]
[PARAGRAPH 1: Brief bio of player, previous club, reason for move]
[Link to player profile or previous andebol.net mention]
[PARAGRAPH 2: Quote from club or player if available]
[Context: how this strengthens the team or fits strategy]
### Contexto
[Competition or season implications]
```
### Competition Update Template
```
## [COMPETITION NAME] — [UPDATE TYPE: standings, schedule, rule change]
[OPENING: what changed, why, effective date]
[PARAGRAPH 1: Details and context]
[Current standings or schedule table (if relevant)]
[PARAGRAPH 2: What this means for teams/competition]
```
---
## Version History
| Date | Change | Issue |
|------|--------|-------|
| 2026-04-02 | Initial brief created in response to English article incident | [BIT-740](/BIT/issues/BIT-740) |
---
## See Also
- **Technical locale/i18n:** [BIT-739](/BIT/issues/BIT-739)
- **Writer pipeline:** `docs/WRITER_PIPELINE_ANDEBOL.md`
- **Aggregator API:** `docs/AGGREGATOR_OPERATIONS.md`
- **Emergency context:** [BIT-738](/BIT/issues/BIT-738)
+15 -3
View File
@@ -2,15 +2,27 @@
**Scope:** `writer-pipeline/` in this repo. **Parent:** aggregator epic (Paperclip **BIT-709**); delivery tracked under **BIT-713**.
## Editorial Standards
**All content must follow the [Editorial Brief](ANDEBOL_EDITORIAL_BRIEF.md).** Key rules:
- **Language:** European Portuguese (PT-PT) only — no English
- **Real news only:** verify facts, cite sources, no speculation
- **No plagiarism:** rewrite from scratch, never copy-paste
- **Quality checks:** headlines must match content; images must have clear rights
See [`docs/ANDEBOL_EDITORIAL_BRIEF.md`](ANDEBOL_EDITORIAL_BRIEF.md) for detailed publication criteria, writing templates, and common pitfalls.
## What it does
1. **Ingest** — Pulls RSS sources from `writer-pipeline/config/andebol.net.sources.json` into a local JSON store (`writer-pipeline/var/aggregated-items.json`, gitignored).
2. **Shortlist** — Newest items that are not yet drafted in WordPress and not skipped.
3. **Read path (aggregator-first)** — Before any LLM *reading* step, the writer uses only structured fields from the store (`title`, `summary`, `url`, `sourceFeedId`). No full-page fetch is required for the primary path.
4. **Metrics** — Each cycle appends one JSON line to `writer-pipeline/var/metrics.jsonl` with estimated **read-phase** tokens for:
3. **Editorial filter** — Each shortlisted item is evaluated against the [Editorial Brief](ANDEBOL_EDITORIAL_BRIEF.md) (language, fact-checking, source attribution) before writing. Skip items that do not meet criteria.
4. **Read path (aggregator-first)** — Before any LLM *reading* step, the writer uses only structured fields from the store (`title`, `summary`, `url`, `sourceFeedId`). No full-page fetch is required for the primary path.
5. **Metrics** — Each cycle appends one JSON line to `writer-pipeline/var/metrics.jsonl` with estimated **read-phase** tokens for:
- **Aggregator path:** `aggregatorReadContext()` (title + summary + URL + instruction block).
- **Legacy path:** full HTML text fetch per shortlisted URL (for comparison only). If a fetch fails, that item falls back to summary-sized estimate so the cycle still completes.
5. **Publish** — Optional: creates **WordPress drafts** from the shortlist using Application Passwords (never required for metrics-only runs).
6. **Publish** — Optional: creates **WordPress drafts** from the shortlist using Application Passwords (never required for metrics-only runs).
## Fallback behaviour