Repository navigation
feat: transfer owned captures into structured tasks - #1436
Merged
Merged
Conversation
sanohiro
marked this pull request as ready for review
November 10, 2026 04:41
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.
The current align-llm R41 startup loader cannot hand its already opened pack and an independent writable window to a task.
spawnnow consumes transferable owned captures, includingfile, and can return the same file directly or inside an owned result. The original descriptor identity survives pathname replacement; source owners and their backing aliases expire before worker publication.Task inputs use direct MIR target/capture operands, with no reusable owning function value. Ordinary stored and pipeline closures remain Copy-only. Borrowed parameters, arena storage, bare owned fixed arrays and other non-transferable resources remain excluded. Plan259 records the reviewed ownership boundary and provider/consumer acceptance split.
Validation: native whole/per-unit execution, cold/hit interface replay, allocation and descriptor cleanup, malformed HIR/MIR rejection, existing task/closure regressions, the bounded PR gate and workspace Clippy. Provider tests cover short/EOF/failed reads, early exits, ignored waits and admitted-file identity. Consumer integration and startup/full-answer performance qualification remain pending; this PR makes no speedup claim.