Skip to content

deps(069): rustev-surface takes libc on Unix for the shared non-blocking open - #575

Merged
bartekus merged 1 commit into
mainfrom
deps/069-surface-libc
Nov 8, 2026
Merged

bartekus merged 1 commit into
mainfrom
deps/069-surface-libc

Conversation

@bartekus

@bartekus bartekus commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Dependency part of spec 069 (#566), split out because governance's policy-isolation guard refuses dependency and code changes in one pull request: rustev-surface takes libc 0.2 for Unix targets only ([target.'cfg(unix)'.dependencies]), for the non-blocking open that spec 069 3.1 moves into rustev_surface::host. libc is already in the lockfile (as rustev-cli's dependency), so Cargo.lock only gains the edge; no new crate or version enters the build. Spec 069 (on main) declares this edge (extends on Cargo.lock, 3.1.2).

The code change follows in #570, rebased onto this one. rustev-cli's own libc dependency stays until a later dependency-only pull request drops it.

Verification

  • make gate and spec-spine couple pass.

Spec-Drift-Waiver: manifest-only dependency change for spec 069's approved section 3.1.2 (A-89, which declares extends on Cargo.lock and crates/rustev-surface/); the spec record is in the companion implementation pull request #570, because the policy-isolation guard forbids a spec edit beside a manifest. Covered by the owner's approval of spec 069 and of the 0.7.0 cycle on 2026-11-08, as for #553.

bartekus added a commit that referenced this pull request Nov 8, 2026
…ocking; spec 069 complete (#570)

## Summary

Implements spec 069 (#566; spec merged in #569). Stacked on #575, the
dependency-only change (`rustev-surface` takes `libc` on Unix), which
the policy-isolation guard requires to be its own pull request. Spec 069
becomes `implementation: complete`.

- **Shared open:** `rustev_surface::host::open_input` is the CLI's
former `open_input`, moved unchanged (read-only; Unix `O_NONBLOCK`, plus
`O_NOFOLLOW` with `no_follow`; plain open elsewhere). The `libc`
dependency arrives in #575; `rustev-cli` keeps its now-unused `libc`
entry until a later dependency-only change, and re-exports the function,
so its callers and tests are unchanged.
- **Node host:** `integrations/rustev-node/src/live_fs.rs` opens
document inputs through `open_regular` (non-blocking, check on the
handle) and store items through `open_item` (non-blocking, no-follow),
closing the FIFO swap race 067's record left to #566.
- **Tests:** `rustev-surface` `open_tests` (FIFO opens at once; a link
is refused with `no_follow`) and `rustev-node`
`a_fifo_reached_by_the_open_is_refused_without_blocking` (input and
store item refused within 10 s; linked store item refused), Unix only.
- **Mutation seeds:** the three CLI seeds whose hunks sat in the moved
function now name `crates/rustev-surface/src/host.rs`.
- **Verification:** 069 joins `VERIFIED_SPECS` and the `node-live`
acceptance group.

## Verification

- `make gate` and `spec-spine couple` pass.
- `cargo test` for `rustev-surface`, `rustev-node` and `rustev-cli`,
clippy and fmt: run locally in parallel with CI; results follow in a
comment.
@bartekus
bartekus enabled auto-merge November 8, 2026 20:08
@bartekus
bartekus disabled auto-merge November 8, 2026 20:08
@bartekus
bartekus force-pushed the deps/069-surface-libc branch from 4ce6355 to f9de5a4 Compare November 8, 2026 20:08
@bartekus
bartekus enabled auto-merge November 8, 2026 20:09
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the diff: a Unix-conditional libc = "0.2" dependency is added to rustev-surface, with a comment citing spec 069 section 3.1.2 (non-blocking open flags). The Cargo.lock is updated consistently.

Checks performed:

  • Cargo.toml syntax and placement: The [target.'cfg(unix)'.dependencies] section is correctly placed after the main [dependencies] block and before [dev-dependencies]. Syntax is valid.
  • Version specifier: libc = "0.2" is an unqualified minor-version range; libc follows semver carefully and 0.2 has been stable for years. The lock file will pin the exact version. No concern.
  • Boundary rules (AGENTS.md): The stated restrictions are on rustev-contract and rustev-core (no async runtime; rustev-core forbids unsafe and I/O). rustev-surface carries no such restriction in the governance context. libc is not Aicortex, Rahi, statecraft-cli, or an HTTP stack, so the integrations/*-only rule does not apply.
  • Spec reference: Spec 069-node-host-nonblocking-open exists in the repo context. The comment's citation of that spec for non-blocking open flags is internally consistent.
  • Lock file consistency: The lock diff shows only the addition of "libc" to rustev-surface's dependency list; libc itself was already present in the workspace lock file (not newly introduced at the crate level), which is the expected shape of this change.
  • Security: libc is used here for POSIX flag constants (O_NONBLOCK), not for unsafe I/O operations in this diff. No security concern in the dependency addition itself.

No concrete defect found.

{"head": "f9de5a4e9421d8b90db406d1124ca1db5233e243", "verdict": "no-findings", "findings": []}

Subject: f81dc04...f9de5a4, diff digest cbdccfd0d6e8659bf2a451160ade544a949eb2d6822bbb65132171e4b14c4b0a, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit 6cc5eb3 Nov 8, 2026
33 of 40 checks passed
@bartekus
bartekus deleted the deps/069-surface-libc branch November 8, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant