[BUG] Direct native build omits a realm probe default #138

Closed
opened 2026-10-16 13:16:47 +02:00 by erikinkinen · 2 comments
Owner

Summary

The direct native fixture builder stops on an unset optional Exsh selector. INITIAL_EXSH_REALM_BINDINGS_PROBE is consumed by the runtime build but is missing from the shared defaults.

Reproduction

From an Integration checkout, this minimal reproduction checks the same defaults under Bash's unset-variable policy:

env -i PATH=/usr/bin:/bin bash -uc '
  . scripts/lib/initial-exsh-build-defaults.sh
  printf "%s\n" "$INITIAL_EXSH_REALM_BINDINGS_PROBE"
'

The direct scripts/build-kernel-fixture.sh components.toml route also fails when building the development runtime with the initial-shell exit-status script enabled and this unrelated probe left unset.

Expected and actual behavior

An omitted probe should default to disabled. Instead, Bash reports INITIAL_EXSH_REALM_BINDINGS_PROBE: unbound variable from build-kernel-fixture-main.sh, followed by the generic invalid-selector error. The native build exits 1 before producing a complete fixture.

Environment and identity

  • Integration: 94a19951a6f2a496c10a5ac35cc9056678ab55ed and its pinned component graph.
  • Release build, development runtime configuration, runtime filesystem and initial-shell exit-status script; existing process-destroy tracing enabled.
  • x86_64 Linux build host, Rust 1.97.1; direct native fixture API, without QEMU.
  • The optional realm-bindings probe was not selected. Last working revision is unknown.

Evidence and prior checks

The original build completed its 30-object registry and metadata checks before this shell error. The shared defaults initialize 55 initial-shell selectors; the main builder's only bare initial-shell selector without a default is the bindings probe. The scenario wrapper supplying a value can hide the omission.

Tracking

Related: initial-shell runtime failure.

  • Default every optional initial-shell selector on the direct route.
  • Preserve explicit values and reject invalid selector values.
  • Add regression coverage connecting the defaults, selector declarations and actual consumer.
  • Complete a native runtime build with the unrelated probe omitted.
## Summary The direct native fixture builder stops on an unset optional Exsh selector. `INITIAL_EXSH_REALM_BINDINGS_PROBE` is consumed by the runtime build but is missing from the shared defaults. ## Reproduction From an Integration checkout, this minimal reproduction checks the same defaults under Bash's unset-variable policy: ```sh env -i PATH=/usr/bin:/bin bash -uc ' . scripts/lib/initial-exsh-build-defaults.sh printf "%s\n" "$INITIAL_EXSH_REALM_BINDINGS_PROBE" ' ``` The direct `scripts/build-kernel-fixture.sh components.toml` route also fails when building the development runtime with the initial-shell exit-status script enabled and this unrelated probe left unset. ## Expected and actual behavior An omitted probe should default to disabled. Instead, Bash reports `INITIAL_EXSH_REALM_BINDINGS_PROBE: unbound variable` from `build-kernel-fixture-main.sh`, followed by the generic invalid-selector error. The native build exits 1 before producing a complete fixture. ## Environment and identity - Integration: `94a19951a6f2a496c10a5ac35cc9056678ab55ed` and its pinned component graph. - Release build, development runtime configuration, runtime filesystem and initial-shell exit-status script; existing process-destroy tracing enabled. - x86_64 Linux build host, Rust 1.97.1; direct native fixture API, without QEMU. - The optional realm-bindings probe was not selected. Last working revision is unknown. ## Evidence and prior checks The original build completed its 30-object registry and metadata checks before this shell error. The shared defaults initialize 55 initial-shell selectors; the main builder's only bare initial-shell selector without a default is the bindings probe. The scenario wrapper supplying a value can hide the omission. ## Tracking Related: [initial-shell runtime failure](https://git.erikinkinen.fi/erix/integration/issues/135). - [x] Default every optional initial-shell selector on the direct route. - [x] Preserve explicit values and reject invalid selector values. - [x] Add regression coverage connecting the defaults, selector declarations and actual consumer. - [x] Complete a native runtime build with the unrelated probe omitted.
Author
Owner

b7b17f96 initializes the optional bindings probe to disabled and preserves the existing validation of explicit values. The new controls cover the shared declarations and real consumer, and the syntax runner now checks the added test.

All 1,669 Python tests now pass. A fresh native build will check the repaired direct route; this issue remains open until that build completes.

`b7b17f96` initializes the optional bindings probe to disabled and preserves the existing validation of explicit values. The new controls cover the shared declarations and real consumer, and the syntax runner now checks the added test. All 1,669 Python tests now pass. A fresh native build will check the repaired direct route; this issue remains open until that build completes.
Author
Owner

The direct native build completes from b7b17f96 with the optional probe genuinely omitted. It produces the updated Exsh fixture without warnings, and the build and output-preservation steps all finish successfully. This resolves the missing-default defect.

Image packaging and guest execution are the next steps; they remain tracked separately.

The direct native build completes from `b7b17f96` with the optional probe genuinely omitted. It produces the updated Exsh fixture without warnings, and the build and output-preservation steps all finish successfully. This resolves the missing-default defect. Image packaging and guest execution are the next steps; they remain tracked separately.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:17 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/integration#138
No description provided.