[WIP] Retain original runtime and compiler unit source loans #688

Draft
erikinkinen wants to merge 52 commits from feature/native-recipe-external-inputs into feature/native-recipe-root-units
Owner

Recipe source leases now retain actual runtime-query, build-script and compiler-output receivers across later compiler use. Original Scope loans are registered before body checks, with separate source withdrawal duties and complete original compiler-receiver coverage.

  • Genuine runtime query, readonly compiler caller, protected-record and retirement controls.
  • Preserve modern Cargo warning policy and original output naming.
  • Complete mixed replay preparation within the original bounds and qualify actual recipe/ELF/EFI consumers.

Initial host source/tool trust remains explicit; target compiler confinement remains separate.

Part of #663, building on #682, #683 and #684.

Recipe source leases now retain actual runtime-query, build-script and compiler-output receivers across later compiler use. Original Scope loans are registered before body checks, with separate source withdrawal duties and complete original compiler-receiver coverage. - [x] Genuine runtime query, readonly compiler caller, protected-record and retirement controls. - [x] Preserve modern Cargo warning policy and original output naming. - [ ] Complete mixed replay preparation within the original bounds and qualify actual recipe/ELF/EFI consumers. Initial host source/tool trust remains explicit; target compiler confinement remains separate. Part of #663, building on #682, #683 and #684.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 17:39:34 +01:00
Preserve both pre-cleanup withdrawal guards, all original per-case controls and the ordered syntax union. Regenerate the complete actual helper graph while retaining input declarations only until the final typed-loan source freeze.
Register closed runtime and whole recipe dependency bindings before callbacks, loan original source/native/query Scopes, then retain actual completed compiler output captures. Keep observed-unit inputs explicitly unsupported until their defining original Scope registration exists; do not synthesize Cargo provenance.
Use real original Git/Cargo preparation, compiler target-directory queries and retained runtime descriptors. Enroll exact fresh-case controls for positive retirement, copied runtime refusal and sticky binding loss without fabricating compiler units or changing native limits.
Derive every actual selected helper body and mode from immutable source631d005e before genuine runtime-loan controls.
Bind original code, complete declaration and exact literal geometry before any runtime fixture native receiver birth.
Use the genuine Procd recipe source fixture and preselect its original128MiB target-file allowance before source birth. Positively retire the empty recipe native phase before the separate real runtime query; keep all original clocks and ownership assertions.
Compose the defining EFI issuer ordering correction so original runtime and root Scopes are retained before any root, destination or saved-link observations.
Reject repeated fixed journal initialization before changing fields, preserving original live source loans and file proofs. Extend the genuine runtime case to prove original healthy registration remains intact.
Raise the original retained error before any repeated binding attempt and document exact runtime and recipe owner contracts with the observed-unit prerequisite still explicit.
Check the original defining source counter during dependency planning and ordinary runtime/file proof loops, without adding native work or changing structural retirement checks.
Use the maintained build_cargo_locks CargoInputBudget class for the fixed source-work check; the new helper does not define or adopt another budget owner.
Derive the entire429-provider source graph from immutable sourced6fe94cf after once-only journal, original-first and same-counter checks.
Select the complete actual immutable code and declaration with exact geometry before changed-source runtime-loan controls.
Register actual source and planned native scopes before compiler-stage effects, retain original unit and dependency actors at production, and expose structural scope accessors before consumer source loans.
Regenerate the complete reachable helper declaration for original observed unit registrations.
Bind the complete observed-unit source graph and declaration in the defining runner.
Share the genuine source fixture before recipe Scope birth so runtime queries precede the compiler phase. Add a real readonly Rustc caller using original CFI grants and prove runtime source withdrawal remains blocked until that same lease retires; original query/native bounds stay unchanged.
Apply the structural stage guard to a registration batch and the unit guard to its actual produced units before their existing body checks.
Regenerate the complete helper declaration for stage and unit admission guards.
Bind the complete original batch source and declaration revisions.
Compose the actual qualified compiler/replay original Scope, basis and immutable dependency registrations. Only generated metadata conflicted; recompute the whole430 helper graph and renew final input selection after the typed adapter is complete.
Keep the cleanup lane on the actual constructor-held scope and retain selector failures without invoking foreign cleanup callbacks.
Regenerate the complete source declaration for observed stage cleanup.
Bind the complete original cleanup source and declaration revisions.
Compose verified public715 source, preserve both pre-cleanup guards and every fixed per-case control, and retain the exact ordered syntax union without duplicate rows. Recompute the complete actual helper graph before final declaration renewal.
Keep runtime registration controls on their actual defining compilation row and remove the later duplicate row introduced by source feature composition. Preserve every original input and exact order; do not generate expectations from execution.
Bind original file vectors at completed production and preregister replay file receivers before descriptor access. Validate the original phase roster before file callbacks and enroll the genuine lifecycle controls in the maintained finite runner.
Regenerate the complete source graph for immutable observed output bindings.
Bind the complete output-origin source and declaration revisions.
Keep a completed file vector independently of the public and private phase rosters so erasing both cannot conceal retained output actors before body callbacks.
Regenerate the complete source declaration for completed replay roster custody.
Bind the complete completed-roster source and declaration revisions.
docs: Describe original observed unit scope and output loans
Some checks failed
Markdown / markdown (push) Successful in 23s
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 4m37s
CI / rust (push) Failing after 5m0s
CI / native_sources (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 / host_one (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m46s
d87527d847
Document structural producer accessors, completed file roster custody and cleanup through original native scopes.
Add the exact completed script call family, preregister original host/source Scope loans before checked arguments, and retain actual script products and host runtime captures. Require the same executable use and native forest at structural retirement; directive data creates no owner.
Compose qualifiedd875 original unit/phase output vectors and original-scope cleanup. Preserve every finite case and independent ordered syntax row, then recompute the complete433 helper closure before final typed adapter binding.
Use the public defining Scope, basis, dependency and output origins before body callbacks, then retain actual completion, observation and file capturers. Preserve explicit unbound runtime choices for custody only; final-link runtime requirements remain independent and unchanged.
Select genuine freestanding Procd source before graph birth, bind real runtime query inputs before Cargo compilation and fresh replay, then retain actual output receivers through the same original source lease. Preserve original graph/native/caller bounds and final runtime requirements.
Derive all433 actual providers from immutable source814f3aa8 including qualified observed output origins, script/native lifetime bindings and unchanged original native-owner bodies.
Select actual immutable code and declaration geometry before genuine mixed compiler/replay source custody control.
Select the maintained32MiB/4096 native output contract before any source or compiler birth. The source-only fixture previously omitted the required entry allowance and correctly refused before compiler execution; no live budget or clock is changed.
Retain only the exact recorded --force-warn=unused_crate_dependencies option in the closed native replay projection. The genuine modern Cargo fixture asserts both original observation and projected argument before fresh actual replay; all other option/source/dependency guards remain strict.
Derive all433 original selected bodies and modes from immutable source3316ba86 after the exact modern Cargo warning-policy preservation fix.
Bind actual immutable source and complete declaration geometry before the changed genuine mixed compiler/replay control.
Modern Cargo can omit extra-filename when it selects a private output directory. Preserve the original empty suffix rather than inventing one, still reject duplicate explicit fields, and compare the genuine original metadata filename before replay.
Derive the entire433-provider source graph from immutable source960f4dfa after preserving the actual omitted filename suffix semantics.
Bind actual original source and declaration geometry before the changed genuine mixed compiler and replay operation.
Binary units retain their actual code objects rather than a library dependency metadata receiver. Qualify absent suffix naming against those original file duties; retain metadata_file strictness and do not adopt an on-disk metadata path as an owner.
Derive an immutable identity index from the same strong original capture roster. Later temporary records remain core-owned; protected-record and whole-owner withdrawal still prove original captures and actual lease retirement, with complete ordinary PRE/POST checks unchanged.
Exercise actual held source captures: original records and whole owner refuse while live, immutable identity index rejects changes, later real fresh directory views retire, and complete lease proof plus original physical cleanup still pass.
Derive all433 selected original bodies and modes from immutable source47793fe2 before physical protected-record and temporary-view controls.
Bind actual code and complete declaration geometry before the same bounded original source-record retirement control.
docs: describe actual typed source loan boundaries and remaining gates
Some checks failed
Markdown / markdown (push) Failing after 28s
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 5m30s
CI / rust (push) Failing after 5m36s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 6m4s
eabcdcc997
Document the composed observed origins and original script native receiver contract while retaining mixed preparation and recipe/ELF/EFI acceptance as explicit open gates. Include the fixed script adapter in foreign-self refusal coverage.
Some checks failed
Markdown / markdown (push) Failing after 28s
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 5m30s
CI / rust (push) Failing after 5m36s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 6m4s
This pull request has changes conflicting with the target branch.
  • 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-recipe-external-inputs:feature/native-recipe-external-inputs'
git switch 'feature/native-recipe-external-inputs'

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-recipe-root-units'
git merge --no-ff 'feature/native-recipe-external-inputs'
git switch 'feature/native-recipe-external-inputs'
git rebase 'feature/native-recipe-root-units'
git switch 'feature/native-recipe-root-units'
git merge --ff-only 'feature/native-recipe-external-inputs'
git switch 'feature/native-recipe-external-inputs'
git rebase 'feature/native-recipe-root-units'
git switch 'feature/native-recipe-root-units'
git merge --no-ff 'feature/native-recipe-external-inputs'
git switch 'feature/native-recipe-root-units'
git merge --squash 'feature/native-recipe-external-inputs'
git switch 'feature/native-recipe-root-units'
git merge --ff-only 'feature/native-recipe-external-inputs'
git switch 'feature/native-recipe-root-units'
git merge 'feature/native-recipe-external-inputs'
git push origin 'feature/native-recipe-root-units'
Sign in to join this conversation.
No description provided.