Skip to content

docs(delivery): define completion inbox contract - #254

Closed
627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-160-completion-inbox-contract
Closed

627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-160-completion-inbox-contract

Conversation

@627150795

Copy link
Copy Markdown
Contributor

Problem

Direct Subagent, Background Terminal, and Workflow each deliver terminal results, but execution state, delivery state, model consumption, and UI projection have different owners and failure windows. Without a shared contract, batch success, stale Sessions, inline waits, and crashes can be mistaken for complete delivery.

Value

This defines producer ownership, destination Session and epoch, stable delivery IDs, per-result receipts, wake policy, partial-batch recovery, fork/resume behavior, and the at-least-once boundary.

Approach

Added a focused design contract and linked it from the design index. It treats the current Workflow durable delivery behavior as a reference, keeps the three execution state machines independent, and explicitly avoids a global task store or exactly-once claim.

Validation

  • git diff --cached --check
  • bun run lint
  • bun run typecheck

Impact

Documentation-only; no producer state machine, delivery queue, wake policy, artifact store, API, or runtime behavior changes.

Fixes #160

@tt-a1i

tt-a1i commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Thank you for preserving this research. We are closing this PR as a source record for the Execution lifecycle consolidation tracked in #277. This is not a finding that the content is wrong. The current queue contains overlapping contracts from one stale base, so we will extract only settled facts and unresolved decisions into at most one successor record, citing this PR explicitly. Please do not spend time rebasing this branch.

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.

delivery: 统一后台完成事件的 owner 路由、epoch 与消费收据合同

2 participants