Rensei docs

Resolve workflow-admitted revision-pinned headless launch selections.

Read-only project/workflow preflight for non-browser dispatch clients. Returns exact harness and Agent Card refs emitted by the canonical launch-options producer; callers submit one launchSelection verbatim and never author revisions. Exactly one candidate carries isResolvedDefault when the assignment cascade (workflow node -> project workType -> project default -> org workType -> org default -> system), walked at the same site the runtime uses including the authorizing agent.invoke node of this admitted workflow, names a viable winner among the listed harness candidates; resolvedDefault repeats it with the tier that chose it. A client given no explicit model profile submits that candidate. Candidate order is NOT authority: when resolvedDefault is null, resolvedDefaultReason says why and the client must refuse rather than pick.

GET
/api/cli/dispatch/launch-options

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Query Parameters

project*string
Length1 <= length
card?string
Length1 <= length
workType?string
harness?string

Response Body

Exact workflow admission and canonical launchSelection candidates.

application/json
  1. response
requestedProject*string
resolvedProjectId*string
resolvedProjectSlug*string
card*
workType*string

The work type the run is dispatched with: the card's own on the Agent Dispatch workflow; the deprecated request word (research, implement or review) when a project without Agent Dispatch runs a system card on its per-work-type workflow.

listedHarnesses*array<>

The harnesses candidates were listed for: the explicit harness query when one was sent, else every admitted harness (pi, then codex, then muse, then claude). A client that sent no harness and sees only ["pi"] is talking to a Pi-only Platform.

workflowAdmission*
issueRequired*boolean
resolvedDefault*|

The profile the assignment cascade would choose for this project and work type, pinned to the admitted candidate that carries isResolvedDefault. Null when the cascade resolved nothing or resolved a profile that is not an admitted candidate for a listed harness — read resolvedDefaultReason and refuse rather than picking another candidate.

resolvedDefaultReason*|

Why no resolved default is marked. Null exactly when resolvedDefault is non-null.

candidates*array<>
Example Request
curl -X GET 'https://app.rensei.ai/api/cli/dispatch/launch-options?project=string'
Example Response
{  "requestedProject": "string",  "resolvedProjectId": "string",  "resolvedProjectSlug": "string",  "card": {    "ref": "string",    "name": "string",    "workType": "string"  },  "workType": "string",  "listedHarnesses": [    "pi"  ],  "workflowAdmission": {    "contractVersion": "rensei.workflow-admission/v1",    "admissionId": "string",    "lane": "agent_invoke",    "workflowId": "string",    "projectId": "string",    "workflowRevision": "string",    "definitionVersion": "string",    "triggerId": "string",    "authorizingNodeId": "string",    "triggerBinding": "explicit",    "launchSelectionBinding": "trigger.data.launchSelection"  },  "issueRequired": true,  "resolvedDefault": {    "modelProfileId": "string",    "revision": "string",    "source": "workflow-node-inline",    "assignmentWorkType": "string"  },  "resolvedDefaultReason": "string",  "candidates": [    {      "launchSelection": {        "executionSelection": {          "harness": {            "ref": {              "id": "string",              "revision": "string"            },            "source": "override"          },          "agentCard": {            "ref": {              "id": "string",              "revision": "string"            },            "source": "override"          },          "modelProfile": {            "ref": {              "id": "string",              "revision": "string"            },            "source": "override"          }        }      },      "harness": {        "ref": {          "id": "string",          "revision": "string"        },        "label": "string",        "status": "available",        "description": "string",        "meta": {          "property1": null,          "property2": null        }      },      "agentCard": {        "ref": {          "id": "string",          "revision": "string"        },        "label": "string",        "status": "available",        "description": "string",        "meta": {          "property1": null,          "property2": null        }      },      "agentCardRef": "string",      "modelProfileRef": {        "id": "string",        "revision": "string"      },      "isResolvedDefault": true    }  ]}