fix(stage): supply runtime context when read is not declared
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user