WIP: Materialize native link inputs in one owned batch #541

Draft
erikinkinen wants to merge 6 commits from feature/native-graph-input-materialization into feature/native-graph-allocation-runtime
Owner

Creating every generated input separately rescans the retained build trees before each write. Plan the complete input files and metadata directories first, then reserve and materialize them once under the original pending link stage. Fresh whole-graph censuses bracket the batch; cached retained totals never replace admission checks. The reserved row tuple and byte extent remain fixed, and replacing the original plan is refused before writes.

Keep original source, compiler, archive and created-file descriptors alive. Reject unplanned writes, native calls, changed passive roots and replaced input occupations, with sticky first errors and independent cleanup failures. All catalog roles and actions remain unchanged.

Builds on allocation runtime contracts and supports Phase 6 completion.

  • Implement the complete finite input plan, original descriptor lifetime and fresh census boundaries.
  • Complete the real original-source final-link control and passive-root growth/restoration refusal.
  • Complete frozen-plan, caught-error borrowing, original-source, namespace, unplanned-write and native-call fault controls.
  • Complete the fresh full artifact graph and current-head CI.

The original-source controls use actual Git/Cargo/Cstd producers on the host. They do not establish image packaging, guest acceptance or a build inside EriX.

Creating every generated input separately rescans the retained build trees before each write. Plan the complete input files and metadata directories first, then reserve and materialize them once under the original pending link stage. Fresh whole-graph censuses bracket the batch; cached retained totals never replace admission checks. The reserved row tuple and byte extent remain fixed, and replacing the original plan is refused before writes. Keep original source, compiler, archive and created-file descriptors alive. Reject unplanned writes, native calls, changed passive roots and replaced input occupations, with sticky first errors and independent cleanup failures. All catalog roles and actions remain unchanged. Builds on [allocation runtime contracts](https://git.erikinkinen.fi/erix/integration/pulls/539) and supports [Phase 6 completion](https://git.erikinkinen.fi/erix/integration/issues/65). - [x] Implement the complete finite input plan, original descriptor lifetime and fresh census boundaries. - [x] Complete the real original-source final-link control and passive-root growth/restoration refusal. - [x] Complete frozen-plan, caught-error borrowing, original-source, namespace, unplanned-write and native-call fault controls. - [ ] Complete the fresh full artifact graph and current-head CI. The original-source controls use actual Git/Cargo/Cstd producers on the host. They do not establish image packaging, guest acceptance or a build inside EriX.
erikinkinen added this to the Alpha 1 milestone 2026-11-07 21:19:29 +01:00
Plan every input body and metadata directory before host writes, reserve their complete extent with fresh graph censuses, and retain the original created descriptors through final source checks. Keep native calls and unplanned effects outside the batch while preserving original failure and cleanup duties.
Reject missing parents, duplicate paths and mutable bodies before materialization. Keep original-producer fault controls and operator documentation alongside the finite batch so unplanned effects, external growth and restored source failures remain explicit refusal boundaries.
test: Require the selected original materialization fault
Some checks failed
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
CI / rust (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
2aa8db6c68
Distinguish deliberate write/native refusals and actual source or namespace mutation from unrelated budget or setup errors before recording an original-producer fault result.
fix: Refuse input borrowing after original batch failure
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 / 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
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
f967835696
Lend an actual created input only during its current planned write interval and preserve the exact first refusal. Require the original graph producer before directory creation so caught failures cannot resume ordinary filesystem effects after the batch closes.
fix: Freeze the exact native input effect at reservation
Some checks failed
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
CI / rust (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
2eb144f202
Use one immutable row tuple and read-only byte extent for reservation, writes and topology checks. Refuse changed original plan registrations before effects and preserve that cause after restoration; compare passive roots against each fresh actual local census even when a batch stops before all planned writes.
Author
Owner

Input batching now preserves its admitted extent and original file lifetime through source and consumer failures. The real original-source final-link control and the fault controls pass. The complete artifact graph and current-head CI remain pending.

Input batching now preserves its admitted extent and original file lifetime through source and consumer failures. The real original-source final-link control and the fault controls pass. The complete artifact graph and current-head CI remain pending.
fix: Retain standalone Kernel compiler and allocation policy
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 / 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
Markdown / markdown (push) Failing after 11s
Coreutils provider graph / coreutils (push) Successful in 4m18s
CI / rust (push) Successful in 7m23s
CI / host_one (push) Failing after 17m20s
CI / host_three (push) Failing after 16m46s
CI / host_zero (push) Failing after 23m37s
CI / host_two (push) Failing after 23m15s
CI / integration (push) Has been skipped
346e144e7f
Check real unresolved-symbol observations against the selected dynamic exports.
Bind allocation adapters to the original completed root compiler invocations
and held liballoc archive, preserving custom handlers and refusing unsupported
contracts instead of introducing a synthetic privileged failure handler.
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 / 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
Markdown / markdown (push) Failing after 11s
Coreutils provider graph / coreutils (push) Successful in 4m18s
CI / rust (push) Successful in 7m23s
CI / host_one (push) Failing after 17m20s
CI / host_three (push) Failing after 16m46s
CI / host_zero (push) Failing after 23m37s
CI / host_two (push) Failing after 23m15s
CI / integration (push) Has been skipped
This pull request has changes conflicting with the target branch.
  • scripts/check-python-host-syntax.sh
  • tests/dynlink_process_heap_test.py
  • tests/fixtures/python-host-syntax-commands.json
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

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-graph-allocation-runtime'
git merge --no-ff 'feature/native-graph-input-materialization'
git switch 'feature/native-graph-input-materialization'
git rebase 'feature/native-graph-allocation-runtime'
git switch 'feature/native-graph-allocation-runtime'
git merge --ff-only 'feature/native-graph-input-materialization'
git switch 'feature/native-graph-input-materialization'
git rebase 'feature/native-graph-allocation-runtime'
git switch 'feature/native-graph-allocation-runtime'
git merge --no-ff 'feature/native-graph-input-materialization'
git switch 'feature/native-graph-allocation-runtime'
git merge --squash 'feature/native-graph-input-materialization'
git switch 'feature/native-graph-allocation-runtime'
git merge --ff-only 'feature/native-graph-input-materialization'
git switch 'feature/native-graph-allocation-runtime'
git merge 'feature/native-graph-input-materialization'
git push origin 'feature/native-graph-allocation-runtime'
Sign in to join this conversation.
No description provided.