Errors and recovery
Errors and recovery
Current privacy-safe errors, followed by conceptual recovery for future writes.
Internal onlyExternal access unavailable. Examples are internal contracts or explicitly planned local simulations.
Internal errors (today)
| Code | Recovery |
|---|---|
| unsupported_operation | Check the internal capability index; do not substitute another operation |
| invalid_input | Correct the allowlisted fields and bounds; do not supply actor authority |
| no_accessible_match | Review authorized selection; no global absence claim or create fallback |
Validation
PlannedPlanned: invalid type content, missing local key, cross-Realm or shared edits prevent the entire proposal. Correct the request; never silently downgrade dependencies to unresolved placeholders.
Ambiguity
Exact collisions and even one substring suggestion require explicit selection. Narrow the query or type within authorized data; no hidden count or warning is disclosed.
Unavailable capability
All external operations and agent writes are unavailable today. A failed operation never changes intent. Ordinary app CRUD is separate from the planned integration authoring workflow.
Authorization failure
PlannedPlanned: revoked grants or permission loss refuse application and cached-result replay. Recovery stays within current user authority and manager policy. Restoring access does not resume a pending operation.
Stale proposal or version
PlannedPlanned: changed content, target choice, audience, grant or source version invalidates approval. Re-propose, revalidate and request fresh approval. Preserve subsequent edits; undo must use the ordinary revision model.
Retry-key conflict
PlannedPlanned: a retry key binds actor, connection, Realm, operation and exact request content. Different content conflicts. Same-content replay returns the existing outcome only after fresh authorization. Simultaneous expansion conflicts instead of creating a second target. Two independent intentional same-name creates are still possible.
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.