Issue #2541: The accepted-programs dump directory is an item-level immutable in Nikaia

Open and answer this issue on GitHub.

ready · opened 2026-11-21 · updated 2026-11-21 · 0 comments

Part of #1199 After #1199

What it is

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

To build

  1. The dump directory as an item-level 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.
    • Test: the accepted sweep (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.

Done when

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

Back to Open Issues