WIP: Separate native custody from build helpers #752

Draft
erikinkinen wants to merge 1 commit from refactor/native-custody-core into feature/native-scripted-root-build
Owner

Share native admission, child custody and lifetime registries between the command runner and the input supervisor. The supervisor authenticates its complete custody closure without importing compiler or build-graph helpers.

The pure source bootstrap and Cargo gateway share the physical reader. Cargo's existing chunk charges, named-file checks and raw error handling remain in place. Readiness and cleanup clocks are unchanged.

Related: #728. Requires the retained VM-runner migration in #408.

  • Keep one set of original native classes and lifetime registries.
  • Limit the supervisor to its actual source providers.
  • Preserve source, cancellation and retirement controls.
  • Integrate the VM-runner prerequisite and complete regression CI.
Share native admission, child custody and lifetime registries between the command runner and the input supervisor. The supervisor authenticates its complete custody closure without importing compiler or build-graph helpers. The pure source bootstrap and Cargo gateway share the physical reader. Cargo's existing chunk charges, named-file checks and raw error handling remain in place. Readiness and cleanup clocks are unchanged. Related: #728. Requires the retained VM-runner migration in #408. - [x] Keep one set of original native classes and lifetime registries. - [x] Limit the supervisor to its actual source providers. - [x] Preserve source, cancellation and retirement controls. - [ ] Integrate the VM-runner prerequisite and complete regression CI.
Keep process admission, child descriptions and lifetime registries in one module shared by the runner and supervisor. The input supervisor authenticates its complete custody closure without importing compiler or build-graph helpers. Preserve the original source checks, native retirement and clocks.
Use one physical reader for native bootstrap and typed Cargo reads. Keep the existing per-chunk work charges and raw failure objects while the supervisor authenticates only its own defining sources.
Bind the supervisor to its four actual defining modules. General command and compiler helpers remain outside this supervisor source selection.
build: Bind the supervisor to its native source bootstrap
Some checks failed
Markdown / markdown (push) Successful in 9s
CI / native_sources (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
CI / cargo_publications (push) Has been cancelled
CI / rust (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
5b57ba8081
Authenticate the complete custody declaration and its pure bootstrap from the same frozen source tree before loading any supervisor provider.
Keep the existing source-only loader with the pure bootstrap so the supervisor inherits its original module-construction protocol without importing the Cargo consumer.
Keep all four supervisor providers tied to the complete source tree that includes the original checked module loader.
build: Bind the complete native supervisor bootstrap
Some checks failed
Markdown / markdown (push) Successful in 15s
Coreutils provider graph / coreutils (push) Successful in 3m16s
CI / rust (push) Failing after 5m52s
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
CI / cargo_publications (push) Failing after 11m14s
777dc2e20c
Select the source-reader and module-loader body before constructing the supervisor source owner.
Challenge every custody provider and its declaration before child birth, while proving unrelated build code is not imported. Keep delayed-import controls in their actual isolated source banks.
test: Keep pending import checks in an isolated source bank
Some checks failed
Markdown / markdown (push) Successful in 22s
Coreutils provider graph / coreutils (push) Successful in 5m21s
CI / rust (push) Failing after 6m20s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
CI / cargo_publications (push) Has been cancelled
f7cbe3629e
Exercise malformed pending module specs against real delayed providers without adding unused code to the production supervisor closure.
test: Inject native faults at their defining custody module
Some checks failed
Markdown / markdown (push) Successful in 15s
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) Successful in 3m25s
CI / rust (push) Failing after 5m48s
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
CI / cargo_publications (push) Failing after 19m38s
2936c44637
Keep the existing partial-capture, cancellation and uncertain-cleanup controls on the original native implementations after extracting them from the command facade.
erikinkinen added this to the Alpha 1 milestone 2026-11-11 21:54:16 +01:00
test: Resolve custody modules during direct CI execution
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 22s
Coreutils provider graph / coreutils (push) Failing after 1m46s
CI / rust (push) Successful in 18m54s
CI / native_sources (push) Successful in 1m57s
CI / cargo_publications (push) Failing after 25m23s
CI / host_three (push) Failing after 18m44s
CI / host_two (push) Failing after 18m46s
CI / host_zero (push) Failing after 18m56s
CI / host_one (push) Failing after 19m4s
CI / integration (push) Has been skipped
266a6355bf
Use the actual scripts directory only during the shared custody imports and restore the prior search path before source-bank controls.
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 22s
Coreutils provider graph / coreutils (push) Failing after 1m46s
CI / rust (push) Successful in 18m54s
CI / native_sources (push) Successful in 1m57s
CI / cargo_publications (push) Failing after 25m23s
CI / host_three (push) Failing after 18m44s
CI / host_two (push) Failing after 18m46s
CI / host_zero (push) Failing after 18m56s
CI / host_one (push) Failing after 19m4s
CI / integration (push) Has been skipped
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

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

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 'refactor/native-custody-core'
git switch 'refactor/native-custody-core'
git rebase 'feature/native-scripted-root-build'
git switch 'feature/native-scripted-root-build'
git merge --ff-only 'refactor/native-custody-core'
git switch 'refactor/native-custody-core'
git rebase 'feature/native-scripted-root-build'
git switch 'feature/native-scripted-root-build'
git merge --no-ff 'refactor/native-custody-core'
git switch 'feature/native-scripted-root-build'
git merge --squash 'refactor/native-custody-core'
git switch 'feature/native-scripted-root-build'
git merge --ff-only 'refactor/native-custody-core'
git switch 'feature/native-scripted-root-build'
git merge 'refactor/native-custody-core'
git push origin 'feature/native-scripted-root-build'
Sign in to join this conversation.
No description provided.