Skip to content

Governance profiles and plugins

Two mechanisms sit beside the bundle model. A governance profile selects a named posture for a scope; a plugin registers an evaluation the policy layer can call. Both are control-plane records rather than node configuration.

Governance profiles

A profile is a named posture, resolved from a catalog:

Operation Does
Catalog Lists the profiles available
Validate Checks a profile document against its contract
Resolve name Turns a profile name into the profile in force

The default profile is named default, so a scope that selects nothing has a posture rather than an absence of one.

What a profile decides

A profile carries the postures that are not individual rules, and the clearest example is enforcement mode. Determinism controls are governed rather than mandatory, and the profile in force decides whether an incomplete control warns or blocks:

policy.determinism.generation_defaults_warn
policy.determinism.generation_defaults_blocked

Both outcomes record a governance event. The profile decides which of them happens. See Policy transitions and runtime controls.

Resolution is by name, from a catalog

flowchart LR
  subgraph SC["SCOPES"]
    direction TB
    S1["Scope selecting a name"]
    S2["Scope selecting nothing"]
  end
  subgraph CAT["PROFILE CATALOG"]
    direction TB
    PD[("default")]
    PN[("named profiles")]
  end
  V{{"Validated at resolution"}}
  PO["Posture in force<br/>for example warn or block"]
  S1 -->|"name"| PN
  S2 -->|"default"| PD
  PN --> V
  PD --> V
  V --> PO

Every scope reaches a catalog entry, including one that selected nothing. The validation sits between the catalog and the posture, so a profile that became invalid is caught where it would be applied.

Validating the document at resolution rather than at authoring means a profile that became invalid is caught where it would be applied, rather than being applied in a broken state.

Plugins

Two operations exist: registering a policy plugin, and reading what is registered.

A plugin extends what policy can evaluate. Registration is a control-plane record, so the set of plugins in play is answerable centrally rather than by inspecting nodes.

Plugins do not widen the enforcement surface

The hooks and effects stay closed. A plugin contributes to an evaluation within the existing model rather than introducing a new place where a decision is made or a new thing a decision can do.

That boundary is what keeps the guarantee behind linting intact: every rule that reaches the kernel is mechanically enforceable, because the shapes the kernel enforces did not change.

Why both are recorded centrally

A profile and a plugin both change how a decision comes out. Recording them in the control plane means an unexpected decision can be traced to the posture and the registrations in force, rather than requiring a node to be inspected to find out what was evaluating.

See Governance events for the attribution those decisions carry.