RagLeap
Blog

v0.13.8: sub-agent start records move to an append-only table, and Telegram gets opt-in long polling

Updated 2026-11-25: v0.13.9 fixes a safety problem in the Telegram long polling described below. With v0.13.8 polling on, anyone who found the bot username could ask questions about your ingested documents and use your model budget. v0.13.9 answers only the owner private chat by default. If you turned polling on with v0.13.8, update to v0.13.9 or turn it off. See the v0.13.9 post.

Checked against the ragleap-core v0.13.8 release notes on 2026-11-24. Upgrading switches nothing new on.

What must I do before upgrading to v0.13.8?

Apply db/schema.sql before you start the new version. It adds one table, one function and two triggers. It is additive and safe to run again. Without it a sub-agent child cannot start, which only matters if you turned sub-agents on. The three columns that v0.13.7 added to agent_runs stay in the schema, unused.

What changed in the sub-agent start records?

  • The signed start record of a child now lives in its own table, agent_run_starts. Triggers refuse UPDATE, DELETE and TRUNCATE; there is no foreign key, and retention does not touch it (#1528).
  • The record is read from the table every time a child runs or resumes and must match the live row (parent, role and depth). A child without a valid record is refused (#1528).
  • Each record names its signing key by a short hash, never the key. SPAWN_SIGNING_KEY signs new records (falling back to ADDON_ENCRYPTION_KEY), and SPAWN_SIGNING_KEY_PREVIOUS keeps older records valid. python -m core.spawn_keys is read-only and says which keys unfinished runs still need (#1528).

What is the limit of the append-only table?

The application's database user owns the table, so a database administrator could drop the triggers.

How does Telegram long polling work?

Set TELEGRAM_POLLING=true and the app asks Telegram for new messages, so replies such as YES <id> can reach it without a public address. No webhook may be registered for the bot; the app checks and never deletes one. Only the scheduler leader polls, and handling is at-least-once (#1541). The Telegram webhook no longer blocks the app, because the model call runs in a worker thread (#1541). This does not make Telegram start agent runs.

What is not covered?

A real Telegram bot with polling on a production server, and a real-model sub-agent run with the new table, have not been tested yet. The release notes plan both right after the release. File writing, deleting, sub-agents and Telegram polling stay off.

Quick answers

What is Telegram long polling in RagLeap v0.13.8?

An opt-in setting, TELEGRAM_POLLING=true, that makes the app ask Telegram for new messages, so replies such as YES <id> can reach it without a public address. No webhook may be registered for the bot. It does not make Telegram start agent runs.

What must I do before upgrading to ragleap-core v0.13.8?

Apply db/schema.sql first. It adds one table, one function and two triggers for the sub-agent start records. It is additive and safe to run again. Without it a sub-agent child cannot start, which matters only if you turned sub-agents on.

Can a database administrator change the RagLeap sub-agent start records?

Yes, in principle. Database triggers refuse UPDATE, DELETE and TRUNCATE on the table, but the application's database user owns it, so an administrator could drop the triggers. The release notes state this limit.

Back to the blog