Skip to content

Headless handoff runs on Pi - #44

Merged
simoncrypta merged 1 commit into
readable-titlesfrom
pi-headless
Nov 8, 2026
Merged

simoncrypta merged 1 commit into
readable-titlesfrom
pi-headless

Conversation

@simoncrypta

@simoncrypta simoncrypta commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

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 💬

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.
@simoncrypta
simoncrypta added this pull request to stack #40 November 8, 2026 23:05
@simoncrypta simoncrypta changed the title bstack: headless handoff and autopilot run on Pi Headless handoff runs on Pi Nov 8, 2026
@simoncrypta simoncrypta mentioned this pull request Nov 8, 2026
@simoncrypta
simoncrypta marked this pull request as ready for review November 8, 2026 23:16
@simoncrypta
simoncrypta merged commit 408abcd into master Nov 8, 2026
2 checks passed
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.

1 participant