Admit durable scoped image uploads during partial model loading
This commit is contained in:
+29
-1
@@ -150,5 +150,33 @@ Pause/reopen/resume retains source bytes and identities. Cancellation keeps alre
|
||||
published content and does not restart; undo remains independent of the source
|
||||
parser. All content sends through the normal durability and frozen-request barriers.
|
||||
Full-source completion removes the loading marker and read baseline without
|
||||
replacing job/history state. New image uploads and generation remain gated while
|
||||
replacing job/history state. In version 5, new image uploads and generation remain gated while
|
||||
loading; loaded shared resource references obey the existing structural rules.
|
||||
|
||||
Loading version 6 (recovery format 12) admits local images in complete owners.
|
||||
`engine.canStageFiles(canvasId)` supplies UI availability; `stageFiles` rechecks
|
||||
actual transaction changes and policy. Existing field/geometry and import/copy
|
||||
contracts continue to apply, including copying a pending image by the same
|
||||
ResourceId rather than starting another upload.
|
||||
|
||||
`ResourceRecord.loadingAdmission` records `{version:1, sourceToken, sourceURL,
|
||||
canvasIds}`. The resource's original upload OperationId precedes its first document
|
||||
use. Validation checks that first use's exact owner set, complete captured/born
|
||||
scopes, and the adapter's URL interpretation on reopening. New resource references
|
||||
are admitted from these proved identities and the current staging transaction;
|
||||
arbitrary resource IDs/URLs remain rejected. The proof and file bytes use the
|
||||
existing project recovery store, not a second queue or workspace-wide AssetDepot.
|
||||
|
||||
Working content, history, upload intent and Blob bytes retain their existing atomic
|
||||
durable cut. An upload has no canvas participants, so its own admission does not
|
||||
claim a fake canvas writer; it still waits for the root/file/request barriers.
|
||||
Document requests depend on stored upload results and keep normal owner/version
|
||||
claims. Upload receipt validation does not advance document versions. A lost ACK
|
||||
reopens the same frozen key/body and queries it before another document send.
|
||||
|
||||
Whole-source completion preserves pending/stored resources and history. Default
|
||||
image sizing and display handles reuse the existing decoder/cache lifecycle.
|
||||
Undo/redo, source failure, quota retry and late chunks do not re-upload bytes or
|
||||
restore deleted incarnations. Earlier loading/recovery versions retain their old
|
||||
restrictions; future format 13 is rejected. Generation, cross-project durable depot
|
||||
sharing and broader lifecycle/acceptance work remain separate unfinished goals.
|
||||
|
||||
Reference in New Issue
Block a user