Skip to content

Atomically plan Workshop streaming finalization - #863

Merged
dcellison merged 1 commit into
mainfrom
feat/workshop-atomic-streaming-finalization
Aug 12, 2026
Merged

Atomically plan Workshop streaming finalization#863
dcellison merged 1 commit into
mainfrom
feat/workshop-atomic-streaming-finalization

Conversation

@dcellison

Copy link
Copy Markdown
Owner

Summary

  • add schema v13 execution contracts for durable delivery work and immutable send / edit fragment operations
  • atomically persist a canonical assistant reply, its streaming-finalization delivery, and its complete operation plan
  • resolve the canonical direct Telegram binding and optional confirmed preview internally from the inbound message identity
  • preserve all preexisting delivery work as send_fragments / send during migration
  • record the completed boundary and the next bounded adapter/worker milestone in the Workshop implementation map

Finalization contract

  • a confirmed preview produces an explicit edit of that exact Telegram message followed by continuation sends
  • no confirmed preview produces an all-send plan
  • the terminal edit remains explicit even when the preview already contains the terminal snapshot
  • message, delivery, and operation plan share one SQLite transaction and one prior-state decision
  • changed content, changed plan semantics, routing disagreement, and either tested half-state fail closed
  • retries across process restart or a later observation time return the same immutable state

Production safety

  • no production handler calls the new atomic service
  • the Workshop runtime remains unregistered
  • the existing Telegram worker explicitly claims only the send_fragments execution contract
  • the existing adapter rejects edit operations before any Bot API call
  • claim and expired-lease recovery are execution-contract scoped
  • qualification work and all current direct Telegram behavior remain unchanged

Verification

  • make check
  • make typecheck
  • focused Workshop delivery/finalization suite: 82 passed
  • full suite: 5,364 passed, 1 skipped

@dcellison
dcellison merged commit d15dc6a into main Aug 12, 2026
1 check passed
@dcellison
dcellison deleted the feat/workshop-atomic-streaming-finalization branch August 12, 2026 13:19
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.

2 participants