Skip to main content

Module agent_continuations

Module agent_continuations 

Source
Expand description

Latest-continuation registry keyed by agent_instance_hierarchy.

Single function: upsert. Called by the chunk-yielder loops (agents spawn’s run_multi_pass and functions execute’s runner::run) before each chunk yield. The row holds whichever continuation was most recently observed for that AIH; the ON CONFLICT DO UPDATE clause keeps it idempotent against repeated upserts and overwrites stale rows from prior runs.

No read API today — this is write-only scaffolding for future consumers (resume-from-continuation flows, etc.).

Functions§

upsert
Insert-or-replace the continuation for an AIH. Matches the INSERT … ON CONFLICT … DO UPDATE idiom used by tags::apply.