cron-internals.md still called last_status "a closed set written only by
mark_job_run" (four literals) and said cron history never tracks later receipt
completion. At this head an agent run hands its send to cron/deliveries.db and
books last_status=delivery_queued / ledger queued; the gateway drain then settles
it through cron/delivery_outcome.py (delivered/suppressed -> ok, failed/unknown ->
delivery_failed + error), called from both sides and fenced on execution_id.
Probe (lanes/docs/probe_cron_writeback.py, real jobs.json + ledger + queue):
telegram target delivery_queued/queued -> ok/delivered after one drain; a
Bot Chat target queued by the owner also settles to ok/delivered while
last_delivery_queued keeps the receipt; a no_agent Bot Chat run stays
delivery_queued/queued (never on the queue).
- cron-internals.md: delivery_queued literal; new "Queued delivery lifecycle and
write-back" section with the outcome table; the Bot Chat paragraph now says
which paths are settled by the write-back (accepted, not answered) and which
stay queued.
- user-guide cron.md: the same correction for "Queued is not completed".
- getting-started/updating.md: "Upgrading to the gateway-owned session runtime":
the retired cron.bot_chat_delivery_timeout_seconds key (v51, also unversioned
files), legacy cron/bot_chat_pending records, started work becoming unknown on
the cutover restart (/discard), and the rollback FK caveat. cron-internals.md
links to it.
Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5460639040
Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5462648005