Skip to content

A session with no workflow is a conflict, not a server error

The rule

Normative: this is the rule
  1. A request against a session that has no associated workflow MUST be refused with 409 and the code SESSION_WITHOUT_WORKFLOW on every endpoint that serves that session.
  2. It is a problem with the session's state, the same refusal family as a turn refused because one is already running.
  3. The response MUST carry a generic message.
  4. The detail that identifies the session goes to the log, and MUST NOT appear in the response body.

What it means

A session that has lost its workflow reference has not been sent anything wrong — there is nothing to correct in the request. The problem is the session's own state, so the refusal is the same family as a turn refused because another one is already running: a 409, not a 400 and not a 500. This holds on every endpoint that serves that session.

The response carries a fixed, generic message. The detail that would identify which session failed goes to the log and never into the body a caller sees — so a refusal that would otherwise leak a session's existence to someone who should not learn it stays silent about which one.

Example

A turn sent to a session whose workflow reference has been cleared is refused before anything about the turn itself is read.

A turn against a session with no workflow409 — SESSION_WITHOUT_WORKFLOW
POST /api/flowdrop/session/{session_id}/turn

{"content": "hi"}

Whatever endpoint reaches that same session gives the same verdict and the same generic body.

Why

Recorded under OPEN-25, OPEN-49.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · API-3 · changed in spec 1.1