Expand description
Re-exec envelope hygiene.
When a CLI execute handler exec’s a detached child of this CLI
(via the SDK’s BinaryExecutor) by copying its own request onto
the child, the child must NOT inherit the parent’s output
transform or token budget. Only the originating top-level
invocation carries those.
The rule, applied identically at every such re-exec:
| base field | child inherits? | why |
|---|---|---|
jq | NO (stripped) | output transform, parent-only |
python | NO (stripped) | output transform, parent-only |
max_tokens | NO (stripped) | token budget, parent-only |
timeout_seconds | YES (kept) | the one cap a child honors |
One deliberate non-participant:
tools run/plugins runlaunch foreign tool/plugin binaries (not a re-exec of this CLI) and pass the envelope through verbatim.
Functions§
- strip_
inherited - Strip the parent-only envelope fields (
jq,python,max_tokens) from a typed child request’s base, leavingtimeout_secondsintact. Called at everyBinaryExecutorre-exec site on the child request before it’s handed to the executor.