ONE world:move-group
← Receivers

world:move-group

world family

mcp

Move a group under another parent, in D1 and the graph. Dry by default: the plan says who gains control, who loses it, which lists change and which agent keys would be revoked. You must own BOTH the old and the new parent (or be a root owner); a commit needs a person on the call, never an agent key. Undo: the same call with from and to swapped

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.
Authority action
delete_group
Also gated per node — the caller must be permitted this action over the workspace it names.
Cost
free
What one call costs, so you can budget before acting.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.
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/world:move-group \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "account": "tomas", "from": "one", "to": "vespio", "dry": true }}'

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.

  • account string required The group to move: an owners-row slug, e.g. "tomas". Not named `slug`: the ask door reads payload.slug as the caller's own nominated workspace on the service lane
  • from string required Its parent now, as you read it. A compare-and-set: refused parent_changed when D1 says otherwise. "" for a top-level group (root owners only)
  • to string required The new parent: an owners-row slug. Never resolved through world_groups
  • dry boolean optional true (the default) answers the plan and writes nothing. false makes the move and needs a person on the call

Response

What comes back from the call.

  • ok boolean
  • error string not_owner_of_from · not_owner_of_to · authority_undetermined · top_level_needs_root · act_as_refused · service_caller_refused · approval_required · account_not_found · to_not_found · platform_group · root_account · onto_itself · parent_changed · already_there · cycle · too_deep (with depthAfter, limit) · signin_link_pending · too_many_keys · graph_unavailable · store_unavailable
  • dry boolean
  • moveId string commit only: the group_moves row, the audit trail
  • graph written | pending | absent | parent_missing commit only: how far the graph got. D1 has moved either way; pending and parent_missing are finished by the reconcile tick
  • keysRevoked string[] commit only: world key ids revoked because a losing owner minted them for an agent in the moved subtree
  • depthAfter number
  • limit number
  • plan object

Traffic

Every call to world:move-group, 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 world:move-group, 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/act-as.ts:207
  • one.ie/web/src/lib/receiver-index.generated.ts:543
  • one.ie/web/src/lib/resolvers/group-move.ts:12
CLI 1
  • packages/cli/src/group.ts:84
Docs 1
  • one.ie/web/src/content/docs/authority.md:67
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "account": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
      "description": "The group to move: an owners-row slug, e.g. \"tomas\". Not named `slug`: the ask door reads payload.slug as the caller's own nominated workspace on the service lane"
    },
    "from": {
      "type": "string",
      "pattern": "^$|^[a-z0-9][a-z0-9-]{0,62}$",
      "description": "Its parent now, as you read it. A compare-and-set: refused parent_changed when D1 says otherwise. \"\" for a top-level group (root owners only)"
    },
    "to": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
      "description": "The new parent: an owners-row slug. Never resolved through world_groups"
    },
    "dry": {
      "default": true,
      "description": "true (the default) answers the plan and writes nothing. false makes the move and needs a person on the call",
      "type": "boolean"
    }
  },
  "required": [
    "account",
    "from",
    "to"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "description": "not_owner_of_from · not_owner_of_to · authority_undetermined · top_level_needs_root · act_as_refused · service_caller_refused · approval_required · account_not_found · to_not_found · platform_group · root_account · onto_itself · parent_changed · already_there · cycle · too_deep (with depthAfter, limit) · signin_link_pending · too_many_keys · graph_unavailable · store_unavailable",
      "type": "string"
    },
    "dry": {
      "type": "boolean"
    },
    "moveId": {
      "description": "commit only: the group_moves row, the audit trail",
      "type": "string"
    },
    "graph": {
      "description": "commit only: how far the graph got. D1 has moved either way; pending and parent_missing are finished by the reconcile tick",
      "type": "string",
      "enum": [
        "written",
        "pending",
        "absent",
        "parent_missing"
      ]
    },
    "keysRevoked": {
      "description": "commit only: world key ids revoked because a losing owner minted them for an agent in the moved subtree",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "depthAfter": {
      "type": "number"
    },
    "limit": {
      "type": "number"
    },
    "plan": {
      "type": "object",
      "properties": {
        "chainBefore": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "chainAfter": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "subtree": {
          "type": "object",
          "properties": {
            "count": {
              "type": "number"
            },
            "height": {
              "type": "number"
            },
            "slugs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "truncated": {
              "type": "boolean",
              "const": true
            }
          },
          "required": [
            "count",
            "height",
            "slugs"
          ]
        },
        "control": {
          "type": "object",
          "properties": {
            "gains": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "via": {
                    "type": "string"
                  }
                },
                "required": [
                  "slug",
                  "via"
                ]
              }
            },
            "loses": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "via": {
                    "type": "string"
                  }
                },
                "required": [
                  "slug",
                  "via"
                ]
              }
            },
            "keeps": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "gains",
            "loses",
            "keeps"
          ]
        },
        "listings": {
          "type": "object",
          "properties": {
            "leaves": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "joins": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "leaves",
            "joins"
          ]
        },
        "depth": {
          "type": "object",
          "properties": {
            "after": {
              "type": "number"
            },
            "limit": {
              "type": "number"
            }
          },
          "required": [
            "after",
            "limit"
          ]
        },
        "keysToRevoke": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "keyId": {
                "type": "string"
              },
              "label": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "actor": {
                "type": "string"
              },
              "mintedBy": {
                "type": "string"
              }
            },
            "required": [
              "keyId",
              "label",
              "actor",
              "mintedBy"
            ]
          }
        },
        "graph": {
          "type": "object",
          "properties": {
            "node": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "parentsNow": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "toNode": {
              "type": "boolean"
            },
            "strays": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "loadedAt": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            },
            "unreadable": {
              "type": "boolean",
              "const": true
            }
          },
          "required": [
            "node",
            "parentsNow",
            "toNode",
            "strays",
            "loadedAt"
          ]
        },
        "reversal": {
          "type": "object",
          "properties": {
            "of": {
              "type": "string"
            },
            "keysStayRevoked": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "of",
            "keysStayRevoked"
          ]
        }
      },
      "required": [
        "chainBefore",
        "chainAfter",
        "subtree",
        "control",
        "listings",
        "depth",
        "keysToRevoke",
        "graph"
      ]
    }
  },
  "required": [
    "ok"
  ]
}