Admit controller signals before status capture #747

Open
erikinkinen wants to merge 0 commits from fix/caller-controller-signal-admission into feature/native-scripted-root-build
Owner

Summary

A native controller reserved its status file before installing TERM/HUP cancellation handlers. A signal in that interval could reach the default action and leave an empty capture.

Admit the complete original signal policy first, then reserve the status handle and bind cancellation within one existing held-mask interval. Pending cancellation reaches the actual controller before a native child starts. A policy refusal before capture leaves no receipt.

Scope

Depends on #690. Native retirement, signal restoration and terminal receipt predicates remain unchanged. An existing or partial status file never proves cleanup. This closes the startup interval; the failed CI receipt alone does not establish when its signal arrived.

Checklist

  • Cover status acquisition and original cancellation binding with full signal admission
  • Document the changed startup ordering and absent-receipt contract
  • Add real status-capture, unmasked preflight and original compiler-input cancellation regressions
  • Qualify the new regressions and unchanged caller clocks and blocked sink controls
  • Retain existing capture, signal-policy and receipt-failure coverage
## Summary A native controller reserved its status file before installing TERM/HUP cancellation handlers. A signal in that interval could reach the default action and leave an empty capture. Admit the complete original signal policy first, then reserve the status handle and bind cancellation within one existing held-mask interval. Pending cancellation reaches the actual controller before a native child starts. A policy refusal before capture leaves no receipt. ## Scope Depends on #690. Native retirement, signal restoration and terminal receipt predicates remain unchanged. An existing or partial status file never proves cleanup. This closes the startup interval; the failed CI receipt alone does not establish when its signal arrived. ## Checklist - [x] Cover status acquisition and original cancellation binding with full signal admission - [x] Document the changed startup ordering and absent-receipt contract - [x] Add real status-capture, unmasked preflight and original compiler-input cancellation regressions - [x] Qualify the new regressions and unchanged caller clocks and blocked sink controls - [x] Retain existing capture, signal-policy and receipt-failure coverage
erikinkinen added this to the Alpha 1 milestone 2026-11-11 20:06:53 +01:00
Keep full original signal admission, exclusive status acquisition and TERM/HUP binding in one existing held-mask interval. A cancellation after the original capture opens can then unwind through its actual controller instead of reaching the default action before admission. Preserve terminal receipt publication and physical retirement predicates; a policy refusal before IO has no receipt.
Authenticate the complete fresh helper inventory after changing original native controller startup ordering. Source hashes select defining code without replacing signal policy, capture or native lifetime authority.
build: Bind the original input owner to admitted controller startup
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
CI / cargo_publications (push) Has been cancelled
CI / rust (push) Has been cancelled
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
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
2646d40b4e
Select the complete immutable declaration after closing the status-acquisition signal interval. Retain the full source closure, fresh compilation and original bootstrap boundary.
Restrict the startup held interval to full native policy, exclusive status acquisition and immediate original cancellation binding. Restore the original mask before descriptor/caller checks and preparation so their original per-use cancellation and deadline windows remain active.
Refresh the complete immutable helper inventory after restoring original cancellation windows around admission preflights.
build: Bind the original owner to narrow signal admission
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
CI / cargo_publications (push) Has been cancelled
CI / rust (push) Has been cancelled
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
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
9c9282d0c8
Select the complete fresh helper declaration while preserving original bootstrap, immutable source closure and native custody checks.
test: Keep original cancellation around real compiler admission
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 34s
Coreutils provider graph / coreutils (push) Failing after 1m59s
CI / rust (push) Failing after 10m18s
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
CI / cargo_publications (push) Failing after 23m36s
4c4bdb6e5f
Exercise the actual prepared compiler recipient, retained tool grants and caller admission before native preparation. Require the original mask outside the existing admission interval and physical no-spawn retirement after genuine TERM cancellation.
erikinkinen changed title from WIP: Admit controller signals before status capture to Admit controller signals before status capture 2026-11-11 20:17:56 +01:00
Author
Owner

Cancellation after original status acquisition now reaches the admitted controller before child birth. The original mask is restored before descriptor and compiler-input preflights, and real grants still retire through their original native owner. Unknown signal policy leaves no fabricated receipt; empty or partial status files remain insufficient evidence of cleanup.

Cancellation after original status acquisition now reaches the admitted controller before child birth. The original mask is restored before descriptor and compiler-input preflights, and real grants still retire through their original native owner. Unknown signal policy leaves no fabricated receipt; empty or partial status files remain insufficient evidence of cleanup.
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 34s
Coreutils provider graph / coreutils (push) Failing after 1m59s
CI / rust (push) Failing after 10m18s
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
CI / cargo_publications (push) Failing after 23m36s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'fix/caller-controller-signal-admission:fix/caller-controller-signal-admission'
git switch 'fix/caller-controller-signal-admission'

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 'fix/caller-controller-signal-admission'
git switch 'fix/caller-controller-signal-admission'
git rebase 'feature/native-scripted-root-build'
git switch 'feature/native-scripted-root-build'
git merge --ff-only 'fix/caller-controller-signal-admission'
git switch 'fix/caller-controller-signal-admission'
git rebase 'feature/native-scripted-root-build'
git switch 'feature/native-scripted-root-build'
git merge --no-ff 'fix/caller-controller-signal-admission'
git switch 'feature/native-scripted-root-build'
git merge --squash 'fix/caller-controller-signal-admission'
git switch 'feature/native-scripted-root-build'
git merge --ff-only 'fix/caller-controller-signal-admission'
git switch 'feature/native-scripted-root-build'
git merge 'fix/caller-controller-signal-admission'
git push origin 'feature/native-scripted-root-build'
Sign in to join this conversation.
No description provided.