docs(code-execution): document the session kernel, reset, and stdout spillover - #105784
Merged
kshitijk4poor merged 1 commit intoSep 8, 2026
Merged
kshitijk4poor merged 1 commit into
kshitijk4poor merged 1 commit into
Conversation
…spillover The code-execution page describes project vs strict mode, the minimal environment and the RPC channel, but never mentions that execute_code calls share a persistent per-session kernel (tools/code_kernel.py), that a timeout kills the kernel, that reset=true exists, or that stdout beyond 50 KB is spilled to cache/exec with the path returned (tools/code_execution_tool.py). Defaults from hermes_cli/config_defaults.py (kernel_idle_timeout 1800, max_session_kernels 4). Remote-backend kernel and fail-open per-call fallback from tools/code_kernel_remote.py.
6 tasks
Contributor
SummaryDocs-only: documents the Findings (all Non-blocking)
VerdictLooks good — clear kernel contract docs. |
kshitijk4poor
enabled auto-merge (rebase)
September 8, 2026 13:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
user-guide/features/code-execution.md: new State Between Calls (the session kernel) section: state persists acrossexecute_codecalls in a per-session kernel, what ends a kernel (timeout/interrupt,reset=true, idle timeout, eviction), env frozen at spawn, same security envelope per cell, remote-backend kernel with fail-open per-call fallback, and the >50 KB stdout spill to~/.hermes/cache/exec/with the path in the result. The Resource Limits stdout row now describes the spill instead of a plain truncation notice.Why
The page describes project vs strict mode, the minimal environment and the RPC channel, but none of the session-kernel behaviour shipped in v2026.8.31 (#94647, #96787, #96991, #97043). Sources:
tools/code_kernel.pydocstring,tools/code_kernel_remote.pydocstring,tools/code_execution_tool.py:80-96(spill),hermes_cli/config_defaults.py(kernel_idle_timeout: 1800,max_session_kernels: 4). One crumb for the team, not touched here: the comment athermes_cli/config_defaults.py:1778still says "remote backends run per-call", whichtools/code_kernel_remote.pycontradicts. Verified againstmain@ ee84ccd (2026-09-08); source read from the same SHA.