WIP: Preserve boot artifact and native entry contracts #3

Closed
erikinkinen wants to merge 30 commits from feature/posix-compat into main
Owner

Summary and rationale

Constrain the kernel handoff pointer and length to their ABI registers, preserving the independent jump target. The feature branch also retains explicit development/release artifact policy and exact Rust v0 runtime-namespace resolution needed by current dynamic kernel images.

Tracking and scope

The linked component audit, implementation and consumer requirements remain part of this WIP review. The phase-wide guest and toolchain build requirements stay with the phase completion issue.

Architecture, authority and failure behavior

Keep authenticated kernel exports, exact runtime namespaces, mapped stack and immutable handoff ownership. The correction changes compiler constraints and adds no fallback authority, mapping, argument or entry ABI. Explicit signing inputs and the separate fixture-key policy remain unchanged. Invalid runtime resolution still rejects before kernel entry.

Validation evidence

Formatting, strict Clippy, warning-denied builds and documentation, unit tests, and applicable native/VM and consumer regressions remain required for the declared scope. Authored controls and older successful runs do not establish current full acceptance.

Review checklist

  • Signed revisions, strict host/UEFI checks and native ingress results recorded.
  • Inline documentation, cohesive files and canonical governance preserved.
  • Architecture and roadmap updated; the existing manual ABI remains valid.
  • Complete remaining component audit, guest profiling and image gates.
  • Merge or release approval; this review remains WIP.

This review remains WIP until its declared scope and dependent requirements are complete.

## Summary and rationale Constrain the kernel handoff pointer and length to their ABI registers, preserving the independent jump target. The feature branch also retains explicit development/release artifact policy and exact Rust v0 runtime-namespace resolution needed by current dynamic kernel images. ## Tracking and scope - [meta #2](https://git.erikinkinen.fi/erix/meta/issues/2) - [posixd #28](https://git.erikinkinen.fi/erix/posixd/issues/28) - [bootloader #1](https://git.erikinkinen.fi/erix/bootloader/issues/1) - [bootloader #2](https://git.erikinkinen.fi/erix/bootloader/issues/2) - [bootloader #5](https://git.erikinkinen.fi/erix/bootloader/issues/5) - [bootloader #6](https://git.erikinkinen.fi/erix/bootloader/issues/6) - [integration #65](https://git.erikinkinen.fi/erix/integration/issues/65) The linked component audit, implementation and consumer requirements remain part of this WIP review. The phase-wide guest and toolchain build requirements stay with the phase completion issue. ## Architecture, authority and failure behavior Keep authenticated kernel exports, exact runtime namespaces, mapped stack and immutable handoff ownership. The correction changes compiler constraints and adds no fallback authority, mapping, argument or entry ABI. Explicit signing inputs and the separate fixture-key policy remain unchanged. Invalid runtime resolution still rejects before kernel entry. ## Validation evidence Formatting, strict Clippy, warning-denied builds and documentation, unit tests, and applicable native/VM and consumer regressions remain required for the declared scope. Authored controls and older successful runs do not establish current full acceptance. ## Review checklist - [x] Signed revisions, strict host/UEFI checks and native ingress results recorded. - [x] Inline documentation, cohesive files and canonical governance preserved. - [x] Architecture and roadmap updated; the existing manual ABI remains valid. - [ ] Complete remaining component audit, guest profiling and image gates. - [ ] Merge or release approval; this review remains WIP. This review remains WIP until its declared scope and dependent requirements are complete.
fix: Make release EFI debug policy reproducible
Some checks failed
CI / markdown (push) Successful in 3s
CI / test (push) Failing after 36s
CI / markdown (pull_request) Successful in 8s
CI / test (pull_request) Failing after 53s
1563a4d9a5
Select the UEFI bootloader linker policy from Cargo target and effective debug settings so release builds omit path-dependent PDB identities while development and deliberate diagnostics retain their matching symbols. Preserve existing optimization and runtime console choices.

Add original bounded artifact readers, ownership fixtures and fresh-directory profile checks to CI. Validate strict Rust checks, 35 Python cases and seven fresh artifact builds; retain earlier failures and separate full-image and VM acceptance.
ci: Fetch profile sources from the selected original repository
All checks were successful
CI / markdown (push) Successful in 14s
CI / markdown (pull_request) Successful in 14s
CI / test (pull_request) Successful in 2m1s
CI / test (push) Successful in 2m2s
8cb4383699
Use the initial checkout repository URL and exact event commit for both fresh source trees so shallow CI history cannot prevent artifact validation. Preserve the pinned helper, original object checks, lock inputs and offline compiler environment without local-origin or branch fallback.

