Expand description
Runs one Formal AI tool call for --use-formal-ai (issue #255). Mirrors
js/src/lib/formal-ai-tool.js.
The call is the argv vector the effect policy approved, spawned without a shell in the caller’s working directory and with the execution’s START_* environment. It gets no stdin, its own process group, a time limit and an output cap; stdout and stderr are mirrored live and the exit status is the real one (a signal maps to 128+N like a direct run).
Structs§
- Tool
Options - How to run one approved call.
- Tool
Receipt - What one tool call did.
Functions§
- format_
refusal - Result text for a call start refused before running it.
- format_
tool_ result - The result text sent back to Formal AI: the shell envelope its tool-result reader parses (Command/Directory/Output/Error/Exit Code), wrapped as untrusted context because the output is file data, not instructions.
- run_
tool - Run one approved call to completion, a timeout or cancellation.