Skip to main content

Module mutation

Module mutation 

Source
Expand description

Engine mutation entrypoints — split per mutation kind.

Each sub-module implements one mutation of Engine: create, update (with batch), delete, relate, rename. The shared helpers (today_iso, make_stub, gc_orphan_stubs, lookup_title_and_type, unknown_type_error) plus the typed constants PATCH_OLD_NOT_FOUND_CONTENT_CAP and RELATIONSHIP_CYCLE_PATH_CAP live here.

Modules§

create
Engine::create_entity — write a new entity into a mount’s backend and update the in-memory store.
delete
Engine::delete_entity — remove an entity from a mount’s backend and the in-memory store.
parse_recovery
Engine::apply_parse_recovery — bulk-fix path that consumes the ParsedRelationRecovery payload on every writable-origin PARSED_RELATION_INVALID warning and applies the recovery action in a single operator-initiated call.
relate
Engine::relate_entity and the relate alias — append / remove a single edge between two entities.
rename
Engine::rename_entity — change an entity’s slug, move its file on the backend, and rewrite the in-memory store.
update
Engine::update_entity and Engine::batch_update — rewrite an entity’s sections / metadata in place, optimistically-locked.

Constants§

PATCH_OLD_NOT_FOUND_CONTENT_CAP
Maximum byte length of the truncated current_content snapshot that EngineError::PatchOldNotFound carries. Keeps the wire envelope bounded for sections with large bodies. Mirrors full’s memstead_git_branch::PATCH_OLD_NOT_FOUND_CONTENT_CAP.
RELATIONSHIP_CYCLE_PATH_CAP
Maximum number of entity IDs retained in EngineError::RelationshipCycle::existing_path. Keeps the cycle envelope bounded for pathologically long chains. Mirrors full’s memstead_git_branch::RELATIONSHIP_CYCLE_PATH_CAP.