[BUG] Synchronize the existing compatibility 1.33 Rust and C wire contract #79

Closed
opened 2026-11-07 11:45:24 +01:00 by erikinkinen · 0 comments
Owner

Summary

The already implemented compatibility 1.33 codec and its public C version
constant and independent wire fixtures disagree. Rust accepts exactly minor 33,
but the C header still advertises 29 and several literal fixtures emit 29. The
host test suite therefore rejects intended positive frames at the version guard
before it reaches their body and error-precedence checks.

Reproduction

Use the exact source and tracked CI provider graph from
PR #78, commit
29c5fd4f4feb5babaf0f7db7d4a6e7b283a2e391. Prepare its original Cargo workspace
with the checked workflow, then run its existing command:

cargo test --manifest-path "$ERIX_CI_WORKSPACE/Cargo.toml" --all-features

The independent pipe, readiness and status literals reproduce the mismatch.
Compare VERSION_MINOR_V1 in src/header.rs with
ERIX_POSIX_VERSION_MINOR_V1 in include/erix/posixabi.h and the C header probe.

Expected and actual behavior

Rust and C advertise the existing current minor 33. Independent positive frames
use literal 1.33 headers, while older and future minor versions remain rejected.
Body geometry, request correlation, exact error precedence and atomic output
checks remain effective.

Actual CI reports 44 passing and 11 failing library tests. Intended positives
return UnsupportedMinorVersion; malformed-body tests receive that error before
their intended body validation. Other integration literals and the C probe also
retain the old version and require the same complete audit. This is not a
request to accept older frames or lower the defining Rust version.

Environment and identity

  • Component: erix/lib-posixabi, exact commit above and its tracked
    .github/ci-source-graph.toml / .github/ci-repositories.toml.
  • Image profile and digest: none; this reproduction is host CI, not a guest boot.
  • Architecture/toolchain: x86_64 Linux CI, Rust 1.93.1 and the existing workflow.
  • Input route and authority: capability-free codec byte fixtures; no terminal
    view or native process authority is acquired by parsing them.
  • Last known working revision: not established by this report.

Evidence and prior checks

Exact failing job log.
Source admission, actual-consumer checks, formatting, debug/release strict Clippy
and debug/release builds passed before the test failure. The original tests and
all later freestanding gates remain required; the failing test command stops
that run before those later gates.

Tracking

The current terminal work is described by PR #68,
PR #69,
PR #70 and
PR #71.
The broader design is Cstd #20
and Phase 6.

Synchronize the existing 1.33 Rust/C wire contract, all independent literal and
C controls, and maintained documentation. Preserve strict rejection of every
older minor and future versions. Audit terminal constant coverage separately
from any genuinely new callable API or native terminal implementation.

## Summary The already implemented compatibility 1.33 codec and its public C version constant and independent wire fixtures disagree. Rust accepts exactly minor 33, but the C header still advertises 29 and several literal fixtures emit 29. The host test suite therefore rejects intended positive frames at the version guard before it reaches their body and error-precedence checks. ## Reproduction Use the exact source and tracked CI provider graph from [PR #78](https://git.erikinkinen.fi/erix/lib-posixabi/pulls/78), commit `29c5fd4f4feb5babaf0f7db7d4a6e7b283a2e391`. Prepare its original Cargo workspace with the checked workflow, then run its existing command: ```sh cargo test --manifest-path "$ERIX_CI_WORKSPACE/Cargo.toml" --all-features ``` The independent pipe, readiness and status literals reproduce the mismatch. Compare `VERSION_MINOR_V1` in `src/header.rs` with `ERIX_POSIX_VERSION_MINOR_V1` in `include/erix/posixabi.h` and the C header probe. ## Expected and actual behavior Rust and C advertise the existing current minor 33. Independent positive frames use literal 1.33 headers, while older and future minor versions remain rejected. Body geometry, request correlation, exact error precedence and atomic output checks remain effective. Actual CI reports 44 passing and 11 failing library tests. Intended positives return `UnsupportedMinorVersion`; malformed-body tests receive that error before their intended body validation. Other integration literals and the C probe also retain the old version and require the same complete audit. This is not a request to accept older frames or lower the defining Rust version. ## Environment and identity - Component: `erix/lib-posixabi`, exact commit above and its tracked `.github/ci-source-graph.toml` / `.github/ci-repositories.toml`. - Image profile and digest: none; this reproduction is host CI, not a guest boot. - Architecture/toolchain: x86_64 Linux CI, Rust 1.93.1 and the existing workflow. - Input route and authority: capability-free codec byte fixtures; no terminal view or native process authority is acquired by parsing them. - Last known working revision: not established by this report. ## Evidence and prior checks [Exact failing job log](https://git.erikinkinen.fi/api/v1/repos/erix/lib-posixabi/actions/jobs/63814/logs). Source admission, actual-consumer checks, formatting, debug/release strict Clippy and debug/release builds passed before the test failure. The original tests and all later freestanding gates remain required; the failing test command stops that run before those later gates. ## Tracking The current terminal work is described by [PR #68](https://git.erikinkinen.fi/erix/lib-posixabi/pulls/68), [PR #69](https://git.erikinkinen.fi/erix/lib-posixabi/pulls/69), [PR #70](https://git.erikinkinen.fi/erix/lib-posixabi/pulls/70) and [PR #71](https://git.erikinkinen.fi/erix/lib-posixabi/pulls/71). The broader design is [Cstd #20](https://git.erikinkinen.fi/erix/lib-cstd/issues/20) and [Phase 6](https://git.erikinkinen.fi/erix/integration/issues/65). Synchronize the existing 1.33 Rust/C wire contract, all independent literal and C controls, and maintained documentation. Preserve strict rejection of every older minor and future versions. Audit terminal constant coverage separately from any genuinely new callable API or native terminal implementation.
erikinkinen added this to the Alpha 1 milestone 2026-11-07 11:45:24 +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/lib-posixabi#79
No description provided.