Bind runtime inputs to their original registered actors #679

Open
erikinkinen wants to merge 0 commits from fix/runtime-input-original-registration into feature/native-build-script-producers
Owner

Summary and rationale

Keep the existing runtime query stage, its Scope, capture, target directory and archive/metadata receivers attached to their original registrations through use and retirement. The fixed compiler query, runtime roles, byte checks and original limits are preserved.

Tracking and scope

Required by design #663 and native recipe producers #665. This implements the original runtime-registration prerequisite; external Scope borrower integration and complete native/guest acceptance remain separate work.

Architecture, authority and failure behavior

Actual constructor births and independent file rosters precede use. Reinitialization and copies refuse before original participant callbacks. Fixed accessors expose original actor registrations, never owners reconstructed from paths, query text or metadata. Graph cleanup retains current selector loss and drains the original Scope rather than a replacement. Original errors stay primary while independent postchecks are attempted; existing poisoned-owner/work guards remain authoritative. Partial and uncertain duties stay with their original owners. No runtime, compiler, SDK or confinement provenance is inferred from bytes.

Validation evidence

At 25dc4619cec6e0d2d17a8a4f95ea63b33ea3e33f, seven new controls cover real initial-host runtime queries, held archive/metadata FDs, copies/reinitialization, substituted owners, partial construction and independent failures. Five passed on the initial registration checkpoint; two passed after the narrow failure-order correction. Ten existing metadata lifecycle controls passed the initial checkpoint, and the two affected legacy error paths also passed the correction. Every control preserves its original 120-second caller and 15-second retirement bounds, with positive cleanup/forest receipts.

Syntax, independent syntax oracle, Markdown and two complete 415-module helper checks pass. All selected bodies/modes match immutable fd4bf6bac1e74f962df8afb00ccc1730752a68d0; native seven and bootstrap bodies are unchanged. Rust build/Clippy checks are inapplicable to this Python-only change. These initial-host custody controls do not compile a target or establish complete native graph, image or guest acceptance. Complete CI remains pending.

Review checklist

  • Original implementation, signed commits and documented source/lifetime contracts.
  • Genuine positive, refusal, partial and cleanup controls with unchanged bounds.
  • Cohesive source files below 1,000 lines and complete input-code renewal.
  • No governance, native ABI, query-role or bootstrap change.
  • Complete dependent native/guest acceptance.
