haiku.rag/app/frontend/components
Yiorgis Gozadinos e1dd8517f9
Refuse to compact evidence the host kept no record of
Both optional capabilities read what earlier questions retrieved and cited from
the capability's state, so a host that carries only the message history hands
every run an empty record. Compaction then replaced the earlier evidence with
receipts and retained nothing, and the loss was invisible: the citations the host
already displayed were still there. It now refuses when it finds evidence from an
earlier question and no record of what that question cited.

`state_carried` reaches the optional capabilities through discovery, so the
refusal distinguishes a host that never carries state from a question that simply
cited nothing.

The documentation taught the pattern that breaks: the compose example is now
stateful and the requirement is stated where each capability is introduced.

The app's browser storage was doing exactly this, keeping only the fields the UI
reads. It now persists the whole namespace map, so the citation policy's
violations survive a reload as well as the evidence record.
2026-08-13 15:46:23 +03:00
..
Chat.tsx Refuse to compact evidence the host kept no record of 2026-08-13 15:46:23 +03:00
CitationBlock.tsx Visualize the exact context the model saw via Citation.doc_item_refs 2026-07-09 11:51:37 +03:00
DbInfo.tsx Fix frontend selection collisions, stale fetches, and URL consistency 2026-04-24 17:17:28 +03:00
DocumentFilter.tsx Fix frontend selection collisions, stale fetches, and URL consistency 2026-04-24 17:17:28 +03:00
SessionManager.tsx Add frontend session management with localStorage persistence, deduplicate shared code 2026-02-12 15:16:47 +02:00