Bind host-tool execution to sealed executable data #555

Open
erikinkinen wants to merge 8 commits from feature/retained-host-executable-birth into feature/retained-host-data-use
Owner

Host commands execute a sealed snapshot of their selected executable instead of resolving its mutable source pathname at birth. The original caller channel transfers the actual descriptor to its helper; the command inherits neither that descriptor nor the caller pipe.

Snapshot storage and verification use the original input bounds. Actual receivers and callers remain retained through retirement, and an observed identity refusal stays binding after restoration. This pins the main executable; host interpreter/library resolution and signing-key consumption retain their separate contracts.

Builds on host-tool data custody for Phase 6.

  • Seal executable data and bind actual native birth to the transferred receiver.
  • Preserve original bounds, failure custody and independent descriptor retirement.
  • Reject restored identity changes and prevent descriptor inheritance into commands.
  • Complete current-head CI.
Host commands execute a sealed snapshot of their selected executable instead of resolving its mutable source pathname at birth. The original caller channel transfers the actual descriptor to its helper; the command inherits neither that descriptor nor the caller pipe. Snapshot storage and verification use the original input bounds. Actual receivers and callers remain retained through retirement, and an observed identity refusal stays binding after restoration. This pins the main executable; host interpreter/library resolution and signing-key consumption retain their separate contracts. Builds on [host-tool data custody](https://git.erikinkinen.fi/erix/integration/pulls/553) for [Phase 6](https://git.erikinkinen.fi/erix/integration/issues/65). - [x] Seal executable data and bind actual native birth to the transferred receiver. - [x] Preserve original bounds, failure custody and independent descriptor retirement. - [x] Reject restored identity changes and prevent descriptor inheritance into commands. - [ ] Complete current-head CI.
Transfer the actual sealed executable descriptor through the original caller channel. Resolve native executable birth through the living helper descriptor without passing executable authority to the command.
Keep command failure sticky while permitting confirmed independent cleanup. Preserve a prior command cause if an input or snapshot retirement also fails.
Keep actual snapshot receivers attached to their original input owner before acquisition. Preserve first identity failures and refuse input retirement while executable receivers remain open.
Distinguish immutable executable bytes from metadata changes caused by refused mutation. Confirm the first observed identity refusal remains binding after permissions are restored.
fix: Retire unborrowed executable receivers with their input owner
Some checks failed
CI / rust (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) 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
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
8348f242fd
Allow original input cleanup to release owned snapshots after actual caller duties settle. Keep input descriptors held when a snapshot cannot confirm original retirement.
erikinkinen added this to the Alpha 1 milestone 2026-11-08 00:44:18 +01:00
fix: Preserve command causes during executable receiver cleanup
Some checks failed
CI / rust (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) Failing after 18s
CI / rust (push) Failing after 2m11s
Coreutils provider graph / coreutils (push) Successful in 4m6s
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
205bb242cb
Retain an inherited executable close failure separately when a command has already failed. Keep the original command cause and return status intact.
docs: Wrap feature documentation consistently
Some checks failed
Markdown / markdown (push) Successful in 32s
CI / rust (push) Failing after 2m20s
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
Markdown / markdown (pull_request) Has been skipped
CI / rust (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
Coreutils provider graph / coreutils (push) Successful in 6m24s
fc21d7aa23
Keep the existing feature documentation within the shared Markdown layout rules without changing its content.
fix: Bind the complete original input helper closure
Some checks failed
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
CI / rust (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 / rust (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
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Markdown / markdown (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
c63f924162
Close the input owner over every actual local provider and renew the complete native/source declarations from the same immutable tree. Preserve the original source-byte checks and VM diagnostic failure behavior.
Some checks failed
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
CI / rust (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 / rust (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
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Markdown / markdown (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
This pull request has changes conflicting with the target branch.
  • docs/retained-host-data.md
  • 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/retained-host-executable-birth:feature/retained-host-executable-birth'
git switch 'feature/retained-host-executable-birth'

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/retained-host-data-use'
git merge --no-ff 'feature/retained-host-executable-birth'
git switch 'feature/retained-host-executable-birth'
git rebase 'feature/retained-host-data-use'
git switch 'feature/retained-host-data-use'
git merge --ff-only 'feature/retained-host-executable-birth'
git switch 'feature/retained-host-executable-birth'
git rebase 'feature/retained-host-data-use'
git switch 'feature/retained-host-data-use'
git merge --no-ff 'feature/retained-host-executable-birth'
git switch 'feature/retained-host-data-use'
git merge --squash 'feature/retained-host-executable-birth'
git switch 'feature/retained-host-data-use'
git merge --ff-only 'feature/retained-host-executable-birth'
git switch 'feature/retained-host-data-use'
git merge 'feature/retained-host-executable-birth'
git push origin 'feature/retained-host-data-use'
Sign in to join this conversation.
No description provided.