WIP: Build the native C and Rust process heap client #353

Draft
erikinkinen wants to merge 24 commits from feature/native-process-heap-runtime into feature/dynamic-metadata-page-permissions
Owner

Add a process heap client whose C and Rust allocations share one allocator provider. Keep heap and stack ranges independently sized, and retain source inputs, selected tools and child processes through capacity installation and atomic artifact publication.

A complete standalone catalog and six matching executable records select this cohort separately from the global OS image. The fixture preserves existing factory, thread and retirement checks.

  • Build and inspect the native heap artifact on the host
  • Preserve the first source error and independent cleanup failures
  • Keep search-only and terminal-control rights outside byte authority through Posixd #148
  • Compose capture progress, compiler coordinates and metadata page permissions
  • Demonstrate the guest workload and complete release-image acceptance
  • Complete global source-cohort adoption and the signal-restoration gate
  • Build EriX and its required Rust/LLVM toolchain inside EriX

The successful host operation ran at b51842ca. The later CI changes preserve all defining helper bodies and recorded producer inputs; they have not been represented as another native build.

Builds on #349. Allocation contract: LibCstd #8.

Add a process heap client whose C and Rust allocations share one allocator provider. Keep heap and stack ranges independently sized, and retain source inputs, selected tools and child processes through capacity installation and atomic artifact publication. A complete standalone catalog and six matching executable records select this cohort separately from the global OS image. The fixture preserves existing factory, thread and retirement checks. - [x] Build and inspect the native heap artifact on the host - [x] Preserve the first source error and independent cleanup failures - [x] Keep search-only and terminal-control rights outside byte authority through [Posixd #148](https://git.erikinkinen.fi/erix/posixd/pulls/148) - [x] Compose [capture progress](https://git.erikinkinen.fi/erix/integration/pulls/344), [compiler coordinates](https://git.erikinkinen.fi/erix/integration/pulls/345) and [metadata page permissions](https://git.erikinkinen.fi/erix/integration/pulls/349) - [ ] Demonstrate the guest workload and complete release-image acceptance - [ ] Complete global source-cohort adoption and the signal-restoration gate - [ ] Build EriX and its required Rust/LLVM toolchain inside EriX The successful host operation ran at `b51842ca`. The later CI changes preserve all defining helper bodies and recorded producer inputs; they have not been represented as another native build. Builds on [#349](https://git.erikinkinen.fi/erix/integration/pulls/349). Allocation contract: [LibCstd #8](https://git.erikinkinen.fi/erix/lib-cstd/issues/8).
erikinkinen added this to the Alpha 1 milestone 2026-11-05 23:54:13 +01:00
Retain the complete current provider and capture source cohort before implementing the original process heap route, without legacy capture overrides or reconstructed native ownership.
Use the existing shared coordinate implementation for the native heap source route without restoring missing legacy compiler helpers.
Retain the original source graph, selected tools, capture budgets and native child owners while producing one process-root C and Rust heap companion. Keep heap geometry, source cache descriptions and artifact metadata separate from mapping or execution authority.
Compare complete literal checkout bytes with the retained original package graph and the maintained cache description. Register only the catalog owner metadata occupation, retain its exact identity and recheck the source descriptions after compilation before publication.
Select the complete immutable helper cohort containing explicit heap feature resolution while retaining the existing six native owner bodies. Helper identities select reviewed code; actual original source and child owners still establish their own custody.
Record existing material, progress and capture counters at meaningful producer boundaries without changing allowances or deadlines. Preserve the first failure if recording the final diagnostic snapshot also fails.
Treat the checkout root as a catalog container and check each actual selected provider instead. Reject operation and artifact overlap before creating generated directories, while permitting disjoint outputs alongside the selected repositories.
Keep the completed package binding repository root distinct from its nested package manifest. Compile the selected heap-provider body and read its actual declaration through that registered relative role.
Keep the required native heap providers and all six matching Posixd executable declarations in an explicit source and record selection. Preserve the global OS catalog while full-image consumer adoption remains separate.
Document the complete provider and executable-record inputs, cumulative caller budgets and disjoint output requirements. Keep standalone artifact production distinct from adoption by the complete release image.
Require a literal caller-selected compiler resource directory and pass it to both Clang operations with default configuration disabled. Retain its headers as original build inputs instead of using compiler output to discover or resolve another filesystem route.
Give the retained checkout exclusion its own name so it cannot shadow the artifact metadata producer. Import shared scope helpers from their defining module and remove unused imports left by the thematic owner split.
Retain the complete independently reviewed linker layout and page-admission prerequisite before producing the native heap artifact.
Retain the actually loaded dependency, linker and artifact encoders before hashing the descriptive companion inputs. Record those input roles alongside existing diagnostics so the identity can be inspected without treating records as source or native custody.
Accept SHF_GNU_RETAIN on the original allocated writable NOBITS reservations. Keep executable, TLS and other unsupported section flags forbidden, and retain all LOAD permission, range and preinstallation checks.
Document why literal cache inputs retain their original metadata occupation and why capture settlement precedes descriptive accounting and warning inspection.
Retain the original source comparison failure when independent directory retirement also fails. Keep close-only failures primary, record cleanup uncertainty with the actual owner and preserve the first controller failure through the outer build boundary.
Retain the published metadata-layout prerequisite and its host Clang setup and syntax inventory repair without changing the successful native heap producer inputs.
ci: Retain heap syntax inputs in the independent host inventory
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 13s
CI / rust (push) Failing after 1m40s
CI / host_one (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
7d69ab1145
Declare the new heap producer, geometry helpers and controls in the expected ordered syntax command list while preserving the separately composed metadata page checks.
test: Select scenario parser siblings in direct controls
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / rust (push) Failing after 1m5s
CI / host_one (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
4ae0a75168
Load the maintained parser policy modules explicitly when the configured-client test runs as its own process. This keeps direct CI invocation independent of import paths established by earlier test cases.
test: Select policy siblings across scenario fixtures
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / rust (push) Failing after 1m50s
CI / host_one (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
61c211a710
Load maintained parser policies explicitly in every direct realm fixture instead of depending on imports performed by an earlier test.
test: Reset every initial shell fixture selector
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 11s
CI / rust (push) Failing after 2m27s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
e0f8143279
Clear independent realm, heap, thread and Boot selections between policy cases. Keep all existing positive combinations and exact negative diagnostics.

Refs: #361
ci: Use shared development dependency profiles
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / integration (push) Has been cancelled
CI / markdown (push) Has been cancelled
c27a140473
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
ci: Use shared development dependency profiles
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / rust (push) Failing after 2m23s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
ef269bf506
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / rust (push) Failing after 2m23s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

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

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/dynamic-metadata-page-permissions'
git merge --no-ff 'feature/native-process-heap-runtime'
git switch 'feature/native-process-heap-runtime'
git rebase 'feature/dynamic-metadata-page-permissions'
git switch 'feature/dynamic-metadata-page-permissions'
git merge --ff-only 'feature/native-process-heap-runtime'
git switch 'feature/native-process-heap-runtime'
git rebase 'feature/dynamic-metadata-page-permissions'
git switch 'feature/dynamic-metadata-page-permissions'
git merge --no-ff 'feature/native-process-heap-runtime'
git switch 'feature/dynamic-metadata-page-permissions'
git merge --squash 'feature/native-process-heap-runtime'
git switch 'feature/dynamic-metadata-page-permissions'
git merge --ff-only 'feature/native-process-heap-runtime'
git switch 'feature/dynamic-metadata-page-permissions'
git merge 'feature/native-process-heap-runtime'
git push origin 'feature/dynamic-metadata-page-permissions'
Sign in to join this conversation.
No description provided.