fix: Keep native C source declarations coherent #766

Open
erikinkinen wants to merge 1 commit from fix/native-c-helper-source-cohort into feature/native-scripted-root-build
Owner

Native C source selection rejects changed owner/helper code because the declaration refresh leaves the process-owner hashes stale. Refresh every declared owner first, scan the complete actual helper graph using that contract, then bind all four outer loader bodies.

Keep the existing owner roles, full transitive source checks and native authority boundaries. Repeated refreshes must produce identical declarations. The regression fixtures copy admitted source only and exercise owner changes, new literal imports and invalid role selections.

  • Regenerate the complete owner, helper and outer declarations together.
  • Cover source mutations and stable repeated regeneration in the maintained checks.
  • Qualify the actual C adapter source intake and refusal controls.
  • Complete CI.

Related: #690, #751.

Native C source selection rejects changed owner/helper code because the declaration refresh leaves the process-owner hashes stale. Refresh every declared owner first, scan the complete actual helper graph using that contract, then bind all four outer loader bodies. Keep the existing owner roles, full transitive source checks and native authority boundaries. Repeated refreshes must produce identical declarations. The regression fixtures copy admitted source only and exercise owner changes, new literal imports and invalid role selections. - [x] Regenerate the complete owner, helper and outer declarations together. - [x] Cover source mutations and stable repeated regeneration in the maintained checks. - [x] Qualify the actual C adapter source intake and refusal controls. - [ ] Complete CI. Related: [#690](https://git.erikinkinen.fi/erix/integration/pulls/690), [#751](https://git.erikinkinen.fi/erix/integration/pulls/751).
erikinkinen added this to the Alpha 1 milestone 2026-11-12 03:03:30 +01:00
Refresh every declared native process-owner body before scanning the complete actual helper graph and binding its outer loaders. Preserve original source validation and closed owner roles while preventing stale owner hashes from surviving a nominally successful refresh; cover real source mutations and stable whole-graph regeneration.
Require cleanup to retain the original registration refusal while closing every genuine descriptor. A copied record must never restore healthy retirement.
Retain the exact complete supervisor source after repairing whole native C declarations and preserving the copied-capture cleanup regression.
build: Bind native C cohort repair supervisor sources
Some checks failed
Markdown / markdown (push) Successful in 33s
CI / cargo_publications (push) Failing after 1m26s
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
Coreutils provider graph / coreutils (push) Has been cancelled
88e6d14250
Bind all five immutable input entry fields to the exact complete committed source and supervisor declaration for the native C cohort repair.
test: retain all admitted outer source fixture roles
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 28s
CI / rust (push) Failing after 1m13s
CI / cargo_publications (push) Failing after 1m17s
CI / native_sources (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 / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 4m50s
3d83152206
Copy every original outer loader body into the disposable complete-refresh fixture, including native_c_source which intentionally sits outside the Cargo helper import closure. Keep fixture selection tied to the actual declared roles.
erikinkinen changed title from WIP: fix: Keep native C source declarations coherent to fix: Keep native C source declarations coherent 2026-11-12 03:10:21 +01:00
Author
Owner

The native C refresh now updates every declared owner body before closing the complete actual helper graph, then binds all outer loader bodies. Check mode catches stale owner declarations, and repeated refreshes leave the generated cohort unchanged. The original adapter intake and refusal paths retain their full source checks. The repair is ready for composition into each consumer’s own source tree.

The native C refresh now updates every declared owner body before closing the complete actual helper graph, then binds all outer loader bodies. Check mode catches stale owner declarations, and repeated refreshes leave the generated cohort unchanged. The original adapter intake and refusal paths retain their full source checks. The repair is ready for composition into each consumer’s own source tree.
test: Check the original forest receiver refusal
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) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
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
0b1d8ddc29
Keep the foreign-receiver and retired-lifetime cases distinct while preserving their original no-effect 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) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
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
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/native-c-helper-source-cohort:fix/native-c-helper-source-cohort'
git switch 'fix/native-c-helper-source-cohort'

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