PRE-15 · Agent code and Rego change control
Changes to agent code and Rego policies require pull request review and passing automated tests.
Auditor test
PassSampled merges to agent and policy repositories. Confirmed required reviewers, CI policy unit tests, and branch protection preventing direct pushes to main.
Sample: 18 policy/agent PRs
Evidence artifacts
EV-GH-PR-REGO-01Rego policy pull requestGitHub
Agent-authored PR adding S3 CMK Rego with human approval and passing policy tests.
repository: praeparo/customer-acme-policies
pull_request: 128
title: "policy: require S3 bucket CMK encryption"
author: agent:praeparo-grc
opened_via: agent-orchestrator
files:
- policies/s3_cmk.rego
- policies/s3_cmk_test.rego
checks:
- opa-test (pass)
- rego-fmt (pass)
reviews:
- reviewer: m.chen
state: APPROVED
submitted_at: 2028-05-03T10:12:44Z
merged_by: m.chen
merged_at: 2028-05-03T10:14:50Z
EV-REGO-TEST-01OPA unit test results for S3 CMK policyGitHub Actions / OPA
opa test output showing pass and fail fixtures for bucket encryption rules.
$ opa test policies/ -v policies/s3_cmk_test.rego: data.policies.s3_cmk_test.test_deny_unencrypted PASS (0.2ms) data.policies.s3_cmk_test.test_allow_cmk PASS (0.1ms) data.policies.s3_cmk_test.test_deny_aes256_only PASS (0.1ms) -------------------------------------------------------------------------------- PASS: 3/3
Conclusion
Branch protection and required checks were enforced. All sampled merges had passing Rego tests and at least one approving review.
Also appears in Section 4 of the mock report.