Skip to content

Redirect sandbox-failing Git forms and drop prompts the sandbox already covers #179

Closed

Description

@furedea-agent

Purpose

Prompts still reported after #178 come from three sources other than the allowlist:

  • Forms that fail in the sandbox. Sessions that run git commit -S or git push -u fail inside the sandbox, then retry with the sandbox disabled, which prompts. Signing cannot reach the SSH agent, and setting the upstream writes .git/config.
  • nix develop asks. It enters the project's development shell, which flake.lock pins.
  • The scope check asks for cd or git -C outside the registered worktree, even for reads. The sandbox already confines shell writes. The check never saw writes to absolute paths without a cd anyway.

Scope

  • The dangerous-Git guard denies git commit -S/--gpg-sign, signed tags, and git push -u/--set-upstream. The denial names the form that works.
  • nix develop moves to allow. nix shell and nix run keep asking.
  • Drop the shell directory scope check. Write, Edit, and patch target checks stay.

Out of scope

  • Where worktrees are created.

Acceptance criteria

  • The forms above are denied with the working form in the message. A commit message that mentions -S is not denied.
  • cd .. and git -C $DIR status pass the verification hook. A Write outside the worktree still asks.

Activity

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