API reference
select_entity
Recheck current access to an explicitly selected stable identity.
Internal onlyExternal access unavailable. Examples are internal contracts or explicitly planned local simulations.
Input
Required realm_slug (1–80 characters) and entity_id (1–36). Use the ID returned by discovery; people do not have to type database identifiers. Unknown arguments are rejected.
{
"realm_slug": "ashvale",
"entity_id": "9b4e2c17-5d3a-4f80-a6c1-0e7d2b8f3a52"
}{
"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
}Output and access checks
Accessible selection returns status resolved, match exact and the selected candidate. A deleted or inaccessible ID returns no_accessible_match, match none and no candidates. A new namesake is never substituted.
Selection checks current access each time. Revision is informational. No result cache, write precondition or mutation approval is introduced by selection.
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.