Crew task
role has intent
Use Stacksona before a crew member executes sensitive tools, delegates work, or produces output that changes a business system.
Governance object: task + role + tool intent.
role has intent
Gate request
role-aware decision
approved or blocked
continue or revise
task timeline
The useful integration point is the last safe moment before an external action, privileged read, or customer-visible response occurs.
Use these steps as the first implementation pass. Start with one high-risk action, verify the reviewer workflow, then expand coverage.
For Node.js or TypeScript guard services, start with the live SDK. For Python runtimes, call the same guard through your backend or a small HTTP wrapper.
npm i @stacksona/sdk
View SDK on npm
Keep the payload compact enough for a reviewer to decide quickly, but specific enough to explain exactly what the agent wants to do.
| Field | What to include |
|---|---|
| agent | Stable name for the agent, crew, graph, or workflow that is asking for approval. |
| action | Human-readable verb such as send_email, issue_refund, or execute_tool. |
| risk | Use low, medium, or high so reviewers can triage quickly. |
| subject | The customer, ticket, repository, account, or data source affected by the action. |
| context | Small, reviewable facts: proposed arguments, policy signals, retrieved sources, role, task id, and links. |
def governed_tool_call(agent_role, task, tool_name, tool_args):
decision = gate_request({
"agent": f"support-crew:{agent_role}",
"action": tool_name,
"risk": "high",
"subject": task.id,
"context": {
"crew": "support-refunds",
"role": agent_role,
"task": task.description,
"expected_output": task.expected_output,
"tool_args": tool_args,
},
})
if decision["status"] != "approved":
return {"blocked": True, "reason": "Stacksona review required"}
return run_tool(tool_name, **tool_args)
Treat this as the shape of the guard. Replace gate_request, stacksona.gate.request, or run_tool with the SDK/API calls used in your runtime.
Tool wrappers, Flow steps, and handoffs from researcher/planner roles to executor roles.
Role, task objective, proposed tool arguments, and business impact.
Do not rely on persona instructions alone for high-impact actions.