ragleap-core v0.13.8
More hardening of the sub-agents (still off by default) and a way to receive Telegram messages without a public address. Upgrading switches nothing new on.
Before you upgrade
- Apply
db/schema.sqlto your database before you start the new version. It adds one table, one function and two triggers (the append-only table for sub-agent start records). 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 toagent_runsstay in the schema, unused.
Sub-agents (off by default)
- Append-only start records (#1528). The signed start record of a child now lives in its own table,
agent_run_starts. Database triggers refuse UPDATE, DELETE and TRUNCATE; there is no foreign key, and retention does not touch it. 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. - Signing key id and rotation (#1528). Each record names its key (a short hash, never the key).
SPAWN_SIGNING_KEY(falling back toADDON_ENCRYPTION_KEY) signs new records, andSPAWN_SIGNING_KEY_PREVIOUSkeeps older records valid.python -m core.spawn_keysis read-only and says which keys unfinished runs still need. The steps are indocs/sub-agents.md. The limit: the application's database user owns the table, so a database administrator could drop the triggers.
Telegram
- Opt-in long polling (#1541).
TELEGRAM_POLLING=truemakes the app ask Telegram for new messages, so replies such asYES <id>can reach it without a public address. No webhook may be registered for the bot (the app checks, and never deletes a webhook). Only the scheduler leader polls, and handling is at-least-once. Seedocs/telegram-polling.md. - The Telegram webhook no longer blocks the app (#1541). The model call runs in a worker thread instead of on the event loop.
- This does not make Telegram start agent runs; that is a separate setting that is not included.
Upgrade notes
- Schema: one new table, one function and two triggers (see above). Nothing you must set. File writing, deleting, sub-agents and Telegram polling stay off.
- Not tested yet: a real Telegram bot with polling on a production server, and a real-model sub-agent run with the new table (planned right after this release).
Thanks
Thanks to Boardy for the architecture review that shaped the sub-agent hardening.