# Documentation gaps

Unresolved divergences only.

## Missing content

| Subject | Gap |
| --- | --- |
| `runtime/conversation/process_runner.py` | Subprocess execution: spawn, stop, user-input bridge. No design record of its own. |

## Open problems in tool calling

| Problem | Current state | To do |
| --- | --- | --- |
| Harness self-recursion | A bare `runtime.exec(content=[task])` gets `DEFAULT_TOOLSET="full"`, which includes the entry point itself; the model can call it again, and retry on failure. Guards: a situational prompt, and a per-function depth limit of 5 in `runtime/agent/call_state.py`. | Scope each harness's toolset. Cycles A→B→A stop only at the depth limit. |
| Harness-internal toolsets | Full set by default. One harness can call another (research calls gui) and go off track. Claude Code subagents use an allowlist to prevent this. | Decide: (a) each harness restricts its own exec; (b) the framework denies all harness entry points while one runs; (c) keep the status quo. |
| Checkpoint resume | When `runtime.exec` exhausts its retries with the provider unreachable, it raises and the function ends. The frame node is `status="error"` with children preserved; `_render_history_messages` loads history from the DAG. | `resume_function(session_id, node_id)`: set the frame to `running`, re-call exec with the same `frame_node_id`, restore contextvars such as `_call_id`, rebuild the runtime context, add a Web retry button. In `runtime/agent/call_state.py` and `runtime/agent/runtime/`. |
| Bash file-change tracking | Recorded limit: scans only the top level of the cwd. No such scan exists under `programs/tools/files/bash/`; the system sandbox separately limits what bash can touch. | Find the current owner, then scan recursively or close this entry. |
