WIP: Retain original sources across native recipe phases #677

Draft
erikinkinen wants to merge 0 commits from feature/native-recipe-source-leases into feature/native-build-script-producers
Owner

Summary and rationale

Register original Cargo source leases before native recipe source conversion, and retain their actual producer, compilation owners and capturer records until the original compiler recipients retire.

Tracking and scope

Part of design #663, depending on #665.

  • Original Stage journal, source conversion, withdrawal and retirement dispatches.
  • Finite source controls and complete input-code inventory renewal.
  • Connected compiler-recipient integration and complete native/guest acceptance.

Architecture, authority and failure behavior

The original Stage registers an inert lease before source callbacks. Only its actual generated Cargo producer supplies CompilationInputs; paths and metadata do not construct owners. Typed slots protect original records, while the original Scope caller journal checks complete recipient coverage before withdrawal. Copies and repeated initialization refuse before owner callbacks. Partial and uncertain duties remain with their original owners, and saved failures do not become healthy reuse. The existing trusted-host source-tree contract and all resource bounds remain unchanged.

Validation evidence

At 6632c7c737e18ce7aaa1604557d786e3f9d61808, three genuine source/guard controls pass both as a suite and through the maintained separate 120-second callers. The existing ownership suite passes 127 tests; four Stage guards, syntax/oracle checks, Markdown and two complete helper-closure checks pass. The complete 414-module input selection is derived from immutable 7a25a07138c872b9f8add92a26a206f68993b119; the seven native-owner bodies and bootstrap remain unchanged.

The inline-documentation followup at b9a11dfafc1acf87053fc3a39de9c424328e6930 preserves the executable AST after stripping docstrings and renews the complete input inventory; unchanged source fixtures were not rerun. These controls do not execute a build script or target compiler. Complete input/CI and native graph, image and guest acceptance remain pending. Rust build/Clippy checks are inapplicable to this Python-only change; no performance claim is made.

Review checklist

  • Original implementation with signed commits and documented lifetime contracts.
  • Cohesive source files below 1,000 lines and maintained test enrollment.
  • No governance, native ABI or bootstrap change.
  • Required dependent compiler and complete native validation.
