Skip to content
commitwarden Request early access
Menu

The gates

Seven gates. Each one says why it held.

A held change always shows the rule that held it and what would release it.

01

Provenance

Every change is tagged ai-authored, ai-assisted or human, from commit trailers, agent session records, bot identities and your own signals. Every later gate can read the tag.

Holds whenA change is missing the signals your rules require.

02

Required tests

Changed lines must be covered. Tests the agent generated count, as long as they pass the next gate.

Holds whenCoverage on changed lines is below your threshold.

03

Mutation testing

Small faults are introduced into the changed code. Good tests fail when the code is wrong. The mutation score shows how many faults the tests caught.

Holds whenThe mutation score on changed code is below your threshold.

04

Scans

Static analysis, secret detection, dependency vulnerabilities, licence checks against your allow list, and policy checks on infrastructure as code.

Holds whenA finding is above the severity you set, or a licence is not on the list.

05

Policy as code

Rules that read the tag, the paths touched and the results of the other gates. Written, reviewed and versioned like code.

Holds whenA rule is not satisfied, such as a missing second reviewer.

06

Staged deploy

Canary stages in AWS CodePipeline, with health checks on error rate and latency, and automatic rollback when a threshold is crossed.

Rolls back whenHealth checks fail during a stage.

07

Evidence

One record per release: provenance, every check and result, approvals, overrides and the deploy timeline.

Holds whenThe record cannot be written. No evidence, no release.

A rule, written down

The rule that held PR #482.

Rules are short files in your own repository. This one requires two human approvals and a higher mutation score for AI-authored changes to auth or payments code.

policies/payments-two-humans.yamlsample

rule: payments-two-humans
when:
  provenance: [ai-authored, ai-assisted]
  paths: ["src/payments/**", "src/auth/**"]
require:
  human_approvals: 2
  mutation_score: ">= 0.75"
  scans: { sast: none-high, secrets: none }
on_fail: hold
message: "AI-authored change to payments or auth
  needs 2 human approvals."
Sample policy file, for illustration.

Early access

Bring the rule you wish you already had.

Request early access