WIP: Bind compiled script executable inputs to original products #678

Draft
erikinkinen wants to merge 0 commits from feature/recipe-executable-inputs into feature/native-build-script-producers
Owner

Summary and rationale

A compiled script needs the existing sealed executable-input route while retaining its native phase quota. Add a fixed factory tied to the actual completed recipe product, instead of substituting the graph counter to satisfy image classification.

Tracking and scope

Part of #663, based on #665/#676/#677. Implements original product-to-image enrollment, exact file selection, native child-counter binding and private-key alias exclusion. The actual compiled-script execution path remains in progress.

Architecture, authority and failure behavior

The product retains the actual image receiver before constructor/capture effects. The new route requires its original stage, compiler producer and positively retired delegated call; paths, ancestry and flags cannot supply those owners. Captured file identity must match the original product before body reads. Independent source-slot births prevent withdrawal while an image delegate remains live, including public borrower-journal loss. The script caller closes its executable/image before native retirement; the product retains its separate source lifetime. Ordinary image inputs keep their existing counter rules.

Validation evidence

Three new admission controls, five generic image controls, ten private-alias controls and seven real executable controls pass under original bounded callers with positive process/forest cleanup. A stale expected namespace-error message was corrected while preserving O_PATH and denial checks. Full syntax, five pinned runner controls and 197 Markdown files pass. Complete 416-module source/declaration/runner binding is renewed and checked twice; native seven/bootstrap are unchanged. Genuine produced-script factory/snapshot/caller acceptance and current CI remain pending.

Review checklist

  • Original factory, finite selection and source withdrawal guards implemented.
  • Inline contract, signed commits and CI/syntax enrollment.
  • Connect a genuine compiled script and exercise execution/cleanup with its actual producer.
## Summary and rationale A compiled script needs the existing sealed executable-input route while retaining its native phase quota. Add a fixed factory tied to the actual completed recipe product, instead of substituting the graph counter to satisfy image classification. ## Tracking and scope Part of #663, based on #665/#676/#677. Implements original product-to-image enrollment, exact file selection, native child-counter binding and private-key alias exclusion. The actual compiled-script execution path remains in progress. ## Architecture, authority and failure behavior The product retains the actual image receiver before constructor/capture effects. The new route requires its original stage, compiler producer and positively retired delegated call; paths, ancestry and flags cannot supply those owners. Captured file identity must match the original product before body reads. Independent source-slot births prevent withdrawal while an image delegate remains live, including public borrower-journal loss. The script caller closes its executable/image before native retirement; the product retains its separate source lifetime. Ordinary image inputs keep their existing counter rules. ## Validation evidence Three new admission controls, five generic image controls, ten private-alias controls and seven real executable controls pass under original bounded callers with positive process/forest cleanup. A stale expected namespace-error message was corrected while preserving O_PATH and denial checks. Full syntax, five pinned runner controls and 197 Markdown files pass. Complete 416-module source/declaration/runner binding is renewed and checked twice; native seven/bootstrap are unchanged. Genuine produced-script factory/snapshot/caller acceptance and current CI remain pending. ## Review checklist - [x] Original factory, finite selection and source withdrawal guards implemented. - [x] Inline contract, signed commits and CI/syntax enrollment. - [ ] Connect a genuine compiled script and exercise execution/cleanup with its actual producer.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 14:24:55 +01:00
Delegate only the completed host-script product through a registered image receiver. Preserve the native phase counter and private-key alias checks, and retain original source captures until the executable image positively retires.
Derive the whole code inventory from the immutable original script-image factory and its capture withdrawal bindings. Retain actual products, descriptors and callers as the owners.
Select the immutable source, whole input declaration and exact declaration body in the defining runner fields. Preserve original native and source lifetimes independently of code integrity metadata.
Keep the actual O_PATH rights checks and exact namespace traversal refusal. Match the defining traversal error for search-only roots instead of its obsolete census wording.
Keep an immutable capturer birth roster for each original image delegation. Observe those original slots before withdrawal even when the mutable public borrower list was cleared, and reject unregistered public slots.
Read the defining TreeAccess instance dictionary without foreign hooks when observing recipe image births. Keep existing genuine capturer subclasses available when the ordinary route has no recipe delegation.
Derive the complete immutable code closure after binding image source withdrawal to original capture births, preserving ordinary capturer subclasses.
build: Bind callers to the original image source retirement closure
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 5m13s
CI / rust (push) Failing after 5m21s
CI / native_sources (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 / host_three (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m40s
326ae1f620
Select the complete declaration and its original source in the defining runner fields. Code selection does not replace actual file, source or native authority.
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 5m13s
CI / rust (push) Failing after 5m21s
CI / native_sources (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 / host_three (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m40s
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/recipe-executable-inputs:feature/recipe-executable-inputs'
git switch 'feature/recipe-executable-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-build-script-producers'
git merge --no-ff 'feature/recipe-executable-inputs'
git switch 'feature/recipe-executable-inputs'
git rebase 'feature/native-build-script-producers'
git switch 'feature/native-build-script-producers'
git merge --ff-only 'feature/recipe-executable-inputs'
git switch 'feature/recipe-executable-inputs'
git rebase 'feature/native-build-script-producers'
git switch 'feature/native-build-script-producers'
git merge --no-ff 'feature/recipe-executable-inputs'
git switch 'feature/native-build-script-producers'
git merge --squash 'feature/recipe-executable-inputs'
git switch 'feature/native-build-script-producers'
git merge --ff-only 'feature/recipe-executable-inputs'
git switch 'feature/native-build-script-producers'
git merge 'feature/recipe-executable-inputs'
git push origin 'feature/native-build-script-producers'
Sign in to join this conversation.
No description provided.