mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
Verification agent (12-hour cadence, #2794) caught v3.32.17's #2752 MemPoison env var without the ADR-125 §"CLI flag wins" / ADR-130 §env-var-config-precedence pattern. CI on main red since 03:04 UTC. Fix (Option A per the report): restructure the read so the CLI flag takes precedence via nullish coalescing, with the exact ADR-125 comment the audit script scans for: // CLI flag ctx.flags.scanContent takes precedence over // RUFLO_MEMORY_SCAN_ON_WRITE env var (ADR-125 / ADR-130 — #2794). const scanContent = (ctx.flags.scanContent as boolean | undefined) ?? /^(1|true|yes|on)$/i.test(String(process.env.RUFLO_MEMORY_SCAN_ON_WRITE ?? '')); Removed `default: false` from the option definition so the parser leaves the flag `undefined` when the user doesn't pass it — required for `?? env` to see the env value. Explicit `--no-scan-content` still sets false and correctly wins over any env value. Audit script confirms: "ok: all CLAUDE_FLOW_* / RUFLO_* env var reads have documented CLI-flag precedence". Regression tests still pass: planflip-mempoison-2752 (6/6) + memory-search-2790 (4/4) — 10/10 total for the affected paths. Closes: #2794. Co-Authored-By: RuFlo <ruv@ruv.net>