haiku.rag/tests/sandbox
Yiorgis Gozadinos b374d5eb83
Replace ask_question and analyze with execute_code
In Claude Code the client is the model, so the server no longer runs one.
execute_code runs a Python program per call in the analysis sandbox over
the selected documents and returns what it printed; the sandbox is created
and closed per call so Monty's cumulative budget and a frozen mount never
outlive a program. --no-agents goes with the two tools, and format_citations
in haiku.rag.utils goes with its only caller.

The sandbox exposes chunk metadata to code: chunk_meta on search results,
metadata on list_documents rows and in metadata.json, and chunks.jsonl per
document. A host-side failure inside a program, a document read or an
in-code search raising, reaches the program by exception type only and is
logged with its traceback. recovery_hint moves to haiku.rag.sandbox.

Closes #604.
2026-09-07 10:02:42 +03:00
..
__init__.py Delete the standalone QA and analysis agents 2026-05-19 11:39:20 +03:00
conftest.py Delete the standalone QA and analysis agents 2026-05-19 11:39:20 +03:00
test_models.py Delete the standalone QA and analysis agents 2026-05-19 11:39:20 +03:00
test_sandbox.py Replace ask_question and analyze with execute_code 2026-09-07 10:02:42 +03:00
test_sandbox_multi_db.py One reference and one placement for a database 2026-09-03 15:12:08 +03:00
test_sandbox_multimodal.py Delete the standalone QA and analysis agents 2026-05-19 11:39:20 +03:00
test_sandbox_toc.py Replace ask_question and analyze with execute_code 2026-09-07 10:02:42 +03:00