← Open Source & Engineering Work
Microsoft Open Source · microsoft/agent-governance-toolkitMerged · Microsoft Governance (PR #3442)

fix: reject policy fixtures without expectations (#3442)

Sole Author: Patrick Ribbsaeter (@patrickswedish) · Immutable Commit SHA: 2999b0053ef42fd7a734bc530ef11f56944677b9

Compliance test runner validation rejecting empty or null-only policy fixtures prior to replay so incomplete governance suites cannot report false-positive pass results.

fix: reject policy fixtures without expectations (#3442)

PR #3442

Merged Mainline

2999b00

Immutable Git SHA

Python

Ai Infrastructure

521 Policy Tests Green

CI & Test Matrix

01 · Engineering problem

The failure mode

Policy replay fixtures containing empty or null-only expectations completed without asserting any governance decision, reporting false-positive suite success.

02 · Technical response

What changed

  1. 01Enforced schema and runner validation requiring at least one non-null expectation per policy test fixture.
  2. 02Rejected empty replay reports before success classification and added negative-path unit tests.

03 · Verified outcome

Evidence-backed result

  • ✓Prevented vacuous policy test fixtures from reporting false governance verification.
  • ✓Merged upstream into microsoft/agent-governance-toolkit as commit 2999b0053ef42fd7a734bc530ef11f56944677b9.

04 · Cryptographic Git record

Immutable source evidence

PythonMicrosoft Agent GovernancePolicy ValidationSecurity Testing

Independent open-source engineering authored solely by Patrick Ribbsaeter (@patrickswedish). Company and project names identify the public repository context only under nominative fair use. No employment, client, vendor, or partnership relationship is implied unless explicitly stated.