oz0 retention set
Keep a tenant's audit entries, job summaries, usage rows and stored payloads this many days (at least 31; 0 keeps everything).
For: Operators and developers looking up a command.
Keep a tenant's audit entries, job summaries, usage rows and stored payloads this many days (at least 31; 0 keeps everything). High-risk agents' entries stay at least 184 days, and stored payloads at least 90, which a job that runs that long replays from. The tenant's Temporal histories follow it too, within the backend's limits: the edge sets the namespace's retention on the embedded and an external Temporal, and says what to set on Temporal Cloud (at most 90 days).
0 keeps them as long as the backend allows.
Usage
oz0 retention set DAYS [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--decision-ref | string | the decision or case the change follows, such as a case number (at most 200 characters) | |
--json | bool | print JSON instead of a table | |
--reason | string | why, required for every governance change (at most 500 characters; default $OZ0_REASON); the audit log keeps it |
Inherited flags
| Flag | Type | Default | Description |
|---|---|---|---|
--context | string | $OZ0_CONTEXT or <config dir>/orchestrator-zero/context.json | CLI context file written by server init |
--log-level | string | info | log level: debug, info, warn or error |
--tenant | string | default | the tenant |
See all oz0 commands and the global flags.