Share sibling temporary file creation for downloads

This commit is contained in:
2026-12-02 21:33:02 +00:00
parent 93876ff2cf
commit a623ecb518
8 changed files with 116 additions and 100 deletions

View File

@@ -9,9 +9,9 @@ and destination-directory policy.
Ordinary workspace replacement uses standard operating-system path semantics.
Callers with a root-scoped safety contract own that validation at their boundary.
Remote object acquisition is owned by its domain caller. The caller writes a
sibling temporary file, validates the complete result, and passes that file to
`InstallSiblingTempFile` only when it is ready to become canonical. Callers own
Remote object acquisition is owned by its domain caller. `WriteSiblingTemp` writes and closes a sibling temporary file, returning
ownership to the caller. The caller validates the complete result and passes it
to `InstallSiblingTempFile` only when it is ready to become canonical. Callers own
remote object selection, validation, conflict handling, and temporary-file
cleanup.