agents._session-launch.validate-create ​
Validate agent config and create AgentSession in PENDING status
Validate the agent config, check concurrency, create AgentSession (PENDING), open Lumen trace.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-agents |
| Version | 1.0 |
Triggers ​
| Source | Endpoint / Event | Description |
|---|---|---|
| INTERNAL | dag.step | Internal step — invoked by the agents.session-launch DAG |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_uuid | string | No | — | DAG-stamped parent run id (auto-injected by the engine) |
workflow_run_id | string | No | — | — |
agent_config_uuid | string | Yes | — | — |
organization_uuid | string | Yes | — | — |
actor_uuid | string | No | — | — |
act_as_identity_app_uuid | string | No | — | ADR-IDENTITY-010 session mode: run this Staff actor session as the actor's own end-user seat in this identity app |
ticket_git_work_uuid | string | No | — | — |
ticket_uuid | string | No | — | — |
repository_uuid | string | No | — | — |
branch_ref | string | No | — | — |
target_ref | string | No | — | — |
base_oid | string | No | — | — |
head_oid | string | No | — | — |
task | string | Yes | — | — |
context | dict | No | — | — |
caller_ref | string | No | — | — |
attachment_uuids | list | No | — | — |
include_platform_defaults | boolean | No | — | — |
refresh_stale_mcp | boolean | No | — | — |
max_tool_rounds | integer | No | — | — |
max_parallel_tool_calls | integer | No | — | — |
safe_retry_resume_nonce | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
agent_config_uuid | json | No | — | — |
actor_uuid | json | No | — | — |
act_as_identity_app_uuid | json | No | — | — |
ticket_git_work_uuid | json | No | — | — |
ticket_uuid | json | No | — | — |
repository_uuid | json | No | — | — |
branch_ref | json | No | — | — |
target_ref | json | No | — | — |
base_oid | json | No | — | — |
head_oid | json | No | — | — |
ai_connection_uuid | json | No | — | — |
attachment_uuids | json | No | — | — |
config_snapshot | json | No | — | — |
skill_package_snapshot | json | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
failed_at_state | string | No | — | — |
failed_layer | json | No | — | — |
failed_step | string | No | — | — |
failure_reason | string | No | — | — |
capacity_deferred | boolean | No | — | — |
capacity_deferred_at | string | No | — | — |
capacity_deferred_reason | string | No | — | — |
capacity_blocker_codes | list | No | — | — |
capacity_active_count | integer | No | — | — |
capacity_limit | integer | No | — | — |
capacity_retry_count | integer | No | — | — |
capacity_backoff_seconds | integer | No | — | — |
runner_group_uuid | json | No | — | — |
session_uuid | json | No | — | — |
workflow_run_uuid | json | No | — | — |
workflow_run_id | string | No | — | — |
organization_uuid | json | No | — | — |
task | json | No | — | — |
context | json | No | — | — |
caller_ref | json | No | — | — |
include_platform_defaults | boolean | No | — | — |
max_parallel_tool_calls | integer | No | — | — |
max_tool_rounds | integer | No | — | — |
refresh_stale_mcp | boolean | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | — |
run | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | — |
run | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "agents._session-launch.validate-create",
"initial_data": {
"agent_config_uuid": "value",
"organization_uuid": "value",
"task": "value"
}
}