Skip to content

feat: transfer owned captures into structured tasks - #1436

Merged
sanohiro merged 2 commits into
mainfrom
feat/task-owned-captures
Nov 10, 2026
Merged

sanohiro merged 2 commits into
mainfrom
feat/task-owned-captures

Conversation

@sanohiro

Copy link
Copy Markdown
Owner

The current align-llm R41 startup loader cannot hand its already opened pack and an independent writable window to a task. spawn now consumes transferable owned captures, including file, 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.

@sanohiro
sanohiro marked this pull request as ready for review November 10, 2026 04:41
@sanohiro
sanohiro merged commit a7e782d into main Nov 10, 2026
9 checks passed
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.

1 participant