Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(contract): catch badge-form language counts, correct the README badge
Martin Vogel6639bae57199
diff --git a/README.md b/README.mdindex 3ba2b0c89..a3ab6e368 100644--- a/README.md+++ b/README.md@@ -4,7 +4,7 @@[](LICENSE)[](https://github.com/DeusData/codebase-memory-mcp/actions/workflows/dry-run.yml)[](https://github.com/DeusData/codebase-memory-mcp)-[](https://github.com/DeusData/codebase-memory-mcp)+[](https://github.com/DeusData/codebase-memory-mcp)[](#hybrid-lsp)[](https://github.com/DeusData/codebase-memory-mcp)[](https://github.com/DeusData/codebase-memory-mcp)diff --git a/tests/repro/repro_call_argument_matrix_b.c b/tests/repro/repro_call_argument_matrix_b.cindex 2ddaeca0b..733781344 100644--- a/tests/repro/repro_call_argument_matrix_b.c+++ b/tests/repro/repro_call_argument_matrix_b.c@@ -1,5 +1,5 @@/*- * Exhaustive call-argument reproduction matrix, CBMLanguage 80..163.+ * Exhaustive call-argument reproduction matrix, CBMLanguage 80..164.** Every language in this numeric range whose live spec has call-node metadata* owns one TEST row below. Semantic applications are exercised twice: once asdiff --git a/tests/test_language_count_contract.sh b/tests/test_language_count_contract.shindex 1b664c0d1..bf910c771 100644--- a/tests/test_language_count_contract.sh+++ b/tests/test_language_count_contract.sh@@ -81,7 +81,15 @@ for path in "${SURFACES[@]}"; dofailures=$((failures + 1))continuefi- hits=$(grep -oE '[0-9]{2,3} languages' "$path" | grep -oE '^[0-9]+' | sort -u || true)+ # Two claim forms. Prose says "<N> languages"; a shields.io badge says+ # "languages-<N>-colour". The badge was MISSED by the first version of this+ # contract: it gated only the prose form, so README's badge sat three behind+ # the prose in the same file while this test reported success. The lesson is+ # that the enumeration and the gate must not share a regex — if they do, the+ # gate can only ever confirm what the enumeration already saw.+ hits=$( { grep -oE '[0-9]{2,3} languages' "$path" | grep -oE '^[0-9]+'+ grep -oiE 'languages-[0-9]{2,3}' "$path" | grep -oE '[0-9]+$'+ } | sort -u || true)if [[ -z "$hits" ]]; thenecho "FAIL: $path is registered as a language-count surface but states no" \"count — either it lost the claim (drop it from SURFACES) or the" \@@ -113,7 +121,7 @@ while IFS= read -r path; do"SURFACES so it stays in step with the registry, or to EXEMPT with a" \"note saying what its number actually counts." >&2failures=$((failures + 1))-done < <(git grep -IlE '[0-9]{2,3} languages' || true)+done < <(git grep -IlE '[0-9]{2,3} languages|languages-[0-9]{2,3}' || true)if ((failures > 0)); thenecho "FAIL: $failures language-count contract violation(s)" >&2