Versioned, layered, dependency-aware governance distribution for VaultKit.
The Policy Pack system allows VaultKit to ship secure, production-ready governance defaults in a structured, upgradeable format.
Policy Packs solve one core problem:
Organizations should not have to design secure governance from scratch.
Instead, they can install curated, versioned packs that enforce secure defaults and domain-specific protections.
A Policy Pack is:
Each pack lives inside:
lib/vkit/policy/packs/<pack_name>/
Structure:
<pack_name>/
metadata.yaml
policies/
01_policy.yaml
02_policy.yaml
Each pack must include metadata.yaml.
Example:
__pack_meta:
name: starter
version: "2.0.0"
layer: 10
description: "Secure defaults: secrets denied, PII and high-sensitivity fields masked, approval for high-sensitivity data in production, unreviewed columns flagged."
dependencies: []
priority_band:
min: 0
max: 100
| Field | Required | Description |
|---|---|---|
name |
✅ | Pack identifier |
version |
✅ | Semantic version string |
layer |
✅ | A number; lower layers are foundations for higher ones |
description |
❌ | Human-readable summary |
dependencies |
❌ | Required packs |
priority_band |
❌ | Enforced priority range |
A pack’s layer is a number. Lower layers are foundations; higher layers build on
them.
| Layer | Shipped pack | Purpose |
|---|---|---|
| 10 | starter |
Core safety defaults |
| 30 | ai_safety |
Controls for AI agents |
| 40 | financial_compliance |
Financial data controls |
The CLI upgrades installed packs from the lowest layer up, and refuses a pack that depends on a pack at a higher layer than its own. Layers don’t decide which policy wins at request time: the strongest action does (see Which policy wins).
VaultKit enforces dependency presence but does not auto-install.
When a pack is installed:
config/policies/Installed file naming pattern:
<pack_name>__<index>__<policy_slug>.yaml
Example:
starter__01__deny_credentials.yaml
starter__02__mask_pii_by_default.yaml
This guarantees:
VaultKit records installed packs in:
.vkit/packs.yaml
Commit it. vkit init (vkit 2.0.0) writes a .gitignore that ignores the rest of
.vkit/ but keeps this file, and vkit policy bundle refuses to build while it has
uncommitted changes. Projects from vkit 1.x ignore all of .vkit/; see
Commit .vkit/packs.yaml.
Example:
format_version: v1
installed_packs:
starter:
name: starter
version: "2.0.0"
layer: 10
installed_at: "2026-10-29T15:00:00Z"
pack_checksum: "abc123..."
files:
- path: config/policies/starter__02__mask_pii_by_default.yaml
policy_id: mask_pii_by_default
This enables:
Drift is detected when:
installed_version != shipped_version
CLI output:
⚠ starter (installed v1.0.0, available v2.0.0)
Drift detection does NOT auto-upgrade.
Upgrades require explicit command:
vkit policy pack upgrade
Each pack generates a SHA256 checksum over:
metadata.yamlpolicies/**/*.yamlChecksum ensures:
Checksum stored in state file and embedded in bundle metadata.
When compiling a policy bundle, installed packs are embedded:
"installed_packs": [
{
"name": "starter",
"version": "2.0.0"
}
]
This ensures:
Upgrade flow:
Upgrade command:
vkit policy pack upgrade
Options:
| Flag | Behavior |
|---|---|
--dry-run |
Preview without writing |
--force |
Overwrite existing pack files |
VaultKit never overwrites non-pack files.
Before installation:
ensure_dependencies!
If missing:
DependencyMissing: Pack requires dependencies not installed: starter
VaultKit does NOT auto-install dependencies to prevent surprise governance changes.
If priority_band is defined:
All policies inside the pack must respect:
min <= policy.priority <= max
Violation raises:
InvalidPack: Policy priority outside allowed band
This prevents cross-pack priority collisions.
Priority orders policies inside a bundle; it doesn’t decide which action wins. When several policies match a request, the strongest action wins whatever its priority: deny, then require approval, then mask, then allow. See the Policy Guide.
When removing a pack:
Removal command:
vkit policy pack remove starter
Policy Packs guarantee:
The Pack System follows:
vkit policy pack info <pack> prints each pack’s description (vkit 2.0.0; with
--format json, result.description).
| Pack | Version | Depends on | What it does |
|---|---|---|---|
starter |
2.1.0 | — | Denies credentials. Masks personal data and high-sensitivity fields, also after approval. High-sensitivity data in production needs approval from data_owner. Columns rated unknown are masked for agents until reviewed; people read them, flagged in the audit log. Other grants last 4 hours. |
ai_safety |
2.1.0 | starter |
Agents need approval from security for personal or unknown data in production, and for high-sensitivity data in any environment. Agents reading financial data row by row in production need security or finance_manager (approval_mode: any). |
financial_compliance |
2.1.0 | starter |
Reading financial data row by row in production (usage: row, MIN and MAX included) needs approval from finance_manager. Counts, sums, averages and grouping don’t. Grants with financial fields last 30 minutes. |
With both ai_safety and financial_compliance, one finance sign-off approves an
agent’s financial read: the finance requirement also meets ai_safety’s any-of
requirement. Before 2.1.0 it needed finance and security. Bundles from these packs
use approver_roles, approval_mode and match.fields.usage, so they need VaultKit
0.12.0-alpha. Upgrade the control plane first, then run
vkit policy pack upgrade, vkit policy bundle and vkit policy deploy.
starter (layer 10)
├── ai_safety (layer 30)
└── financial_compliance (layer 40)
custom company rules (your own files, outside any pack)
Before relying on the packs, create the approval groups they name (data_owner,
security, finance_manager), and review your registry labels: the packs act on
each field’s sensitivity and category.
The 1.x packs had policies that could never fire: clearance and region rules that
matched values VaultKit didn’t set, and financial rules that used an unsupported
category key and tags nothing produced. Run vkit policy pack upgrade (vkit 1.2.0
or later) to replace them.
vkit policy bundle now refuses any policy that can never match, so a project still
on the 1.x financial_compliance or ai_safety packs won’t bundle until it’s
upgraded. The error lists each policy and says why.
Planned improvements:
Policy Packs are not templates.
They are versioned governance modules.
They allow VaultKit to scale from:
“Write your own policies”
to
“Install secure governance instantly.”
They are a foundational component of VaultKit’s long-term compliance and distribution strategy.