Issue #2565: Every std entry that reaches the outside names its permission kind in std.contracts

Open and answer this issue on GitHub.

tools, compiler, ready, future · opened 2026-11-21 · updated 2026-11-21 · 0 comments

Part of #1433 After #2563

What it is

Every std entry that reaches the outside names its permission kind in crates/nikaia-std/std.contracts, by the vocabulary of #1433 (file(root), net, stdin/stdout/stderr, args, env, clock(wall), clock(mono), random, system, exit, process, native). On 2026-11-08 env::var, env::temp_dir, time::now, time::since_epoch, time::Instant::elapsed, process::run, process::spawn and process::exit had no touches and so counted as “everything”; on 2026-11-21 std.contracts still holds 635 entries with touches = [], and the only kinds written are file, socket, stdout, stderr, args and lock.

To build

  1. An audit of std.contracts: every entry with touches = [] checked against what its Rust in crates/nikaia-std/src does. The result is a list on this issue (I13); a wrong entry is fixed as its own commit.
  2. Kinds for every std entry that reaches the outside, in std.contracts: the entries named above, and every other one found in item 1 (socket becomes net). Test: a .nika in tests/compiler/ per kind that calls one entry and prints its touches through nikaia permissions (rows: the kind and its mode). The new kinds must not reorder any statement that is ordered today.

Done when

Every std entry the audit finds reaching the outside names its kind in std.contracts, the audit’s list is on this issue, and one test per kind shows the kind and its mode through nikaia permissions; the commit finishing item 2 carries Fixes with this issue’s number, and the report has a Found: line per finding.

Files

crates/nikaia-std/std.contracts. Not changed: what touches orders (ADR-292).

Split from #1433 by Claude Code

Back to Open Issues