Define the /boss session anchor as the captured start HEAD, not the live main ref #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The rollback-sandbox section defines the
/bosssession anchor as thelive
mainHEAD, but an autonomous run is not always onmain— under agit worktree the run sits on its own branch.
boss/SKILL.md:333-335reads: the orchestrator "notes the currentmainHEAD — the last user-ratified state — as the session anchor", and
boss/SKILL.md:535speaks of "a spec already committed onmain". Thesection is written in an on-
mainmental model.The correct anchor is the HEAD revision captured at run start (a fixed
sha), not the live
mainref — which is what the loop already captures(
implement/workflows/implement-loop.js:245,git rev-parse HEAD). Inthe primary clone on
mainthe two coincide; in a worktree the run is onits own branch and a
git reset --hardto the anchor only moves thatbranch (it cannot reach
main).Claim (unverified, low risk): if the primary clone is ever parked
off-
mainat spawn, resolving the anchor as the livemainref insteadof the captured start HEAD could reset the session branch to a
non-ancestor commit. Capturing the start-HEAD sha avoids it.
Acceptance:
boss/SKILL.mddefines the session anchor as the capturedstart-HEAD revision (a fixed sha), branch-agnostic, and notes the
worktree case where it is not
main.