Enroll compiler input consumers before source checks #744

Open
erikinkinen wants to merge 7 commits from fix/compiler-input-consumer-enrollment into perf/target-cfi-source-bookends
Owner

Summary

A source refusal during compiler-input construction could leave the original compiler recipient in its Scope without its source or file-consumer links. Strict cleanup then correctly refused to settle that incomplete roster.

Validate the original same-scope source receivers first, register code captures before publishing the compiler recipient, and enroll every source and file consumer before checking physical sources. A rejected recipient with no native binding or grants can then retire through the existing positive checks.

Scope and dependencies

Depends on #739. Ordinary source registration still performs a full physical check. Missing recipients, copied receivers, unsettled grants and uncertain descriptor custody continue to refuse retirement. No new authority or admission cache is introduced.

Checklist

  • Complete original recipient enrollment before fallible source checks
  • Keep full source checks and strict retirement guards
  • Add real partial-recipient and copied/unregistered receiver controls
  • Update architecture and source-bookend documentation
  • Run the maintained physical mutation and cleanup controls

Evidence

The maintained source mutation, original receiver, partial-recipient retirement and real compiler controls pass on the original fixture bounds. Missing recipients still refuse positive retirement.

## Summary A source refusal during compiler-input construction could leave the original compiler recipient in its Scope without its source or file-consumer links. Strict cleanup then correctly refused to settle that incomplete roster. Validate the original same-scope source receivers first, register code captures before publishing the compiler recipient, and enroll every source and file consumer before checking physical sources. A rejected recipient with no native binding or grants can then retire through the existing positive checks. ## Scope and dependencies Depends on #739. Ordinary source registration still performs a full physical check. Missing recipients, copied receivers, unsettled grants and uncertain descriptor custody continue to refuse retirement. No new authority or admission cache is introduced. ## Checklist - [x] Complete original recipient enrollment before fallible source checks - [x] Keep full source checks and strict retirement guards - [x] Add real partial-recipient and copied/unregistered receiver controls - [x] Update architecture and source-bookend documentation - [x] Run the maintained physical mutation and cleanup controls ## Evidence The maintained source mutation, original receiver, partial-recipient retirement and real compiler controls pass on the original fixture bounds. Missing recipients still refuse positive retirement.
erikinkinen added this to the Alpha 1 milestone 2026-11-11 19:18:11 +01:00
Validate original same-scope source recipients before publishing a compiler input, then retain every source and tool/file consumer before physical admission. A refused source can retire its genuine no-native recipient without losing the strict checks for missing consumers or uncertain custody.
Bind the original input producer to the complete fresh helper closure, including the defining recipient enrollment checks. Source identities select code without conferring file or native authority.
build: Bind the original runner to compiler enrollment checks
Some checks failed
Markdown / markdown (push) Successful in 29s
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 / 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
CI / cargo_publications (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
249227366a
Select the complete immutable helper declaration for the original input owner. The runner keeps fresh full source capture and closure validation, and its original native and bootstrap boundaries.
Require the actual compiler Scope and recipe source birth to retain the same original recipient journal before structural enrollment. Exercise equivalent journal substitution on a real recipient without appending any source link.
Refresh the complete immutable helper inventory after retaining the original Scope and source recipient journal relationships.
build: Bind the original input owner to recipient journal guards
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 45s
Coreutils provider graph / coreutils (push) Successful in 5m4s
CI / rust (push) Failing after 7m40s
CI / native_sources (push) Has been skipped
CI / host_zero (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 / integration (push) Has been skipped
CI / cargo_publications (push) Failing after 14m58s
2f0a431cbe
Authenticate the complete refreshed helper declaration while preserving the original fresh source closure and native boundary checks.
erikinkinen changed title from WIP: Enroll compiler input consumers before source checks to Enroll compiler input consumers before source checks 2026-11-11 19:39:13 +01:00
Author
Owner

Source refusals now retain every original compiler recipient before physical admission. A rejected recipient with no native binding or grants retires cleanly, while substituted journals and missing recipients continue to refuse positive source retirement. This completes the enrollment fix; the broader source-bookend fault and library coverage remains tracked in #739.

Source refusals now retain every original compiler recipient before physical admission. A rejected recipient with no native binding or grants retires cleanly, while substituted journals and missing recipients continue to refuse positive source retirement. This completes the enrollment fix; the broader source-bookend fault and library coverage remains tracked in #739.
ci: Select external storage for input diagnostics
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
Coreutils provider graph / coreutils (push) Successful in 4m41s
Markdown / markdown (push) Successful in 18s
CI / rust (push) Failing after 8m38s
CI / cargo_publications (push) Failing after 19m22s
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
ccdf5aa9c4
Provide the runner temporary directory to the owned-input diagnostic step so its retained fixture data stays outside the source checkout.

(cherry picked from commit 4581a707a3)
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
Coreutils provider graph / coreutils (push) Successful in 4m41s
Markdown / markdown (push) Successful in 18s
CI / rust (push) Failing after 8m38s
CI / cargo_publications (push) Failing after 19m22s
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
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'fix/compiler-input-consumer-enrollment:fix/compiler-input-consumer-enrollment'
git switch 'fix/compiler-input-consumer-enrollment'

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 'perf/target-cfi-source-bookends'
git merge --no-ff 'fix/compiler-input-consumer-enrollment'
git switch 'fix/compiler-input-consumer-enrollment'
git rebase 'perf/target-cfi-source-bookends'
git switch 'perf/target-cfi-source-bookends'
git merge --ff-only 'fix/compiler-input-consumer-enrollment'
git switch 'fix/compiler-input-consumer-enrollment'
git rebase 'perf/target-cfi-source-bookends'
git switch 'perf/target-cfi-source-bookends'
git merge --no-ff 'fix/compiler-input-consumer-enrollment'
git switch 'perf/target-cfi-source-bookends'
git merge --squash 'fix/compiler-input-consumer-enrollment'
git switch 'perf/target-cfi-source-bookends'
git merge --ff-only 'fix/compiler-input-consumer-enrollment'
git switch 'perf/target-cfi-source-bookends'
git merge 'fix/compiler-input-consumer-enrollment'
git push origin 'perf/target-cfi-source-bookends'
Sign in to join this conversation.
No description provided.