# ConflictClarifier — Full Documentation > Multi-perspective tracking of the 2026 Iran-Gulf Crisis with events updated hourly, verified claims, peace proposals, and AI-generated briefings and framings read through several distinct political perspectives. Built for journalists, researchers, policymakers, and educators who need to read the conflict from multiple angles rather than a single narrative. Generated: 2026-11-24. This file is built from the site's content modules by `scripts/gen-llms.mjs`; every count below is computed at build time, and every link is checked against the site's routes. Counts of database-backed records (events, claims, posts, polls) are deliberately not stated because they change continuously. ## Mission ConflictClarifier is a conflict intelligence platform designed for **transparency, not propaganda**. We aggregate articles and reports from news APIs and institutional feeds — think tanks, government and international bodies, humanitarian organizations, and state and international media — and let users read events through several political lenses while keeping the neutral source text and source links accessible. ## How to read this site Before using the data, please understand the distinctions we make: - **Fact**: information that appears in multiple primary sources we monitor. - **Reported figure**: a number stated by a single source (e.g. casualty totals announced by one government). Always shown with the source. - **Verified figure**: a reported figure confirmed by 2+ independent sources or by structured datasets (such as Airwars or the IAEA). - **Claim**: a publicly stated assertion by an actor (government, military, official). Tracked in /verify with supporting and contradicting sources. - **Disputed**: a claim where multiple credible sources contradict each other. - **AI interpretation**: bias-filtered rewrites, daily briefings, and simulator scenarios. Always labeled "AI-generated" and always preserves access to the neutral source text. - **Forecast**: outputs of the Horizon Simulator. Probabilistic, scenario-based, not predictions. ## Architecture - Framework: Next.js 16 (App Router) with TypeScript, self-hosted with Coolify (Docker image built from the repo) - Database: self-hosted PostgreSQL on our own server - AI: the fleet's own open-weight models, via an internal router, for bias-filtered content generation - Data Pipeline: CurrentsAPI for news, direct RSS / WordPress REST feeds plus a self-hosted Firecrawl instance (used for HTML-scraped institutional pages and search discovery) for institutions, UCDP Candidate Events for conflict events, FRED for economic series. GDELT and ACLED have connectors but are opt-in and treated as unavailable (GDELT's API throttles our requests; ACLED account access is denied with HTTP 403). - Email: Resend for newsletters and transactional emails - Maps: Mapbox GL JS (lazy-loaded via IntersectionObserver to conserve free-tier quota) - Background jobs: a Coolify scheduled task calls a dispatcher endpoint every 10 minutes; the dispatcher decides which jobs are due ## Pages All routes are locale-prefixed: `/{locale}/{path}`. Supported locales: `en`, `ar`, `fa`, `he`, `es`, `zh`. RTL handled for ar, fa, he. ### Core dashboards - `/` (locale-prefixed `/en/`, `/ar/`, etc.) — Homepage (data updated hourly). Hero status, quick stats, daily briefing card, conflict map, casualty trend, recent events (deduplicated), newsletter signup. - `/start-here` — Two-minute onboarding page for first-time visitors. Five framing principles (reports vs facts, confidence ranges, perspectives, public methodology, layer-not-wire), entry-point picker for the four audience landings, and a curated "where to go next" link grid. - `/timeline` — Filterable chronological event list with replay controls (Play/Pause/Stop, keyboard shortcuts Space/Escape). Filters: type, actor, search. URL `?q=` deep-link search. - `/daily` — Daily briefings archive. Each day has a neutral summary plus framings from the perspectives chosen for each conflict (up to seven); framings are shown for days from 17 November 2026, and earlier days show the neutral summary only. - `/daily/[date]` — Specific date's briefing with bias lens selector. ### Live data - `/pulse` — X (Twitter) posts from curated accounts, AI-summarized through bias lenses. Posts are ingested hourly through a shared, rate-limited fleet gateway and can be paused, in which case the page shows older posts. Shows "Last X Pulse update" timestamp. - `/pulse/trending` — Most-engaged posts. - `/pulse/sentiment` — Sentiment breakdown. - `/pulse/voices` — Top accounts driving the conversation. ### Verification & analysis - `/verify` — Claims & verification dashboard. Status counters, claim cards with supporting/contradicting sources, neutral analysis. - `/sources` — Full source transparency page: every provider, update frequency, known limitations, bias labels, methodology. - `/sources/credibility` — Source credibility leaderboard (citation counts, accuracy bars). - `/actors` — Profiles of every key actor with event counts and role descriptions. ### Tools - `/compare` — Side-by-side bias comparison. Pick an event, pick 2-3 perspectives, see the same facts framed differently. Shareable via URL. - `/compare/gallery` — Gallery of previously-generated comparisons. - `/simulator` — Horizon Simulator. Adjust 10 conflict variables (or start from one of 6 presets), choose a bias lens, generate AI scenarios with timeline, probabilities, and key drivers. Outputs are explicitly labeled as AI forecasts, not intelligence. - `/quiz` — Bias Blind Test. Read a daily briefing in one perspective and guess which lens wrote it. Shareable results. - `/impact` — Conflict Impact Calculator. Select a region, see personalized fuel cost, supply chain exposure, refugee impact estimates with disclosed methodology. - `/my-tracker` — Personalized newsletter preferences (actors, types, bias, frequency). No auth required for signup. ### Economy & forecasting - `/economy` — Economic impact dashboard: Brent crude, currency moves, FRED data. - `/oil` — Oil price tracker with conflict-event correlation. - `/stats` — Comprehensive statistics dashboard (events, X posts, claims, sources). - `/predictions` — Community prediction polls. - `/predictions/accuracy` — Expert (ISW/CSIS/Crisis Group/Brookings/RAND/IISS) forecasts vs community predictions. - `/spillover` — Regional impact: Lebanon, Yemen, Gulf States, Iraq, Red Sea, Syria. ### Reference - `/briefing` — Daily text briefing with the same perspective framings as the daily digest, built from the daily summaries (generated every 6 hours). There is no audio version. - `/solutions` — Peace proposals and diplomatic initiatives tracker. - `/events` — Paginated archive of conflict events. Event pages are source-linked records marked noindex (not intended for search indexing); the primary pages are the hubs, daily digests, conflict pages, glossary, and methodology. - `/events/[slug]` — Individual event detail page with bookmark, share, related events, community notes, and Compare CTA. Perspective framings appear only on events that have been processed with the current method. ### Account - `/auth/signin` — Passwordless sign-in by emailed magic link (NextAuth, with Resend delivering the email). - `/newsletter` — Newsletter signup landing page. ### Admin - `/admin/*` — Admin-only routes (members, messages, newsletter sending). Restricted to admin accounts by a server-side session role check. ### Trust & methodology (evergreen) - `/about` — What ConflictClarifier is, what it is not, who it is for, how it handles conflicting reports. - `/editorial-policy` — Editorial principles, neutrality stance, handling of official claims and propaganda, casualty number policy, corrections process, AI-assisted content rules. - `/verification-methodology` — Status definitions (Verified / Partial / Unverified / Disputed), confidence levels, triangulation rules, OSINT handling, casualty handling, what "developing" means. - `/bias-methodology` — Source bias vs article bias vs framing bias, the perspectives, loaded language, omission risk, limits of framing analysis. - `/ai-use-policy` — Where AI is used on the site (bias framings, daily briefing drafts, classification, dedup), where it is not used (verification, casualty figures, source reliability labels, live user queries), human-review expectations. - `/corrections` — How to report errors, what to include, how corrections are reviewed, correction labels (Updated / Clarified / Corrected / Status changed / Retracted). - `/data-limitations` — Fog of war, source-availability bias, language bias, platform bias, censorship risk, API outage risk, delayed verification. - `/funding-and-ownership` — Operator, funding model, sponsorship policy, conflicts of interest, editorial independence. - `/contact` — Corrections, source suggestions, media, partnerships, research enquiries. ### Glossary (38 evergreen terms) - `/glossary` — Index of plain-English definitions across verification, OSINT, framing, diplomacy, and operations. - `/glossary/[slug]` — Individual term page (e.g. /glossary/verification, /glossary/osint, /glossary/strait-of-hormuz). Each entry: definition, why it matters when reading conflict news, common misunderstandings, related terms and pages. Categories: Verification & evidence, Intelligence & analysis, Media & framing, Diplomacy & peace, Military & operations, Actors & organisations. ### Actor profiles (18 entries) - `/actors` — Index of every actor whose decisions shape the Iran-Gulf information environment, organised by category (states, alliances, international organisations, non-state armed groups, regulatory & monitoring). - `/actors/[slug]` — Per-actor profile with structural role, objectives, declared/inferred red lines, aligned actors, adversaries, constraints, related glossary terms, and primary-source links. Profiles: /actors/united-states, /actors/iran, /actors/israel, /actors/china, /actors/russia, /actors/united-kingdom, /actors/saudi-arabia, /actors/united-arab-emirates, /actors/qatar, /actors/iraq, /actors/syria, /actors/yemen-houthis, /actors/hezbollah, /actors/irgc, /actors/united-nations, /actors/iaea, /actors/european-union, /actors/nato. ### Compare gallery (10 worked framing examples) - `/compare/gallery` — Editorial gallery of evergreen framing-comparison examples plus the live user-generated gallery beneath. - `/compare/gallery/[slug]` — Per-example detail page showing the neutral fact base, what-to-watch-for cues, full perspective-by-perspective framings (6 perspectives) with loaded terms and typically-omitted context, and a "how to read this responsibly" footer. Examples: missile strike claim, naval incident in the gulf, sanctions announcement, ceasefire proposal, casualty report, nuclear inspection dispute, proxy group attack claim, oil shipping disruption, diplomatic meeting, humanitarian access dispute. ### Content hubs (4 hubs, 38 articles) - `/conflict-intelligence` (7 articles): What is conflict intelligence?; How conflict intelligence differs from news; How to read conflict dashboards; How to distinguish claims, reports, events, and verified facts; How governments use information during conflict; Why source transparency matters; How to build a personal conflict brief. - `/osint` (9 articles): What is OSINT?; OSINT in conflict reporting; How satellite imagery is used; How social media videos are verified; How geolocation works at a high level; How maritime tracking helps conflict analysis; How aviation tracking helps conflict analysis; OSINT limitations; OSINT ethics. - `/propaganda` (7 articles): What is propaganda?; Disinformation vs misinformation vs malinformation; How wartime propaganda works; How headlines shape blame; How casualty figures are politicised; How images and videos can mislead; How to avoid becoming a propaganda amplifier. - `/iran-gulf-crisis` (15 articles): The Iran-Gulf crisis, explained; Timeline of US-Iran tensions; The Strait of Hormuz, explained; Iran's nuclear programme, explained; The IRGC, explained; The JCPOA, explained; Iran sanctions, explained; Iran's regional proxies, explained; The Houthis, explained; Hezbollah, explained; Gulf security, explained; Maritime insurance and the Gulf war-risk premium; How Iran tension moves oil prices; What happens if Iran closes Hormuz?; What could de-escalation look like?. ### Permanent detail pages (DB-driven, dynamic sitemap entries) - `/verify/[id]` — Claim detail pages. ClaimReview JSON-LD with rating, ClaimEvidencePanel for evidence-for/against, claim metadata table, neutral analysis, verification notes, "what would change this rating" section, copy-citation block. URL is the claims.id text PK. - `/solutions/[id]` — Peace proposal detail pages. CreativeWork JSON-LD, SupportOppositionMatrix (actor × position grid with editorial seed fallback for proposals without live position data), RedLineComparison, CeasefireTermsTable, ProposalTimeline, sources list. URL is the peace_proposals.id text PK. ### Foundation work (schema + helpers shipped; live wire-up deferred) - Event clustering schema: `raw_source_items` + `canonical_events` + `event_sources` tables exist from an earlier migration, but clustering into canonical events is not running. Today each event comes from a single article or report and carries its own `sources` list; near-duplicates are removed by title comparison (see Deduplication). - Conflicts table added via migration with iran-gulf-2026 seeded. `conflict_id` column backfilled on conflict_events, claims, peace_proposals. Event framings use a per-conflict perspective set, but page routing is not conflict-aware — single-conflict default is preserved. - i18n trust-page key scaffolding: `trustPages` namespace added to all 6 message catalogs with English fallback values. Canonical key names exported from src/lib/i18n/trustKeys.ts. Body content stays English at source until human translations exist. ### Source reliability and pipeline health - `/source-reliability` — Source taxonomy (official government, military, IO, NGO, think tank, news agency, national media Western, state media, social media, market data, maritime/aviation tracking, sanctions/legal, academic) with per-category cautions and what each is good for. - `/api-status` — Public-safe summary of provider_runs: per-provider health, 24h success/failure counts, last run, average records. No error messages or internal hostnames exposed. ### Trust banners on user-facing tools - `/predictions` — Now carries an explicit "these are community votes, not forecasts" caution and an "not financial/military/safety advice" disclaimer. - `/simulator` — Now carries an "illustrative scenarios, not forecasts" warning including specific use-restrictions. - `/pulse` — Now carries a manipulation/virality/sentiment caveat with specific failure modes (coordinated campaigns, platform bias, language bias). ## Data Sources Sources are described by what they are and how they are collected. Whether a given job is currently producing data is shown live on `/api-status` and `/data-quality`, not stated here. ### News APIs - CurrentsAPI — English-language queries hourly; non-English sweeps (Arabic, Russian, Turkish, Chinese) three times a day, with headlines machine-translated into English. Requests are paced to stay inside a daily quota shared with other sites. ### Think Tanks (every 3 hours, official feeds) CSIS (RSS), International Crisis Group (RSS), RAND Corporation (RSS). ISW is on the source list but is blocked by Cloudflare, so its updates are not expected to arrive. Mapped to "Academic"/"International" bias labels. ### Government & International Orgs (every 3 hours, official RSS) UN Press, IAEA, US Department of Defense. Mapped to "US Government" or "International". ### Regional & Non-Western Media (every 3 hours, official RSS) TASS (Russia), Al Jazeera. Included to provide perspectives that single-narrative platforms miss. Western wire coverage arrives only to the extent CurrentsAPI returns it, not through direct scraping. ### Conflict event datasets - UCDP Candidate Events (Uppsala Conflict Data Program) — public monthly CSV of georeferenced candidate events, checked daily and mapped to the tracked conflicts. On by default. - ACLED — a connector exists but is opt-in and treated as unavailable: the configured account authenticates but the data endpoint returns HTTP 403 (access denied). - GDELT — a connector exists but is opt-in; GDELT's DOC API throttles our requests. ### Humanitarian WHO Eastern Mediterranean (WHO EMRO) pages are collected by scraping through a self-hosted Firecrawl instance, every 4 hours; the job is skipped when that instance is not configured. ### Economic data FRED (Federal Reserve Bank of St. Louis), daily at 06:00 UTC: Brent, WTI, US gas, USD/EUR. ### Social X/Twitter posts are pulled hourly through a shared, rate-limited fleet gateway that uses a third-party X data provider (TwitterAPI.io); the posts cover all tracked conflicts. They are shown as social signals on the Pulse pages and are never used as the source of a timeline event. Ingestion can be paused, in which case older posts remain visible. ### Search discovery Web search discovery runs through the self-hosted Firecrawl search endpoint and is skipped when it is not configured. ### Source concentration The direct feed mix is concentrated: events derived from direct feeds come mostly from TASS and Al Jazeera, in addition to CurrentsAPI articles. More outlets are being added to balance this. Read feed-derived events with that in mind. ## Bias Perspectives The bias system is the platform's core innovation. Each perspective has explicit framing rules; **none of them fabricate facts** — they only re-frame facts that exist in the source text. Each tracked conflict has its own perspective set (7 conflicts have one); the set for the Iran-Gulf crisis has 7 perspectives: 1. **Neutral** — A strictly neutral, fact-first telling: lead with what is reported to have happened, who is reported to have done it, and where. Attribute every claim to its stated source. Use no loaded or emotive words. 2. **Iranian official** — The Iranian government and Iranian state media tend to describe events in terms of national sovereignty, resistance to foreign pressure, sanctions, and the right to self-defence. 3. **Israeli** — The Israeli government and mainstream Israeli media tend to describe events in terms of Israeli security, the right to self-defence, and the threat they attribute to Iran and its regional allies. 4. **Western** — US and allied governments and mainstream Western media tend to describe events in terms of security alliances, deterrence, freedom of navigation, the proportionality of responses, and non-proliferation. 5. **Gulf Arab** — The governments of Saudi Arabia, the UAE and Qatar, and Gulf Arab media, tend to describe events in terms of regional stability, the security of shipping and energy infrastructure, de-escalation, and keeping out of the conflict. 6. **Global South** — Governments and media in countries such as India, Brazil and South Africa tend to foreground non-alignment, the effect on energy prices and trade, calls for de-escalation and negotiation, and wariness of bloc politics. 7. **Humanitarian / anti-war** — Humanitarian organisations and anti-war commentators tend to foreground the effect of events on civilians, displacement and humanitarian access, and tend to describe ceasefire, negotiation or other diplomatic alternatives as the way forward. Event framings are generated from the event's own source text only, instructed to use only facts stated in it, and checked by an automatic validator before they are stored. Outputs are labeled "AI-generated" in the UI and the neutral source text stays accessible. Not every event has framings: they are generated for recent events, and an event without them shows its plain summary only. Daily briefings cover the conflicts with the most events that day, and each conflict gets its own section with its own perspective set (the perspectives chosen for each conflict (up to seven)). Each daily framing is checked by the automatic validator and then by a second AI check against the source text, and a framing that fails is not stored, so a day may show fewer perspectives than the full set. Those daily framings are shown for days from 17 November 2026; earlier days show the neutral summary only. The framing-comparison gallery uses 6 perspectives. ## Deduplication Each event comes from one article or report; we do not merge reports into combined "canonical" records. The same story from several outlets can therefore appear more than once until it is caught by title comparison. Near-duplicates are removed at these points: 1. **Ingest** — When articles are processed into events, new titles are compared with events from the last 72 hours using word overlap on normalized titles (threshold: more than 50%). The CurrentsAPI job applies the same overlap test. 2. **Housekeeping cron** — Every hour, a sweep compares titles of recent events (last 7 days) and deletes later near-duplicates (same word-overlap test, more than 50%). The old event page redirects to the surviving page. 3. **Display layer** — The homepage `dedupEvents()` helper (`src/lib/dedup.ts`) uses the same 50% threshold on titles before rendering. Article fingerprinting also strips tracking parameters (utm, fbclid, gclid) and normalizes URL hosts before comparison. ## Verification Rubric Events from the pipeline are auto-classified at ingest: - **partially-verified** — From a Tier 1 wire service (Reuters, AP, BBC), Tier 2 institutional source (ISW, CSIS, Crisis Group, UN, IAEA, Guardian, NYT, France 24, Al Jazeera, ReliefWeb, etc.). - **unverified** — All other sources (state media, social media, less-established outlets). - **disputed** — Set manually when contradicting authoritative sources are tracked in /verify. - **verified** — Reserved for events with 3+ independent source confirmations OR structured-dataset confirmation (such as Airwars). Verification badges are color-coded everywhere they appear (green/amber/red/orange). The criteria are intentionally conservative: we do **not** mark anything "verified" simply because it's widely reported. ## Update Frequency by Data Type | Data type | Refresh cadence | Provider | |-----------|-----------------|----------| | News articles (English) | Hourly | CurrentsAPI realtime | | News articles (Arabic, Russian, Turkish, Chinese) | 3 times a day | CurrentsAPI multilingual | | Think-tank, government, and media feeds | Every 3 hours | Direct RSS / WordPress REST | | Humanitarian (WHO EMRO) | Every 4 hours | Self-hosted Firecrawl (skipped when not configured) | | Search discovery | Every 2 hours | Self-hosted Firecrawl search (skipped when not configured) | | UCDP candidate events | Checked daily (monthly source file) | UCDP | | Article processing into events | Every 20 minutes | Internal | | Bias framings | Hourly (limited number of events per run) | Fleet LLM router | | Daily briefing summaries | Every 6 hours | Fleet LLM router | | Economic series (Brent, WTI, US gas, USD/EUR) | Daily at 06:00 UTC | FRED | | Housekeeping (dedup, stats, geocoding) | Hourly | Internal | | Live X posts | Hourly when enabled | Shared fleet X gateway (third-party provider: TwitterAPI.io) | | GDELT events | Hourly, only when opted in (throttled upstream) | GDELT | | ACLED events | Every 6 hours, only when opted in (account access denied) | ACLED | A "freshness indicator" dot on the daily briefing and other timestamps shows green / amber / red based on how recent the data is. The cadences above are the scheduled ones; `/api-status` shows what actually ran. ## AI Generation Policy All AI processing runs on the fleet's own open-weight models via the internal router. It is used in four places: 1. **Event bias framings** — For each event, the event's summary (or headline if there is no summary) is rewritten in each perspective of the event's conflict (7 for the Iran-Gulf crisis). The input is that text only, not the full articles, and each framing is checked by an automatic validator before it is stored. Runs hourly over a limited number of events, so framings exist for recent events and not necessarily for every event. 2. **Daily briefing generation** — Groups the last 24h of events by conflict, writes a neutral summary for each of the conflicts with the most events, then generates that conflict's perspective framings in parallel. Each text is checked by the automatic validator and by a second AI check against the source events; a text that fails is not stored and is never replaced by the neutral text. 3. **X post summarization** — One-sentence neutral summaries of high-engagement social posts. 4. **Horizon Simulator scenarios** — Probabilistic future scenarios from user-set variables. All AI output is **labeled "AI-generated"** in the UI. Bias rewrites preserve and link to the neutral source text. Caching is used to avoid regenerating identical content. Outputs are stored with source event IDs. We do **not** use AI to: - Generate primary reporting (we never claim something happened that no source reported). - Fabricate quotes or attributions. - Score truth or verify claims (verification is rule-based and source-driven). ## API Endpoints (Public) - `GET /api/feed?type=` — RSS 2.0 feed, cached 15 min. - `GET /api/daily-summary` — Daily briefing JSON (requires CRON_SECRET for write triggers, public for reads). - `GET /api/search?q=` — Global search across events, claims, peace proposals. - `GET /api/community-notes?event_id=` — Approved community annotations for an event. - `POST /api/community-notes` — Submit a note (auth required, zod-validated, HTML-escaped). - `POST /api/my-tracker` — Personalized newsletter signup (zod-validated, rate limited 5/min). - `POST /api/newsletter` — Standard newsletter signup. - `POST /api/contact` — Contact form (HTML-escaped). ## Multilingual Status UI translations exist for all 6 locales (`en`, `ar`, `fa`, `he`, `es`, `zh`): English, Arabic, Persian/Farsi, Hebrew, Spanish, Chinese (Simplified). - **English** — Authoritative source for all strings. - **Arabic, Persian, Hebrew** — RTL layout, fully translated nav and core copy. Event content remains in source language (mostly English) — translation of news articles is out of scope. - **Spanish, Chinese** — Translated nav and core copy. Hreflang annotations in the sitemap link locale variants of every route. `x-default` points to the English version. ## Security & Privacy - User-data tables (bookmarks, watchlists, newsletter, community notes) are accessed only from server-side code, never directly from the browser. - Public read access only for published content (events, daily summaries, claims, peace proposals). - Rate limiting on the simulator, AI-bias batch, tracker signup and prediction-vote endpoints. - Input validation with zod on POST endpoints. - HTML escaping on user-submitted content (community notes). - CRON_SECRET bearer token on all cron endpoints. - Database credentials and API keys are server-only; never exposed to the client bundle. - Analytics: Google Analytics 4 (when configured) is not loaded if a visitor has declined; for a visitor who has not yet chosen it loads in Consent Mode with analytics storage denied (no GA cookies), and analytics cookies are set only after consent is granted. Withdrawing consent removes the scripts and expires the cookies. ## Corrections Policy If you find an error — a misattributed claim, a wrong casualty figure, an outdated peace proposal status, a duplicate event — please contact us via `/contact` with the URL of the page and a description of the issue. We aim to triage corrections within 48 hours and republish the corrected version with a brief changelog note. ## Contact - Website: https://conflictclarifier.com - Corrections / questions: via the /contact form ## Repository deliverables (for AI agents auditing this site) - `AUDIT_CONFLICTCLARIFIER_FULL_SITE.md` — full route/feature inventory with status - `DATA_VALUE_AUDIT.md` — per-provider analysis (CurrentsAPI, ScrapingBee, NewsData.io, Grok, ACLED, GDELT) - `CONFLICTCLARIFIER_IMPROVEMENT_REPORT.md` — executive summary of recent improvements + remaining backlog