mirror of
https://github.com/bitbaum/biaslens.git
synced 2026-12-04 05:37:30 +01:00
* feat(replies): saved readings, replies with a page for the receiver, share images, ways in Someone sends you an article; you send back BiasLens's reading of it, and the person who opens it should see something they had not noticed in ten seconds. - SavedReport / Reply tables (migration 0002). A saved reading stores the report and its located passages, never the article text; the same text + prompt version + language returns the saved reading without a model call - /r/[id]: the saved reading with the reply composer and its OG image - Reply composer: occasion presets (friend, group chat, author, public post, disagree, class), length (line / brief / page), sections, name and note, a preview of exactly what is sent, then one Share button (system share sheet with the image where supported, copy text/link, WhatsApp, Telegram, Signal, X, Bluesky, LinkedIn, Facebook, email, image download) - /a/[id]: the receiver's page — three findings ranked in code by surprise × checkability (an opinion presented as a finding, figures that disagree, polls without a sample...), each with its passage; optional "guess first" that hides the findings until answered; reply back; full reading - Share images via next/og: link preview, square and story, with "AI reading · not a fact check" in the image; colours mirror theme.css and a test fails on drift - Ways in: /analyze?u=, the address prefix (/https://...), web manifest with a share target and an app icon Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH * feat(studio): rewrite the article or answer it, with labelled simulations and a fact diff - /api/rewrite + Rewrite table (migration 0003; Reply.rewriteId): two forms (rewrite the article / write a response) and the voices each allows: neutral, from stated values (the eight smartvote dimensions, premises stated in the label), as an outlet, as a public figure, BiasLens, letter to the editor, my own reply - Labels are written by code; outlets and people are always "Simulation · not written by ...". Outlet presets store facts only (name, format, country); BiasLens does not write its own characterisation of an outlet - A person is simulated only when Wikidata shows a matching public figure with a Wikipedia article and a public-voice occupation; two matches ask the reader to choose; an opt-out list is honoured - A rewrite of the article is checked against the original's facts (kept / changed / left out / added); BiasLens's own voices keep the vocabulary rule - The article text for a rewrite is the reader's copy if its SHA-256 matches the reading, else re-read from the link and accepted only if unchanged - Studio UI under every reading, original beside the rewrite (one tap between them on a phone); a rewrite can be sent with a reply and the receiver sees it with its label and facts check - Fix: link-styled primary buttons kept the global link colour (dark on dark) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH * feat(profiles): tap an author, a quoted person or the outlet to see sourced public facts - src/lib/entities/profile.ts: resolve a name on Wikidata only when the name matches and the article's own description agrees (occupation, employer, office, party, membership); two plausible records are offered to the reader, never guessed; outlets must be media items (or described as such) - Facts shown with a source link each: occupation, employer, position held, recorded party membership, member of, citizenship; for outlets owner (and the owner's owner, two levels), publisher, editor-in-chief, country, language, headquarters, founding year; the Wikipedia opening paragraph - GET /api/profile with a day-long in-memory cache (failures not cached) and a rate limit; a failed lookup is reported as such, never as "not found" - Profile sheet as a native <dialog> (bottom sheet on a phone), localised; "Is something wrong here?" opens a challenge issue; no rating or label Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH * feat(eval): report evaluation harness and rubric pnpm run eval:reports runs the real two-pass pipeline on eval/articles.json (links and human expectations, never article bodies) and writes a summary: passages grounded, expected voices found, author never listed as a voice, expected techniques, correct attribution, forbidden labels, time and models. eval/RUBRIC.md covers what cannot be counted. Needs a model key; skipped without one. Ships with two fictional articles; real ones are a human task. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH * feat(report): note two different figures from the same source A live report on the poll fixture listed 40 % and 31 % from the same survey but did not flag them. Code now notes any two figures of the same kind from the same named source with different values, as a prompt to check whether they measure the same thing (not as a contradiction). It appears in the at-a-glance sentence and among a reply's findings when the model did not already flag the pair, and is documented on /methodology. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH * fix(analyze): render the form in the first HTML Reading the shared link with useSearchParams inside a bare Suspense left /analyze empty until hydration, which the browser smoke check (and any reader on a slow phone) saw as a blank page. The server page now reads the link and passes it in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH --------- Co-authored-by: Claude <noreply@anthropic.com>
30 lines
1.3 KiB
JSON
30 lines
1.3 KiB
JSON
{
|
|
"about": "Articles for scoring BiasLens reports before and after a method change. Store links and human notes only, never article bodies. 'expect' holds what a careful human reader found; the harness compares the report with it. Add real articles here (aim for ~12 across outlets, genres and languages).",
|
|
"articles": [
|
|
{
|
|
"id": "fixture-poll-de",
|
|
"fixture": "src/lib/analysis/test-fixture.ts#FIXTURE_ARTICLE",
|
|
"language": "de-CH",
|
|
"notes": "Fictional poll story modelled on the owner's 2026-10-26 test: quoted expert's explanation, 40 vs 31 percent, no sample size, anonymous critics.",
|
|
"expect": {
|
|
"voices": ["Peter Beispiel", "Hans Probe", "Kritiker aus der Verwaltung"],
|
|
"notVoices": ["Anna Muster"],
|
|
"techniques": ["inconsistent_figures", "poll_without_sample", "anonymous_source"],
|
|
"attributedTo": { "Patriarchale Herkunftskulturen": "Peter Beispiel" }
|
|
}
|
|
},
|
|
{
|
|
"id": "fixture-cycle-lane-en",
|
|
"fixture": "src/lib/analysis/example.ts#EXAMPLE_ARTICLE",
|
|
"language": "en",
|
|
"notes": "Fictional council claim: before/after traffic with a confounder (roadworks).",
|
|
"expect": {
|
|
"voices": ["Alex Reed"],
|
|
"notVoices": [],
|
|
"techniques": ["causal_leap"],
|
|
"attributedTo": {}
|
|
}
|
|
}
|
|
]
|
|
}
|