feat: Select explicit build-script runtime environments #674

Open
erikinkinen wants to merge 0 commits from feature/native-build-script-environment into feature/native-build-script-producers
Owner

Summary and rationale

Give the maintained Bootloader and Procd scripts an explicit runtime environment. The builder supplies fixed locale/timezone fields and the selected temporary directory. Bootloader also receives its target OS and debug choice; Procd receives no Cargo fields.

Tracking and scope

Part of the build-script design, based on #665. This change implements the environment DATA builder and its CI coverage. The actual compiler and executable caller remain in #665.

Architecture, authority and failure behavior

The builder reads no host environment or filesystem. It rejects unsupported selections and foreign scalar/path types before their hooks. The original stage binds the source, effective target/profile and temporary directory and retains executable custody. The mapping cannot establish those owners.

Validation evidence

Four new environment controls pass, covering all eight maintained combinations, ambient-field exclusion, independent mappings and malformed inputs. The maintained syntax suite, five syntax-runner controls, four stage-admission controls and 197 Markdown files pass. The complete 413-helper cohort passes twice; native owner bodies and bootstrap are unchanged. The first runner check exposed missing parent syntax rows; their exact suffix fix is composed here. Current CI remains pending.

Review checklist

  • Signed commits and documented internal contract.
  • CI and pinned syntax enrollment updated.
  • Authored modules remain below 1,000 lines.
## Summary and rationale Give the maintained Bootloader and Procd scripts an explicit runtime environment. The builder supplies fixed locale/timezone fields and the selected temporary directory. Bootloader also receives its target OS and debug choice; Procd receives no Cargo fields. ## Tracking and scope Part of [the build-script design](https://git.erikinkinen.fi/erix/integration/issues/663), based on #665. This change implements the environment DATA builder and its CI coverage. The actual compiler and executable caller remain in #665. ## Architecture, authority and failure behavior The builder reads no host environment or filesystem. It rejects unsupported selections and foreign scalar/path types before their hooks. The original stage binds the source, effective target/profile and temporary directory and retains executable custody. The mapping cannot establish those owners. ## Validation evidence Four new environment controls pass, covering all eight maintained combinations, ambient-field exclusion, independent mappings and malformed inputs. The maintained syntax suite, five syntax-runner controls, four stage-admission controls and 197 Markdown files pass. The complete 413-helper cohort passes twice; native owner bodies and bootstrap are unchanged. The first runner check exposed missing parent syntax rows; their exact suffix fix is composed here. Current CI remains pending. ## Review checklist - [x] Signed commits and documented internal contract. - [x] CI and pinned syntax enrollment updated. - [x] Authored modules remain below 1,000 lines.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 12:44:55 +01:00
Construct the maintained scripts environment from literal package, target, profile and temporary-directory selections. Keep host lookup and credential fields out, and preserve the original stage and executable caller as the sources of custody.
build: Compose the original script stage environment boundary
Some checks failed
Markdown / markdown (push) Successful in 25s
CI / rust (push) Failing after 1m12s
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
CI / cargo_publications (push) Failing after 1m28s
Coreutils provider graph / coreutils (push) Failing after 1m48s
711ad33cf4
Retain the original graph stage and complete syntax enrollment alongside the fixed script runtime mapping. Actual compiler and executable caller integration remains in the parent feature.

# Conflicts:
#	.github/workflows/ci.yml
#	scripts/check-python-host-syntax.sh
#	tests/fixtures/python-host-syntax-commands.json
fix: Compose original compiler storage issuer dispatch
Some checks failed
Markdown / markdown (push) Successful in 28s
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 4m47s
CI / cargo_publications (push) Failing after 6m0s
CI / rust (push) Failing after 6m5s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_zero (push) Has been skipped
c1a91fa12e
Preserve genuine Cargo and executable code issuers alongside strict original Scope code receivers. Keep the fixed environment mapping on the same coherent stage and caller implementation.
Some checks failed
Markdown / markdown (push) Successful in 28s
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 4m47s
CI / cargo_publications (push) Failing after 6m0s
CI / rust (push) Failing after 6m5s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_zero (push) Has been skipped
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/native-build-script-environment:feature/native-build-script-environment'
git switch 'feature/native-build-script-environment'

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