Repository navigation
docs(specs): design interactive Issue runs - #327
Merged
Merged
Conversation
Replace Run recovery state and Phase workspaces with derived facts, the planning merge gates, and the kernel's one-stop comment. List the decisions that the revision needs the maintainer to confirm.
Start the implementation worker through the pi-subagents RPC with forked context, continue blocked workers with resume, and stop workers on exit and after a hard kill (D7).
A verified implementation pull request gets agent-done and one comment at once, but the Issue run stays open for updates to the pull request until it is merged.
Eleven tasks covering slices 1-3 of the spec: a launcher seam, a human channel for runOneIssue, planning gates and the review wait, run snapshots, the pi-subagents worker and stray-worker stop, the console extension and CLI flag, unblocking in place, and docs.
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.
Summary
Adds the design and implementation plan for interactive Issue runs, explored in #225. Docs only. No code changes. The second commit aligns the first draft with the skills-first kernel (#329) and the planning merge gates. The third runs interactive implementation through
pi-subagents. The fourth publishesagent-donebefore the review wait. The fifth adds the implementation plan (docs/plans/2026-11-01-issue-225-interactive-issue-runs.md): 11 tasks covering slices 1–3, to be built on a fresh branch frommain.docs/specs/ +└── 2026-10-14-issue-225-interactive-issue-runs-design.mdThe maintainer works out the spec and plan with the agent in a Pi chat. Patchmill then runs the rest of its usual workflow, and the same chat stays open until the implementation PR is merged:
Points that most need review:
pi-subagents, started by the Patchmill extension, not the agent (D1); block guidance is posted to the issue (D3); a verified implementation PR getsagent-doneat once, but the Issue run stays open for PR updates until the merge (D5, D6); and the worker never outlives the console (D7). Non-interactive runs keeppi -p.runOneIssuefor both modes. The agent decides when to go on, after the maintainer's word. Patchmill derives what happens next.Refs #225
Evidence
npx prettier --checkandnpx markdownlint-cli2pass on the revised file.mainat2834e8e3:runOneIssue,derivePhase,verifyOutcome,planningGateComment,supervisePi,sumSessionUsage, and the envelope template. Pi 1.4.0 still exportsInteractiveModeandcreateAgentSessionRuntime. The pinnedpi-subagents0.80.0 RPC offersspawn(withforkcontext),steer,resume,stop,statusandcost.Merge Danger
Door: two-way
Docs only. A revert removes the file.
Blast Radius: issue-225
This repo has
workflow.specApproval.required: true. The kernel opens the spec gate only for a merged PR whose head isagent/issue-225--spec. This PR's head isdocs/issue-225-interactive-console, so merging it does not open the gate. A laterrun-once --issue 225would start a spec session on a spec that is already onmain, and it would likely stop withneeds-info. #225 is labeledagent-unsuitable, so only an explicit--issuerun reaches this.