WIP: Preserve original compiler receiver lifetimes #668

Draft
erikinkinen wants to merge 0 commits from fix/compiler-input-receiver-birth into feature/source-input-offline-execution
Owner

Summary and rationale

Keep compiler output, generated-file, ordinary-file and host-tool receivers bound to their original once-only births. File and tool retirement uses their original captured resources and settled compiler-consumer journals, while failed receivers remain unavailable for ordinary admission.

Tracking and scope

Depends on #662. This is a source-lifetime follow-up for the retained compiler pipeline. Native compiler, complete graph and guest acceptance remain pending.

Architecture, authority and failure behavior

The defining Scope and actual file/source registrations remain authoritative. Closing-only observations retain original captures, require original consumer retirement and preserve the raw first failure plus independent cleanup observations. They do not admit a new source, compiler or caller, or change deadlines and resource limits. Borrowed shared-source selector loss remains conservatively retained until original process fail-stop/disposal. The seven native-owner bodies and bootstrap are unchanged.

Validation evidence

  • 19 genuine Scope/FD receiver controls and 49 existing compiler-input controls
  • Complete Python syntax traversal and independent syntax tests
  • Complete 411-module source/helper cohort and documentation checks
  • Complete original input-owner regression gate: 14/15 pass; one existing readiness assertion remains pending. Earlier full-gate success is retained separately.
  • Full native compiler, graph, image and guest acceptance

Rust/ABI implementation is unchanged. The source controls establish receiver behavior; they do not establish compiler execution provenance or target confinement.

## Summary and rationale Keep compiler output, generated-file, ordinary-file and host-tool receivers bound to their original once-only births. File and tool retirement uses their original captured resources and settled compiler-consumer journals, while failed receivers remain unavailable for ordinary admission. ## Tracking and scope Depends on [#662](https://git.erikinkinen.fi/erix/integration/pulls/662). This is a source-lifetime follow-up for the retained compiler pipeline. Native compiler, complete graph and guest acceptance remain pending. ## Architecture, authority and failure behavior The defining Scope and actual file/source registrations remain authoritative. Closing-only observations retain original captures, require original consumer retirement and preserve the raw first failure plus independent cleanup observations. They do not admit a new source, compiler or caller, or change deadlines and resource limits. Borrowed shared-source selector loss remains conservatively retained until original process fail-stop/disposal. The seven native-owner bodies and bootstrap are unchanged. ## Validation evidence - [x] 19 genuine Scope/FD receiver controls and 49 existing compiler-input controls - [x] Complete Python syntax traversal and independent syntax tests - [x] Complete 411-module source/helper cohort and documentation checks - [ ] Complete original input-owner regression gate: 14/15 pass; one existing readiness assertion remains pending. Earlier full-gate success is retained separately. - [ ] Full native compiler, graph, image and guest acceptance Rust/ABI implementation is unchanged. The source controls establish receiver behavior; they do not establish compiler execution provenance or target confinement.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 11:22:49 +01:00
Bind compiler file, tool, generated writer and output admission to once-only original receivers. Retain original capture and consumer journals for closing-only observations while keeping ordinary failed-source reuse refused.
Derive every selected defining module and literal extent from immutable e835c4fa, retaining the full 411-module closure and unchanged native-owner and bootstrap bodies.
Authenticate the complete derived declaration and its actual immutable defining source tree before input execution, preserving all existing source admission checks and native-owner selections.
Retain the defining Scope caller journal independently of receiver views and require every registered consumer to remain covered before retirement callbacks or source disposal. Missing enrollment remains a sticky refusal while original owned cleanup still drains positively settled captures.
Recompute all 411 selected defining modules from immutable e4f9d74c after the original caller enrollment guard, preserving the complete helper and native-owner closure.
Authenticate the full immutable defining code and derived declaration after original caller enrollment validation, retaining the existing bootstrap and native-owner contracts.
docs: Qualify shared compiler source retention
Some checks failed
Markdown / markdown (push) Successful in 22s
CI / cargo_publications (pull_request) Has been skipped
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 / cargo_publications (push) Failing after 4m54s
CI / rust (push) Failing after 4m56s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m48s
ca8ad1d5e2
Keep borrowed CompilationTree selector-loss disposal distinct from original owned-capture cleanup and avoid implying healthy shared-source retirement or reuse.
Some checks failed
Markdown / markdown (push) Successful in 22s
CI / cargo_publications (pull_request) Has been skipped
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 / cargo_publications (push) Failing after 4m54s
CI / rust (push) Failing after 4m56s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m48s
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/compiler-input-receiver-birth:fix/compiler-input-receiver-birth'
git switch 'fix/compiler-input-receiver-birth'

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/source-input-offline-execution'
git merge --no-ff 'fix/compiler-input-receiver-birth'
git switch 'fix/compiler-input-receiver-birth'
git rebase 'feature/source-input-offline-execution'
git switch 'feature/source-input-offline-execution'
git merge --ff-only 'fix/compiler-input-receiver-birth'
git switch 'fix/compiler-input-receiver-birth'
git rebase 'feature/source-input-offline-execution'
git switch 'feature/source-input-offline-execution'
git merge --no-ff 'fix/compiler-input-receiver-birth'
git switch 'feature/source-input-offline-execution'
git merge --squash 'fix/compiler-input-receiver-birth'
git switch 'feature/source-input-offline-execution'
git merge --ff-only 'fix/compiler-input-receiver-birth'
git switch 'feature/source-input-offline-execution'
git merge 'fix/compiler-input-receiver-birth'
git push origin 'feature/source-input-offline-execution'
Sign in to join this conversation.
No description provided.