immutable in NikaiaOpen and answer this issue on GitHub.
ready · opened 2026-11-21 · updated 2026-11-21 · 0 comments
Part of #1199 After #1199
#1199’s last item: use an item-level immutable for the directory the sweep of accepted programs collects them in. Today it is accepted_dump_dir() in crates/nikaia/src/check/mod.rs, Rust that reads NIKAIA_DUMP_ACCEPTED once through a OnceLock; ADR-389 D5 writes it as immutable DUMP_DIR: String? = env::var("NIKAIA_DUMP_ACCEPTED"). It needs the item level, which #1199 builds.
immutable in Nikaia, in the move of check_walked into Nikaia (#125): accepted_dump_dir() and its OnceLock go, and its callers (dump_accepted in check/mod.rs, the parser’s dumped_source in parser/mod.rs) read the immutable.
crates/nikaia/tests/it/accepted_sweep.rs, run with NIKAIA_DUMP_ACCEPTED set) still collects the accepted programs; with the variable unset nothing is written.NIKAIA_DUMP_ACCEPTED is read through an item-level immutable written in Nikaia and accepted_dump_dir() is gone from check/mod.rs; the report gives a Found: line per finding.
Split from #1199 by Claude Code