perf: Import actual input-owner roots inside authenticated extents #723

Open
erikinkinen wants to merge 4 commits from perf/owned-input-root-imports into perf/owned-code-parse-reuse
Owner

The input owner now executes only its fixed constructor roots and the modules those roots actually import. It still captures, authenticates, parses and compiles the complete selected source closure before executing any owned module. Later imports require the original active selection extent and retain the same actual module identities across nested contexts and import cycles.

Each extent restores every selected sys.modules slot and the complete original finder list. Constructor registrations bind the original captured bytes, compiled code, finder class and module records; altered records or partial imports remain failed after restoration.

Validation: eight module/extent controls, thirteen parse/origin controls, five syntax-oracle controls and the unchanged two original readiness cases pass. The readiness cases retain their original 2-second readiness and 3-second cleanup bounds; the outer caller confirms cleanup and process-forest retirement. The complete 459-module helper closure was checked twice and the input declaration was derived from the immutable code checkpoint. All seven native owners and the bootstrap remain unchanged.

The full fifteen-case input gate and natural CI remain separate validation; no compiler, image or guest acceptance is claimed. Earlier failed readiness receipts remain preserved.

Prerequisite: #720. Related feature scope: #8.

The input owner now executes only its fixed constructor roots and the modules those roots actually import. It still captures, authenticates, parses and compiles the complete selected source closure before executing any owned module. Later imports require the original active selection extent and retain the same actual module identities across nested contexts and import cycles. Each extent restores every selected `sys.modules` slot and the complete original finder list. Constructor registrations bind the original captured bytes, compiled code, finder class and module records; altered records or partial imports remain failed after restoration. Validation: eight module/extent controls, thirteen parse/origin controls, five syntax-oracle controls and the unchanged two original readiness cases pass. The readiness cases retain their original 2-second readiness and 3-second cleanup bounds; the outer caller confirms cleanup and process-forest retirement. The complete 459-module helper closure was checked twice and the input declaration was derived from the immutable code checkpoint. All seven native owners and the bootstrap remain unchanged. The full fifteen-case input gate and natural CI remain separate validation; no compiler, image or guest acceptance is claimed. Earlier failed readiness receipts remain preserved. Prerequisite: #720. Related feature scope: #8.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 22:59:35 +01:00
Retain and compile the complete authenticated source closure while registering actual imported modules inside original nested selection extents. Preserve module identities, whole registry rollback, sticky failures and original source provenance.
Retain the complete parse reuse prerequisite and its authenticated input declaration without copying generated cohort rows.
Derive every input owner body and mode from the immutable composed source checkpoint.
build: Bind root imports to their original source cohort
Some checks failed
Markdown / markdown (push) Successful in 33s
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) Successful in 6m41s
CI / cargo_publications (push) Failing after 7m14s
CI / rust (push) Failing after 10m22s
CI / native_sources (push) Has been skipped
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
3996fd0e51
Select the complete immutable code and declaration revisions before any owned input process birth.
Some checks failed
Markdown / markdown (push) Successful in 33s
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) Successful in 6m41s
CI / cargo_publications (push) Failing after 7m14s
CI / rust (push) Failing after 10m22s
CI / native_sources (push) Has been skipped
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 can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'perf/owned-input-root-imports:perf/owned-input-root-imports'
git switch 'perf/owned-input-root-imports'

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 'perf/owned-code-parse-reuse'
git merge --no-ff 'perf/owned-input-root-imports'
git switch 'perf/owned-input-root-imports'
git rebase 'perf/owned-code-parse-reuse'
git switch 'perf/owned-code-parse-reuse'
git merge --ff-only 'perf/owned-input-root-imports'
git switch 'perf/owned-input-root-imports'
git rebase 'perf/owned-code-parse-reuse'
git switch 'perf/owned-code-parse-reuse'
git merge --no-ff 'perf/owned-input-root-imports'
git switch 'perf/owned-code-parse-reuse'
git merge --squash 'perf/owned-input-root-imports'
git switch 'perf/owned-code-parse-reuse'
git merge --ff-only 'perf/owned-input-root-imports'
git switch 'perf/owned-code-parse-reuse'
git merge 'perf/owned-input-root-imports'
git push origin 'perf/owned-code-parse-reuse'
Sign in to join this conversation.
No description provided.