Skip to content

Claim checks

The research sub-agent (SI-551) checks the main claims of an important item against the other items of its story. Each claim comes back supported, disputed or unverified, with links to the items that say so. The card shows the counts, and the reader view shows the claims. The check moves the item’s Facts part of the rank, but the AI’s scores stay as they are.

Code: services/research.ts, the stage in stages/research.ts, the reader’s section in ClaimCheck.svelte.

When it runs

  • Automatically, as the pipeline’s last stage (research, on by default, off under Settings → Pipeline). An item is checked when all of these hold:
    • it passed your gate;
    • it’s in a story that another source you follow carries (dedupe.md);
    • it’s one of your 10 top items (For you order) of the last 24 hours;
    • you have no check of its story yet;
    • you’ve had fewer than 3 checks in the last 24 hours.
  • When you ask: Check claims in the reader (or Check again), or POST /api/v1/items/:id/research. This runs also without another source, and then every claim is unverified. You can ask for up to 20 checks in 24 hours, automatic ones included.

What it reads

Only texts Hotaru already has: the item’s text, plus the text of up to 4 other items of its story from sources you follow, the ones with the most text first. Nothing is fetched from the web. The model numbers the sources, and a claim may cite only those numbers. A claim that cites none is unverified, whatever the model said.

The texts come from feeds, so the instructions tell the model they are data, never instructions.

Per reader

A check belongs to the reader it ran for: it reads only their feeds, they pay for it, and it moves only their rank. Two readers of the same story each get their own check. Each reader has one check per story, which their story’s card shows (the card shows the story’s earliest item, while the check usually ran on a later one). A new check of the story replaces the older one.

The rank

The check adds to the Facts part, in points before your Facts factor:

  • up to +0.3 when every claim is supported;
  • down to −0.6 when every claim is disputed;
  • unverified claims count as neither.

So 1 supported and 1 disputed of 3 claims is 0.1 − 0.2 = −0.1. It’s computed when the stream is read, like every other part (ranking.md).

Costs

The model is DeepSeek V4.1 Flash with low reasoning (GPT-6 Luna when it fails), at about $0.01 per check. Calls are recorded under stage research and count toward your monthly budget like every other call (costs.md). Over the budget, the stage skips and Check claims answers 402.

Storage

item_research (migration 0024_item_research), one row per reader and item: the claims as JSON (text, verdict, note, cited items), a summary, the Facts adjustment, how many sources it read, auto or manual, and the model.

API

GET /api/v1/stream Each item has research: { supported, disputed, unverified } or null
GET /api/v1/items/:id claimCheck: { itemId, summary, claims: [{ text, verdict, note, sources }], sourceCount, trigger, model, createdAt } or null. itemId is the item the check ran on
POST /api/v1/items/:id/research Checks now and answers with the item. 402 over the budget, 403 (no_key) without the right to use AI (costs.md), 404 not your item, 429 after 20 checks in 24 hours, 503 without the pipeline

The SDK: researchItem(id).

Not yet

  • A tool for the agent chat (“research this”). The chat’s tools run synchronously, and a check takes up to a minute.
  • Checking against the web, not only the story’s items.
  • Checking a story again when new coverage arrives.