## Summary and rationale Register original Cargo source leases before native recipe source conversion, and retain their actual producer, compilation owners and capturer records until the original compiler recipients retire. ## Tracking and scope Part of [design #663](https://git.erikinkinen.fi/erix/integration/issues/663), depending on [#665](https://git.erikinkinen.fi/erix/integration/pulls/665). - [x] Original Stage journal, source conversion, withdrawal and retirement dispatches. - [x] Finite source controls and complete input-code inventory renewal. - [ ] Connected compiler-recipient integration and complete native/guest acceptance. ## Architecture, authority and failure behavior The original Stage registers an inert lease before source callbacks. Only its actual generated Cargo producer supplies CompilationInputs; paths and metadata do not construct owners. Typed slots protect original records, while the original Scope caller journal checks complete recipient coverage before withdrawal. Copies and repeated initialization refuse before owner callbacks. Partial and uncertain duties remain with their original owners, and saved failures do not become healthy reuse. The existing trusted-host source-tree contract and all resource bounds remain unchanged. ## Validation evidence At `6632c7c737e18ce7aaa1604557d786e3f9d61808`, three genuine source/guard controls pass both as a suite and through the maintained separate 120-second callers. The existing ownership suite passes 127 tests; four Stage guards, syntax/oracle checks, Markdown and two complete helper-closure checks pass. The complete 414-module input selection is derived from immutable `7a25a07138c872b9f8add92a26a206f68993b119`; the seven native-owner bodies and bootstrap remain unchanged. The inline-documentation followup at `b9a11dfafc1acf87053fc3a39de9c424328e6930` preserves the executable AST after stripping docstrings and renews the complete input inventory; unchanged source fixtures were not rerun. These controls do not execute a build script or target compiler. Complete input/CI and native graph, image and guest acceptance remain pending. Rust build/Clippy checks are inapplicable to this Python-only change; no performance claim is made. ## Review checklist - [x] Original implementation with signed commits and documented lifetime contracts. - [x] Cohesive source files below 1,000 lines and maintained test enrollment. - [x] No governance, native ABI or bootstrap change. - [ ] Required dependent compiler and complete native validation.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 13:17:12 +01:00
Retain graph-born Cargo source actors and their actual capturer records through the original compiler recipient journal. This source checkpoint precedes connected fixture and complete helper renewal.
Compose the original Stage journal, environment selection and caller output guards before testing the connected source lease. Preserve their defining ownership relationships and original limits.
Bind metadata conversion, original capturer slots and complete native Scope recipient coverage. Enroll real source controls and document retained failure semantics without claiming script, target or guest execution.
Retain the actual compilation participant roster before invoking its original fresh source checks. Keep the existing passive source counter and graph end rather than renewing native work.
Derive every selected body and mode from immutable dce8dc28, retaining the complete original seven-owner import closure rather than copying individual hash rows.
Authenticate immutable dce8dc28 bodies through declaration c0e35a6d before helper execution. Preserve the original bootstrap and seven native-owner bodies.
test: Isolate original recipe source controls on finite callers
Some checks failed
Markdown / markdown (push) Successful in 35s
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
Coreutils provider graph / coreutils (push) Failing after 4m12s
CI / native_sources (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
CI / rust (push) Has been cancelled
CI / cargo_publications (push) Has been cancelled
6632c7c737
Preserve all existing fixed cases and run each new source lease case on its own original 120-second caller. Retained uncertainty cannot be reused by a subsequent source birth in the same process; input-code bodies remain identical to dce8dc28.
Document constructor, roster, enrollment and structural cleanup boundaries inline. Executable AST is identical after stripping documentation strings; refresh the complete helper declaration for the actual changed bytes.
Select every actual body and mode from immutable 7a25a071 after its inline documentation update. Preserve complete closure and the unchanged original native-owner and bootstrap bodies.
build: Bind the documented recipe source code selection
Some checks failed
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
Markdown / markdown (push) Successful in 22s
Coreutils provider graph / coreutils (push) Failing after 3m17s
CI / rust (push) Failing after 4m24s
CI / native_sources (push) Has been skipped
CI / cargo_publications (push) Failing after 4m29s
CI / host_one (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
b9a11dfafc
Authenticate the actual 7a25a071 input bodies with complete declaration 7417e2fe. The documentation-only followup preserves the executable AST and all original source, caller and retirement controls.
Some checks failed
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
Markdown / markdown (push) Successful in 22s
Coreutils provider graph / coreutils (push) Failing after 3m17s
CI / rust (push) Failing after 4m24s
CI / native_sources (push) Has been skipped
CI / cargo_publications (push) Failing after 4m29s
CI / host_one (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
This pull request has changes conflicting with the target branch.
  • scripts/native_input_owner_cohort.py
  • scripts/run-owned-input.py
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-recipe-source-leases:feature/native-recipe-source-leases'
git switch 'feature/native-recipe-source-leases'

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-build-script-producers'
git merge --no-ff 'feature/native-recipe-source-leases'
git switch 'feature/native-recipe-source-leases'
git rebase 'feature/native-build-script-producers'
git switch 'feature/native-build-script-producers'
git merge --ff-only 'feature/native-recipe-source-leases'
git switch 'feature/native-recipe-source-leases'
git rebase 'feature/native-build-script-producers'
git switch 'feature/native-build-script-producers'
git merge --no-ff 'feature/native-recipe-source-leases'
git switch 'feature/native-build-script-producers'
git merge --squash 'feature/native-recipe-source-leases'
git switch 'feature/native-build-script-producers'
git merge --ff-only 'feature/native-recipe-source-leases'
git switch 'feature/native-build-script-producers'
git merge 'feature/native-recipe-source-leases'
git push origin 'feature/native-build-script-producers'
Sign in to join this conversation.
No description provided.