WIP: Connect scripted roots to native artifact build #697

Draft
erikinkinen wants to merge 8 commits from feature/native-scripted-root-driver into feature/native-scripted-root-build
Owner

Connect the explicit programmatic NativeBootBuild route to the actual scripted-root producers. Procd uses its real target closure and existing runtime linker; Bootloader uses the separately selected EFI linker, retained staged compiler result and original publication adapter.

The whole plan refuses a missing ScriptedRootInputs before source/action effects. Host and EFI linker selections stay separate. Other roles, actions and original resource limits remain selected.

Depends on #687, #689 and #690. CLI declaration ingress is a separate companion feature.

  • Add once-only original typed selection and copied/current-binding guards.
  • Connect both fixed artifact routes without fabricated Cargo units.
  • Preserve original graph cleanup and all other declared actions.
  • Add focused selection/preflight/dispatch controls and documentation.
  • Qualify the composed genuine scripted-root/native artifact routes.
  • Complete full native graph, image, toolchain and guest acceptance.
Connect the explicit programmatic `NativeBootBuild` route to the actual scripted-root producers. Procd uses its real target closure and existing runtime linker; Bootloader uses the separately selected EFI linker, retained staged compiler result and original publication adapter. The whole plan refuses a missing `ScriptedRootInputs` before source/action effects. Host and EFI linker selections stay separate. Other roles, actions and original resource limits remain selected. Depends on #687, #689 and #690. CLI declaration ingress is a separate companion feature. - [x] Add once-only original typed selection and copied/current-binding guards. - [x] Connect both fixed artifact routes without fabricated Cargo units. - [x] Preserve original graph cleanup and all other declared actions. - [x] Add focused selection/preflight/dispatch controls and documentation. - [ ] Qualify the composed genuine scripted-root/native artifact routes. - [ ] Complete full native graph, image, toolchain and guest acceptance.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 19:13:37 +01:00
feat: Declare explicit scripted root input selections
Some checks failed
Markdown / markdown (push) Successful in 27s
CI / cargo_publications (push) Failing after 1m12s
Coreutils provider graph / coreutils (push) Failing after 1m47s
CI / rust (push) Failing after 4m51s
CI / native_sources (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 / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
d8b8e7a921
Keep exact original host linker and literal UEFI runtime/linker coordinates in a once-only typed selector. Validate immutable declaration relationships without filesystem effects or constructing source/native owners. Driver integration and complete source/cohort qualification follow as the same feature.
Require original typed inputs across the whole plan before action effects. Connect Procd to actual scripted target closure and existing runtime linking, and Bootloader to its explicit pre-source EFI linker, staged compiler result and original physical publication adapter. Preserve all other roles/actions and original bounds, retain original graph cleanup and copied-selector guards, and document programmatic versus CLI qualification. Native connected execution remains pending composed prerequisites.
Retain the actual constructed graph in a local original before publishing its current view. Every constructor action dispatch uses that same defining graph while current-view loss remains a sticky error; no replacement graph callback or selector can redirect production or cleanup.
Regenerate every actual helper module from immutable current driver source without individual row overrides. Keep original seven native bodies and separate pending connected native qualification.
Bind all three defining caller fields to the actual immutable whole declaration using complete AST assignments. Preserve native interface bodies and original operation limits.
Validate the same constructor selector and original graph after native source/compile phases and before final publication. Keep all actual producer actors and original operations; a changed current wrapper cannot authorize the next native or publication step.
Select the entire actual immutable helper closure after final driver phase binding checks, without individual digest overrides or native interface changes.
build: Bind original callers to guarded scripted driver source
Some checks failed
Markdown / markdown (push) Successful in 29s
CI / cargo_publications (push) Failing after 1m16s
CI / rust (push) Failing after 5m5s
CI / native_sources (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 6m8s
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
c77c259efe
Some checks failed
Markdown / markdown (push) Successful in 29s
CI / cargo_publications (push) Failing after 1m16s
CI / rust (push) Failing after 5m5s
CI / native_sources (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 6m8s
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
This pull request has changes conflicting with the target branch.
  • .github/workflows/ci.yml
  • scripts/check-python-host-syntax.sh
  • scripts/dynlink_c_runtime.py
  • scripts/native_c_helpers.py
  • scripts/native_input_owner_cohort.py
  • scripts/run-owned-input.py
  • tests/fixtures/python-host-syntax-commands.json
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 'feature/native-scripted-root-driver:feature/native-scripted-root-driver'
git switch 'feature/native-scripted-root-driver'

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