Skip to main content

Review Queue

The admin-side queue for approving or rejecting workflows before they go live.

The Review Queue is where lifecycle managers and space admins process staged workflows. Every workflow that a developer submits for review appears here, along with its full graph, history, and any notes from the submitter. Reviewers approve or reject — they cannot edit the graph during review.


Who Uses the Review Queue​

RoleWhat they can do in the queue
lifecycle_managerApprove or reject any staged workflow in their space
space_adminSame as lifecycle_manager, plus manage the approval matrix
adminGlobal — can approve or reject any workflow in any space
agent_developerRead-only — can see their own submissions and their status

How a Workflow Enters the Queue​

  1. A developer finishes editing and clicks Submit for Review in the Agent Builder.
  2. The workflow status changes to staged. The graph is locked.
  3. The workflow appears in the Review Queue for all lifecycle managers in that space.
  4. The developer can no longer edit the workflow until it is approved, rejected, or they click Revise (after rejection).

Review Queue Interface​

Navigate to Admin > Workflows or Dashboard > Review Queue (visibility depends on your role). The queue has two tabs, each with a count:

  • Agent workflows: staged workflows in the active agent space (pick it with the space selector).
  • APIs: API Builder APIs submitted for review, from every API space you belong to (admins see every submission, in any space or none). Approve and Send back appear only where you are a lifecycle_manager or space_admin of the API's space, or an admin. Approving an API publishes it, or deploys it to its first stage when it has environments.

Each entry shows:

FieldDescription
Workflow nameHuman-readable name
SpaceWhich space it belongs to
Submitted byThe developer who staged it
Staged atTimestamp
NotesOptional notes from the developer
VersionCurrent version string

Click a workflow to open the full review view. From here you can:

  • Browse the full graph (read-only canvas)
  • Read the lifecycle history (who did what and when)
  • See any active approval stages (if an approval matrix is configured)
  • Submit your decision

Making a Decision​

Approve​

Moves the workflow directly to Published status. A version snapshot is created automatically at this moment. The workflow is now live and can be invoked via the API.

http
POST /api/v1/agent-workflows/{id}/approve
{
  "notes": "Looks good — approved for production"
}

Reject​

Returns the workflow to Rejected status. The developer is notified and can click Revise to unlock the graph for editing. A rejection requires notes explaining the reason.

http
POST /api/v1/agent-workflows/{id}/reject
{
  "notes": "The guardrails node is missing for the PII output step. Please add before resubmitting."
}
Notes are mandatory for rejection

The API enforces a non-empty notes field on rejection. This ensures the developer receives actionable feedback rather than a silent failure.


Approval Matrix (Multi-stage Approval)​

For workflows that need sign-off from several people before they go live, a lifecycle manager can add an Approval Matrix. While an enabled matrix exists:

  • Submitting for review starts an approval round — one stage record per configured stage, in order.
  • Nothing can publish the workflow until every stage is approved. Approve & Publish, an admin publishing straight from draft, and the API's /approve all return HTTP 409 naming the stages still open.
  • Approving the last open stage publishes the workflow automatically (version snapshot and dependent-skill publishing included, exactly as with Approve & Publish).
  • Rejecting any stage rejects the workflow, with the stage name and your notes as the review notes.

Setting it up in the editor​