Add six tests of the actual workflow preparation body with local shallow and complete sources. All 41 artifact/source/owner tests and workflow checks pass; retain the original failed source route and validate the corrected public workflows next.
fix: Resolve Rust v0 runtime namespaces in dynamic boot
All checks were successful
CI / markdown (pull_request) Successful in 2s
CI / markdown (push) Successful in 2s
CI / test (pull_request) Successful in 1m7s
CI / test (push) Successful in 1m7s
e7fa39357a
Recognize the defining runtime crate through length-delimited legacy names
and the documented v0 parent and implementation paths. Keep the exact C
memory entry points and core, alloc and compiler-builtins namespace ceiling;
foreign type arguments cannot authorize fallback lookup. Exact authenticated
kernel exports and declared object dependency scopes remain required.

Extract the predicate for five host regressions, including the observed
failed import and deep nesting without allocation or recursion. Strict host
and UEFI development/release checks pass with 34 units, seven standalone
cases and the Python fixtures. The prior image failure is retained; native
validation follows with the newly signed Bootloader selection.

Refs: #5
erikinkinen changed title from WIP: Make release EFI artifacts reproducible across build directories to WIP: Fix runtime symbol resolution and reproducible EFI artifacts 2026-09-14 11:28:50 +02:00
fix: Constrain kernel handoff arguments to their ABI registers
All checks were successful
CI / markdown (push) Successful in 4s
CI / markdown (pull_request) Successful in 4s
CI / test (push) Successful in 1m17s
CI / test (pull_request) Successful in 1m17s
3a99ba23ca
Bind the existing pointer and length directly to RDI and RSI. Remove
sequential unconstrained moves that can overwrite a later input or the
independent jump target. Preserve the mapped stack, exact handoff bytes,
entry address and interrupt/direction flag operations. Track issue 6 as
a source-constraint defect; no observed VM failure is attributed to it.

Warning-denied development/release default/all host and UEFI checks pass,
with 34 unit tests, seven standalone tests and all four Python fixture
suites. Private rustdoc and canonical Markdown checks pass. Matching native
ingress validation and current-head CI remain required after publication.
erikinkinen changed title from WIP: Fix runtime symbol resolution and reproducible EFI artifacts to WIP: Preserve boot artifact and native entry contracts 2026-09-14 13:41:07 +02:00
build: Align dependencies for coherent runtime adoption
All checks were successful
CI / markdown (push) Successful in 13s
CI / markdown (pull_request) Successful in 12s
CI / test (push) Successful in 2m14s
CI / test (pull_request) Successful in 2m15s
d48450b6bb
Select the current original signed foundation commits in the existing Git
dependencies. Keep Rust implementation files unchanged and record the
separate product-image acceptance requirement in the roadmap.

The complete supported feature/profile matrix passes with formatting,
strict Clippy, unit tests, builds and private rustdoc. Product runtime
adoption remains pending the complete dependency graph.
build: Adopt coherent realm contract dependencies
All checks were successful
CI / markdown (pull_request) Successful in 15s
CI / markdown (push) Successful in 16s
CI / test (pull_request) Successful in 2m26s
CI / test (push) Successful in 2m28s
acc1e734f7
Select original signed shared revisions so coordinated runtime images can
resolve one source identity for every dependency. Preserve the component
implementation and update the roadmap to keep consumer VM acceptance explicit.

Validate default and all-feature development/release tests, strict host/native
Clippy, freestanding builds, formatting and private-item rustdoc with warnings
denied. Full image and in-guest build acceptance remain separate requirements.
Leave local-controller mapping to the Kernel's explicit permanent supervisor
custody. Remove unused low IOAPIC/LAPIC aliases and their table-sizing entries.
Disable firmware interrupts before installing the final hierarchy, preserving
the transfer's independent register and stack contract.

Four strict host/UEFI configurations pass 34 unit and seven standalone tests,
Clippy, native builds and private rustdoc. Signing and four fixture suites pass
without warnings. Coherent corrected native validation remains required.
docs: Record controller isolation and real AP scheduler evidence
All checks were successful
CI / markdown (pull_request) Successful in 14s
CI / markdown (push) Successful in 15s
CI / test (pull_request) Successful in 2m38s
CI / test (push) Successful in 2m39s
ed8ba424bf
Record ten exact-source native executions satisfying eleven maintained
contracts, including four SMP profiles and ordinary service replacement.
Preserve all original markers, grants, cleanup and deadlines. The separately
retained original startup-silence failure remains unexplained and open.

