Skip to content

docs(session): define lifecycle and recovery contract - #244

Closed
627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-193-session-contract
Closed

627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-193-session-contract

Conversation

@627150795

Copy link
Copy Markdown
Contributor

Problem\n\nSession, Workflow, Replay, provider, filesystem/Git, and UI state were documented in separate places, making it easy to confuse a transcript branch with runtime ownership, a result artifact with Session history, or a process exit with successful completion.\n\n## Value\n\nProvide one reviewable lifecycle and recovery contract that preserves Pi as the canonical Session owner, makes uncertainty explicit, and gives contributors a shared boundary for recovery, replay, retention, and side effects.\n\n## Approach\n\n- Add the requested cross-plane contract under docs/design with evidence labels and bounded revision limitations.\n- Separate Pi Session identity, model context, OpenPI Workflow execution, provider state, filesystem/Git state, UI projection, and delivery evidence.\n- Define resume, live rejoin, tree, fork, clone, compaction, context pivot, child settlement, Workflow recovery, delivery, and Replay independently.\n- Document parent/child fail-closed authority, terminal evidence hierarchy, uncertain outcomes, retention/deletion boundaries, and explicit non-goals.\n- Link the contract from README, the Workflow graph design, and Subagent/Workflow guidance without adding runtime code or a second persistence/control plane.\n\n## Validation\n\n- git diff --check — passed\n- bun run lint — passed\n- bun run typecheck — passed\n- No runtime behavior was changed; this is a documentation/design-only PR.\n\n## Impact\n\n- User-visible behavior: None.\n- Model-visible context/tools: None.\n- Runtime/lifecycle: None.\n- Persisted config/data: None.\n- Compatibility/risk: Documentation only; the contract explicitly preserves existing Pi/OpenPI ownership and defers implementation until a concrete invariant requires it.\n\nFixes #193

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

2 participants