Files
codebase-memory-mcp/scripts
Andrew Hundt 861146d922 fix(cli): restore preset dispatch and semantic smoke checks
Commit de041755 added six atomic capability presets, but the current cbm_cmd_config dispatcher no longer routed 'config preset list' or 'config preset apply <name>'. Restore those commands through the existing cbm_config_apply_preset transaction, preserve environment-over-database priority, and return status 1 when an override prevents the requested effective configuration.

Keep the upstream-compatible four-row config list while reporting effective branch defaults, including auto_index=true. Replace nine stale 'Sessions and Subagents' heading assertions in scripts/smoke-test.sh with one check for the installed delegation contract emitted under 'Freshness and Delegation'.

Files: src/cli/cli.c; tests/test_cli.c; scripts/smoke-test.sh.

Verification: 234/234 CLI tests passed under ASan/UBSan; the -O2 production binary listed/applied presets and rejected an overridden tool_mode with status 1; the isolated agent-config install/uninstall smoke passed; scripts/check-source-safety.sh and git diff --cached --check passed.
Signed-off-by: Andrew Hundt <ATHundt@gmail.com>
2026-07-20 14:57:00 -04:00
..