# Agent-owned execution DAGs

| Call | Recorded in | Parent keeps |
| --- | --- | --- |
| Message, model request, directly dispatched tool | The current graph | — |
| Registered tool dispatch | The current graph | — |
| Ordinary Python helper, including recursion | Nothing: zero new nodes | — |
| Same-Agent helper method | Nothing; reuses the owner | — |
| A different Agent | Its own independent graph, readable after return | Invocation, result and child-session reference |

## Across the Agent boundary

| Thing | Child |
| --- | --- |
| Runtime configuration, permission restrictions, cancellation | Inherited |
| Graph writers, call IDs, forced node IDs, predecessor, context-history anchors | Local; no caller ID points into the parent graph |
| Explicitly named Context content | Available |
| Parent graph history | Not imported implicitly |
| Parent bindings | Restored on return, raise or cancel |

A tool deadline records a tool error and does not cancel the parent turn. Browser deadline enforcement is a separate concern. No new database, public decorator or local runtime instance is involved; existing histories are unchanged.

## Implementation status

Graph ownership and public-entry regression tests are in code; the tests need no provider or external action. Optional recording diagnostics keep their local warnings. Source tests do not establish the behaviour of an installed App.

[Session DAG design](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/dag/overview.html)
