@antonyrag2
Antony TCFounder▲6
AI Engineer & Architect, RagLeap
1h ago · AI Adoption, Agents, AI Engineering, Security · Vellore

RagLeap Core v0.13.8 & v0.13.9: Strengthening Subagent Integrity and Telegram Security

RagLeap Core continues to evolve with a focus on security, reliability, and controlled autonomy.

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.

v0.13.8: Strengthening Subagent Integrity

One of the key changes in v0.13.8 is how RagLeap stores and validates child-agent execution records.

1. Dedicated append-only 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.

2. Execution record validation

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.

3. Signing-key rotation

The release adds support for signing-key rotation:

  • SPAWN_SIGNING_KEY is the primary key.
  • SPAWN_SIGNING_KEY_PREVIOUS supports validation of records signed with a previous key.
  • ADDON_ENCRYPTION_KEY remains 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.

4. Telegram long polling

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.

v0.13.9: Safer Telegram Polling Defaults

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.

Explicit public polling opt-in

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.

Upgrade Notes

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_starts table, 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.

What Has Not Yet Been Production-Validated?

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.

Why These Improvements Matter

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.

Explore RagLeap

Contributions, technical feedback, testing, and discussions are welcome. #OpenSourceAI #AgenticAI #AIAgents #AISecurity #SelfHostedAI #RagLeap

AgenticAIOpenSourceAIAgentsRagLeap

Comments

No comments yet
Start the conversation.
Log in to join the thread.