Skip to content

execpolicy: command-prefix rules with canonicalization, plugged into PolicyHook #37

Description

@rrrodzilla

What

Implement the planned garrison-execpolicy (garrison-agent-design.md §1.1): prefix rules in TOML plus command canonicalization, so bash -lc "git status" is matched on the argv it actually runs and policy cannot be laundered through a shell wrapper. Decisions map allow → auto-approve, prompt → IDE round-trip, forbidden → deny with reason fed back to the model, with justification surfaced in the audit entry. Rules ship in the control-plane bundle and are self-tested against their examples at publish like the existing command rules.

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