Guides and examples
Bulk forward references
A bounded creation-only batch in one Realm, with local keys resolved after full validation.
PlannedExternal 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.
| Order | Operation | Local key | Explicit reference |
|---|---|---|---|
| 1 | Create private NPC Captain Mira | mira | Backstory occurrence → silver-hand |
| 2 | Create private faction The Silver Hand | silver-hand | None |
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.
Product: planned authoring · Connection: synthetic access enabled · State: unselected
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.