Skip to content

distribution: serialize portable update transactions - #224

Merged
turinglambdaai merged 1 commit into
mainfrom
fix/serialize-update-transactions
Oct 13, 2026
Merged

turinglambdaai merged 1 commit into
mainfrom
fix/serialize-update-transactions

Conversation

@turinglambdaai

@turinglambdaai turinglambdaai commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Closes #223.

Serializes portable update execution and recovery with both an in-process semaphore and an operating-system file lock derived from the installation target. The target identity remains the same even when callers configure different backup paths, so competing updaters cannot race over shared staging, target, marker, or journal state. Lock acquisition is break-safe; the empty lock file intentionally persists while OS ownership is released automatically on crash.

platform-installation is now an opaque prepared transaction, preventing callers from forging the internal target-lock identity or lifecycle callbacks.

The concurrency regression holds one transaction in a separate thread and proves that a second installation for the same target but a different backup path is rejected before the old payload or journal changes.

Local evidence: 211 platform-adapter, public-API, and documentation tests pass after rebasing onto current main.

@turinglambdaai
turinglambdaai force-pushed the fix/serialize-update-transactions branch 2 times, most recently from d9bbd67 to 552f640 Compare October 13, 2026 00:36
@turinglambdaai
turinglambdaai force-pushed the fix/serialize-update-transactions branch from 552f640 to 1a6e42a Compare October 13, 2026 00:41
@turinglambdaai
turinglambdaai merged commit b498df8 into main Oct 13, 2026
23 checks passed
@turinglambdaai
turinglambdaai deleted the fix/serialize-update-transactions branch October 13, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serialize portable update transactions across threads and processes

1 participant