Repository navigation
Headless handoff runs on Pi - #44
Merged
Merged
Conversation
With harness = "pi", the bstack and autopilot handoff stages run `pi -p --mode json` with a session UUID that bercail picks up front, confirms against the session header, and reuses on --resume. The headless lead runs single-agent (no hc siblings, no judge or council) and says so in its summary. Pi exits 0 on provider failures, so a last message_end with stopReason error now marks the run failed, and the usage-limit reason is read from Pi's errorMessage. A new guard extension (bstack/pi/extensions/guard.ts), loaded by every Pi role, always blocks force/mirror pushes, --no-verify and gh pr merge; blocks commit and push in -p mode and asks in the TUI; lets autopilot commit and push but never to main or master; and keeps judge and council read-only. Opencode is no longer the default: bstack_harness, bercail-desk-agent, new installs and omarchy default to pi, and update/reconfigure migrate an old "opencode" agent command to "pi". --binary opencode keeps working while the fallback exists. A --branch desk on Pi runs lead.json.
Merged
simoncrypta
marked this pull request as ready for review
November 8, 2026 23:16
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.
Handoff stages bstack and autopilot run headless on Pi with a resumable session, behind a guard that blocks force-push, merge and pushes to main; Pi becomes the default harness.
Issue 8pz (Headless handoff runs on Pi).
Verified: tests/*.sh pass (incl. a real-Pi guard test) and live headless/autopilot runs on omarchy; autopilot nck found the PR green.
Stack created with GitHub Stacks CLI • Give Feedback 💬