Issue #1778: outside data handed to a private function through a list parameter is not…

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).

Found

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

Needs

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

To build

Done when

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

Back to Open Issues