Skip to content

Preserve inbox wakes during automatic report delivery - #66

Merged
marvin-bitterlich merged 5 commits into
mainfrom
marvin-bitterlich/pardes/coordinate-inbox-wakes-with-automatic-report-delivery
Jul 12, 2026
Merged

marvin-bitterlich merged 5 commits into
mainfrom
marvin-bitterlich/pardes/coordinate-inbox-wakes-with-automatic-report-delivery

Conversation

@marvin-bitterlich

Copy link
Copy Markdown
Contributor

Why?

A Pardes inbox wake arriving between canonical report parts—or while report_get was still reading its artifact—could silently cancel or stall automatic delivery.

How?

Lease the conversation from report permit acquisition through read/start, defer or roll back unsent wake cursors while reports own it, and model one exact manager-registered wake as a bounded interlude whose full Pi lifecycle resumes delivery deterministically.

Decisions

  • Keep durable inbox state authoritative; acquisition leases, wake reservations, and interludes remain transient coordination.
  • A queued wake blocks report acquisition, while its exact message_start permits one report retrieval in that manager turn; part one waits for wake agent_end.
  • Admit only one exact registered wake identity. Malformed, mismatched, duplicate, replayed, or unrelated messages remain fail-closed.
  • Emit a bounded resumable outcome for interrupted active delivery, and re-evaluate durable wake state after rollback, failure, cancellation, timeout, or lifecycle reset.

Callouts

  • Review cursor rollback and retry ordering around delayed artifact reads.
  • Review exact wake interlude transitions across Pi message_start, message_end, agent_end, compaction, stop, reload, and timeout.

@marvin-bitterlich
marvin-bitterlich merged commit 79834bb into main Jul 12, 2026
1 check passed
@marvin-bitterlich
marvin-bitterlich deleted the marvin-bitterlich/pardes/coordinate-inbox-wakes-with-automatic-report-delivery branch July 12, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant