Skip to content

Retention authority

Retention decides how long records live and when they may be removed. Legal hold overrides it. Both are control-plane authorities rather than node settings, so what is kept is a property of the deployment's recorded governance rather than of any one node's disk.

Three operations

Operation Answers
Query retention What the retention posture is for a scope
Mutate legal hold Create or release a hold
Execute purge Run a purge under the current posture

Each is authorised before it runs, and each is audited. Purging is a governed act with an actor attached, rather than a maintenance job that happens quietly.

flowchart LR
  subgraph REC["RECORDS UNDER RETENTION"]
    direction TB
    subgraph HELD["UNDER A LEGAL HOLD"]
      direction TB
      H[("Held records")]
    end
    U[("Records past their window")]
  end
  PU{{"Execute purge<br/>authorised, audited"}}
  HO["Mutate legal hold<br/>create or release"]
  AU[("Audit<br/>two dated acts per hold")]
  PU -->|"removes"| U
  HO -->|"draws or removes the box"| HELD
  HO --> AU
  PU --> AU

A hold is a box drawn around records, and purge reaches only what is outside it. Releasing the hold removes the box and returns those records to their retention window.

A hold is created and later released; it is not edited into a different shape. That keeps the history of a hold readable as two dated acts, which is what an investigation or an audit asks for.

An unrecognised mutation is refused by name rather than ignored:

unsupported legal hold mutation operation: <operation>

Purge runs under the posture, not against it

A purge executes what retention already allows. A record inside its retention window, or under a legal hold, is not removed by running one.

The same refusal shape applies to the purge surface:

unsupported retention purge operation: <operation>

What retention governs

Retention applies to the metadata the control plane holds: run history, events, audit records, evidence lineage and object references.

The bodies those references point at live in your bucket, so their lifecycle is also yours to operate. Retention removing a reference does not reach into your storage, and an object lifecycle rule in your bucket does not remove the control plane's record of it. Aligning the two is a deployment decision. See The tenant byte rule.

Why this sits in governance

Retention, legal hold and purge answer the same question as the admission gates and the policy authority: what is allowed, decided centrally, recorded, and provable afterwards. Putting them in one domain means the record of a purge is the same kind of record as the decision that permitted it.

See Governance events for the attribution those records carry.