Persist partial-load edits and hold synchronization until a durable full base

This commit is contained in:
2026-11-09 03:00:21 +08:00
parent 0a705f82ee
commit fff6213714
14 changed files with 257 additions and 27 deletions
+11
View File
@@ -34,3 +34,14 @@ This preview does not yet package the React renderer/bindings. Their legacy
projection DTO types still require an explicit adapter boundary. No registry
publication, release support promise, server deployment or full-goal completion is
implied by this local package.
Experimental partial-model runtime: pass a validated prefix plus `loading` in
`EngineOptions`. The marker requires recovery format 7 and keeps the scheduler held.
Loaded non-reference data fields and node geometry can be edited and undone; creation,
deletions, ownership/reference changes, uploads, imports and AI admission wait.
`engine.loading.accept(document, versions, state)` extends the captured prefix without
replacing local edits. `engine.loading.complete(document, versions, {sourceToken})`
validates the full capture and releases scheduling only after its cut is durable.
Use `{fresh:true}` only for an explicitly fresh complete read; conflicts require the
existing reviewed recovery flow. Endoleap's page still uses read-only loading previews;
page integration and foreground/background source handoff remain unfinished.