RagLeap Core v0.13.8 & v0.13.9: Strengthening Subagent Integrity and Telegram Security
With v0.13.8 and v0.13.9, we're introducing improvements to signed subagent execution records, database-level integrity protections, signing-key rotation, and safer Telegram polling.
These releases follow an important principle behind RagLeap:
AI agents should have capabilities, but their execution must remain accountable and access must be controlled.
One of the key changes in v0.13.8 is how RagLeap stores and validates child-agent execution records.
RagLeap now stores signed child-agent start records in a dedicated agent_run_starts database table.
Database triggers prevent these records from being updated, deleted, or truncated through ordinary database operations.
This provides a stronger integrity boundary for child-agent execution history.
When a subagent runs or resumes, RagLeap validates its signed start record and checks that the record matches the live execution data, including:
- Parent execution
- Agent role
- Execution depth
This helps detect inconsistencies between the signed record and the current execution state.
The release adds support for signing-key rotation:
SPAWN_SIGNING_KEYis the primary key.SPAWN_SIGNING_KEY_PREVIOUSsupports validation of records signed with a previous key.ADDON_ENCRYPTION_KEYremains the fallback when the primary spawn signing key is not configured.
A read-only diagnostic command is also available:python -m core.spawn_keys
It reports key-related requirements without changing the configuration.
v0.13.8 introduces opt-in Telegram long polling through:TELEGRAM_POLLING=true
This allows a Telegram bot to receive messages without requiring a publicly accessible webhook endpoint.
The polling process runs through the scheduler leader, and message delivery follows an at-least-once model.
Webhook model processing was also moved into a worker thread to avoid blocking the event loop.
The next release focuses on an important access-control improvement.
When Telegram polling is enabled, only the owner's private chat is accepted by default.
Messages from other users and chats are ignored.
They do not trigger:
- Model calls
- Document lookups
- Normal message processing
The owner check also fails closed: if RagLeap cannot establish whether a message comes from the configured owner, the message is ignored.
For deployments that intentionally need a public bot, the behavior can be explicitly enabled using:TELEGRAM_POLLING_PUBLIC=true
This makes public polling a deliberate configuration choice rather than the default.
The Telegram webhook model remains unchanged.
A few things are important before upgrading.
From v0.13.7 to v0.13.9:
- Apply the v0.13.8 database schema changes before starting the upgraded application.
- The migration adds the
agent_run_startstable, one function, and two triggers. - The migration is additive and idempotent.
From v0.13.8 to v0.13.9:
- No additional schema migration is required.
- If Telegram polling was enabled in v0.13.8, upgrade to v0.13.9 before relying on it, or disable polling until upgraded.
Polling remains disabled by default. Existing deployments do not automatically enable it.
We believe in distinguishing implemented functionality from verified production behavior.
These releases introduce the polling implementation and its access-control safeguards, but real Telegram bot polling has not yet been validated in production.
Likewise, the new database-backed subagent record flow still needs validation with real-model subagent execution.
The integrity protections also do not prevent a database administrator with sufficient privileges from dropping the triggers or changing the database structure.
As AI systems become more autonomous, execution history and access control become increasingly important. A reliable AI employee platform needs more than model capabilities. It needs:
- Verifiable execution records
- Controlled delegation between agents
- Stronger integrity protections
- Explicit access boundaries
- Secure defaults
- Clear upgrade and configuration behavior
RagLeap is being developed around these principles.
Our direction is simple:
Open-source AI employees that ask before they act.
RagLeap is an open-source, self-hosted AI employee platform. These releases are another step toward making agent execution more controlled, accountable, and reliable.
- GitHub: github.com/ragleap/ragleap-core
- Website: ragleap.com
- Documentation: docs.ragleap.com
- Packages: packages.ragleap.com
Contributions, technical feedback, testing, and discussions are welcome. #OpenSourceAI #AgenticAI #AIAgents #AISecurity #SelfHostedAI #RagLeap






Comments
0 comments