[WIP] Retain external compiler source Scope borrowers #682

Draft
erikinkinen wants to merge 0 commits from feature/external-source-scope-withdrawal into feature/native-build-script-producers
Owner

External compiler leases now register on a separate original Scope journal before source capture. Scope withdrawal checks the complete original borrower and compiler-receiver rosters before starting cleanup; owned input intervals retain their existing lifetime contract.

  • Original graph-source lease, partial admission, retirement and roster controls.
  • Complete recipe linker and EFI consumer acceptance.

Initial host source/tool trust remains explicit. This does not implement target compiler confinement.

Part of #663; complements #677 and #679.

External compiler leases now register on a separate original Scope journal before source capture. Scope withdrawal checks the complete original borrower and compiler-receiver rosters before starting cleanup; owned input intervals retain their existing lifetime contract. - [x] Original graph-source lease, partial admission, retirement and roster controls. - [ ] Complete recipe linker and EFI consumer acceptance. Initial host source/tool trust remains explicit. This does not implement target compiler confinement. Part of #663; complements #677 and #679.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 15:41:31 +01:00
Register actual Scope, capture, directory and file births before runtime effects. Refuse copied receivers and repeated initialization before callbacks, and retire the original Scope after public selector loss. This source checkpoint precedes focused controls and complete input-code renewal.
Compose the actual current native recipe source and CFI integration before enrolling runtime registration controls. Preserve every existing finite runner case and original ownership contract.
Preserve actual Scope, capture, directory, census and file rosters before callbacks or effects. Enroll genuine copy, reinitialization, substituted-owner and partial-open controls on the maintained finite caller route without changing query roles, clocks or source bounds.
Derive every selected body and mode from immutable 46a85273, preserving the complete original native-owner import graph before genuine runtime controls.
Authenticate the complete 46a85273 body selection and its actual declaration before native runtime controls. Preserve the seven native-owner and bootstrap bodies.
Latch the actual original failure before subsequent source or tool checks can fail, preserving poisoned-owner and work guards. Add a genuine partial metadata-read and independent postcheck control; incomplete pure Scope construction cannot receive cleanup callbacks.
Derive all 415 defining modules from immutable fd4bf6ba, preserving actual source modes and complete imports before the compound failure control.
Authenticate the complete fd4bf6ba body inventory and original declaration before its actual controls; keep the original native-owner and bootstrap bodies unchanged.
test: Observe runtime postchecks through actual defining methods
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 / rust (push) Failing after 5m20s
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
CI / cargo_publications (push) Failing after 5m26s
Coreutils provider graph / coreutils (push) Successful in 5m44s
25dc4619ce
Patch the frozen tool defining method rather than its immutable instance for controlled fault observation. Add the preregistered pure Scope-constructor refusal case; preserve all expectations, original bounds and input-code bodies.
Create a distinct constructor-bound external borrower journal and guard source withdrawal before cleanup flags. Keep owned compiler intervals separate and reject erased rosters or foreign journals before fixed typed retirement callbacks. Connected recipe enrollment and complete inventory renewal remain pending.
Use the defining Scope dictionary descriptor to reject foreign and copied receivers before any user-controlled attribute lookup, including external journal selection.
Register the exact recipe lease in its original external source Scope before producer callbacks or capture. Preserve refusal before cleanup flags while permitting physical disposal after positive lease retirement without clearing the original failure. Add genuine graph/source lifecycle controls and refresh the complete helper closure.
Apply the reviewed exact link-lease enrollment boundary and defining retirement guards, keeping independent immutable source-scope references. Enroll the genuine source lifecycle cases in the maintained finite runner and document the remaining recipe consumer acceptance scope.
Reuse actual source fixture setup without inheriting unrelated cases. The maintained runner continues giving every fault-sensitive case its own original caller, preserving failed-source process retention.
Recompute the complete actual helper closure on the published runtime-registration prerequisite without the separate compiler execution engine or its unfinished issuer dependency.
Derive all416 actual helper bodies and modes from immutable source023e0e21, preserving the published runtime native-owner vector.
Bind the complete actual code and declaration revisions with exact bytes, digest and mode before original helper admission.
Validate each closed lease against its original Scope compiler receiver birth ledger before retirement callbacks. Preserve sticky refusal for erased lease views even when both current caller rosters are cleared, with an actual prepared CFI regression.
Derive all416 actual helper bodies and modes from immutable source2d824ba7 after the independent original compiler ledger coverage guard.
build: bind complete external caller coverage declaration
Some checks failed
Markdown / markdown (push) Successful in 20s
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 / rust (push) Failing after 4m44s
CI / cargo_publications (push) Failing after 4m40s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m28s
1935c31bf3
Select actual complete source and declaration geometry before original input admission.
Some checks failed
Markdown / markdown (push) Successful in 20s
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 / rust (push) Failing after 4m44s
CI / cargo_publications (push) Failing after 4m40s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m28s
This pull request has changes conflicting with the target branch.
  • scripts/check-native-build-script-producers.py
  • scripts/dynlink_c_runtime.py
  • scripts/native_c_helpers.py
  • scripts/native_input_owner_cohort.py
  • scripts/run-owned-input.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/external-source-scope-withdrawal:feature/external-source-scope-withdrawal'
git switch 'feature/external-source-scope-withdrawal'

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