WIP: Retain original IPC custody through native transport #136

Draft
erikinkinen wants to merge 32 commits from feature/native-ipc-custody-transport into feature/native-completion-publication
Owner

Connect original queued capability custody, serving-source chains and retained kernel delivery publishers to the actual native CALL, RECV and NOTIFY producers. Admission, publication, cancellation and completion retain their defining source and destination owners. Sender-slot reuse cannot substitute a replacement frame, and cleanup traces borrow the original capability admission.

Based on #135; uses lib-ipc #193. Part of #11. See the native IPC custody contract.

  • Connect complete original queue, serving, publisher and native transport implementations.
  • Exercise exact source retention, attenuation, terminal cleanup and independent scheduling through native producers.
  • Pass all eleven original component gates, including optimized suites and warning-free native kernel/SMP builds.
  • Pass current-head public CI.
  • Complete coordinated native process, forwarding and revocation acceptance on the release image.
Connect original queued capability custody, serving-source chains and retained kernel delivery publishers to the actual native CALL, RECV and NOTIFY producers. Admission, publication, cancellation and completion retain their defining source and destination owners. Sender-slot reuse cannot substitute a replacement frame, and cleanup traces borrow the original capability admission. Based on #135; uses [lib-ipc #193](https://git.erikinkinen.fi/erix/lib-ipc/pulls/193). Part of #11. See the [native IPC custody contract](https://git.erikinkinen.fi/erix/kernel/src/branch/feature/native-ipc-custody-transport/docs/native-ipc-custody.md). - [x] Connect complete original queue, serving, publisher and native transport implementations. - [x] Exercise exact source retention, attenuation, terminal cleanup and independent scheduling through native producers. - [x] Pass all eleven original component gates, including optimized suites and warning-free native kernel/SMP builds. - [x] Pass current-head public CI. - [ ] Complete coordinated native process, forwarding and revocation acceptance on the release image.
erikinkinen added this to the Alpha 1 milestone 2026-11-13 11:18:13 +01:00
Capture original native capabilities in an owned queue namespace and reclaim unreachable queue graphs from their actual retaining roots. Retain PCI frame construction through exact selector restoration and native publication or rollback.
Describe each retaining source separately so the custody contract remains readable in narrow displays.
Retain original attenuated send and receive bindings through forwarded child admission and native peer-flow recovery. Keep cancellation sticky and dispose original source spaces iteratively outside registry, endpoint, thread and device locks.
Bind kernel delivery destinations to noncopy publisher resources and preserve original source failure and retirement. Remove uncertain route-ID roots only when their actual retained publishers provide the lifetime contract.
Keep the remaining native acceptance requirements readable alongside the root-lifetime contract.
Route CALL, RECV and NOTIFY through actual queued custody, original waits and prepared completion owners. Retire provisional transfer paths and retain exact PCI restoration failures before accepting later publication.
Keep the full native PCI constructor that already borrows original mutation custody and restores exact selector state. Incorporate the preceding control trace scope correction.
Frame derivation consumes this endpoint selector as part of native source admission, beyond the earlier optional control trace use.
Carry the complete qualified CALL, control and mapped reply publication corrections into queued capability custody before exposing its independent source and reclamation APIs.

# Conflicts:
#	src/kobj/vspace/lifecycle.rs
Compose the actual native fixture, admission and reply publication corrections with original serving source chains before connecting the complete native transport consumer.
Declare the original public owned-serving and forwarding supplier alongside the existing complete provider union. Keep Cargo dependencies on main and retain all original source preparation limits and native component gates.
Compose the complete serving source chain and actual public protocol supplier with retained kernel delivery publisher ownership before native transport acceptance.
Compose all original queued capability, serving chain and delivery publisher owners with the qualified completion corrections and actual public protocol producer before qualifying the real CALL, RECV and NOTIFY consumer.

# Conflicts:
#	src/kobj/endpoint/reply_occupation.rs
#	src/kobj/endpoint/tests/legacy_fixture.rs
Compile the existing read-only TCB range observer for the exact destruction trace feature pair that uses it on hosted builds. Preserve native and test callers without widening any thread ownership or mutation interface.
Keep the original retained transport receive reservation, source and TCB completion owners compiled for the actual native target. Earlier reply-only prerequisites exposed these helpers to tests alone; the complete CALL and RECV producers now require their original native boundary.
Keep destruction trace state and metadata helpers under the same native or compiled-test boundary as their real transport callers. Preserve all native trace paths and remove two empty endpoint trace stubs whose old caller was replaced by the retained producer.
Document queued publication, original serving chains, retained kernel delivery sources and their actual ordinary transport consumer as one connected boundary. Keep hosted controls distinct from coordinated native image acceptance and link the defining ownership contracts.
Keep the existing disabled deep trace hook for native and compiled-test CALL disposition paths. Hosted refusal builds omit the hook because they omit that producer, preserving both original trace behavior and warning-free hosted compilation.
Carry the native receive completion selector and handoff constructor with the actual RECV producer. Preserve the reply-only prerequisite improvements while restoring the complete retained transport profile boundary.
Keep destruction trace endpoint observation inside the defining capability admission instead of entering an unrelated lexical lookup. Retire legacy parser and scalar wake adapters from production while preserving their negative fixture controls; compile native receive publication through its actual source owner and keep test-only rollback observations out of production profiles.
Use actual allocated frame sources and admitted notification input in the retained transport controls. Replace obsolete forced-rendezvous scenarios with complete queued CALL, exact RECV and native REPLY flows, preserving early-publication refusals and independent scheduler preferences; verify that sender-slot reuse cannot substitute a replacement frame for the captured original.
Withdraw both original public frame bindings before installing the replacement sender slot, so only actual private queue custody can deliver the original frame. Assert that its READ attenuation cannot create a mapping or change the receiver mapping count, and format the complete producer controls.
fix: Keep native receive trace inside its original capability admission
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 6m58s
79c7ae6f78
Pass the defining receive admission into the optional cleanup trace instead of entering a fresh lexical capability lookup while that owner is held. Preserve the actual receiver watch and mapped delivery path, including the original optimized all-feature regression controls.
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 6m58s
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/native-ipc-custody-transport:feature/native-ipc-custody-transport'
git switch 'feature/native-ipc-custody-transport'

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-completion-publication'
git merge --no-ff 'feature/native-ipc-custody-transport'
git switch 'feature/native-ipc-custody-transport'
git rebase 'feature/native-completion-publication'
git switch 'feature/native-completion-publication'
git merge --ff-only 'feature/native-ipc-custody-transport'
git switch 'feature/native-ipc-custody-transport'
git rebase 'feature/native-completion-publication'
git switch 'feature/native-completion-publication'
git merge --no-ff 'feature/native-ipc-custody-transport'
git switch 'feature/native-completion-publication'
git merge --squash 'feature/native-ipc-custody-transport'
git switch 'feature/native-completion-publication'
git merge --ff-only 'feature/native-ipc-custody-transport'
git switch 'feature/native-completion-publication'
git merge 'feature/native-ipc-custody-transport'
git push origin 'feature/native-completion-publication'
Sign in to join this conversation.
No description provided.