RagLeap Core v0.13.7: Hardening Delegated AI Agents with Gate-Controlled Spawning and Signed Run Records
Sub-agent authorization, inherited permissions, signed child-run records, shared execution limits, and the first foundations of RagLeap's integration contract. RagLeap Core v0.13.7 is now released. This release strengt
Sub-agent authorization, inherited permissions, signed child-run records, shared execution limits, and the first foundations of RagLeap's integration contract.
RagLeap Core v0.13.7 is now released.
This release strengthens how RagLeap handles delegated AI agents and introduces the first implementation groundwork for a standardized integration contract.
The central principle behind this work is straightforward:
A child AI agent should never receive more authority than the system explicitly permits, and its execution should not be trusted merely because a parent agent requested it.
The release also includes an important architectural step toward making future integrations more consistent, inspectable and governed.
Release: https://github.com/ragleap/ragleap-core/releases/tag/v0.13.7
Repository: https://github.com/ragleap/ragleap-core
1. Why delegated AI agents need stronger controls
Multi-agent systems allow one AI agent to delegate work to another. This can improve task decomposition, research and execution.
But delegation introduces additional security questions:
- Who is authorized to start a child agent?
- Can a child select a less-restricted role than its parent?
- Does the child inherit the parent's permission boundaries?
- Can multiple children collectively exceed the parent's execution budget?
- What happens if a child run is resumed without trustworthy evidence of its original authorization?
These are not merely orchestration questions. They are authorization and trust-boundary questions.
RagLeap's approach is to keep delegation under explicit governance rather than treating child-agent creation as an unrestricted model capability.
2. The authorization gate controls child-agent spawning
PR #1516 introduces a centralized decision point for determining whether a child agent may start.
Before a child run begins, the gate checks:
- Whether the owner's sub-agent switch is enabled.
- Whether the permitted delegation depth has been reached.
- Whether the maximum number of children has been reached.
- Whether the authorization decision can be made safely.
The decision is audited, and the system refuses the spawn when it cannot determine whether it is allowed.
This is important because a model should not be able to create additional agents simply by requesting delegation. The system must authorize that operation.
Inheriting sensitive-role restrictions
Another important issue concerns sensitive roles.
Previously, a sensitive parent could potentially delegate to a child using a non-sensitive role. If the approval requirement depended only on the child's selected role, this could weaken the parent's restrictions.
The new implementation ensures that a child requires approval for every action when its parent is a sensitive role.
The restriction is inherited rather than being determined only by the role selected for the child.
Restricting child tools
A child's available tools are narrowed to the tools available to its parent.
This helps prevent delegated agents from gaining a broader tool set than the agent that created them.
3. Signed start records for child agents
PR #1519 introduces signed start records for child-agent runs.
When the gate authorizes a child to start, it writes a record containing the information needed to establish the child's authorized origin.
The record is signed using a key derived from ADDON_ENCRYPTION_KEY.
The key properties are:
- The gate writes the start record once.
- The record is not updated during normal execution.
- A child without a valid signed record is refused when it runs or resumes.
- The signed record helps bind the child run to its authorized parent and execution context.
This creates a stronger trust boundary around child-agent execution.
A child run cannot simply claim that it was legitimately created. The system checks the signed record before allowing execution.
4. Shared execution limits across the agent tree
Delegation also introduces a resource-management problem.
If every child receives an independent execution limit, a parent could potentially create several children and multiply the total amount of work.
RagLeap v0.13.7 strengthens this boundary in two ways.
Parent token-budget enforcement
A child stops when its parent role's remaining token budget is exhausted.
The parent's remaining budget is respected alongside the child's own role budget.
Tree-wide step limit
The execution-step limit is now shared across the entire run tree instead of being independently granted to every child.
This makes the overall execution boundary more consistent across delegated work.
5. Better handling of empty model responses
PR #1486 addresses another practical reliability issue.
Sometimes a model provider returns only the placeholder response:
No answer generated.
Previously, that placeholder could be presented as though it were a meaningful answer.
Now RagLeap treats it as an empty response:
- The request is retried once with a larger token budget.
- If the response is still empty, RagLeap moves to the next configured provider.
- The placeholder is no longer treated as a successful answer.
This improves provider fallback behavior when a model produces an unusable response.
6. Integration contract: laying the groundwork
Alongside the sub-agent work, v0.13.7 introduces the first code for RagLeap's integration contract.
This is groundwork, not a completed integration platform. It does not change current product behavior yet.
The work includes:
- A draft capability declaration schema.
- A local conformance checker at
scripts/ragleap_conformance.py. - A host contract.
- An effective-policy resolver.
- An immutable declaration registry.
- Capability declarations for built-in tools.
- A boundary test designed to keep executors inside the authorization gate.
The related work was developed through:
- PR #1488
- PR #1493
- PR #1498
- PR #1508
- PR #1510
- PR #1515
The objective is to establish a consistent way for tools and integrations to declare their capabilities and for the host to evaluate the policies governing their execution.
Why this matters for the ecosystem
RagLeap is designed to grow beyond a single collection of built-in tools.
Its ecosystem includes libraries, integrations and technologies developed by different contributors. As that ecosystem expands, capability declarations and consistent governance become increasingly important.
The integration contract is an early foundation for that direction.
There is also an important trust boundary documented in CONTRIBUTING.md and the pull request template through PR #1511:
Until process isolation exists, connectors executing inside the RagLeap process are treated as trusted, reviewed code.
A declaration schema alone does not make arbitrary third-party code safe. Review, testing and stronger isolation remain important parts of the architecture.
7. Post-release validation
After v0.13.7 was deployed, we completed the first real-model end-to-end sub-agent test on this release.
The test successfully demonstrated:
- One child agent started.
- The child produced a real model-generated answer.
- The parent received and produced a real summary.
- The child's signed start record was verified.
- The complete test took approximately nine seconds.
This is an important first validation signal for the new child-run architecture.
However, this should not be interpreted as proof that every provider, failure scenario or production workload has been tested.
Sub-agents remain disabled in production by default.
8. Upgrade instructions
There is one important database migration requirement.
Apply db/schema.sql before starting v0.13.7.
The update adds three columns to agent_runs. It is additive and safe to run again.
The new version reads these columns when accessing agent runs. Without applying the schema update, agent-run requests will fail until the migration is completed.
Additional notes:
- No new configuration setting is mandatory.
- Sub-agents still require
ADDON_ENCRYPTION_KEY. - The installer configures this key.
- Without the key, child-agent execution is refused.
- File writing and deleting remain disabled.
- Sub-agents remain disabled by default.
- A child running under an older version is refused when resumed after upgrading.
Please review the release notes before upgrading.
9. Architecture review and contributors
This work benefited from Boardy's architecture review, particularly around delegated-agent trust boundaries and the integration contract.
The review helped shape the direction of the implementation, while the changes were implemented and tested through RagLeap's normal engineering and pull-request process.
Thank you to Boardy and everyone who tested, reviewed and reported issues.
We believe open-source infrastructure becomes stronger when architectural decisions are challenged, tested and improved through independent technical feedback.
10. What comes next
RagLeap's direction is to build open-source AI employees that can work across different tools, technologies and environments while remaining subject to explicit permissions and accountable execution.
The integration contract is an early step toward a more consistent ecosystem.
Delegated agents are another important part of that architecture. As their capabilities expand, authorization, inherited restrictions, resource limits and trustworthy execution records must evolve alongside them.
Our priority is not simply to add more autonomous capabilities. It is to build the foundations that allow those capabilities to be extended responsibly.
RagLeap remains open-source and self-hosted. We welcome developers, engineers, researchers, students and technology companies interested in contributing tools, integrations, testing, documentation and new capabilities.
Contributions follow our normal GitHub issue, pull-request, review and CI process.
Explore RagLeap
- GitHub repository: https://github.com/ragleap/ragleap-core
- v0.13.7 release: https://github.com/ragleap/ragleap-core/releases/tag/v0.13.7
- Documentation: https://docs.ragleap.com
- Packages: https://packages.ragleap.com
- Website: https://ragleap.com
RagLeap โ Open-source AI employees that ask before they act.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.