Files
substrata/scripts
CatoandClaude 9d54efe06d fix(ask): units copied as the table gives them, one composer on panel and /chat, the widget steps aside (#215)
Live on 2026-10-23, asked who produces gallium, the answer said Russia
made "6 kt". USGS reports 6,000 kg (6 t), so that was a thousandfold
overstatement.

- resource_production rows carry `display`, the quantity exactly as the
  table prints it ("6,000 kg (estimated)"), and no second spelling. The
  "(= 6 t)" reading added on 2026-10-02 is gone: it was the "6" the model
  re-unitted. Series rows (find_numbers, key_numbers) carry `display` too.
- Prompt honesty rule: copy a quantity's `display` verbatim; never
  convert or abbreviate a unit, never rebuild one from value_number.
- grounding.ts unitMismatches: an answer quantity whose digits match a
  row's in another unit of the same family ("6 kt" vs "6,000 kg") is
  flagged and handled exactly like an unsupported figure (sent back once,
  else its sentence is dropped). The unit test uses the live answer.
- One composer on the panel and on /chat: no "Ask a question" kicker, no
  paperclip on either. /api/chat takes a question of at most 4,000
  characters and no files; an attachment was pasted text that a long file
  pushed into a refusal.
- The Loki launcher steps aside while the Ask sheet is open and on /chat
  via the widget's host directive data-fc-place="hidden" on the rendered
  region. Not Loki.hide()/show(): those write the visitor's own stored
  "hide on this site" and would overwrite it.
- check:ask-layout: nothing but the sheet's UI over the reply row, the
  launcher back on close and absent on /chat, and /chat's composer has
  the panel's controls and no kicker.
- @bitbaum/chatkit ^0.15.1: a heading written over the reply row is not
  drawn ("Quick follow-up options").


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 13:43:18 +02:00
..