Files
codebase-memory-mcp/tests
Andrew Hundt 76565f3592 feat(architecture): expose Leiden resolution as a config-tunable knob (#41)
cbm_store_get_architecture hardcoded Leiden resolution (gamma) = 1.0 at both
cbm_leiden call sites (arch_clusters + the cbm_louvain wrapper). gamma
controls cluster granularity (>1 -> smaller/more clusters, <1 -> larger).

- store: add a `double leiden_resolution` param to cbm_store_get_architecture
  (after hotspot_limit, matching its existing config-threaded-param pattern)
  and to arch_clusters; cbm_louvain keeps its 1.0 default (separate low-level
  API). NaN/non-positive clamps to 1.0 (same hardening as the PageRank NaN
  fix, #44).
- mcp: CBM_CONFIG_ARCH_RESOLUTION ("architecture_resolution") read via
  cbm_config_get_double (default 1.0) and passed through handle_get_architecture.
- test_store_arch: arch_clusters_resolution_knob verifies the knob is threaded
  (multiple resolutions succeed + valid output) and NaN clamps. 14 existing
  callers updated to pass 1.0 (compiler-enforced). store_arch 52 pass.

Signed-off-by: Andrew Hundt <ATHundt@gmail.com>
2026-06-26 21:27:12 -04:00
..
2026-06-03 02:13:30 +02:00