Skip to documentation
DMRealm / DevelopersHelp CenterOpen DMRealm ↗

Getting started

From a natural name to a stable ID

Learn the discovery-to-selection loop using synthetic accessible candidates.

Internal only

External access unavailable. Examples are internal contracts or explicitly planned local simulations.

Names versus IDs

People supply names and context; the application carries the returned stable ID. Names are not unique. Names and slugs support discovery, while alias support is deferred.

Discovery to selection

An exact singleton resolves. Exact collisions and substring suggestions require explicit candidate selection, even if a suggestion list has one item. Never preselect the first result. No accessible match does not establish global absence and cannot turn an update into creation.

Current internal contract · Local simulation — no service is called
Resolver scenario

query: “Captain Mira” · status: ambiguous · match: exact

Explicit candidate selection

No candidate selected. A suggestion is never automatic authority.

Inspect synthetic resolution
Resolution fixtureInternal only · synthetic fixture
{
  "status": "ambiguous",
  "match": "exact",
  "candidates": [
    {
      "entity_id": "6de8a31b-a5d0-4aa2-a728-f4e53b30a045",
      "realm_id": "419a0878-ece8-4eea-9bc1-dd015843a3cf",
      "name": "Captain Mira",
      "entity_type": "npc",
      "slug": "captain-mira-north",
      "summary": "Northern captain; Backstory has additional player readers.",
      "revision": 7,
      "canonical_api_path": "/v1/realms/ashvale/entities/6de8a31b-a5d0-4aa2-a728-f4e53b30a045"
    },
    {
      "entity_id": "9b4e2c17-5d3a-4f80-a6c1-0e7d2b8f3a52",
      "realm_id": "419a0878-ece8-4eea-9bc1-dd015843a3cf",
      "name": "Captain Mira",
      "entity_type": "npc",
      "slug": "captain-mira",
      "summary": "Harbor captain; Backstory has only author and inherent owner/admin readers.",
      "revision": 7,
      "canonical_api_path": "/v1/realms/ashvale/entities/9b4e2c17-5d3a-4f80-a6c1-0e7d2b8f3a52"
    }
  ],
  "next_offset": null
}

The internal discovery contract

Trusted internal code supplies the authenticated actor separately. Input arguments cannot claim a user, role, grant or approval. These examples describe Python service inputs, not public HTTP requests or registered MCP tools.

resolve_entity inputInternal only · synthetic fixture
{
  "realm_slug": "ashvale",
  "query": "Captain Mira",
  "entity_type": "npc",
  "limit": 20,
  "offset": 0
}

resolve_entity responseInternal only · synthetic fixture
{
  "status": "resolved",
  "match": "exact",
  "candidates": [
    {
      "entity_id": "9b4e2c17-5d3a-4f80-a6c1-0e7d2b8f3a52",
      "realm_id": "419a0878-ece8-4eea-9bc1-dd015843a3cf",
      "name": "Captain Mira",
      "entity_type": "npc",
      "slug": "captain-mira",
      "summary": "Harbor captain; Backstory has only author and inherent owner/admin readers.",
      "revision": 7,
      "canonical_api_path": "/v1/realms/ashvale/entities/9b4e2c17-5d3a-4f80-a6c1-0e7d2b8f3a52"
    }
  ],
  "next_offset": null
}

Contract evidence and limitations

Inspected 2026-10-27: dmrealm-services/packages/common/dmrealm_common/agent_entities.py. Model: models/realms.py:RealmEntity. Synthetic fixtures; no real records.

Source SHA-256: f69d56787ed00673716e8de38020c1de687419cd97dc2d69dff08eac6e891df5

Accepted decisions: agent-entity-integration.md, Q1–Q11. Planned occurrence selectors and batches are conceptual. Local simulation tests cannot establish backend security or transaction guarantees.