Exact signed sources and normally stripped packaged artifacts verify with
no image warnings or QEMU stderr. Complete CI, private-root residency and
full external toolchain and EriX rebuilding inside EriX remain required.
ci: Skip duplicate same-repository pull request jobs
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / test (push) Successful in 2m23s
febcb6a207
Skip pull-request jobs when the head and base repository names match,
since push CI already covers these branches. Retain fork pull-request,
push and manual execution and existing release publication conditions.
Apply the guard before any job steps, including Markdown validation.

Test execution and CI observation are deferred at the user's request;
no execution result is claimed for this workflow-only change.
build: Adopt original-custody filesystem revisions
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 1h2m30s
CI / test (push) Failing after 1h2m31s
9c37acb183
Select complete signed native filesystem and compatibility dependencies by
immutable commit. Preserve original endpoints, rights, cleanup and resource
budgets throughout the coherent compilation graph.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
build: Adopt original key lifetime dependencies
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 8s
CI / test (push) Failing after 1h3m38s
2dca392da6
Select signed original key-material lifetime dependencies by immutable
commit. Preserve endpoints, grants, resource budgets and existing
duplicate same-repository PR conditions throughout the compilation graph.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
build: Adopt original ELF TLS revisions
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 8s
CI / test (push) Successful in 1m30s
d102203f51
Select original ELF TLS contracts through coherent immutable producer
dependencies. Preserve actual object authority, resource budgets and duplicate
same-repository PR guards throughout the compilation graph.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
build: Adopt selected original symbol provider revisions
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / test (push) Successful in 1m29s
95bfeffda6
Select original symbol provider contracts through coherent immutable producer
dependencies. Preserve actual object authority, resource budgets and duplicate
same-repository PR guards throughout the compilation graph.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
build: Adopt original initial-process TLS revisions
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / test (push) Successful in 2m11s
23d61d1294
Select original initial-process TLS contracts through coherent immutable producer
dependencies. Preserve actual object authority, resource budgets and duplicate
same-repository PR guards throughout the compilation graph.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
build: Adopt original TLS registry production revisions
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 2m4s
8a6b4fa705
Select original TLS registry production contracts through coherent immutable
dependencies. Preserve actual source, process and mapping authority, complete
caller/deployment budgets and duplicate same-repository PR guards.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
ci: Adopt the signed original Git dependency helper
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / test (push) Successful in 2m30s
1e673bad38
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
build: Adopt the signed TLS validation repairs
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 1m12s
dc175c5da7
Select the actual signed linker revision with independent image mutation and
packed-prefix refusal controls. Preserve immutable original Git identities,
all runtime authority and existing dependency geometry. Compiler and unit
validation continue in parallel; retain failures without inferring passes.
ci: Adopt the signed original Git dependency helper
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 7s
CI / test (push) Successful in 1m27s
02159c6cbd
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
docs: Describe component responsibilities and remaining work clearly
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 1m22s
8f1a9b4ca4
Replace generic repository descriptions with the component responsibilities
and caller obligations. Correct stale or duplicated wording while retaining
technical constraints, existing links and the documentation structure.
build: Align consumer inputs with the signed library graph
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 1m13s
f98473477a
Select the current actual library commits and preserve original Git
source identities. Keep the compiled Integration helper on its
independent reviewed revision so transitive ABI types agree.
ci: Select the reviewed native process custody helper
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / test (push) Failing after 19s
433a16bfde
Select the coherent Integration source for dependency preparation and
native process ownership. This keeps helper inputs aligned with the
published runtime producer and refuses unsupported descriptor queries
before starting a child.
fix: Keep profile deadlines in the original native alarm
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 1m21s
b2dfe005be
Bind the selected command owner's admitted alarm throughout profile builds and child retirement. Restore the original timer and action once, retain uncertain holders, and require the expiry fixture to prove its command actually launched.

Fixes the deadline conflict tracked in #7; complete profile CI remains required.
Author
Owner

The profile driver now keeps the original total deadline active through command admission and retirement, with explicit pending-alarm and uncertain-cleanup handling. Signed b2dfe005 fixes the deadline defect; its complete original workflow passes.

