Policy packs
Install a tested set of policies as files, checked against a signed index and shown to you before anything is written.
Before you start
- The
deedglassCLI. Installing a pack only writes files; pushing the policy to your server needs an org admin key.
1. List the packs
Section titled “1. List the packs”deedglass policy packs listdeedglass policy packs verifypostgres-safe(free): the Postgres connector.supabase-mcp(free): Supabase’s MCP server, wrapped as the connectorsupabase.stripe-refunds(free): the Stripe connector (sandbox).github-agent(free): the GitHub connector.healthcare-fhir(free): the FHIR connector. Clinical records are never deleted; orders, allergies, problems and final notes wait for a clinician; claims need two people (the healthcare-fhir pack).india-health(free): the FHIR connector on ABDM and NHCX flows. PHI mode first; the healthcare-fhir rules, plus ABDM health records that wait for a clinician unless they are drafts, and NHCX claims that need one or two people by use and amount (India: ABDM and NHCX).money-movement(free while we grow): Stripe refunds, payouts and transfers, with amount caps and two admins for large ones.
verify checks every file of every pack against its sha256 in the index and runs each pack’s own test cases. Each pack carries at least 12.
2. Install one
Section titled “2. Install one”deedglass policy install postgres-safeIn order, install:
- Reads the packs. By default it uses the copy built into
deedglass, so it works offline.--from <dir|.tar.gz>reads a local copy of the policy-packs repo, and--latestdownloads the newest release over HTTPS. That is the only time it uses the network. - Checks the index. A copy from outside the binary must be sealed by a pack key this build knows, and then every file must match its sha256. If one doesn’t:
✕ This pack doesn't match its signed index (postgres-safe.yaml). Nothing was written. - Checks the tier. Every pack is free while we grow, so no pack opens the licence file.
- Compiles the policy and runs its cases. A failure writes nothing.
- Shows the plan: each file, new or changed, with a diff for changes. Then it asks
Write 2 files? [y/N]. Pass--yesto skip the question. - Writes
policies/<pack>.yamlandpolicies/<pack>.cases.yaml(--dirchanges the folder) and prints the next step.
Pin a version with postgres-safe@1.0.0. Running install again on unchanged files writes nothing.
3. Push it in shadow first
Section titled “3. Push it in shadow first”deedglass policy test policies/postgres-safe.yamldeedglass policy push policies/postgres-safe.yamldeedglass policy activate postgres-safe --version 1 --mode shadow --reason "trying the pack"Compare it with what you run today using deedglass policy replay, then activate it with --mode enforce.
Packs and licences
Section titled “Packs and licences”Every pack installs without a licence while we grow. Rules never read a licence, so a policy you installed keeps enforcing whatever a later build asks for at install time.
What it doesn’t do
Section titled “What it doesn’t do”- A pack is a starting point, not a review of your setup. Read its cases before you enforce it.
- It never pushes or activates a policy. You do that, in shadow first.
- Until the pack signing key is published, only the copy built into
deedglassinstalls;--fromand--latestrefuse an index they can’t check.