1 Commits
Author SHA1 Message Date
w3cjandClaude Opus 5.5 1ecd1faa73 build(nilaway): mise run nilaway against a triaged baseline, an advisory CI job, and two crashes it found
nilaway is pinned in mise.toml at its newest commit's pseudo-version (it
has no releases); bump.sh's dev-tools moves it, and TestBumpCoversPins
covers it through mise.toml:tool:*. mise run nilaway runs
scripts/nilaway.sh: devvm's own packages, not the tests or their helpers
(stubtest, backendtest), compared with testdata/nilaway-baseline.txt, the
findings triaged as false positives, each with its group (checked,
bounds, mapkey, nilsafe), keyed by file and trace without line numbers,
one line for each finding, compared as multisets. It exits 3 on a new
finding, a key found more often than the baseline has it included, and
1 when nilaway can't run, when a finding in its output can't be read,
or when a baseline line is stale or malformed. TestNilawayBaseline
checks each case with a stand-in nilaway. CI's nilaway job is
continue-on-error: it warns on new findings and lists the new and stale
ones, then every finding, in the run's summary, failing when the script
exits 1.

The first run reported 83 findings, 69 without the test helpers. Two
were real:
- agentlogin.Restore sliced above[1:] for a settings file that is one
  JSON string holding a placeholder, where above is empty, and
  devvm agent save panicked.
- agentlogin's readJSON returned a nil map, with no error, for a file
  that is null, which the Codex and opencode captures then wrote to. It
  now refuses it as not a JSON object.
The other 67 are the baseline. Both fixes get a CHANGELOG Fixed entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 19:36:27 -07:00