← Receivers

pages:propose

pages family

Fill an active experiment's variant pool with up to five LLM-written plain-text candidates. Runs OFFLINE — the render path never calls a model.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
member
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
variable
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
no
Not safe to blind-retry — dedupe on the envelope idempotencyKey.

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/pages:propose \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "slug": <string>, "page": <string>, "prop_path": <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.

  • slug string required The workspace slug.
  • page string required The page's own slug.
  • prop_path string required The experiment's prop path — SNAKE_CASE, matching the `page_experiments` column, not a camelCase spelling.
  • count number optional How many candidates to ask for. CLAMPED to 5; the handler defaults to 3 when absent or non-numeric. The pool itself is capped at 5 total, so fewer may be added than requested.

Response

What comes back from the call.

  • ok boolean
  • page_slug string
  • prop_path string
  • added number Candidates actually added to the pool, after the 5-total cap. `0` is impossible — an empty model answer is refused `no_candidates`.
  • error string `no_active_experiment` · `llm_failed` · `no_candidates` — each a refusal with nothing written.

Traffic

Every call to pages:propose, 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 pages:propose, 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:224
  • one.ie/web/src/pages/api/pages/[slug]/experiments.ts:140
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "The workspace slug."
    },
    "page": {
      "type": "string",
      "description": "The page's own slug."
    },
    "prop_path": {
      "type": "string",
      "description": "The experiment's prop path — SNAKE_CASE, matching the `page_experiments` column, not a camelCase spelling."
    },
    "count": {
      "description": "How many candidates to ask for. CLAMPED to 5; the handler defaults to 3 when absent or non-numeric. The pool itself is capped at 5 total, so fewer may be added than requested.",
      "type": "number"
    }
  },
  "required": [
    "slug",
    "page",
    "prop_path"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "page_slug": {
      "type": "string"
    },
    "prop_path": {
      "type": "string"
    },
    "added": {
      "description": "Candidates actually added to the pool, after the 5-total cap. `0` is impossible — an empty model answer is refused `no_candidates`.",
      "type": "number"
    },
    "error": {
      "description": "`no_active_experiment` · `llm_failed` · `no_candidates` — each a refusal with nothing written.",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}