WIP: Fix startup compiler selection #792

Draft
erikinkinen wants to merge 1 commit from feature/native-startup-compiler-selections-72ec5647 into feature/native-input-owner-cohort
Owner

Summary and rationale

Clang can report a resource directory containing .., which the native startup producer correctly refuses. Bind its absolute physical directory before exporting inputs, preserving compiler and directory-binding failures.

Select Cargo and Rustc once before library production. Pass those paths to the registry and startup-root producer, and include actual compiler bytes in registry cache identity.

Tracking and scope

Builds on #564. This repairs startup compiler selection and its maintained registry callers. Configured-image and guest acceptance remain with the original startup work.

Architecture, authority and failure behavior

The shell gateway supplies explicit compiler paths. The registry rejects missing selections and rechecks executable identity around production and cache reuse. A failed selection or resource-directory binding leaves the exported environment unchanged.

Review checklist

  • Implement explicit selection, cache binding and failure controls.
  • Exercise the complete authored standalone library and startup-root producers.
  • Complete current-head CI.
## Summary and rationale Clang can report a resource directory containing `..`, which the native startup producer correctly refuses. Bind its absolute physical directory before exporting inputs, preserving compiler and directory-binding failures. Select Cargo and Rustc once before library production. Pass those paths to the registry and startup-root producer, and include actual compiler bytes in registry cache identity. ## Tracking and scope Builds on [#564](https://git.erikinkinen.fi/erix/integration/pulls/564). This repairs startup compiler selection and its maintained registry callers. Configured-image and guest acceptance remain with the original startup work. ## Architecture, authority and failure behavior The shell gateway supplies explicit compiler paths. The registry rejects missing selections and rechecks executable identity around production and cache reuse. A failed selection or resource-directory binding leaves the exported environment unchanged. ## Review checklist - [x] Implement explicit selection, cache binding and failure controls. - [x] Exercise the complete authored standalone library and startup-root producers. - [ ] Complete current-head CI.
fix: Bind startup compiler selections before production
Some checks failed
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 4s
Coreutils provider graph / coreutils (push) Successful in 1m42s
CI / rust (push) Successful in 2m36s
CI / native_sources (push) Successful in 8s
CI / host_zero (push) Successful in 10m26s
CI / host_one (push) Successful in 10m44s
CI / host_two (push) Failing after 11m17s
CI / host_three (push) Failing after 14m21s
CI / integration (push) Has been skipped
72ec5647fc
Select Cargo and Rustc once at the shell gateway, retain their failure status, and pass their actual executable paths to library production and startup exports. Include selected executable bytes in registry cache identity and remove compiler rediscovery. Bind the absolute Clang resource directory physically before exporting inputs so failed selection or directory traversal cannot publish partial state.
erikinkinen added this to the Alpha 1 milestone 2026-11-15 13:22:27 +01:00
Author
Owner

Published the signed CI preparation 0761fd75 on feature/native-startup-compiler-selections-merge-ready-0761fd75.

The real compiler controls use the host-test gateway's explicit Rustc selection. Cache-key-only controls supply explicit executable fixture routes and retain Cargo/Rustc byte-mutation checks. The startup recipe still has full hash equality against the reviewed compiler-bound body. Production selection, arguments, exports, finite limits and refusal controls are unchanged.

All 64 controls in the four complete affected/enrollment modules passed, including both real compiler path controls, in a clean environment without Rustup. Fresh full CI is running. The original source ref and failure evidence are retained; this new head remains Pending exact human review.

Published the signed CI preparation [0761fd75](https://git.erikinkinen.fi/erix/integration/commit/0761fd7543d19e2f54d2d92980d0dcddbc7f5d48) on `feature/native-startup-compiler-selections-merge-ready-0761fd75`. The real compiler controls use the host-test gateway's explicit Rustc selection. Cache-key-only controls supply explicit executable fixture routes and retain Cargo/Rustc byte-mutation checks. The startup recipe still has full hash equality against the reviewed compiler-bound body. Production selection, arguments, exports, finite limits and refusal controls are unchanged. All 64 controls in the four complete affected/enrollment modules passed, including both real compiler path controls, in a clean environment without Rustup. [Fresh full CI](https://git.erikinkinen.fi/erix/integration/actions/runs/12236) is running. The original source ref and failure evidence are retained; this new head remains Pending exact human review.
Some checks failed
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 4s
Coreutils provider graph / coreutils (push) Successful in 1m42s
CI / rust (push) Successful in 2m36s
CI / native_sources (push) Successful in 8s
CI / host_zero (push) Successful in 10m26s
CI / host_one (push) Successful in 10m44s
CI / host_two (push) Failing after 11m17s
CI / host_three (push) Failing after 14m21s
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 'feature/native-startup-compiler-selections-72ec5647:feature/native-startup-compiler-selections-72ec5647'
git switch 'feature/native-startup-compiler-selections-72ec5647'

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-input-owner-cohort'
git merge --no-ff 'feature/native-startup-compiler-selections-72ec5647'
git switch 'feature/native-startup-compiler-selections-72ec5647'
git rebase 'feature/native-input-owner-cohort'
git switch 'feature/native-input-owner-cohort'
git merge --ff-only 'feature/native-startup-compiler-selections-72ec5647'
git switch 'feature/native-startup-compiler-selections-72ec5647'
git rebase 'feature/native-input-owner-cohort'
git switch 'feature/native-input-owner-cohort'
git merge --no-ff 'feature/native-startup-compiler-selections-72ec5647'
git switch 'feature/native-input-owner-cohort'
git merge --squash 'feature/native-startup-compiler-selections-72ec5647'
git switch 'feature/native-input-owner-cohort'
git merge --ff-only 'feature/native-startup-compiler-selections-72ec5647'
git switch 'feature/native-input-owner-cohort'
git merge 'feature/native-startup-compiler-selections-72ec5647'
git push origin 'feature/native-input-owner-cohort'
Sign in to join this conversation.
No description provided.