Skip to content

Decide Whether the Write-Safety Law and Host Block Name the Shared Git Stash #2900

Closed

Description

@ptr727

Decision Needed

#2896 (pull request #2899) states in the repo-worktree Skill that a task in a worktree does not use git stash, because the stash is one list per repository, refs/stash, shared by every worktree. The maintainer limited that change to the Skill. This issue asks whether the law should name the stash as well.

GOVERNANCE.md "Repository Boundaries and Write Safety" and the host-wide agent-safety block (the "Repository Boundaries and Write Safety" section the hub's agent-safety installer renders) both name the blanket add, the hard reset, and the branch switch as commands that cross the task boundary while being correct in isolation. Neither names the stash. Today the stash rule lives only in the Skill, which binds a session only when the Skill fires.

Choices

  1. Add it to the law list and mirror it in the host block. Name git stash beside the blanket add and the hard reset in GOVERNANCE.md "Repository Boundaries and Write Safety", and make the same edit in the host-wide agent-safety block, which is kept in sync with that section on purpose. The rule then binds every session, including one where the Skill never fires. The cost is one more item in an enumeration two surfaces have to keep identical.
  2. Leave it skill-only. The repo-worktree Skill keeps the rule at the task-start moment it already covers, and the law and the host block stay as they are. The Skill keeps a statement the law does not carry, which a session that never loads the Skill does not see.

Related: #1364 tracks open findings against the same GOVERNANCE.md section.

Activity

  1. added
    decision
    on Oct 12, 2026
  2. ptr727 commented on Oct 12, 2026

    @ptr727
    OwnerAuthor

    Maintainer decision: add the shared stash to the GOVERNANCE.md "Repository Boundaries and Write Safety" list beside the blanket add and the hard reset, and mirror it in the host-wide agent-safety block. The decision label is removed, and the issue stays open as the work to do.

  3. removed
    decision
    on Oct 12, 2026
  4. added a commit that references this issue on Oct 12, 2026
    1049f4d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions