Files
codebase-memory-mcp/src/semantic
Andrew Hundt 7f0ceed27d fix(parallel): harden lazy shared caches
Make cbm_system_info() publish its first-call cache with a C11 atomic one-shot state machine while preserving the existing Windows, macOS, BSD, and Linux detector branches and fallbacks.

Build the semantic pretrained-token map locally, use the portability strdup wrapper for new allocations, and keep the deterministic sparse-vector fallback when allocation fails without leaking partial key/value pairs.

Add a parallel first-call system-info regression covering consistent published snapshots.

Validation: make -f Makefile.cbm build/c/test-runner; CBM_ONLY_SUITE=system_info ./build/c/test-runner; CBM_ONLY_SUITE=worker_pool ./build/c/test-runner; CBM_ONLY_SUITE=pipeline ./build/c/test-runner; bash scripts/check-source-safety.sh; git diff --check.
Signed-off-by: Andrew Hundt <ATHundt@gmail.com>
2026-06-30 19:00:54 -04:00
..