WIP: Reuse parsed input-owner source code #720

Draft
erikinkinen wants to merge 0 commits from perf/owned-code-parse-reuse into feature/native-scripted-root-build
Owner

Compile each input owner's exact retained source body from the same internally parsed AST used to validate its complete import closure. Original source capture, namespace, mode, size and digest checks remain active, and no module executes before closure validation completes.

The authenticated finder keeps its admission and naming rules. A fixed input-owner loader checks original byte, filename, parsed record, module specification and immutable map identities before using the derived code. Caller-provided ASTs, code objects or compiler flags cannot substitute for those records; deleted or replaced fields remain failed after restoration. Native owner and pinned bootstrap bodies are unchanged.

Validation: thirteen parser, full-cohort differential, encoding/future/context and original identity controls pass, together with syntax and Markdown checks. The original two-second readiness controls still fail. This WIP does not claim a startup speed improvement or completion of the readiness repair; the subsequent import-footprint reduction is separate. Original readiness and retirement allowances remain unchanged.

Part of #8 and #690.

Compile each input owner's exact retained source body from the same internally parsed AST used to validate its complete import closure. Original source capture, namespace, mode, size and digest checks remain active, and no module executes before closure validation completes. The authenticated finder keeps its admission and naming rules. A fixed input-owner loader checks original byte, filename, parsed record, module specification and immutable map identities before using the derived code. Caller-provided ASTs, code objects or compiler flags cannot substitute for those records; deleted or replaced fields remain failed after restoration. Native owner and pinned bootstrap bodies are unchanged. Validation: thirteen parser, full-cohort differential, encoding/future/context and original identity controls pass, together with syntax and Markdown checks. The original two-second readiness controls still fail. This WIP does not claim a startup speed improvement or completion of the readiness repair; the subsequent import-footprint reduction is separate. Original readiness and retirement allowances remain unchanged. Part of #8 and #690.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 21:55:44 +01:00
Compile only the AST derived from each authenticated captured byte object, preserving complete import closure, exact original finder admission and source lifetime guards without a cross-run approval cache.
Remove the extra blank separator identified by the maintained Markdown check.
Regenerate the complete selected input-owner source closure from the actual immutable code tree.
build: Bind parsed input-owner source reuse
Some checks failed
Markdown / markdown (push) Successful in 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
Coreutils provider graph / coreutils (push) Failing after 2m42s
CI / rust (push) Failing after 6m38s
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
CI / cargo_publications (push) Failing after 7m28s
ce77b43cb3
Select the actual complete code and declaration trees while retaining the unchanged independently authenticated bootstrap.
Retain constructor births beside parsed records and the actual finder class before dispatch so replaced current selectors cannot select another code origin.
Derive the entire input-owner source declaration from the immutable registered-code checkpoint.
build: Bind original owner code registrations
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 28s
CI / rust (push) Failing after 1m32s
CI / native_sources (push) Has been skipped
CI / host_zero (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 / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m37s
CI / cargo_publications (push) Failing after 6m46s
4099b550ea
Bind the complete selected source and declaration without changing native owner or bootstrap bodies.
Bind source maps and finder classes to sealed entry-local constructor records while weak registry storage follows actual module and controller lifetimes.
Regenerate all source rows from the actual immutable constructor-origin checkpoint.
build: Bind originating input source receivers
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 26s
CI / cargo_publications (push) Failing after 5m34s
Coreutils provider graph / coreutils (push) Successful in 5m41s
CI / rust (push) Failing after 8m40s
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
f3fc9a6a12
Bind the full source closure and unchanged bootstrap to the actual originating receiver implementation.
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 26s
CI / cargo_publications (push) Failing after 5m34s
Coreutils provider graph / coreutils (push) Successful in 5m41s
CI / rust (push) Failing after 8m40s
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
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 'perf/owned-code-parse-reuse:perf/owned-code-parse-reuse'
git switch 'perf/owned-code-parse-reuse'

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