[BUG] Native wildcard imports shadow the two-parameter Result type #26

Closed
opened 2026-09-30 16:35:25 +02:00 by erikinkinen · 0 comments
Owner

Summary

Native wildcard imports in Posixd's existing held-file and pathname wire modules bring lib_ipc::Result<T> into scope, while function signatures use the two-parameter Result<T, Error> form. The imported native alias takes only one type argument. This source-level type-arity defect prevents those modules from being compiled as written. Remove the wildcard imports and explicitly import only the native wire types/constants; preserve the intended local error type and the standard two-parameter result.

Reproduction

At Posixd revision fcf6641ad71f7d065d5d6ca81eedd16e9df05aec, inspect src/realm_io/external/file/wire.rs and src/realm_io/external/path_call/wire.rs. Both import the native module with a wildcard and declare two-parameter results. At their selected LibIPC revision bebb7a740d1eb665e7325e5c6f3a7a0ec501032d, src/error.rs declares pub type Result<T> = core::result::Result<T, Error> and the crate publicly re-exports it.

When compilation is re-enabled, compile the Posixd library under its supported target/configuration and retain the exact compiler result. No reproduction command was executed for this report: test/build/lint execution and CI observation remain deferred by user instruction.

Expected and actual behavior

Expected: the wire modules use the local mediator error type through the standard two-parameter result, while explicitly importing native packet and body contracts.

Actual source: the native one-parameter alias shadows that result name. The mismatch is identified from declarations and imports; no compiler diagnostic, exit status or runtime reproduction is claimed.

Environment and identity

  • Component: Posixd fcf6641ad71f7d065d5d6ca81eedd16e9df05aec; LibIPC bebb7a740d1eb665e7325e5c6f3a7a0ec501032d.
  • Integration source graph: 5d59dafe2da5aaccfee52ec83d706d760d01d928.
  • Image/profile/runtime configuration: none executed for this source audit.
  • Architecture/toolchain: source name-resolution defect; no toolchain execution in this report.
  • Authority: repair changes imports only and supplies no new route, capability or ownership.
  • Last known working revision: not established.

Evidence and prior checks

The selected native alias declaration and both production wire-module signatures are direct source evidence. The same audit removed the analogous wildcard from the new directory wire adapter before publication. Explicit imports preserve the intended local error domain. Existing and newly authored runtime controls remain unrun; no CI result was inspected.

Tracking

Related work: original file status and seekable directories, Posixd review, and phase completion. The source repair and coherent revisions are signed and published; deferred test execution does not gate implementation acceptance.

Shared directory descriptions — 30 September 2026

Tell retains metadata-only bookmarks in the actual counted description arena and reuses existing associations; seek requires the original full description key.

Complete native correlation and output admission precede cursor progress; capacity and unknown-identity refusals preserve it. No new native route or clock grant is added.

The full status/directory work remains open: complete provider metadata/identity, pipe/stream status, remaining controls and full-parent reconciliation are unfinished. Both full EriX guest generations and external Rust/LLVM rebuilding inside EriX remain required and unperformed.

Related records and contracts
Repository Links
docs PR 4
integration PR 12
lib-posixabi PR 3
posixd issue 26
rootd PR 2
## Summary Native wildcard imports in Posixd's existing held-file and pathname wire modules bring `lib_ipc::Result<T>` into scope, while function signatures use the two-parameter `Result<T, Error>` form. The imported native alias takes only one type argument. This source-level type-arity defect prevents those modules from being compiled as written. Remove the wildcard imports and explicitly import only the native wire types/constants; preserve the intended local error type and the standard two-parameter result. ## Reproduction At Posixd revision `fcf6641ad71f7d065d5d6ca81eedd16e9df05aec`, inspect `src/realm_io/external/file/wire.rs` and `src/realm_io/external/path_call/wire.rs`. Both import the native module with a wildcard and declare two-parameter results. At their selected LibIPC revision `bebb7a740d1eb665e7325e5c6f3a7a0ec501032d`, `src/error.rs` declares `pub type Result<T> = core::result::Result<T, Error>` and the crate publicly re-exports it. When compilation is re-enabled, compile the Posixd library under its supported target/configuration and retain the exact compiler result. No reproduction command was executed for this report: test/build/lint execution and CI observation remain deferred by user instruction. ## Expected and actual behavior Expected: the wire modules use the local mediator error type through the standard two-parameter result, while explicitly importing native packet and body contracts. Actual source: the native one-parameter alias shadows that result name. The mismatch is identified from declarations and imports; no compiler diagnostic, exit status or runtime reproduction is claimed. ## Environment and identity - Component: Posixd `fcf6641ad71f7d065d5d6ca81eedd16e9df05aec`; LibIPC `bebb7a740d1eb665e7325e5c6f3a7a0ec501032d`. - Integration source graph: `5d59dafe2da5aaccfee52ec83d706d760d01d928`. - Image/profile/runtime configuration: none executed for this source audit. - Architecture/toolchain: source name-resolution defect; no toolchain execution in this report. - Authority: repair changes imports only and supplies no new route, capability or ownership. - Last known working revision: not established. ## Evidence and prior checks The selected native alias declaration and both production wire-module signatures are direct source evidence. The same audit removed the analogous wildcard from the new directory wire adapter before publication. Explicit imports preserve the intended local error domain. Existing and newly authored runtime controls remain unrun; no CI result was inspected. ## Tracking Related work: [original file status and seekable directories](https://git.erikinkinen.fi/erix/posixd/issues/25), [Posixd review](https://git.erikinkinen.fi/erix/posixd/pulls/5), and [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). The source repair and coherent revisions are signed and published; deferred test execution does not gate implementation acceptance. ### Shared directory descriptions — 30 September 2026 Tell retains metadata-only bookmarks in the actual counted description arena and reuses existing associations; seek requires the original full description key. Complete native correlation and output admission precede cursor progress; capacity and unknown-identity refusals preserve it. No new native route or clock grant is added. The [full status/directory work](https://git.erikinkinen.fi/erix/posixd/issues/25) remains open: complete provider metadata/identity, pipe/stream status, remaining controls and full-parent reconciliation are unfinished. Both full EriX guest generations and external Rust/LLVM rebuilding inside EriX remain required and unperformed. <details> <summary>Related records and contracts</summary> | Repository | Links | | --- | --- | | docs | [PR 4](https://git.erikinkinen.fi/erix/docs/pulls/4) | | integration | [PR 12](https://git.erikinkinen.fi/erix/integration/pulls/12) | | lib-posixabi | [PR 3](https://git.erikinkinen.fi/erix/lib-posixabi/pulls/3) | | posixd | [issue 26](https://git.erikinkinen.fi/erix/posixd/issues/26) | | rootd | [PR 2](https://git.erikinkinen.fi/erix/rootd/pulls/2) | </details>
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:35:07 +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/posixd#26
No description provided.