--- id: OCX-7 family: RT-OCX level: core profiles: [runtime] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/rt-ocx/ocx-7 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # OCX-7 — One execution identifier correlates the invocation with every poll *RT-OCX (Part II) · level: core · profiles: runtime · added in 1.0* This single identifier is what makes an asynchronous round trip work through a synchronous invocation signature. ## The rule > **Normative.** This is the rule. > > 1. An external invocation MUST answer immediately with exactly one of three statuses: `completed` for a finished run, `interrupted` for one paused awaiting an interrupt whose identifier the response carries, or `queued`. > > 2. In all three cases the `execution_id` it answers MUST be the persisted run's identifier, the same value a poll response reports as `pipeline_id`. > > 3. Where an engine answers a synthetic request identifier instead, the persisted identifier MUST be republished here, so the correlation identifier never varies by engine. ## What it means An external invocation only ever gets one of three answers up front — `completed`, `interrupted`, or `queued` — and in every one of them the `execution_id` the platform receives is the persisted run's own identifier, never whatever identifier the engine handling the invocation happens to return on its own. Some engines answer synthetically, with a request identifier of their own rather than the run's; the correlation only works if that gets replaced with the persisted identifier before the response leaves, because it is the same value a later poll reports back as `pipeline_id`. A platform that correlated on whatever `execution_id` an engine originally handed back could launch a run through one engine and never be able to match it against the run a poll later reports. Where no persisted run exists behind the identifier at all, there is nothing to swap it for, so the value passed through is whatever the caller already had. ## Example An engine that answers with a synthetic request identifier of its own carries the persisted one in its own metadata; the connector reads it out and republishes it in place of the synthetic one. ```json title="An engine's raw response" verdict="raw" { "execution_id": "pipeline_orch_triage_orch_6a6def528fe387.43126579", "status": "queued", "metadata": { "pipeline_id": 6918 } } ``` ```json title="The execution_id the caller is given" verdict="normalised" "6918" ``` An engine whose own `execution_id` already is the persisted identifier is left unchanged, and a response with no persisted run behind it at all keeps whatever id it already carried. ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25). ## Related rules - Names: OCX-4, OCX-8 - Referenced by: OCX-4 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.