The profile driver now keeps the original total deadline active through command admission and retirement, with explicit pending-alarm and uncertain-cleanup handling. Signed `b2dfe005` fixes [the deadline defect](https://git.erikinkinen.fi/erix/bootloader/issues/7); its [complete original workflow](https://git.erikinkinen.fi/erix/bootloader/actions/runs/172) passes.
ci: Adopt the repaired native signal owner
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 2m37s
867c8edafe
Select the coherent Integration helper that admits observed default or
ignored reserved signals while preserving complete native action identity.
Keep the existing workflow commands and limits for Integration #118.
fix: Preserve complete named fixture paths
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / test (push) Successful in 2m22s
610f3f4f93
Parse early-service and blob lists through one explicit output array
boundary. Preserve newline bytes and later entries while retaining
complete file validation before tool preparation.

Refs #8
Author
Owner

Fixed #8 in 610f3f4f: early-service and blob lists now preserve complete paths through one explicit output array. File validation still finishes before tool preparation, and the documentation and regression fixtures cover the same input contract.

Fixed #8 in `610f3f4f`: early-service and blob lists now preserve complete paths through one explicit output array. File validation still finishes before tool preparation, and the documentation and regression fixtures cover the same input contract.
build: Bind UEFI checks to owned Cargo inputs
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 1h4m45s
CI / test (push) Failing after 1h4m47s
d888d9f482
Build the default UEFI profiles from checked source snapshots with generated
locks and the original commit epoch. Keep input inspection, native commands and
cleanup on the original total deadline.

Carry the selected workspace and target paths through the ordinary build.

Refs: erix/integration#142
ci: Select the repaired Cargo gateway
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 1h4m52s
CI / test (push) Failing after 1h4m53s
a780435323
Use the shared gateway that selects installed Rust tools when a component
has no toolchain file. Keep tool selection, feature-branch resolution and
original source checks together in the pinned helper snapshot.

Refs: erix/integration#147
ci: Use the shared acquisition fix for packed Git transfers
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / test (push) Successful in 2m43s
14f851ea07
Use the shared acquisition fix for packed Git transfers. The pinned helper
keeps unexpected object-store metadata outside the acquired source context.

Refs: erix/integration#150
Accept the complete ordinary Cargo producer selected by Integration,
preserve the original detached tool checkout, and consume its actual
root-bin build result. Keep standalone transport-only builds and all
existing GNU timeout duration modes. Refused ownership stops packaging.

This supplies the fixture side of erix/integration#172.
test: Check boot-tool verification at execution boundaries
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 1s
CI / test (push) Successful in 2m1s
508705ba42
The owned compiler selects its output path before the post-build source
check. Keep the source-order fixture tied to executable use and assert
the real shell trace for both compiler paths, including a refused
post-build check. Production behavior for erix/integration#172 is unchanged.
Author
Owner

508705ba supplies the selected boot-tool consumer contract and updates the fixture controls for its actual build/verification order. CI 184 passes. The packaging issue remains Integration #172; its actual image and guest criterion is still open.

`508705ba` supplies the selected boot-tool consumer contract and updates the fixture controls for its actual build/verification order. [CI 184](https://git.erikinkinen.fi/erix/bootloader/actions/runs/184) passes. The packaging issue remains [Integration #172](https://git.erikinkinen.fi/erix/integration/issues/172); its actual image and guest criterion is still open.
feat: Export the original owned boot-tool artifact receipt
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / test (push) Successful in 4m10s
fda4bb6a94
Forward an explicit artifact receipt request only through the complete source-bound producer and refuse unsupported requests before preparation. Preserve full selected paths through literal destination references, including terminal newline bytes, and keep ordinary fixture execution on its original route.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:33:34 +01:00
Author
Owner

The source changes are now split into #9, #14, #15, #16, #17, #18, #19, #20, #21.

Closing this aggregate PR unmerged as superseded. The replacements preserve all original implementation and documentation, with current CI source routing retained. Provider links and acceptance remain open in the WIP PRs. The original branch is retained for recovery and existing source references.

The source changes are now split into #9, #14, #15, #16, #17, #18, #19, #20, #21. Closing this aggregate PR unmerged as superseded. The replacements preserve all original implementation and documentation, with current CI source routing retained. Provider links and acceptance remain open in the WIP PRs. The original branch is retained for recovery and existing source references.
erikinkinen closed this pull request 2026-10-30 14:52:47 +01:00
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / test (push) Successful in 4m10s

Pull request closed

Sign in to join this conversation.
No description provided.