Skip to documentation
DMRealm / DevelopersHelp CenterOpen DMRealm ↗

Guides and examples

Bulk forward references

A bounded creation-only batch in one Realm, with local keys resolved after full validation.

Planned

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

Why request-local keys exist

The client supplies request-local keys for new records declared later in the same submission. They are neither names nor persisted IDs. Different keys may name distinct same-name records. Missing keys are invalid dependencies, never instructions to create placeholders.

Batch outline

Conceptual table — not an executable API payload. Both records are new private drafts. Updating existing Mira belongs to the separate create-and-bind guide.

OrderOperationLocal keyExplicit reference
1Create private NPC Captain MiramiraBackstory occurrence → silver-hand
2Create private faction The Silver Handsilver-handNone

Validation, approval and atomic application

Validate all keys, qualified type-required content, current permissions and sharing effects. Show accessible namesakes within one review. Choosing existing rewrites the proposal to bind the chosen target; it requires fresh validation and approval.

After one exact approval, allocate ordinary stable IDs and commit the records, selected bindings and durable retry receipt together or none. No partial NPC is created if the faction fails. Exact size/payload/time limits are not qualified. Cross-Realm batches and arbitrary mixed update/delete changes remain deferred. Mutual text mentions do not permit prohibited structural cycles.

Planned · Local simulation — no data is saved

Product: planned authoring · Connection: synthetic access enabled · State: unselected

1. Select creation-only batch
2. Select section

Target read: permitted. Creation: permitted. No existing record is edited.

Conceptual diff — create both records and bind the forward occurrence

New records only · Section: unselected · One Realm

Add: She once worked with The Silver Hand. Occurrence: mention-1 · faction hint · Mira’s Backstory context.

Target: unresolved; no entity created by mentioning it

Local keys: mira → new NPC; silver-hand → faction declared second. Whole batch validates before any simulated effect.

Choose a synthetic source. Nothing is selected or saved.

Explore stale, revoked and conflict branches

These controls change fictional conditions only. They cannot change real permissions.

Guarded deterministic learning model. Intended invariants only; backend grants, approval, occurrence persistence, atomicity and retry storage remain separate dependencies.

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.