WIP: Separate executable provenance checks from output reads #685

Draft
erikinkinen wants to merge 11 commits from fix/recipe-executable-source-checks into feature/native-build-script-producers
Owner

The sealed build-script executable rechecks its original compiler product during caller admission. That metadata check previously entered the idle-native file-read guard and rejected the caller's pending capture.

Separate original producer/caller/grant/census provenance from output-body access. The executable check retains the same stage, product and original counter; initial capture and every product read keep their idle-native checks.

Part of #663 and #665; follows #678 and #680.

  • Preserve original provenance checks during executable caller admission.
  • Keep initial capture and output-body read barriers unchanged.
  • Renew the complete source declaration and cover existing early guards.
  • Complete the genuine compiler/script execution and cleanup control.
  • Complete current CI acceptance.

The connected control still has an unresolved failure during admission/cleanup; no successful script execution is claimed.

The sealed build-script executable rechecks its original compiler product during caller admission. That metadata check previously entered the idle-native file-read guard and rejected the caller's pending capture. Separate original producer/caller/grant/census provenance from output-body access. The executable check retains the same stage, product and original counter; initial capture and every product read keep their idle-native checks. Part of #663 and #665; follows #678 and #680. - [x] Preserve original provenance checks during executable caller admission. - [x] Keep initial capture and output-body read barriers unchanged. - [x] Renew the complete source declaration and cover existing early guards. - [ ] Complete the genuine compiler/script execution and cleanup control. - [ ] Complete current CI acceptance. The connected control still has an unresolved failure during admission/cleanup; no successful script execution is claimed.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 17:12:38 +01:00
Verify the original completed compiler, output capture and unchanged native counter without entering a file-body read or census. Initial capture and product reads retain the existing idle-native gate.
Regenerate the complete source declaration for the separated metadata and file-body checks.
build: Bind executable provenance boundaries
Some checks failed
Markdown / markdown (push) Successful in 22s
Coreutils provider graph / coreutils (push) Failing after 2m10s
CI / rust (push) Failing after 2m54s
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 5m14s
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
710373c4b2
Bind the complete executable provenance source and declaration revisions.
Preserve the closed host failure ledger and full independent input postcheck alongside executable provenance admission. Regenerate helper hashes for the complete combined source.
Keep script callers inert until execution and select their actual completed product and run context within one fresh complete source check. Public output/context checks and independent execution postchecks retain their existing full proofs.
Regenerate the complete helper declaration after the fixed script selection boundary.
build: Bind unified script input 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 21s
Coreutils provider graph / coreutils (push) Failing after 3m1s
CI / cargo_publications (push) Failing after 4m33s
CI / rust (push) Failing after 4m38s
CI / native_sources (push) Has been skipped
CI / host_zero (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 / integration (push) Has been skipped
e4a14bfc1c
Bind the complete source and declaration revisions for actual script selection.
Check the original output custody after capture using the independent full input postcheck already performed for the native effect. Keep fresh full checks on public output access.
Declare the complete updated compiler helper graph.
build: Bind the native input owner declaration
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 30s
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
Coreutils provider graph / coreutils (push) Has been cancelled
CI / cargo_publications (push) Has been cancelled
23a4062f8c
Bind the runner to the updated original helper declaration.
docs: Explain script selection and compiler output checks
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 31s
CI / cargo_publications (push) Failing after 4m20s
CI / rust (push) Failing after 4m40s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m30s
387600ab9f
Describe the independent source boundaries and executable admission lifetime. Cover the new selection entries with foreign-receiver refusal 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 31s
CI / cargo_publications (push) Failing after 4m20s
CI / rust (push) Failing after 4m40s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m30s
This pull request has changes conflicting with the target branch.
  • scripts/dynlink_c_runtime.py
  • scripts/native_c_helpers.py
  • 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 'fix/recipe-executable-source-checks:fix/recipe-executable-source-checks'
git switch 'fix/recipe-executable-source-checks'

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