Repository navigation
Conversation
22 tasks
7 tasks
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. |
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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