WIP: Retain original runtime-image sources in private roots #146

Draft
erikinkinen wants to merge 4 commits from feature/kernel-runtime-image-sources into feature/ap-supervisor-memory-policy
Owner

Summary and rationale

Retain the actual loaded Kernel and dependency allocations through private-root preparation and CPU occupations. Build fresh supervisor tables from exact segment pages instead of copying arbitrary supervisor leaves.

Tracking and scope

Addresses #143; builds on #144 and #141. Companion to LibHandoff #13, Bootloader #34 and the runtime-image contract and native source-lifetime manual. Native activation remains tracked by #123.

Architecture, authority and failure behavior

The original unsafe one-shot handover supplies the allocation group; descriptors, hashes, reservations and observed leaves cannot create it. Whole allocations remain occupied while only compatible segment-page unions are mapped. Each root retains actual source loans and the processor memory policy. The scratch window and xAPIC retain distinct original loans. File retirement preserves independently retained readers without adding Kernel aliases.

Framebuffer conversion fails closed while the original renderer owns its view; all-root and CPU withdrawal must precede that separate lifetime transfer.

Validation evidence

  • Add exact page-union, source consistency, policy attenuation and retirement rollback controls.
  • Compile minimal and SMP/runtime native profiles with warnings denied; strict host and native Clippy.
  • Complete the frozen public-provider workflow and current-head CI.
  • Demonstrate matching release images on one, two and four CPUs, including actual alias withdrawal and source lifetimes.

Review checklist

  • Signed commits, inline contracts, focused component documentation and files below 1,000 lines.
  • Complete coordinated native activation and framebuffer lifetime acceptance before removing WIP.
## Summary and rationale Retain the actual loaded Kernel and dependency allocations through private-root preparation and CPU occupations. Build fresh supervisor tables from exact segment pages instead of copying arbitrary supervisor leaves. ## Tracking and scope Addresses #143; builds on #144 and #141. Companion to [LibHandoff #13](https://git.erikinkinen.fi/erix/lib-handoff/pulls/13), [Bootloader #34](https://git.erikinkinen.fi/erix/bootloader/pulls/34) and [the runtime-image contract](https://git.erikinkinen.fi/erix/docs/pulls/100) and [native source-lifetime manual](https://git.erikinkinen.fi/erix/docs/pulls/102). Native activation remains tracked by #123. ## Architecture, authority and failure behavior The original unsafe one-shot handover supplies the allocation group; descriptors, hashes, reservations and observed leaves cannot create it. Whole allocations remain occupied while only compatible segment-page unions are mapped. Each root retains actual source loans and the processor memory policy. The scratch window and xAPIC retain distinct original loans. File retirement preserves independently retained readers without adding Kernel aliases. Framebuffer conversion fails closed while the original renderer owns its view; all-root and CPU withdrawal must precede that separate lifetime transfer. ## Validation evidence - [x] Add exact page-union, source consistency, policy attenuation and retirement rollback controls. - [x] Compile minimal and SMP/runtime native profiles with warnings denied; strict host and native Clippy. - [ ] Complete the frozen public-provider workflow and current-head CI. - [ ] Demonstrate matching release images on one, two and four CPUs, including actual alias withdrawal and source lifetimes. ## Review checklist - [x] Signed commits, inline contracts, focused component documentation and files below 1,000 lines. - [ ] Complete coordinated native activation and framebuffer lifetime acceptance before removing WIP.
feat: Retain original loaded image sources in private roots
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Has been cancelled
eee5008953
Bind the one-shot native allocation handover to exact supervisor templates, source-backed scratch and controller loans, and original processor memory policy. Keep boot-file aliases outside the Kernel template and preserve only independently retained readers during retirement. Framebuffer conversion and native activation remain closed until their lifetime obligations are satisfied.
erikinkinen added this to the Alpha 1 milestone 2026-11-13 17:21:14 +01:00
fix: Match counted Kernel catalog identities without name guesses
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Has been cancelled
56f534cf9f
Select the original executable through its verified Kernel source identity rather than an ASCII basename. Refuse unresolved identity ambiguity and exercise complete dependency membership, changed source bytes, altered segment policy and extra image refusal.
docs: Describe exact runtime-backed supervisor construction
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Has been cancelled
fbe2e29f20
Replace the old copied-leaf and assumed WriteBack descriptions with original loaded-allocation custody, source-backed table policy and the remaining native lifetime obligations.
fix: Recheck actual heap alias policy before table publication
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 8m36s
7e03367906
Validate the current effective heap leaf under retained table custody before deriving page-walk cache selectors. Original allocation identity and maximum metadata do not establish that the live alias still preserves cache, write and NX policy.
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 8m36s
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/kernel-runtime-image-sources:feature/kernel-runtime-image-sources'
git switch 'feature/kernel-runtime-image-sources'

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/ap-supervisor-memory-policy'
git merge --no-ff 'feature/kernel-runtime-image-sources'
git switch 'feature/kernel-runtime-image-sources'
git rebase 'feature/ap-supervisor-memory-policy'
git switch 'feature/ap-supervisor-memory-policy'
git merge --ff-only 'feature/kernel-runtime-image-sources'
git switch 'feature/kernel-runtime-image-sources'
git rebase 'feature/ap-supervisor-memory-policy'
git switch 'feature/ap-supervisor-memory-policy'
git merge --no-ff 'feature/kernel-runtime-image-sources'
git switch 'feature/ap-supervisor-memory-policy'
git merge --squash 'feature/kernel-runtime-image-sources'
git switch 'feature/ap-supervisor-memory-policy'
git merge --ff-only 'feature/kernel-runtime-image-sources'
git switch 'feature/ap-supervisor-memory-policy'
git merge 'feature/kernel-runtime-image-sources'
git push origin 'feature/ap-supervisor-memory-policy'
Sign in to join this conversation.
No description provided.