← Receivers

agent:handover-offer

agent family

The agent's current owner offers it to another person — a signed 'ONE agent handover' statement by the owner's proven address

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
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/agent:handover-offer \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "agent": "scout", "to": "dana", "chain": "sui", "nonce": "<nonce>", "expiresAt": 1790000000000, "signature": { "publicKey": "<hex>", "signature": "<hex>" } }}'

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.

  • agent string required The agent's actor id (actor_owners.agent_id)
  • to string optional The person's slug the agent is offered to — never an agent. Omitted (or 'invite') by an agent that owns itself: the offer mints the handover link and answers to: invite:<id>
  • chain sui | evm | solana | btc optional Which proven address signs; default sui
  • nonce any optional 16–128 of [A-Za-z0-9_-]; single use. Required person-to-person; minted when an agent sends the link
  • expiresAt any optional unix ms, at most 15 minutes out. Required person-to-person
  • signature any optional { publicKey, signature } (hex) by the owner's proven address over the handover statement. Required person-to-person
  • vault string optional The handover link (agent that owns itself): the vault object id (0x…) the redeemer will own
  • workspace string optional The handover link: the workspace whose owner seat the link carries; default the agent's own. The agent must already hold that seat

Response

What comes back from the call.

  • ok boolean
  • offered boolean
  • agent string
  • from string
  • to string
  • nonce string
  • expiresAt number
  • vault string
  • link string The handover link's short path (/i/<code>) — never the token behind it
  • closed mark | warn | dissolve
  • error string agent_and_to_required | unsupported_chain | unclaimed | agent_owns_itself | not_owner | human_presence_required | handover_to_self | handover_to_agent | target_is_agent | offer_invalid | offer_expired | offer_expiry_too_far | owner_address_unproven | offer_signature_invalid | offer_replayed | vault_required | vault_not_held | vault_unreadable | offer_open | no_invite_secret | cannot_invite_higher_role

Traffic

Every call to agent:handover-offer, 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 agent:handover-offer, 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 3
  • one.ie/web/src/lib/invite-token.ts:28
  • one.ie/web/src/lib/receiver-index.generated.ts:23
  • one.ie/web/src/lib/training/scenarios.ts:194
→

Answered by

agent:handover-offer one.ie/web/src/lib/resolvers/agent-handover.ts:1269 Dispatched through POST /api/ask/agent:handover-offer, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "agent": {
      "type": "string",
      "description": "The agent's actor id (actor_owners.agent_id)"
    },
    "to": {
      "description": "The person's slug the agent is offered to — never an agent. Omitted (or 'invite') by an agent that owns itself: the offer mints the handover link and answers to: invite:<id>",
      "type": "string"
    },
    "chain": {
      "description": "Which proven address signs; default sui",
      "type": "string",
      "enum": [
        "sui",
        "evm",
        "solana",
        "btc"
      ]
    },
    "nonce": {
      "description": "16–128 of [A-Za-z0-9_-]; single use. Required person-to-person; minted when an agent sends the link"
    },
    "expiresAt": {
      "description": "unix ms, at most 15 minutes out. Required person-to-person"
    },
    "signature": {
      "description": "{ publicKey, signature } (hex) by the owner's proven address over the handover statement. Required person-to-person"
    },
    "vault": {
      "description": "The handover link (agent that owns itself): the vault object id (0x…) the redeemer will own",
      "type": "string"
    },
    "workspace": {
      "description": "The handover link: the workspace whose owner seat the link carries; default the agent's own. The agent must already hold that seat",
      "type": "string"
    }
  },
  "required": [
    "agent"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "offered": {
      "type": "boolean"
    },
    "agent": {
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "nonce": {
      "type": "string"
    },
    "expiresAt": {
      "type": "number"
    },
    "vault": {
      "type": "string"
    },
    "link": {
      "description": "The handover link's short path (/i/<code>) — never the token behind it",
      "type": "string"
    },
    "closed": {
      "type": "string",
      "enum": [
        "mark",
        "warn",
        "dissolve"
      ]
    },
    "error": {
      "description": "agent_and_to_required | unsupported_chain | unclaimed | agent_owns_itself | not_owner | human_presence_required | handover_to_self | handover_to_agent | target_is_agent | offer_invalid | offer_expired | offer_expiry_too_far | owner_address_unproven | offer_signature_invalid | offer_replayed | vault_required | vault_not_held | vault_unreadable | offer_open | no_invite_secret | cannot_invite_higher_role",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}