WIP: refactor: Let target constructors own package selection #750

Draft
erikinkinen wants to merge 4 commits from refactor/constructor-owned-binding into perf/constructor-dependency-source-boundary
Owner

Target constructors now receive the original stage, view and runtime. They select their own actual registered package binding, so the target closure no longer needs a separate public view query just to obtain a binding the constructor must prove again.

Private bootstrap bytes are scheduling DATA only. Original metadata and source registrations are frozen before callbacks; the complete physical constructor query must reselect the exact same binding before target capture or native admission. Pre-birth failures stay with the original stage and graph. Ordinary public view checks and the separate host-script API remain unchanged.

Depends on #749.

  • Select the original typed package binding privately in the target constructor.
  • Remove the old binding argument and migrate target production and fixture callers.
  • Preserve full physical query, source and final constructor proofs.
  • Reject replaced bootstrap participants and retain original pre-birth failures.
  • Complete the same-stage target library build.
Target constructors now receive the original stage, view and runtime. They select their own actual registered package binding, so the target closure no longer needs a separate public view query just to obtain a binding the constructor must prove again. Private bootstrap bytes are scheduling DATA only. Original metadata and source registrations are frozen before callbacks; the complete physical constructor query must reselect the exact same binding before target capture or native admission. Pre-birth failures stay with the original stage and graph. Ordinary public view checks and the separate host-script API remain unchanged. Depends on #749. - [x] Select the original typed package binding privately in the target constructor. - [x] Remove the old binding argument and migrate target production and fixture callers. - [x] Preserve full physical query, source and final constructor proofs. - [x] Reject replaced bootstrap participants and retain original pre-birth failures. - [ ] Complete the same-stage target library build.
erikinkinen added this to the Alpha 1 milestone 2026-11-11 21:28:37 +01:00
Remove the caller binding argument and preparatory binding-only view queries from target construction. Privately select actual registered metadata DATA, freeze original source and query participants, and require the complete physical constructor query to prove the same binding before target capture or native admission.
Record the complete immutable provider graph after migrating target binding selection into its actual constructor and original metadata source relationships.
build: Bind constructor-owned binding source declaration
Some checks failed
Markdown / markdown (push) Successful in 16s
Coreutils provider graph / coreutils (push) Successful in 3m58s
CI / cargo_publications (push) Failing after 5m43s
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
CI / rust (push) Successful in 13m18s
CI / native_sources (push) Successful in 30s
CI / host_one (push) Failing after 14m5s
CI / host_zero (push) Failing after 14m7s
CI / host_two (push) Failing after 14m4s
CI / host_three (push) Failing after 14m4s
CI / integration (push) Has been skipped
d754cd07a9
Select the exact complete signed input-owner declaration while retaining public view proofs, original deadlines and independent compiler completion checks.
test: Select expected target binding from its workspace
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
Markdown / markdown (push) Successful in 16s
Coreutils provider graph / coreutils (push) Successful in 3m7s
CI / cargo_publications (push) Failing after 7m49s
CI / rust (push) Failing after 14m1s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
304e3d0e1c
The same source package can occur in several original resolutions. Match its prepared workspace as well as package ID when deriving expected identity data; the target constructor remains the sole binding selector.
Author
Owner

Constructor-owned binding selection is implemented. The target closure no longer makes a separate public view query to obtain the binding. Changes to the original plan, package fields or physical query evidence are rejected before target birth.

The two-library build remains open: the leaf compiles, but the middle constructor exhausts its existing deadline while freezing source history before query admission. No deadline has been increased.

Constructor-owned binding selection is implemented. The target closure no longer makes a separate public view query to obtain the binding. Changes to the original plan, package fields or physical query evidence are rejected before target birth. The two-library build remains open: the leaf compiles, but the middle constructor exhausts its existing deadline while freezing source history before query admission. No deadline has been increased.
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
Markdown / markdown (push) Successful in 16s
Coreutils provider graph / coreutils (push) Successful in 3m7s
CI / cargo_publications (push) Failing after 7m49s
CI / rust (push) Failing after 14m1s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'refactor/constructor-owned-binding:refactor/constructor-owned-binding'
git switch 'refactor/constructor-owned-binding'

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 'perf/constructor-dependency-source-boundary'
git merge --no-ff 'refactor/constructor-owned-binding'
git switch 'refactor/constructor-owned-binding'
git rebase 'perf/constructor-dependency-source-boundary'
git switch 'perf/constructor-dependency-source-boundary'
git merge --ff-only 'refactor/constructor-owned-binding'
git switch 'refactor/constructor-owned-binding'
git rebase 'perf/constructor-dependency-source-boundary'
git switch 'perf/constructor-dependency-source-boundary'
git merge --no-ff 'refactor/constructor-owned-binding'
git switch 'perf/constructor-dependency-source-boundary'
git merge --squash 'refactor/constructor-owned-binding'
git switch 'perf/constructor-dependency-source-boundary'
git merge --ff-only 'refactor/constructor-owned-binding'
git switch 'perf/constructor-dependency-source-boundary'
git merge 'refactor/constructor-owned-binding'
git push origin 'perf/constructor-dependency-source-boundary'
Sign in to join this conversation.
No description provided.