WIP: fix: Preserve original source export lifetimes #638

Draft
erikinkinen wants to merge 0 commits from fix/production-export-initialization into feature/owned-native-build-pipeline
Owner

Summary and rationale

Make source-export initialization once-only so an existing exporter keeps its original lifetime and records.

Tracking and scope

Related to #8 and #628. This change covers initialization and its regression controls; it does not complete production or guest self-hosting.

Architecture, authority and failure behavior

Reject repeated initialization before source admission or state changes. Retain the original source, pack and compiler journals, first failure and retirement state. Source formats and native interfaces are unchanged.

Validation evidence

  • Five genuine source/export and fresh-admission controls, including normal and packed sources, pass.
  • All 15 input-runner and five maintained syntax controls pass.
  • Exact-head CI.

Rust formatting and Clippy are inapplicable to this Python-only change. No new guest behavior is introduced.

Review checklist

  • Signed commits and inline lifetime documentation.
  • Complete helper inventory and all input-runner bindings renewed.
  • Changed code files remain below 1,000 lines.
## Summary and rationale Make source-export initialization once-only so an existing exporter keeps its original lifetime and records. ## Tracking and scope Related to #8 and #628. This change covers initialization and its regression controls; it does not complete production or guest self-hosting. ## Architecture, authority and failure behavior Reject repeated initialization before source admission or state changes. Retain the original source, pack and compiler journals, first failure and retirement state. Source formats and native interfaces are unchanged. ## Validation evidence - [x] Five genuine source/export and fresh-admission controls, including normal and packed sources, pass. - [x] All 15 input-runner and five maintained syntax controls pass. - [ ] Exact-head CI. Rust formatting and Clippy are inapplicable to this Python-only change. No new guest behavior is introduced. ## Review checklist - [x] Signed commits and inline lifetime documentation. - [x] Complete helper inventory and all input-runner bindings renewed. - [x] Changed code files remain below 1,000 lines.
Make exporter initialization once-only before source admission and preserve its original journals, failure record and retirement state. Exercise the boundary through genuine source export and fresh admission.
Bind all selected helper bodies to the immutable exporter source revision before renewing the original input runners.
build: Bind input runners to the source export declaration
Some checks failed
Markdown / markdown (push) Successful in 20s
CI / rust (pull_request) Has been skipped
CI / native_sources (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) Failing after 2m11s
CI / native_sources (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m30s
eebf09d4d6
Authenticate the complete helper declaration and immutable source for each original input runner.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 01:36:26 +01:00
Some checks failed
Markdown / markdown (push) Successful in 20s
CI / rust (pull_request) Has been skipped
CI / native_sources (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) Failing after 2m11s
CI / native_sources (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m30s
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 'fix/production-export-initialization:fix/production-export-initialization'
git switch 'fix/production-export-initialization'

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/owned-native-build-pipeline'
git merge --no-ff 'fix/production-export-initialization'
git switch 'fix/production-export-initialization'
git rebase 'feature/owned-native-build-pipeline'
git switch 'feature/owned-native-build-pipeline'
git merge --ff-only 'fix/production-export-initialization'
git switch 'fix/production-export-initialization'
git rebase 'feature/owned-native-build-pipeline'
git switch 'feature/owned-native-build-pipeline'
git merge --no-ff 'fix/production-export-initialization'
git switch 'feature/owned-native-build-pipeline'
git merge --squash 'fix/production-export-initialization'
git switch 'feature/owned-native-build-pipeline'
git merge --ff-only 'fix/production-export-initialization'
git switch 'feature/owned-native-build-pipeline'
git merge 'fix/production-export-initialization'
git push origin 'feature/owned-native-build-pipeline'
Sign in to join this conversation.
No description provided.