[BUG] Serve owned native clock requests on the delegated public endpoint #3

Closed
opened 2026-10-02 09:58:26 +02:00 by erikinkinen · 0 comments
Owner

Summary

The realm mediator submits clock observations using owned native SUBMIT, but Timed's public service only receives and replies using legacy IPC. It neither registers the public endpoint for owned requests nor claims/completes that queue. Kernel owned SUBMIT requires an explicit live receiver registration and otherwise returns NOT_FOUND before accepting a caller. Consequently the configured native clock path cannot reach Timed's existing clock handler.

Reproduction

Source inspection at the revisions below establishes the incompatible producer/consumer contracts: follow Posixd ClockQuery::advance through Caller::submit and native invocation::submit; Kernel invocation/admission.rs rejects a missing registered receiver; Timed service_loop exclusively uses recv_message_with_timeout and legacy reply helpers. Search the complete Timed source for register_receiver, CLAIM and COMPLETE; no owned public intake exists. An actual realm-clock VM or warning-denied host/native build has not been executed under the current testing waiver. Runtime frequency and last working artifact are not claimed.

Expected and actual behavior

An explicitly delegated realm Clock/Read observation should reach the actual time provider through matching transport, preserve original native caller/serving ownership and return correlated time evidence. The source-selected route currently fails owned native admission with NOT_FOUND and no accepted caller. Legacy clock callers remain a separate working contract; their presence does not register an owned receiver.

Environment and identity

  • Timed revision: ce25c6812f552ab9ad5c3a193af0e40182ea84ad.
  • Posixd revision: 3e9f22d7092b38658d4b7595fc4b26bac83b773c.
  • Kernel revision: 702525fa50599cda14f57d6bfee6d97c4ca2d136.
  • Integration graph: d690a124ca87d7a4a5a8d58daf6dd4df1c99acea; feature branch feature/posix-compat.
  • Configuration: explicitly configured realm Clock/Read SEND through the actual Timed public endpoint; no implicit clock grant.
  • Image/digest, hardware/VM, firmware and executed toolchain: not collected; this is source evidence, not a runtime reproduction.
  • Last known working revision: unknown.

Evidence and prior checks

The producer implementation is Posixd src/realm_io/external/clock/query.rs; the kernel requirement is src/kobj/endpoint/invocation/admission.rs; the consumer is Timed src/main.rs service_loop. Repair must serve owned calls through the existing actual public endpoint, preserve legacy callers and original cancellation/retirement, and author transport-level controls using a receiver registration requirement instead of a fixture that blindly accepts submitted clock frames. Tests/builds/CI remain deferred.

Tracking

Prerequisite for race-free descriptor readiness and phase completion. Implement the actual provider transport and independent regression controls without adding native grants or falling back to a fabricated time source.

Owned public clock transport repair — 2 October 2026

No new grant, private RTC route, clock-adjustment authority or hidden clock lookup is introduced.

Legacy receive calls are nonblocking so they cannot park the daemon while the separate owned queue has work. Definite short-result-budget rejection permits one empty refusal on the same owner, without resampling; uncertain publication retains custody through original cancellation and acknowledgment.

The complete descriptor-readiness feature remains open: native atomic sleep/wakeup, explicit monotonic deadlines, original descriptor subscriptions, actual mediator/provider consumers, signal/cancellation behavior and native workloads are still unfinished. This prerequisite adds no checklist acceptance. Both full guest EriX generations and external Rust/LLVM rebuilding remain required and unperformed.

Related records and contracts
Repository Links
posixd PR 5
timed issue 3, PR 2, owned-clock.md
## Summary The realm mediator submits clock observations using owned native SUBMIT, but Timed's public service only receives and replies using legacy IPC. It neither registers the public endpoint for owned requests nor claims/completes that queue. Kernel owned SUBMIT requires an explicit live receiver registration and otherwise returns NOT_FOUND before accepting a caller. Consequently the configured native clock path cannot reach Timed's existing clock handler. ## Reproduction Source inspection at the revisions below establishes the incompatible producer/consumer contracts: follow Posixd ClockQuery::advance through Caller::submit and native invocation::submit; Kernel invocation/admission.rs rejects a missing registered receiver; Timed service_loop exclusively uses recv_message_with_timeout and legacy reply helpers. Search the complete Timed source for register_receiver, CLAIM and COMPLETE; no owned public intake exists. An actual realm-clock VM or warning-denied host/native build has not been executed under the current testing waiver. Runtime frequency and last working artifact are not claimed. ## Expected and actual behavior An explicitly delegated realm Clock/Read observation should reach the actual time provider through matching transport, preserve original native caller/serving ownership and return correlated time evidence. The source-selected route currently fails owned native admission with NOT_FOUND and no accepted caller. Legacy clock callers remain a separate working contract; their presence does not register an owned receiver. ## Environment and identity - Timed revision: `ce25c6812f552ab9ad5c3a193af0e40182ea84ad`. - Posixd revision: `3e9f22d7092b38658d4b7595fc4b26bac83b773c`. - Kernel revision: `702525fa50599cda14f57d6bfee6d97c4ca2d136`. - Integration graph: `d690a124ca87d7a4a5a8d58daf6dd4df1c99acea`; feature branch `feature/posix-compat`. - Configuration: explicitly configured realm Clock/Read SEND through the actual Timed public endpoint; no implicit clock grant. - Image/digest, hardware/VM, firmware and executed toolchain: not collected; this is source evidence, not a runtime reproduction. - Last known working revision: unknown. ## Evidence and prior checks The producer implementation is Posixd src/realm_io/external/clock/query.rs; the kernel requirement is src/kobj/endpoint/invocation/admission.rs; the consumer is Timed src/main.rs service_loop. Repair must serve owned calls through the existing actual public endpoint, preserve legacy callers and original cancellation/retirement, and author transport-level controls using a receiver registration requirement instead of a fixture that blindly accepts submitted clock frames. Tests/builds/CI remain deferred. ## Tracking Prerequisite for [race-free descriptor readiness](https://git.erikinkinen.fi/erix/posixd/issues/33) and [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). Implement the actual provider transport and independent regression controls without adding native grants or falling back to a fabricated time source. ### Owned public clock transport repair — 2 October 2026 No new grant, private RTC route, clock-adjustment authority or hidden clock lookup is introduced. Legacy receive calls are nonblocking so they cannot park the daemon while the separate owned queue has work. Definite short-result-budget rejection permits one empty refusal on the same owner, without resampling; uncertain publication retains custody through original cancellation and acknowledgment. The complete descriptor-readiness feature remains open: native atomic sleep/wakeup, explicit monotonic deadlines, original descriptor subscriptions, actual mediator/provider consumers, signal/cancellation behavior and native workloads are still unfinished. This prerequisite adds no checklist acceptance. Both full guest EriX generations and external Rust/LLVM rebuilding remain required and unperformed. <details> <summary>Related records and contracts</summary> | Repository | Links | | --- | --- | | posixd | [PR 5](https://git.erikinkinen.fi/erix/posixd/pulls/5) | | timed | [issue 3](https://git.erikinkinen.fi/erix/timed/issues/3), [PR 2](https://git.erikinkinen.fi/erix/timed/pulls/2), [owned-clock.md](https://git.erikinkinen.fi/erix/timed/src/branch/feature/posix-compat/docs/owned-clock.md) | </details>
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:35:14 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/timed#3
No description provided.