Add durable native execution fences for task transfer - #410
Merged
Merged
Conversation
Brian Krabach (bkrabach)
marked this pull request as ready for review
September 22, 2026 16:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task transfer needs a native execution fence that survives process restarts and is respected by every supported session consumer. Add a private durable marker checked under the existing writer lock before ownership is replaced. A restricted transfer handle can cancel a staged marker or permanently commit a source; committed sources cannot regain execution.
confirm_transfer_commitsafely re-establishes persistence after an uncertain acknowledgement without granting an execution or clearing capability.Marker writes persist newly created directory ancestors, propagate real open/sync failures, and re-establish file/ancestor durability on exact retries. Host applications remain responsible for authenticated transfer receipts and destination verification. All participating CLI/TUI/host runtimes must use this API; old or uncooperative consumers cannot be fenced. The contract documents POSIX/local-filesystem limits and unsupported directory-sync behavior. No transport or application migration is included.
Validation at
907c442b17a83707102c01e80cb5d1a115fdff88:f025dbfin the same environment.tests/test_grpc_adapter_main.py::TestVerifyModuleType::test_non_isinstance_object_with_mount_passesfails in its ownisinstancesetup because the installed CoreToolprotocol is not runtime-checkable.This is a bounded dependency for Unified task portability. It has not been accepted on live Mac/Spark hosts and should not be merged as a claim of cross-host application acceptance.