Open and answer this issue on GitHub.
selfhosting, blocked, briefs · opened 2026-11-17 · updated 2026-11-17 · 1 comment
Part of #125. Found by the survey of crates/nikaia-std/src for small Rust that moves; continues #2034 in runtime/env.nika.
Which environment entries no platform accepts (ADR-243 D7) is decided in Nikaia: invalid_entries moves to runtime/env.nika; src/process.rs calls it.
crates/nikaia-std/src/process.rs lines 320-350, pub fn invalid_entries(env: &[(String, String)], env_remove: &[String]) -> Vec<String> with the closure name_fault: empty name, = or NUL in a name, NUL in a value, each as a message. Pure text logic. Caller: process.rs line 261; Rust tests at lines 861 and 866.
ADR-294 (self-hosting): pub fn invalid_entries(env: ref Vec[(String, String)], env_remove: ref Vec[String]) -> Vec[String] sync and a private name_fault(name: ref String) -> String? in runtime/env.nika, re-exported by process.rs. The messages quote names with Rust’s {:?}; the Nikaia form must produce the same text for the names the tests use (plain, with =, with NUL). If Nikaia has no way to write a name quoted and escaped as {:?} does, that is a kind-2 gap: stop and report it with a probe; do not change the messages.
invalid_entries and name_fault in runtime/env.nika, with the doc comment from process.rs.src/process.rs: remove both, use the runtime one under the same path. Lower with nikaia lower-std.process.rs 855-870 to tests/compiler/tests/process_env_invalid.nika with its .stdout (a spawn with a bad name prints the error), or name in the report the test that already shows it.src/process.rs holds no invalid_entries; the error text is unchanged; clippy is clean.
crates/nikaia-std/src/process.rs, runtime/env.nika, runtime/lowered/, runtime/lowered.rs, the test. Waits for #2034 if that has not landed (same file).
Moving merged/same_name (process.rs 352-387): they work on OsString and need a text primitive first.
Generated by Claude Code
Driver: not queued, this issue waits for #2034, which is still open (#1819). Set ready again when it is closed.
Generated by Claude Code