Skip to content

feat(cli): PermissionAdapter production mutation guard (Windows estate muzzle) #69

Description

@heavygee

Problem

Windows HAPI Cursor sessions run ACP with yolo, which auto-approves shell at the CLI PermissionAdapter layer. Cursor beforeShellExecution hooks often do not fire in that path, so the 2026-06-20 incident command shape (ssh server "kill … && hapi-driver-db-prep … && nohup bun run …") can execute against Linux production.

Solution

  • Shared productionMutationGuard module (pattern match + remote SSH compound check)
  • Wire into PermissionAdapter before yolo auto-approve — deny even in yolo
  • Tests for incident shape, read-only ssh OK, local manual-hub block

Deploy

Merge to fork main → driver soup layer → Teemo runner rebuild.

See docs/operator/windows-estate-agents.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions