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.- mem_
sweep - Mem-rename content sweep — the referrer-rewrite half of
memstead mem rename. - parse_
recovery Engine::apply_parse_recovery— bulk-fix path that consumes theParsedRelationRecoverypayload on every writable-originPARSED_RELATION_INVALIDwarning and applies the recovery action in a single operator-initiated call.- relate
Engine::relate_entityand therelatealias — 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_entityandEngine::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_contentsnapshot thatEngineError::PatchOldNotFoundcarries. Keeps the wire envelope bounded for sections with large bodies. Mirrors full’smemstead_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’smemstead_git_branch::RELATIONSHIP_CYCLE_PATH_CAP.