opschain approvals list
packs:change-governance
opschain approvals list [flags]
Lists the open approval checklists on targets you may read
(ChangeGovernanceService.ListPendingApprovals), oldest first — the
approvals inbox. The table is
RUN KIND TARGET ACTION STATUS REQUESTED BY WAITING ON WHY WAITING ON YOU;
REQUESTED BY and WAITING ON print principals by display name — the
account's current username, <username> (removed) for a disabled
(departed) account, the id itself for an id no account answers — and
WAITING ON lists, once each, the identities the unsatisfied lines still
wait on (- when none is known); WHY is the first line of the requester's stated rationale (cut to the
column; - when none was stated or the context is not served to you),
and WAITING ON YOU marks checklists with an unsatisfied line you may
approve. opschain approvals show <run-id> prints the whole approval
context — rationale, agent and tier, recommendation, chain.
A change record awaiting approval under a policy (opschain docs change-governance, "Change records") is a row of kind change_record:
RUN is the approval request's id (the id approvals approve|reject
take), TARGET the record's owner and scope, and ACTION its code and
title. The row is listed when you may read the record (read on its
owner's change_records rule path).
A manual step held by the approval policy it names (opschain docs change-governance, "Holding a manual step") is a row of kind
manual_step: RUN is the approval request's id, TARGET the run's
target, and ACTION the step's path and title. The row is listed when you
may read the run's target; the step shows the same request id in
opschain runs show.
-o json / -o yaml emit the typed checklists (lines, approval rows,
clocks, fingerprints, context) under checklists, each principal id
beside its display name (requestedById / requestedByDisplay,
approvers.users / approvers.usersDisplay, waitingOn /
waitingOnIds).
The inbox is the open set only. Past decisions — what you approved,
rejected or break-glassed, and for the governance administrator everyone's
— are opschain approvals history (opschain docs cli/approvals-history).
Flags
| Flag | Meaning |
|---|---|
--filter <column>[!]=<value> | Keep only rows matching the term (repeatable; terms AND). Columns are the printed table headers lowercased (spaces fold to _); * wildcards match the whole cell case-insensitively, != negates, commas mean any-of. Grammar: opschain docs cli. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Listed (an empty selection prints no open approval checklists). |
| 1 | The read failed — the error names the server's Connect code and message. |
| 2 | Usage error, including a missing server target. |