Repository navigation
spec(069): the Node binding's filesystem host opens inputs without blocking (amends 006, 027 and 067) - #569
Conversation
…ocking (amends 006, 027 and 067)
AI review (no-findings)Reviewing the two changed files against governance context and the diff. docs/decisions/00-founding-decisions.md — A-89 records owner ratification of spec 069 on 2026-11-08 with quote "I approve all of them." The entry is internally consistent with the spec text at "Decisions at approval" (same quote, same date, same target cycle). The entry's scope description matches the spec content. No contradiction detected. specs/069-node-host-nonblocking-open/spec.md — Checking frontmatter and body:
Technical soundness: Section 2.1 correctly notes that Obligations I-1, I-2, R-1 are consistent with the normative sections they anchor. {"head": "20533f0c025a84812ef10c5105d11df5bb292d1c", "verdict": "no-findings", "findings": []}Subject: e457670...20533f0, diff digest ae7f30f639e1a57b05cdd38b7fccbb7e27a02f76d5e57729efe3fae87d68dab2, 1 call(s). An AI comment is not an approval. |
…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.
Summary
Spec 069 for #566, ratified by the owner on 2026-11-08 (A-89). It amends 067 (3.4.2 and the residual race in its implementation record), 027 (the Node binding's filesystem host) and 006 (3.3.1's non-blocking open, which moves to a shared home).
liveRunfilesystem host (integrations/rustev-node/src/live_fs.rs) opens inputs and store items with the standard library's blocking open, so a regular file swapped for a FIFO between the metadata check and the open blocks the call. The CLI closes that window withO_NONBLOCK(006 3.3.1).rustev_cli::io::open_inputmoves unchanged intorustev_surface::host::open_input(Unix-onlylibcdependency, nounsafe); the CLI calls it; the Node host opens inputs with it and store items with it plusO_NOFOLLOW.rustev-surfacetest pins the open on a FIFO and a symbolic link.docs/decisions/00-founding-decisions.md.Spec only; the implementation follows in its own pull request. Increments: one (implementation and tests in a single change).
Verification
make gatepasses;spec-spine coupleagainstorigin/mainpasses.