haiku.rag/haiku_rag_slim/haiku/rag/capabilities
Yiorgis Gozadinos 8a7cfb949f
Match capability instructions to the run's collection scope
The collection block was chosen when the capability was built, so a run narrowed
through `state.sources` to one collection was still told how to attribute across
collections it could not reach, while its results correctly carried no
`Collection:` line.

`get_instructions` composes it per run instead, from `state.sources` where the
question narrowed the conversation and from the lent client or the scope
otherwise. Order is preamble, base instructions, collection block.
2026-08-27 12:41:15 +03:00
..
instructions Match capability instructions to the run's collection scope 2026-08-27 12:41:15 +03:00
__init__.py Give the evidence capabilities one typed state 2026-08-19 17:08:44 +03:00
_base.py Match capability instructions to the run's collection scope 2026-08-27 12:41:15 +03:00
_tools.py Render collection identity only for multi-collection searches 2026-08-27 12:41:05 +03:00
analysis.py Match capability instructions to the run's collection scope 2026-08-27 12:41:15 +03:00
compaction.py Ask and analyze across several databases 2026-08-24 10:03:46 +03:00
evidence.py Give the evidence capabilities one typed state 2026-08-19 17:08:44 +03:00
ledger.py Let the record say whether a question is still being answered 2026-08-13 15:03:24 +03:00
policy.py Support Pydantic AI agent specs via from_spec 2026-08-21 13:04:09 +03:00
rag.py Match capability instructions to the run's collection scope 2026-08-27 12:41:15 +03:00