## Summary and rationale Keep the existing runtime query stage, its Scope, capture, target directory and archive/metadata receivers attached to their original registrations through use and retirement. The fixed compiler query, runtime roles, byte checks and original limits are preserved. ## Tracking and scope Required by [design #663](https://git.erikinkinen.fi/erix/integration/issues/663) and [native recipe producers #665](https://git.erikinkinen.fi/erix/integration/pulls/665). This implements the original runtime-registration prerequisite; external Scope borrower integration and complete native/guest acceptance remain separate work. ## Architecture, authority and failure behavior Actual constructor births and independent file rosters precede use. Reinitialization and copies refuse before original participant callbacks. Fixed accessors expose original actor registrations, never owners reconstructed from paths, query text or metadata. Graph cleanup retains current selector loss and drains the original Scope rather than a replacement. Original errors stay primary while independent postchecks are attempted; existing poisoned-owner/work guards remain authoritative. Partial and uncertain duties stay with their original owners. No runtime, compiler, SDK or confinement provenance is inferred from bytes. ## Validation evidence At `25dc4619cec6e0d2d17a8a4f95ea63b33ea3e33f`, seven new controls cover real initial-host runtime queries, held archive/metadata FDs, copies/reinitialization, substituted owners, partial construction and independent failures. Five passed on the initial registration checkpoint; two passed after the narrow failure-order correction. Ten existing metadata lifecycle controls passed the initial checkpoint, and the two affected legacy error paths also passed the correction. Every control preserves its original 120-second caller and 15-second retirement bounds, with positive cleanup/forest receipts. Syntax, independent syntax oracle, Markdown and two complete 415-module helper checks pass. All selected bodies/modes match immutable `fd4bf6bac1e74f962df8afb00ccc1730752a68d0`; native seven and bootstrap bodies are unchanged. Rust build/Clippy checks are inapplicable to this Python-only change. These initial-host custody controls do not compile a target or establish complete native graph, image or guest acceptance. Complete CI remains pending. ## Review checklist - [x] Original implementation, signed commits and documented source/lifetime contracts. - [x] Genuine positive, refusal, partial and cleanup controls with unchanged bounds. - [x] Cohesive source files below 1,000 lines and complete input-code renewal. - [x] No governance, native ABI, query-role or bootstrap change. - [ ] Complete dependent native/guest acceptance.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 14:25:18 +01:00
Register actual Scope, capture, directory and file births before runtime effects. Refuse copied receivers and repeated initialization before callbacks, and retire the original Scope after public selector loss. This source checkpoint precedes focused controls and complete input-code renewal.
Compose the actual current native recipe source and CFI integration before enrolling runtime registration controls. Preserve every existing finite runner case and original ownership contract.
Preserve actual Scope, capture, directory, census and file rosters before callbacks or effects. Enroll genuine copy, reinitialization, substituted-owner and partial-open controls on the maintained finite caller route without changing query roles, clocks or source bounds.
Derive every selected body and mode from immutable 46a85273, preserving the complete original native-owner import graph before genuine runtime controls.
Authenticate the complete 46a85273 body selection and its actual declaration before native runtime controls. Preserve the seven native-owner and bootstrap bodies.
Latch the actual original failure before subsequent source or tool checks can fail, preserving poisoned-owner and work guards. Add a genuine partial metadata-read and independent postcheck control; incomplete pure Scope construction cannot receive cleanup callbacks.
Derive all 415 defining modules from immutable fd4bf6ba, preserving actual source modes and complete imports before the compound failure control.
Authenticate the complete fd4bf6ba body inventory and original declaration before its actual controls; keep the original native-owner and bootstrap bodies unchanged.
test: Observe runtime postchecks through actual defining methods
Some checks failed
Markdown / markdown (push) Successful in 22s
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 / rust (push) Failing after 5m20s
CI / native_sources (push) Has been skipped
CI / host_three (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 / integration (push) Has been skipped
CI / cargo_publications (push) Failing after 5m26s
Coreutils provider graph / coreutils (push) Successful in 5m44s
25dc4619ce
Patch the frozen tool defining method rather than its immutable instance for controlled fault observation. Add the preregistered pure Scope-constructor refusal case; preserve all expectations, original bounds and input-code bodies.
Some checks failed
Markdown / markdown (push) Successful in 22s
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 / rust (push) Failing after 5m20s
CI / native_sources (push) Has been skipped
CI / host_three (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 / integration (push) Has been skipped
CI / cargo_publications (push) Failing after 5m26s
Coreutils provider graph / coreutils (push) Successful in 5m44s
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/runtime-input-original-registration:fix/runtime-input-original-registration'
git switch 'fix/runtime-input-original-registration'

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 'fix/runtime-input-original-registration'
git switch 'fix/runtime-input-original-registration'
git rebase 'feature/native-build-script-producers'
git switch 'feature/native-build-script-producers'
git merge --ff-only 'fix/runtime-input-original-registration'
git switch 'fix/runtime-input-original-registration'
git rebase 'feature/native-build-script-producers'
git switch 'feature/native-build-script-producers'
git merge --no-ff 'fix/runtime-input-original-registration'
git switch 'feature/native-build-script-producers'
git merge --squash 'fix/runtime-input-original-registration'
git switch 'feature/native-build-script-producers'
git merge --ff-only 'fix/runtime-input-original-registration'
git switch 'feature/native-build-script-producers'
git merge 'fix/runtime-input-original-registration'
git push origin 'feature/native-build-script-producers'
Sign in to join this conversation.
No description provided.