Commit Graph
36 Commits
Author SHA1 Message Date
CatoandClaude 70d580687c feat: a front door, and usage numbers without tracking (#241)
First step of docs/plans/2026-11-ready-for-users.md, from a first-visitor
walk of the live site on a phone and a desktop: the home page was a news
feed that neither said what BiasLens is nor took a link; /about, robots.txt
and sitemap.xml were missing; there were no usage numbers at all.

- Home: "See how an article argues", a link field and Examine on the first
  screen (a GET form to /analyze?u=, works before scripts load).
- /about: what it does, what it is not, what it costs, a way for newsrooms,
  schools and teams to write in.
- robots.txt and sitemap.xml; readings, replies, profiles and simulations
  stay out of search.
- UsageDay (migration 0011): one count per UTC day and kind of action,
  nothing about who or which article; /numbers shows 30 days; /privacy
  says so. Counted: readings, repeat opens, rewrites, simulations,
  corrections, replies.
- The plan: definition of ready for readers, paying organisations and
  investors, the order of work, and the owner's decisions.


Claude-Session: https://claude.ai/code/session_019MDtmtzudtWTJD7QppoPnu

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-29 11:23:35 +01:00
CatoandClaude Opus 5.5 ced8473b80 feat: microphone in the last plain prose fields (chatkit DictationField) (#233)
* feat: one-line DictationField for the last plain prose inputs

The /write title, notebook one-line fields and the AI illustration subject
use chatkit's DictationField (multiline={false}), so they carry the same
microphone as every other prose field. chatkit stays on ^0.44.0, which
already ships the one-line field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsf9DrBT3jKqVj95tq

* fix: name the write title field and export DictationField from the browser-check stub

Without ariaLabel, chatkit names the field after its placeholder, so the
title box was announced as "Say it in one line" instead of "Title".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsf9DrBT3jKqVj95tq

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 18:53:47 +01:00
CatoandClaude 45fbd964d1 chore(deps): bip-kit, limitkit, ai-forms and threadkit from the @bitbaum scope (#201)
Owner, 2026-11-06: the fleet's packages belong under the @bitbaum npm
organization (fleet docs/package-scope-migration-plan.md). Same code and
versions; dependency keys and import specifiers moved with
scripts/packages/rename-package.mjs from fleet.


Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 18:33:51 +01:00
Cato bf948d0a28 fix(writing): offer old drafts, readable link-buttons, privacy and terms (#206)
From a signed-in dogfood at 1920px (12 Nov 2026):

- /write no longer fills a new piece with a draft an earlier session left
  in this browser. A draft this tab wrote still comes back by itself
  (sessionStorage mark, so the sign-in round trip keeps working); an older
  one is offered with Resume draft / Start empty, and nothing is written
  over it until the writer chooses. Browser check covers both choices.
- Links drawn as buttons keep the button's colours: design-tokens styles
  .bb-button--primary inside :where(), so the app's link reset made every
  primary link-button dark on dark ("Write another" on My desk). Guarded
  by a design check; the desk button reads "Write another article".
- /privacy and /terms, with only what the code does, linked from the
  footer; OrangeCat's consent screen will link them once its client spec
  carries the URLs.
- The desk's server read lists fields explicitly (no unused binding).
2026-11-12 11:02:15 +01:00
Cato 03c3a76458 fix(writing): a first-time writer's path — drafts, sign-in, desk, tools, topics (#205)
* fix(writing): a first-time writer's path — drafts, sign-in, desk, tools, topics

From a signed-out first-time dogfood of Today → Write → sign-in → My desk
(12 Nov 2026):

- Save draft: signed in, it saves to the account and stays in the editor
  (a new piece moves to its edit address so the next save updates the same
  draft); the line under the text says whether the account has it and
  when. Signed out, it says the text is kept in this browser only, and
  "Sign in to save a draft" sits beside "Sign in to publish". Editing a
  published piece labels the button "Unpublish, keep as draft". Sign-in
  returns to the same page, topic or headline included.
- Sign-in copy follows `next`: from the composer it is about publishing;
  "manage your profile and security" is kept for /account.
- Composer tools: hover text for Speak, Improve, Photo and Chart;
  accessible names and hover text for H, B, quote, list and Link.
- My desk reads the session and your articles on the server, so it never
  shows "Loading what you wrote…"; a first visit with nothing anywhere gets
  one empty state. Investigation requests time out after ten seconds.
- Today's topic row says what it is ("In headlines from more than one
  source", with a line on where it leads) and counts read "2 sources".

* test(writing): find the Heading tool by its accessible name

The tool's title is now hover text ("Heading: make the line a section
heading"); its accessible name is Heading. Select it by role and name,
the way a person using a screen reader reaches it.
2026-11-12 10:35:15 +01:00
Cato c0faeeeaf4 feat(writing): keep edits safe with WritingKit (#194)
* feat(writing): coordinate assistance with WritingKit

* test(writing): use complete product stylesheet stack

* docs(writing): record verified adoption and rollout authority

* docs(writing): preserve concurrent package and rules updates
2026-11-06 11:00:40 +01:00
Cato 91a3819f3d Group navigation by task with SiteKit (#192)
* Group navigation by task with SiteKit 0.7

* Record navigation acceptance and remaining work
2026-11-06 01:16:13 +01:00
Cato ed93e661d9 fix(rewrite): contain long source and generated text on phones (#187)
* fix(rewrite): keep source and generated text within reading columns

* test(rewrite): capture reading layouts in actual viewports
2026-11-05 09:34:16 +01:00
CatoandClaude 852992dfed fix(auth): the sign-in card says "Sign in", the sign-up card "Create an account" (#168)
The headings and the links between the two pages now come from
AccountKit's labels, the same words as every other fleet app on its
screens ("Welcome back." and "Create your account." were BiasLens's own).


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 21:24:44 +01:00
Cato 731d351eac Navigation + mobile tab bar, investigations index, My desk, Settings (#165)
* Today: a news-style home with the lead investigation, changes since your last visit, evidence of the day and contested claims

* Handoff: Today page

* One navigation with a mobile tab bar; investigations index, follow, My desk and Settings

* Today masthead uses the shared sitekit HeroSection; smoke test expects the new home

* Shell browser check: three footer groups, five nav items, My desk
2026-11-02 21:18:24 +01:00
Cato e0b7eea614 Today: news-style home page (#163)
* Today: a news-style home with the lead investigation, changes since your last visit, evidence of the day and contested claims

* Handoff: Today page

* Today masthead uses the shared sitekit HeroSection; smoke test expects the new home
2026-11-02 20:46:57 +01:00
Cato bd27a82f7b test: validate installed shared composition rather than Git-only source (#95) 2026-10-27 09:12:35 +01:00
CatoandClaude Opus 5.5 e3bfdd8df4 feat(notebook): one box to speak or type; the notebook fills itself (#91)
* feat(notebook): one box to speak or type; the notebook fills itself

The research notebook was three cards of empty boxes and a six-field
source form, with no microphone and nothing to tap. It is now one
chatkit composer (with the fleet microphone) driving @fleet/ai-forms: a
sentence fills question, scope, explanations to keep open and what would
change your mind; the same box refines it, with one-tap suggestions and
undo. The filled notebook reads as text, editable with a tap. A source
is a pasted link: /api/source-preview reads the page's title through
readSource's SSRF guard, the stance is one Supports/Challenges/Context
row, and location and excerpt are optional. The browser record and its
storage key are unchanged, so existing notebooks open.

The article chat's microphone is switched on (new /api/transcribe on
ai-kit's speech chain, as in Substrata), and its starters lead with the
questions the report raised.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH

* chore(deps): take ai-forms 0.1.3 as the canary deployed it

The rollout gate held this PR: kivvi, the ai-forms canary, runs the npm
artifact of 0.1.3, and the GitHub tarball of the same tag is a different
artifact to the gate. Same version, same code, the canaried bytes: the
npm alias Loki uses. The git-prepare allowance is no longer needed.

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>
2026-10-26 22:06:41 +01:00
CatoandClaude Opus 5.5 c36adae273 fix(rewrite): naming a gap is not adding a fact (#89)
* 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

* fix(rewrite): a neutral version adds no facts

Live, a neutral rewrite of an unsourced poll supplied a sample of 500 and a
±3% margin: the flagged passage's suggested rewording was fed in as if it
were fact. The rewrite now names gaps instead of filling them, a draft whose
fact check finds additions is revised once, and the assessment's suggested
rewordings may not invent sources or samples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH

* fix(rewrite): naming a gap is not adding a fact

Live, the fact check listed sentences like 'die Stichprobengrösse wird nicht
angegeben' as facts the rewrite added, so a faithful neutral version showed
four added facts and was needlessly sent back for revision. The check now
excludes statements of missing information, rephrased original facts and
the article's own quotes.

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>
2026-10-26 16:44:58 +01:00
CatoandClaude Opus 5.5 bd5c6173ea fix(rewrite): a neutral version adds no facts (#88)
* 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

* fix(rewrite): a neutral version adds no facts

Live, a neutral rewrite of an unsourced poll supplied a sample of 500 and a
±3% margin: the flagged passage's suggested rewording was fed in as if it
were fact. The rewrite now names gaps instead of filling them, a draft whose
fact check finds additions is revised once, and the assessment's suggested
rewordings may not invent sources or samples.

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>
2026-10-26 16:31:39 +01:00
CatoandClaude Opus 5.5 517a9761e5 Replies you can send, rewrite studio, profiles, evaluation harness (#87)
* 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>
2026-10-26 14:53:59 +01:00
CatoandClaude Opus 5.5 3b71431365 Report v4: who is speaking, the text marked up, the numbers, PDFs, report language (#86)
* docs(plan): report v2 execution plan — voices, profiles, sharing, rewrite studio

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH

* docs(plan): add the failures visible in the owner's screenshots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH

* docs: public roadmap and changelog files, reply design, agent hand-off

Adds ROADMAP.md and CHANGELOG.md in the fleet's building-in-public dialect so
Loki's map (and /roadmap, /changelog) show BiasLens's plan and history instead
of an empty roadmap. Corrects the docs that said those records must not live
in the repository. Extends the execution plan with replies (the shareable
object for the person who receives a link) and a review-first hand-off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH

* feat(report): report v4 — voices, marked-up text, numbers, PDFs, report language

The report the owner tested on a real poll story listed the author as a
source, blamed a quoted expert's explanation on the article, grounded 0 of 5
quotes from PDF-pasted text, missed two figures that disagree, and printed
German analysis under English headings. This replaces the single model call
with an inventory pass and an assessment pass that receives the grounded
inventory, and checks everything the model cites in code.

- Voices (never the byline author) with stance; claims attributed to their
  speaker; figures with source / sample-size / comparison flags
- A published technique catalogue (16 techniques) rendered on /methodology;
  detections shown only with a passage found in the text
- Quote matching that ignores quote marks, dashes, spaces and line breaks
  but fails a changed word; offsets drive the marked-up article view
- Measurements computed in code (stance counts, one-sided threshold,
  unsourced figures, polls without sample) and an at-a-glance sentence
- Forbidden political labels refused in BiasLens's own voice: one repair,
  then the sentence is dropped; UI copy is tested against the same list
- Source reader: publisher byline metadata (JSON-LD/meta) and PDFs (links
  and uploads, running heads removed, hyphenation rejoined)
- Report copy in en/de/de-CH/fr, Swiss spelling enforced for de-CH;
  language preselected from the browser; NDJSON progress stages

ROADMAP.md, CHANGELOG.md, README and the plan's status are updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH

* fix(ci): declare the ai-kit functions the report pipeline actually uses

The analyze route no longer calls readPage; the source reader uses ai-kit's
extractReadableText and validateFetchTarget. package-plan.json now says so,
which is what the fleet composition audit checks.

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>
2026-10-26 12:15:19 +01:00
Catoandfleet-reconciler 8ed0f77148 chore(deps): raise shared package floors to published versions (#84)
* chore(deps): raise shared package floors to published versions

Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

* test: accept immutable design token release refs

---------

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-26 11:21:22 +01:00
Cato 16ad4e56f9 Use shared chatkit for source-grounded article questions (#79) 2026-10-25 08:33:11 +01:00
Cato 1bc956f117 Redesign BiasLens around one visual system and clearer user journeys (#75)
* Establish a coherent design system and clearer investigation flows

* Keep the method heading direct and within the shared title scale
2026-10-24 18:56:12 +02:00
Cato c52ffa8242 Organize BiasLens around source, question and conversation investigations (#73) 2026-10-24 15:49:33 +02:00
Cato c66370a145 Build BiasLens on the shared fleet foundation (#72)
* Compose BiasLens from shared fleet building blocks

* Document canonical development-record ownership
2026-10-24 15:02:14 +02:00
Cato 0212eab352 Preserve legacy article records when preparing the account database (#63)
* Inspect existing BiasLens schema before guarded reconciliation

* Preserve the deployed legacy Article stub before schema migration
2026-10-23 18:42:36 +02:00
Cato 7f43ab0d8d Make article examination usable and add shared account authentication (#62)
* Make article examination insightful and integrate shared account auth

* Update browser smoke coverage for article and account screens

* Tie runtime preparation and deployment to the CI-approved main commit
2026-10-23 18:35:49 +02:00
Cato e73fcd1ab3 feat: unify BiasLens investigation, white paper and public development (#59)
Keep BiasLens as the sole product. Add the browser-local research workspace, technical working paper, canonical development links and reviewed responsive navigation. Preserve existing packages and hosting; automated, visual and interaction checks passed.
2026-10-23 17:57:31 +02:00
Cato b0934a739b feat(arena): working transcript-based debate airtime analysis (#57)
* feat(debates): independently testable timed-turn measurement without false interruption claims

* feat(debates): independently testable timed-turn measurement without false interruption claims

* feat(debates): src/app/debates/DebateArena.tsx

* feat(debates): src/app/debates/page.tsx

* feat(debates): src/app/debates/arena.module.css

* feat(debates): include usable Arena route in shared navigational chrome

* test(browser): capture debate arena as real mobile and desktop production screen

* fix(debates): use actual line break in timed transcript hint

* docs(debates): explain functioning browser-local airtime tool and verification limits

* ci(arena): temporarily expose canonical Prettier diff

* style(arena): follow canonical formatter for src/app/debates/DebateArena.tsx

* style(arena): follow canonical formatter for src/app/debates/arena.module.css

* style(arena): follow canonical formatter for src/app/debates/page.tsx

* style(arena): follow canonical formatter for src/lib/debates/airtime.ts

* ci(arena): restore normal verification gate

* fix(arena): escape literal apostrophes in JSX prose

* fix(arena): escape apostrophe in speaker overlap explanation

* ci(arena): inspect exact JSX text wrapping after escaping apostrophe

* test(arena): enforce deterministic name-order tie break on equal airtime
2026-10-22 09:01:11 +02:00
Cato 851cfb8172 feat: white-label product identity and bip-kit journal with RSS (#55)
* feat(brand): src/lib/config/brand.ts

* feat(brand): src/lib/config/brand.test.ts

* feat(brand): drive navigation, logo and footer from one public identity config

* feat(brand): central SEO identity and noindex until a real canonical host exists

* refactor(brand): page title inherits public brand template

* refactor(brand): method metadata inherits public brand

* refactor(brand): homepage uses configurable name without changing identity schema

* style(brand): prepare interchangeable image logo or lettermark

* content(journal): publish transparent methodology essay 2026-10-22-why-we-dont-have-a-truth-meter.md

* content(journal): publish transparent methodology essay 2026-10-22-how-to-measure-a-political-debate.md

* feat(blog): src/lib/content/blog.ts

* feat(blog): src/app/blog/journal.css

* feat(blog): src/app/blog/blog.module.css

* feat(blog): src/app/blog/page.tsx

* feat(blog): src/app/blog/[slug]/page.tsx

* feat(blog): src/app/blog/feed.xml/route.ts

* feat(blog): reuse published bip-kit 0.6.0 for journal content and rendering

* chore(blog): freeze bip-kit registry integrity and react 19.3.0 peer

* fix(blog): include bip-kit resolved integrity and peer metadata in frozen lock

* feat(blog): load shared bip-kit renderer and a product-specific theme adapter

* style(brand): prevent long future names and four nav links from clipping on phones

* docs(brand): document one-step env rename and canonical host independence

* test(blog): verify bip-kit-backed posts and traversal-safe article lookup

* docs(product): explain one-change future rebrand and bip-kit publishing workflow

* ci(blog): temporary exact formatter diff for the new UI

* style(brand): apply exact formatter output

* style(brand): apply exact formatter output

* style(brand): apply exact formatter output

* ci(brand): restore canonical verify/build workflow

* test(browser): capture responsive journal index and markdown essay alongside core screens
2026-10-22 08:32:45 +02:00
Cato 76098821e8 ci(design): real Chromium screenshot smoke at 390px and desktop (#54)
* test(browser): capture three production screens in Chromium at 390 and 1440

* ci(browser): run real Chrome screenshot smoke and publish QA artifacts

* test(browser): expose reproducible production screenshot command

* fix(browser): pass Next start flags without npm-only separator in pnpm
2026-10-22 01:08:06 +02:00
Cato 3c2f401ab5 feat(design): adopt version-pinned composition without changing product identity (#53)
* chore(design): pin verified 1.2.0 composition commit in package manifest

* chore(design): freeze immutable composition tarball and lock resolution

* feat(design): consume exact-pinned composition from root layout

* feat(design): bind shared composition semantics to BiasLens identity

* refactor(design): reuse shared frame in all navigation and footer chrome

* refactor(design): remove duplicated frame geometry now owned by package

* refactor(design): share responsive frames and CTA/button interaction grammar

* refactor(design): remove duplicate shell/button geometry owned by shared stylesheet

* refactor(design): share method page shell and accessible action anatomy

* refactor(design): use shared page-frame and button sizing without local copies

* refactor(design): reuse shared accessible fields, choices, frame and report actions

* refactor(design): remove input, choice and button mechanics duplicated from composition.css

* fix(design): load low-specificity composition after app CSS reset

* test(design): ensure consumers import pinned package without duplicating component mechanics

* docs(design): record real pinned composition adoption and honest release status

* ci(design): capture exact Prettier diff before restoring normal checks

* style(design): apply CI Prettier output to src/app/analyze/AnalyzeWorkspace.tsx

* style(design): apply CI Prettier output to src/app/analyze/analyze.module.css

* style(design): apply CI Prettier output to src/app/page.tsx

* ci(design): restore canonical verify/build checks
2026-10-22 00:58:59 +02:00
Cato e7bc797e24 feat(design): a coherent editorial evidence desk across BiasLens screens (#52)
* feat(design): shared accessible navigation and consistent product chrome

* feat(design): shared accessible navigation and consistent product chrome

* style(design): coherent editorial tokens, contrast, focus, motion and responsive rhythm

* feat(design): editorial evidence-first home with truthful demonstration and one primary action

* style(design): responsive editorial landing composition and evidence diagram

* refactor(design): unify methodology navigation, skip link and footer

* style(design): align methodology with typography, rhythm and hairline anatomy

* refactor(design): consistent article workspace navigation, landmarks, footer

* style(design): editorial article analysis typography, equal controls and hairline findings

* fix(design): make evidence demo actions 44px touch-accessible and monochrome

* test(design): enforce contrast, route chrome, phone controls and honest hierarchy

* ci(design): gate every BiasLens merge on contrast, anatomy and accessibility checks

* docs(design): record BiasLens-specific visual language and shared package rollout

* docs(design): expose visual design contract and mandatory design CI gate

* ci(design): capture exact formatter diff before final merge

* style(design): apply exact Prettier changes to src/app/_components/Chrome.tsx

* style(design): apply exact Prettier changes to src/app/analyze/AnalyzeWorkspace.tsx

* style(design): apply exact Prettier changes to src/app/home.module.css

* style(design): apply exact Prettier changes to src/app/methodology/page.tsx

* style(design): apply exact Prettier changes to src/app/page.tsx

* test(design): run node design contract outside Vitest discovery

* test(design): remove duplicate test discovery path

* test(design): isolate native Node design gate from Vitest

* ci(design): restore standard verify after formatter diagnostic

* fix(design): restore report footer selector and source-link styling after nav extraction
2026-10-21 20:53:39 +02:00
GandClaude Opus 5 acdb6ed59f ci: call the central auto-merge sweep instead of carrying a copy (#8)
auto-merge-sweep.sh was copied into 22 repos and drifted into EIGHT distinct
versions, 245 to 404 lines. Three of them independently grew different fixes for
real outages, and each fix reached only the repo that wrote it:

  evig, revampit   infra-failure detection + re-run. An Actions incident left
                   main "failure" with no failed job at all; 11 PRs stranded
                   for roughly 14 hours.
  fleetcrown       DEADLOCK naming — a red base with the repairing PR sitting in
                   the queue was indistinguishable from "nothing to merge".
  the other 19     neither.

Nothing could carry a fix across, so every repo waited to hit each outage
itself. This repo now calls the canonical sweep in maonakamoto/dotfiles, and the
local copy is deleted.

The canonical is the union of the three, built on the variant ten repos were
already running rather than on the longest one — the 404-line variant is missing
the step-summary reporting the 296-line one has, so "take the biggest file"
would have silently deleted working behaviour. The merge was 106 insertions and
zero deletions: nothing can be lost by adopting it.

The triggers stay in this file because they genuinely are per-repo: workflow_run
must name the CI workflow exactly, and that name differs across the fleet.

Two details that are silent when wrong, both found by piloting rather than
reasoning:

  rearm_workflows is SPACE-separated. The sweep word-splits it; a comma makes
  one bogus token, every dispatch fails, and the only symptom is that nothing
  deploys — while the sweep still exits 0 and reports a successful merge.

  permissions are declared on the CALLER as well. A called workflow's token is
  capped by what the caller grants, so relying on the callee's block alone can
  hand it a read-only token; the sweep would then merge nothing while exiting 0,
  which is indistinguishable from having nothing to merge.

Verified before this rollout: the canonical ran end to end in dotfiles' own CI,
and the reusable-workflow path ran end to end in the pilot repo (s-ink).

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 14:53:55 +00:00
G 953dfa1b2e fix(ci): declare the failing-job list before the branch that can skip it (#7) 2026-08-07 10:01:50 +00:00
G 97aee38299 fix(ci): a red base must not trap the PR that repairs it (#6) 2026-08-07 09:39:29 +00:00
G fe9bfa1c46 fix(ci): stop skipping conflicts, and keep branches current (#5) 2026-08-07 07:15:39 +00:00
GandClaude Opus 5 7e3d87ddc4 fix(ci): drain the merge queue oldest-first, not newest-first (#4)
`gh pr list` returns newest-first, and the sweep merges the first eligible PR
then stops. So the newest green PR wins every sweep, and an older one can wait
indefinitely.

Observed in maonakamoto/fleetcrown on 2026-08-06: two consecutive sweeps merged
the two newest PRs while three older green ones sat untouched and were never
even evaluated. With several agent sessions opening PRs continuously that is
starvation — and it starves the worst candidate, since the longest-waiting PR
is the one whose checks were proven against the most now-stale base.

PR numbers increase monotonically with creation, so sorting ascending is FIFO.
The ordering was never a decision, just whatever gh happened to return.

Fixed upstream first (fleetcrown #182) and verified in production there: the
sweep immediately after it landed correctly took the oldest open PR rather than
the newest. This is that one-line change, applied to the fleet.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 13:37:03 +00:00
G ee05eb480f ci: green PRs merge and deploy themselves (#3)
* ci: add the auto-merge sweep policy

* ci: green PRs merge and deploy themselves
2026-08-05 19:16:08 +02:00