Files
CatoandClaude 0dc40c2530 feat(ask): attach screenshots, read them, check their claims (#260)
The owner could not ask Substrata about a screenshot of a post: every
composer passed attach={false}, and /api/chat took no pictures.

- One composer (AskComposer) on the home box, the Ask panel and /chat:
  Camera / Photos / Files, paste and drop, pictures shrunk to 1024px in
  the browser (Heidi's limits), text files inlined, a message queued while
  a turn runs, the draft shared between surfaces.
- /api/chat validates pictures (strict data URLs, three at most, 1.5 MB,
  never stored or logged) and attached text, with a larger body cap.
- A turn that brings material is a claim check: one read call returns the
  visible text and checkable claims as JSON (claims whose numbers the
  material never printed are dropped), each claim is searched and, for a
  seed company, priced; the answer is bottom line first, one status per
  claim with a citation or "Not found", reasoning labelled, and no figure
  only the material gives repeated as fact. Every existing guard runs.
- No model that can see: one sentence (paste the text, or add a key);
  nothing is guessed.
- The home box hands its message and attachments to /chat (?send=).

Tests: claim-check (fixture, fake vision model, fake web), handoff, image
validation; two eval rows; ask-layout picks a picture into /chat's box.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 10:36:52 +01:00
..