Skip to content

docs(lifecycle): define background execution contract - #247

Closed
627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-196-background-lifecycle
Closed

627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-196-background-lifecycle

Conversation

@627150795

Copy link
Copy Markdown
Contributor

Problem

Direct Subagent, Workflow, and Background Terminal have different owners and recovery guarantees, but their execution, cancellation, cleanup, delivery, and UI states can be conflated.

Value

This contract gives contributors one precise vocabulary for admission, execution, terminal settlement, artifacts, cleanup, transport, model consumption, and operator projection without claiming unsupported exactly-once behavior.

Approach

  • Added separate lifecycle and evidence boundaries for Direct Subagent, Workflow, and Background Terminal.
  • Documented detached versus host-dependent launch behavior, cancellation and forced settlement limits, uncertainty, artifact/replay semantics, and delivery receipts.
  • Documented Session transitions, isolation/authority boundaries, related issue ownership, and non-goals.
  • Added the contract to the design documentation index.

Validation

  • git diff --check — passed
  • bun run lint — passed
  • bun run typecheck — passed
  • No runtime code, storage behavior, or tool surface changed.

Impact

Documentation-only. Runtime changes remain with the owner modules and issues listed in the contract.

Fixes #196

@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.

docs(lifecycle): define background ownership, isolation, cancellation, settlement, and delivery

2 participants