Review Queue
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
| Role | What they can do in the queue |
|---|---|
lifecycle_manager | Approve or reject any staged workflow in their space |
space_admin | Same as lifecycle_manager, plus manage the approval matrix |
admin | Global — can approve or reject any workflow in any space |
agent_developer | Read-only — can see their own submissions and their status |
How a Workflow Enters the Queue
- A developer finishes editing and clicks Submit for Review in the Agent Builder.
- The workflow status changes to
staged. The graph is locked. - The workflow appears in the Review Queue for all lifecycle managers in that space.
- 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_managerorspace_adminof 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:
| Field | Description |
|---|---|
| Workflow name | Human-readable name |
| Space | Which space it belongs to |
| Submitted by | The developer who staged it |
| Staged at | Timestamp |
| Notes | Optional notes from the developer |
| Version | Current 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.
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.
POST /api/v1/agent-workflows/{id}/reject
{
"notes": "The guardrails node is missing for the PII output step. Please add before resubmitting."
}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
/approveall returnHTTP 409naming 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):
- Add stages and order them with ↑/↓.
- 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.
- Optionally add an Auto-approve when condition per stage, or Skip all stages when for the whole matrix.
- 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:
| Name | Value |
|---|---|
workflow.name, workflow.version, workflow.space_id, workflow.user_id | the workflow being submitted |
space.slug, space.name, space.type | its space |
catalog.slug, catalog.name, catalog.catalog_type | the space's catalog (standard, sandbox, …) |
user.role, user.space_role | the submitter's global role and role in the space |
Examples: catalog.catalog_type == 'sandbox', space.slug == 'experiments'.
API
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
}| Field | Description |
|---|---|
name | Stage name (unique within the matrix) |
required_approvers | User IDs who may approve this stage |
required_count | Distinct approvals needed to pass the stage (1–20) |
fallback_role | agent_developer, lifecycle_manager, space_admin, or "" for none. A stage needs named approvers or a fallback role. |
auto_approve_condition | Expression (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.
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 lifecycleEvery 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:
GET /api/v1/agent-workflows/{id}/lifecycleEach event includes the actor, their role, the from/to status, a timestamp, and any notes. Use this for compliance, auditing, and debugging lifecycle issues.
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:
{
"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
| Action | Required role |
|---|---|
| Submit for review (stage) | agent_developer, lifecycle_manager, space_admin |
| Approve / reject | lifecycle_manager, space_admin, admin |
| Configure approval matrix | lifecycle_manager, space_admin, admin |
| Decide on an approval stage | Named approver or fallback role for that stage |
| View lifecycle history | Any member of the workflow's space |
See Workflow Lifecycle for the full status diagram.