mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-10-25 06:33:13 +08:00
The complexity guard did not cover the shell, Make, CI, Terraform and chartRef resolvers. Extending it found one quadratic lookup: a helm_release's block node was looked up among every node of that name and walked for the one in the same file, so modules sharing a release name (the common `helm_release "this"`) made each lookup scan all of them. tf_candidates went 12 -> 42 per doubling (3.50). - pass_terraform: look the block up by the QN its definition got (cbm_fqn_compute + cbm_gbuf_find_by_qn), keeping the file check. 6 -> 12 (2.00). Output identical on the three corpora with helm_release; incremental equals full. - Counters: g_tf_candidates (new), Make rule probes into g_sh_candidates, chartRef in-edges into g_k8s_candidates. - test_complexity: the fixture copier recurses into directories; new fixtures Bash (composite action -> make -> scripts -> kubectl / helm), HCL (helm_release of a module chart and of an external one), a Go chart loader, and a Flux HelmRelease chartRef; sh_candidates and tf_candidates are gated (non-vacuous, ratio), with fx_Bash and fx_HCL nodes and edges. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>