Skip to content

Approving decisions

Agents record the choices they make with the zentri_propose_decision tool. A low-risk decision is accepted at once. A high-risk one waits until a lead reviews it, and until then its session’s branch fails the merge check. This guide shows a lead how to find those decisions, review them, and what each verdict does.

  • Role lead or above in the org. A viewer, requester, or engineer can read decisions but cannot review them.
  • zt logged in to the coordinator. To review from Slack, a Slack account linked to Zentri. See requests from Slack.
  • You did not propose the decision. The person whose session proposed it can never review it, whatever their role.

The agent states a risk, low or high. The coordinator raises a low to high when:

  • the title or the decision text names one of these areas: security, authentication, permissions, secrets, credentials, encryption, a schema migration, deleting data, payments, or a public API, or
  • the decision supersedes a high-risk decision.

The match is on whole words, case-insensitive. It is a floor for a careless agent, not a defence against a hostile one. zt decisions show says when and why the coordinator raised the risk:

Status: proposed. Risk: high, raised from low (names a schema migration)

When an agent proposes a high-risk decision, every lead in the org gets a notice, except the proposer. When the org has no leads, its admins get it. The notice appears in zt status:

Notices:
Nov 30 09:15 Decision 4c1d8e2a from @ana's agent needs a review (zt decisions show 01900000-0000-7000-8000-0000004c1d8e, then approve or reject): Add a tenant_id column to reports

A decision still proposed 24 hours later sends the leads one reminder, which starts with Reminder: .

To list every decision waiting for review in the project:

Terminal window
zt decisions --status proposed
ID STATUS RISK BY AGE TITLE
4c1d8e2a proposed high @ana 2h 5m Add a tenant_id column to reports
Terminal window
zt decisions show 4c1d

An ID argument is the full ID or its last 4 or more characters. The record has this shape:

Decision 4c1d8e2a: Add a tenant_id column to reports
Status: proposed. Risk: high, raised from low (names a schema migration)
Proposed by @ana from session 3f9a12bc on Nov 30 09:15.
Context:
...
Decision:
...
Consequences:
...
Alternatives:
...
Review it: zt decisions approve <full id>, or zt decisions reject <full id>

When the secret scan removed part of the text, the record says The secret scan redacted part of the decision.

Terminal window
zt decisions approve 4c1d --comment "Fine with a backfill in the same migration."
zt decisions reject 4c1d --comment "Keep tenants in a separate schema."

zt shows the decision on stderr and asks before it changes anything:

Approve decision 4c1d8e2a? [y/N]

Only y or yes goes ahead. Anything else prints Nothing changed. A successful review prints:

Decision 4c1d8e2a is accepted: Add a tenant_id column to reports

A rejection prints is rejected instead. --comment takes at most 1024 bytes. --yes skips the question. Without a terminal, or with --json, zt never asks, so you must pass --yes.

The proposing session and its owner get a notice with your verdict, for example @lea approved decision 4c1d8e2a (zt decisions show ...): Add a tenant_id column to reports. The agent reads it through its notices.

When Slack delivery is on and you have linked your Slack account, each review request also arrives as a Slack message:

A decision needs your review (proposed by @ana)
Add a tenant_id column to reports
[Approve] [Reject]

One click reviews the decision. There is no comment field and no second question. The message changes to Decision approved or Decision rejected. A click on a decision that someone already reviewed replies This decision was already reviewed.

The same rules apply as in the CLI: the coordinator checks your role and that you did not propose the decision.

The GitHub merge check checks each pull request, either as a job in your workflow or as the GitHub App’s check run named zentri/merge-check. For a pull request from a zentri/ branch, its decision rule looks at the session’s high-risk decisions:

Decision state Merge check
proposed, not yet reviewed Fails. The finding names the decision by ID.
accepted, after an approval Passes this rule.
rejected Fails until an accepted decision of the same session supersedes it.
rejected, then superseded by an accepted decision of the same session Passes this rule. The rejection stays on record.

A low-risk decision never holds back the check, because it is accepted when proposed.

The verdict on GitHub is a snapshot. After a review, push again or re-run the check to see the new result. A branch outside zentri/ names no session, so this rule does not apply to it.

To clear a rejection, the agent proposes a new decision that supersedes the rejected one. Because it supersedes a high-risk decision, the new one is high risk too and waits for a review. Once a lead approves it, the rejection no longer fails the check.

Symptom Cause and fix
zt decisions approve exits 2 with asks before it changes a decision; rerun with --yes There is no terminal, or you passed --json. Add --yes.
decision ... is accepted, not proposed; only a proposed decision takes a review Someone reviewed it already, or it was low risk. zt decisions show shows the review.
The coordinator refuses the review as forbidden Your role is below lead, or you own the session that proposed it. Ask another lead.
An agent’s proposal is refused with too_many_pending_decisions The session already has 10 high-risk decisions waiting. Review some of them first.
The merge check still fails after an approval The verdict on GitHub is from an earlier run. Push again or re-run the check. Another rule may also fail.
  • In an org with one person, nobody can approve a high-risk decision, because the proposer cannot review their own. The branch fails the merge check until a second lead or admin joins.
  • The Slack buttons take no comment. Use the CLI to say why.
  • Each decision takes one review. There is no way to change a verdict once it is recorded.
  • The Slack flow ran only against a fake Slack. See requests from Slack.
  • The risk floor is a word match. An agent can describe a risky change in words the floor does not catch, so read low-risk decisions too.