Skip to content

docs(goal): define lifecycle and control contract - #246

Closed
627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-192-goal-semantics
Closed

627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-192-goal-semantics

Conversation

@627150795

Copy link
Copy Markdown
Contributor

Problem

Goal operations currently exist in the Session Goal extension, but the distinctions between edit, replacement, pause, resume, clear, completion, blocking, and thread stop are not captured in one contract.

Value

This gives contributors a precise lifecycle vocabulary and makes user/host authority, model reporting, Pi Session persistence, continuation safety, and accounting limits explicit.

Approach

  • Added a documentation-only Goal lifecycle and control contract.
  • Documented identity/accounting behavior, status transitions, blocked audit, completion acknowledgement, continuation dispatch, fork/tree recovery, and Codex comparison.
  • Added the contract to the design documentation index.
  • Kept the implementation Pi-native with no second store or unrestricted model control tools.

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. The contract records current behavior and evidence limits; future runtime changes should update it with targeted tests.

Fixes #192

@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(goal): define edit, replace, pause, clear, completion, and continuation semantics

2 participants