Files
pipelines/docs/notes/stage-context-without-read.md
T

913 B

Runtime context for stages without read

Research rerun #17 failed before research because its published tools were only websearch and webfetch, but the runtime wrapper required reading input.md and memory.md. The deny-by-default tool policy correctly refused those calls.

The shared model-prompt builder now embeds the server-owned turn context whenever read is not declared, not only when the tool list is empty. This applies to both OpenCode and Pi stage execution. The pipeline's authored prompt, version, tool list and permission policy are unchanged; arbitrary filesystem access is not granted. Stages declaring read retain the existing file-based handoff.

Regression tests cover web-only, grep-only, glob-only and shell-only stages: the actual input/memory contents and exact declared tool list are present, the runtime does not require an undeclared read, and no read allow-rule is added.