WIP: Keep same-stage recipe dependencies in their original owner #701

Draft
erikinkinen wants to merge 0 commits from fix/recipe-owned-dependency-bindings into feature/native-scripted-root-build
Owner

Summary

Keep same-stage compiled dependencies in their defining lease's original owned roster. Their actual producer and output captures are registered before full unit admission, so ordinary lease checks retain ownership without recursively borrowing the same lease. Full unit checks at admission and compiler dependency boundaries remain; other-Scope recipe and observed-unit loans are unchanged.

Refs #663. Depends on #690.

Validation

  • Foreign-receiver refusal passed through an original 120/15 caller with confirmed process and forest cleanup.
  • Complete 455-module helper/input declaration renewed and closure checked twice; syntax argv roster and script parsing checked.
  • Genuine leaf and middle compilation in one Stage, with output/capture checks, copied/replaced roster and unit/file substitution refusals, and positive retirement.

The connected control is authored and awaits the independently maintained helper-cost prerequisite. This WIP does not claim compiled dependency, full native graph or guest acceptance.

## Summary Keep same-stage compiled dependencies in their defining lease's original owned roster. Their actual producer and output captures are registered before full unit admission, so ordinary lease checks retain ownership without recursively borrowing the same lease. Full unit checks at admission and compiler dependency boundaries remain; other-Scope recipe and observed-unit loans are unchanged. Refs #663. Depends on #690. ## Validation - [x] Foreign-receiver refusal passed through an original 120/15 caller with confirmed process and forest cleanup. - [x] Complete 455-module helper/input declaration renewed and closure checked twice; syntax argv roster and script parsing checked. - [ ] Genuine leaf and middle compilation in one Stage, with output/capture checks, copied/replaced roster and unit/file substitution refusals, and positive retirement. The connected control is authored and awaits the independently maintained helper-cost prerequisite. This WIP does not claim compiled dependency, full native graph or guest acceptance.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 19:34:40 +01:00
Enroll actual produced units and captures in their original Stage lease without recursively borrowing that same lease. Keep full unit admission and caller-boundary proofs and unchanged external Scope loans.
test: Refuse owned dependency substitutions after genuine prefix
Some checks failed
Markdown / markdown (push) Successful in 37s
CI / cargo_publications (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Coreutils provider graph / coreutils (push) Failing after 3m46s
CI / cargo_publications (push) Failing after 8m18s
CI / rust (push) Failing after 9m33s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
8c11b435a6
Normally merge the source-qualified fixed helper constructor index before the genuine two-library control. Regenerate complete source closure rather than selecting metadata rows.
build: Bind full composed owned dependency source
Some checks failed
CI / cargo_publications (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Coreutils provider graph / coreutils (push) Failing after 1m52s
Markdown / markdown (push) Successful in 51s
CI / cargo_publications (push) Failing after 8m40s
CI / rust (push) Failing after 11m33s
CI / native_sources (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
143d706e0e
Some checks failed
CI / cargo_publications (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Coreutils provider graph / coreutils (push) Failing after 1m52s
Markdown / markdown (push) Successful in 51s
CI / cargo_publications (push) Failing after 8m40s
CI / rust (push) Failing after 11m33s
CI / native_sources (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
This pull request has changes conflicting with the target branch.
  • scripts/dynlink_c_runtime.py
  • scripts/native_input_owner_cohort.py
  • scripts/run-owned-input.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'fix/recipe-owned-dependency-bindings:fix/recipe-owned-dependency-bindings'
git switch 'fix/recipe-owned-dependency-bindings'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/native-scripted-root-build'
git merge --no-ff 'fix/recipe-owned-dependency-bindings'
git switch 'fix/recipe-owned-dependency-bindings'
git rebase 'feature/native-scripted-root-build'
git switch 'feature/native-scripted-root-build'
git merge --ff-only 'fix/recipe-owned-dependency-bindings'
git switch 'fix/recipe-owned-dependency-bindings'
git rebase 'feature/native-scripted-root-build'
git switch 'feature/native-scripted-root-build'
git merge --no-ff 'fix/recipe-owned-dependency-bindings'
git switch 'feature/native-scripted-root-build'
git merge --squash 'fix/recipe-owned-dependency-bindings'
git switch 'feature/native-scripted-root-build'
git merge --ff-only 'fix/recipe-owned-dependency-bindings'
git switch 'feature/native-scripted-root-build'
git merge 'fix/recipe-owned-dependency-bindings'
git push origin 'feature/native-scripted-root-build'
Sign in to join this conversation.
No description provided.