Skip to content

M1: Add built-in deterministic policy checks #7

@dbrosio3

Description

@dbrosio3

Goal

Add built-in deterministic checks for common local policy needs that do not require custom tools after the configured deterministic command layer is in place.

User value

Teams can adopt useful local guardrails quickly, even before wiring stack-specific lint/test commands.

Implementation notes

  • Treat this as an optional expansion after the v2 deterministic command-check layer is stable.
  • Consider built-ins for forbidden files, forbidden paths, secret patterns, large files, binary files, generated files, and diff size.
  • Make each built-in configurable as blocking or warning.
  • Keep built-ins focused on local push decisions and actionable local output.
  • Keep false-positive messages actionable.

Risks / tradeoffs

  • Secret and forbidden-file checks can generate false positives.
  • Too many built-ins may make the product feel like a generic policy engine instead of a focused push gate.

Suggested priority

P2

Milestone

M1: Deterministic local gate

TBD considerations

  • Privacy/security policy for secret redaction before local AI calls.
  • Which built-ins are default-on vs template examples only.

Acceptance criteria

  • At least diff size and forbidden file/path checks are implemented if this optional expansion is scheduled.
  • Built-ins are covered by integration tests.
  • Blocking and warning behavior is explicit in local output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    M1Milestone M1: deterministic local gateP2Priority P2: later polishenhancementNew feature or requestv2ai-pushgate v2 roadmap

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions