ragleap-core v0.13.11
A sub-agent can now only be started through the gate (#1587). Sub-agents stay off by default and upgrading switches nothing new on. There is no database change.
Sub-agents (off by default)
- Starting a child goes through one gate function (#1587). The agent loop no longer starts a child itself. It calls
execute_delegationin the same module as the gate for every other action. That function checks the plan, asks the existing spawn decision (owner switch, depth, number of children, signing key, forced approval for sensitive roles) and only on a yes hands over to the code that reserves the budget, writes the signed start record and runs the child. The spawn code refuses anything that does not carry the gate's decision. - The boundary scan now treats the spawn like the other executors: it may only appear inside the gate function. A test pins that the loop calls nothing else.
- There is no separate owner prompt for the spawn itself. A spawn has no effect on the outside world, and every action a child takes goes through the gate on its own, so the owner still approves each effect. This is written into the declaration of the
delegateoperation and into the docs.
Upgrade notes
- No schema change. A normal delegation behaves as before (same checks, same order, same messages).
- Limit: the spawn function is still an ordinary Python function name. The guarantee comes from the boundary scan and the tripwire tests, not from Python visibility.
- Not tested yet: parallel spawning (it does not exist yet).
Thanks
Thanks to Boardy, the architecture reviewer, for the review rounds that led to this change.