Open the workflow in the Agent Builder and click Approvals in the header. Lifecycle managers, space admins and admins see Set up (or Edit):

  1. Add stages and order them with ↑/↓.
  2. For each stage pick Named approvers (members of the workflow's space), Or anyone with role (a fallback space role, or none), and Approvals needed.
  3. Optionally add an Auto-approve when condition per stage, or Skip all stages when for the whole matrix.
  4. Save. Editing the matrix while the workflow is in review restarts the round; unticking Require these approvals before publishing (or Remove matrix) returns the workflow to the single Approve & Publish step.

Who can decide a stage​

  • the stage's named approvers,
  • anyone holding the stage's fallback role in the space,
  • space admins and admins (always).

The person who submitted the workflow can't approve their own submission (admins and space admins excepted). A stage passes once it has Approvals needed distinct approvals — the same person can't count twice.

Stages are decided in order: stage 2 can't be decided until stage 1 is approved.

Deciding​

When a workflow is in review, the editor header shows Your approval needed (amber) if the current stage is yours, or In approval (n/total) otherwise. Open it to see each stage's status, who approved, and their comments, then Approve stage (optional comment) or Reject (comment required). The Approvals header button also shows the n/total progress.

Auto-approve conditions​

Conditions are simple expressions checked when the workflow is submitted. A true stage condition marks that stage Auto-approved; a true matrix-level condition auto-approves every stage. If every stage ends up approved, submitting publishes the workflow immediately. A condition that errors at runtime counts as false — the stage waits for a person rather than being skipped. Conditions are syntax-checked when you save.

Available names:

NameValue
workflow.name, workflow.version, workflow.space_id, workflow.user_idthe workflow being submitted
space.slug, space.name, space.typeits space
catalog.slug, catalog.name, catalog.catalog_typethe space's catalog (standard, sandbox, …)
user.role, user.space_rolethe submitter's global role and role in the space

Examples: catalog.catalog_type == 'sandbox', space.slug == 'experiments'.

API​

http
PUT /api/v1/agent-workflows/{id}/approval-matrix
{
  "stages": [
    {"name": "Legal Review", "required_approvers": ["<user-id>"], "required_count": 1, "fallback_role": ""},
    {"name": "Exec Sign-off", "required_approvers": [], "required_count": 1, "fallback_role": "lifecycle_manager",
     "auto_approve_condition": "catalog.catalog_type == 'sandbox'"}
  ],
  "auto_approve_condition": null,
  "enabled": true
}
FieldDescription
nameStage name (unique within the matrix)
required_approversUser IDs who may approve this stage
required_countDistinct approvals needed to pass the stage (1–20)
fallback_roleagent_developer, lifecycle_manager, space_admin, or "" for none. A stage needs named approvers or a fallback role.
auto_approve_conditionExpression (see above); null for none

Saving returns 422 for an invalid condition, duplicate stage names, an unknown approver ID, or a stage nobody could approve.

http
GET  /api/v1/agent-workflows/{id}/approval-stages          # matrix, current round, can_decide per stage
POST /api/v1/agent-workflows/{id}/approval-stages/{stage_record_id}/decide
     {"decision": "approve" | "reject", "notes": "…"}      # notes required to reject
DELETE /api/v1/agent-workflows/{id}/approval-matrix        # back to the single-step lifecycle

Every round start and decision is written to the workflow's audit log.


Lifecycle Audit Log​

Every status transition is recorded in an immutable event log:

http
GET /api/v1/agent-workflows/{id}/lifecycle

Each event includes the actor, their role, the from/to status, a timestamp, and any notes. Use this for compliance, auditing, and debugging lifecycle issues.

Looking for a general "who changed what" trail?

This log only covers stage/approve/reject/revise status transitions. For a full create/update/delete/publish/permission-change trail across the whole workflow (and skills), see Traceability & Audit Log.

Example event:

json
{
  "id": "evt-abc123",
  "workflow_id": "wf-xyz",
  "from_status": "staged",
  "to_status": "published",
  "actor_id": "user-lm-01",
  "actor_role": "lifecycle_manager",
  "notes": "Approved after legal review.",
  "created_at": 1750842000
}

Role Reference​

ActionRequired role
Submit for review (stage)agent_developer, lifecycle_manager, space_admin
Approve / rejectlifecycle_manager, space_admin, admin
Configure approval matrixlifecycle_manager, space_admin, admin
Decide on an approval stageNamed approver or fallback role for that stage
View lifecycle historyAny member of the workflow's space

See Workflow Lifecycle for the full status diagram.

Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.