Open and answer this issue on GitHub.
decision, bugs · opened 2026-11-16 · updated 2026-11-16 · 0 comments
Filed by the driver from the Found: of the run of issue-1628 (#1628) (owner, 2026-11-06).
outside data handed to a private function through a list parameter is not asked in the callee unless its goal is a precondition over the parameters: fn lists(all: Vec[Vec[String]]) -> i64 { let mut n = 0; for v in all { let k = v.len() - 1; n += v[k].len() }; return n } called as lists(all), where all: Vec[Vec[String]] = [process::run("echo", ["ab cde"]).stdout.split(" ").collect()], gives “v[k] checked: no fact bounds what it reads”, Checked. It should give NK1302 (ADR-396 D1: “The walk follows the value through every call whose body it reads in the package”), as the same loop in main does (“k from all: refused NK1302”). Also fn last(v: Vec[String]) -> i64 { let k = v.len() - 1; return v[k].len() }: checked, no derived precondition. Cause: prover_outside/prover_outside_block (prover_calls.nika) taint results and fields, never parameters; unwritten_call (prover_state.nika) asks only checks whose goal can be stated over the parameters
supervisor decision: should a parameter that a caller fills with outside data be tainted inside a private callee (fix a), or should a check the callee cannot state be refused at an outside call (fix b)? With the answer this issue can be built
std defect with a probe (nikaia run scripts/probe.nika -- SNIPPET), a defect in docs/ or scripts/ with the command or check that shows it; a behaviour the code does on purpose (name the function or ADR) closes it as by design. The Found line may lack them (#1710): the commit message, or the report’s Body: when closed, gives the probe or check with its expected output, the ADR or Part I-III section that says so, and its actual output (docs/issues.md I5, I6), and the cause, file and function, traced or suspected (I7).tests/compiler/tests/, unless a check that already runs (name it, e.g. check-adr-refs.py for a docs citation) turns red on it.The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the issue is closed as by design, naming the function or ADR.
Generated by Claude Code