← Receivers

deploy:event

deploy family

One deploy gate lands on the same run/event stream the canvas already reads — the ten-gate pipeline (tree·credentials·typecheck·tests·build·smoke·approval·migrations·ship·health) that until now touched the substrate NOWHERE, leaving a committed JSON file as a deploy's only trace. Carries the metrics that file has no shape for: whether the suite was REUSED or re-run, whether a gate passed under a waiver, and which services actually shipped. An unknown stage, status or verdict is REFUSED, never recorded as a default frame

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
required
The class of authority the caller must already hold, decided from the attested context with no round trip.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/deploy:event \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "run": <string>, "target": <string> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • run string required
  • target string required
  • stage tree | credentials | typecheck | … optional
  • status start | ok | fail optional
  • verdict green | red optional
  • sha string optional
  • door string optional
  • slug string optional
  • env string optional
  • reason string optional
  • wallMs number optional
  • detail object optional
  • workspace string optional

Response

What comes back from the call.

  • ok boolean
  • runId string
  • stage string
  • status string
  • verdict string
  • events number
  • slug string
  • error string

Traffic

Every call to deploy:event, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names deploy:event, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 1
  • one.ie/web/src/lib/deploy/event.ts:296

Answered by

deploy:event one.ie/web/src/lib/resolvers/deploy-event.ts:122 Dispatched through POST /api/ask/deploy:event, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "run": {
      "type": "string"
    },
    "target": {
      "type": "string"
    },
    "stage": {
      "type": "string",
      "enum": [
        "tree",
        "credentials",
        "typecheck",
        "tests",
        "build",
        "smoke",
        "approval",
        "migrations",
        "ship",
        "health"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "start",
        "ok",
        "fail"
      ]
    },
    "verdict": {
      "type": "string",
      "enum": [
        "green",
        "red"
      ]
    },
    "sha": {
      "type": "string"
    },
    "door": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "env": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "wallMs": {
      "type": "number"
    },
    "detail": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "workspace": {
      "type": "string"
    }
  },
  "required": [
    "run",
    "target"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "runId": {
      "type": "string"
    },
    "stage": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "verdict": {
      "type": "string"
    },
    "events": {
      "type": "number"
    },
    "slug": {
      "type": "string"
    },
    "error": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}