Skip to content

Governance events

A governance decision is recorded with enough context to answer who decided what, about which run, under which scope, and why. This page is the attribution those records carry and why it is attached centrally rather than by each capability.

What a governance record attributes

Every lineage record carries the same fields, under governance.attribution.v1:

run             the run the decision was about
node_id         which step of it
actor_id        who the decision was attributed to
scope_kind      the kind of scope the decision was made in
scope_name      which scope
decision        what was decided
reason          why
event_type      which kind of governance event this is

Scope kind and scope name travel together because a decision made at a workspace and the same decision made at a project are different facts. Recording the level makes the attachment hierarchy visible in the record rather than inferred from it.

Attribution is attached, not authored per call

flowchart LR
  subgraph DEC["DECIDING SERVICE CAPABILITIES"]
    direction TB
    D1["Admission"]
    D2["Policy"]
    D3["Dispatch"]
    D4["Secrets"]
  end
  LC{{"Lineage composer<br/>run, node, actor, scope,<br/>decision, reason"}}
  EV[("Governance events<br/>append-only")]
  D1 --> LC
  D2 --> LC
  D3 --> LC
  D4 --> LC
  LC --> EV

Every deciding service capability reaches the event store through one composer, so a record carries the same shape wherever it came from, and no service capability can append a governance event with its attribution missing.

Governed log appends

Service logs written through the governed path carry the same lineage. Because policy is consulted for those writes, the decision is cached briefly, for 30 seconds, so a burst of log lines does not re-resolve the same policy for each one.

The cache is a read-through on a decision the control plane already made. It shortens repeated lookups within a window rather than changing what the decision is.

What these records answer

Question Answered by
What was decided about this run run, node_id, decision
Who it was attributed to actor_id
Under which rule level scope_kind with scope_name
Why reason
Which kind of event this was event_type

Together with the correlation tuple the run already carries, a governance record joins to the assignment that ran, the evidence the kernel emitted, and the audit history of the scope. See The correlation tuple.

Governance events and audit records

Governance events record decisions about runs. Audit records record mutations of control-plane state, written centrally by the trace and audit middleware on every endpoint. Both are durable and both carry their actor; they answer different questions and are queried separately. See The API server.