← Receivers

shop:readiness

shop family

Is this store ready to sell? Answers six lines read from the store's own rows — S1 twelve role pages with no bracket and no link to #, S2 live products whose buy links all resolve, S3 a chat pack on twelve role pages, S4 an active lifecycle, S5 a live starter workflow, CARD the store page charges a real card — each pass or fail with its evidence. A fact that could not be read is a failing line that says 'unknown', never a zero. Owner-only.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
owner
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
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/shop:readiness \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": "tea-test" }}'

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.

  • workspace string optional Which store to check. NOT an authority claim — the attested caller must control it (callerControlsWorkspace). Absent = the caller's own.
  • slug string optional Alias of `workspace`, for callers that speak the storefront receivers' field name.

Response

What comes back from the call.

  • ok boolean TRUE when the list was answered — not that the store is ready; that is `green`.
  • error string A refusal: `forbidden` (no attested caller, or one who does not control the store) · `no_db`.
  • workspace string
  • lines object[] Always six, always in the order S1 S2 S3 S4 S5 CARD.
  • green boolean Every line passes.
  • passed number
  • total number

Traffic

Every call to shop:readiness, 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 shop:readiness, 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 2
  • one.ie/web/src/lib/receiver-index.generated.ts:314
  • one.ie/web/src/lib/resolvers/storefront/shop-readiness.ts:40
→

Answered by

shop:readiness one.ie/web/src/lib/resolvers/commerce.ts:900 Dispatched through POST /api/ask/shop:readiness, after the envelope validates the payload.

shop family · 1 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Which store to check. NOT an authority claim — the attested caller must control it (callerControlsWorkspace). Absent = the caller's own.",
      "type": "string"
    },
    "slug": {
      "description": "Alias of `workspace`, for callers that speak the storefront receivers' field name.",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "TRUE when the list was answered — not that the store is ready; that is `green`."
    },
    "error": {
      "description": "A refusal: `forbidden` (no attested caller, or one who does not control the store) · `no_db`.",
      "type": "string"
    },
    "workspace": {
      "type": "string"
    },
    "lines": {
      "description": "Always six, always in the order S1 S2 S3 S4 S5 CARD.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "S1",
              "S2",
              "S3",
              "S4",
              "S5",
              "CARD"
            ]
          },
          "pass": {
            "type": "boolean"
          },
          "evidence": {
            "type": "string",
            "description": "The measured numbers behind the verdict, or `unknown: … was not read`."
          },
          "closed": {
            "type": "string",
            "enum": [
              "mark",
              "warn"
            ],
            "description": "How this line closed its loop: mark on a pass, warn on a fail."
          }
        },
        "required": [
          "code",
          "pass",
          "evidence",
          "closed"
        ]
      }
    },
    "green": {
      "description": "Every line passes.",
      "type": "boolean"
    },
    "passed": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "ok"
  ]
}