Skip to content

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.

fix(memlab): surface driver output when no request succeeds

Martin Vogel99680d3fc58d
diff --git a/scripts/memlab.sh b/scripts/memlab.sh
index 5473ff191..b2e7cb178 100644
--- a/scripts/memlab.sh
+++ b/scripts/memlab.sh
@@ -105,6 +105,11 @@ CENSUS=$(grep -c "mem.census" "$RUN_LOG" 2>/dev/null | head -1); CENSUS=${CENSUS
SITES=$(grep -c '"site"' "$PROFILE_OUT" 2>/dev/null | head -1); SITES=${SITES:-0}
echo "exit=$RC responses=$RESPONSES census_samples=$CENSUS profile_records=$SITES"
+if [ "$RESPONSES" -eq 0 ]; then
+ # A harness that hides why it failed is worse than no harness.
+ echo "--- driver output ---" >&2
+ cat "$WORK/drive.out" 2>/dev/null | tail -15 >&2
+fi
if [ "$CENSUS" -eq 0 ]; then
echo "WARN: no census samples — check CBM_MEM_CENSUS wiring" >&2
fi