Governance for policy language profiles, authoring, validation, testing, review, versioning, bundles, signing, distribution, promotion, rollback, and release evidence.
This repository is an installable SSOT Registry governance pack. It packages immutable ADR and SPEC documents for explicit, operator-approved downstream synchronization.
Short answer: policy-as-code-governance-pack is an installable SSOT governance pack for Policy as Code. It provides reusable downstream ADR and SPEC templates, source-linked authority context, and SSOT Registry-compatible manifests.
Use this package when a downstream repository needs governed decisions and implementation-ready requirements for policy as code, without copying those requirements into adjacent governance packs.
- Installable Python package:
policy-as-code-governance-pack - GitHub package repository:
groupsum/policy-as-code-governance-pack - Import package:
policy_as_code_governance_pack - 3 portable downstream ADR templates for governed decisions.
- 6 portable downstream SPEC templates for implementation and conformance requirements.
- SSOT Registry-compatible metadata, manifests, hashes, reservation ownership, and compatibility declarations.
- Pack ID:
pack:policy-as-code - PyPI package:
policy-as-code-governance-pack - Import package:
policy_as_code_governance_pack - GitHub repository: groupsum/policy-as-code-governance-pack
- Reservation owner:
extension-pack:policy-as-code-governance-pack - Python compatibility:
>=3.10,<3.15 - SSOT Registry schema:
>=0.4.0 - SSOT pack contract:
>=0.2.17,<0.3.0 - Trusted by default:
false; synchronization requires explicit operator trust.
Policy as Code
adr:policy-engines-declare-language-version-and-evaluation-contract- Policy Engines Declare Language Version And Evaluation Contractadr:deny-paths-and-least-privilege-are-release-gated- Deny Paths And Least Privilege Are Release Gatedadr:policy-artifacts-are-versioned-tested-and-promotable- Policy Artifacts Are Versioned Tested And Promotable
spc:policy-authoring-and-review-contract- Policy Authoring And Review Contractspc:cedar-policy-language-profile-contract- Cedar Policy Language Profile Contractspc:opa-rego-policy-language-profile-contract- OPA Rego Policy Language Profile Contractspc:xacml-language-compatibility-contract- XACML Language Compatibility Contractspc:policy-unit-negative-and-regression-test-contract- Policy Unit Negative And Regression Test Contractspc:policy-bundle-signing-distribution-and-rollback-contract- Policy Bundle Signing Distribution And Rollback Contract
uv add policy-as-code-governance-pack
uv add ssot-registry policy-as-code-governance-packThe pack is not trusted implicitly. Inspect and preflight it before explicitly approving synchronization:
uvx --from ssot-registry ssot pack inspect policy_as_code_governance_pack
uvx --from ssot-registry ssot pack preflight . policy_as_code_governance_pack --all
uvx --from ssot-registry ssot pack sync . policy_as_code_governance_pack --all --trust --yes
uvx --from ssot-registry ssot validate .Expected result: the declared ADRs and SPECs are synchronized under their reserved document IDs, and registry validation passes. Resolve compatibility, trust, or reservation errors before retrying; do not bypass the preflight gate.
from policy_as_code_governance_pack import load_document_manifest, read_packaged_document_text
adr_manifest = load_document_manifest("adr")
spec_manifest = load_document_manifest("spec")
text = read_packaged_document_text("spec", "SPEC-2000-policy-authoring-and-review-contract.yaml")- GitHub package repository: groupsum/policy-as-code-governance-pack
- PyPI package: policy-as-code-governance-pack
- SSOT Registry: ssot-registry
- SSOT pack contracts: ssot-pack-contracts
This package is the canonical owner of the policy as code governance surfaces represented by its packaged ADRs and SPECs. Adjacent packs may define integration profiles, but must reference these document identities instead of restating their normative requirements.