Commit Graph
4 Commits
Author SHA1 Message Date
Martin Vogel f0db224140 feat: add coverage-aware agent integrations
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-07-13 01:50:03 +02:00
Shane McCarronandClaude Sonnet 4.6 a3f11bd7fa fix(mcp,store): address QA round 2
- Fix handle_get_code_snippet inline store-NULL check to return the same
  JSON error format as REQUIRE_STORE and the other inline checks:
  {"error":"no project loaded"} instead of a plain string
- Fix smoke_guard.sh query_graph invocation: pass "query" parameter
  (not "cypher") to match what handle_query_graph actually reads; the
  wrong key caused the handler to early-return before reaching the guard
- Remove extra blank line in handle_get_graph_schema guard block

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 18:33:10 -05:00
Shane McCarronandClaude Sonnet 4.6 2791d0d8af fix(mcp,store): address QA round 1
- Update stale comment in verify_project_indexed: resolve_store now uses
  cbm_store_open_path_query (no SQLITE_OPEN_CREATE), so store is NULL for
  missing files; the helper catches the empty-but-present .db case
- Guard state updates in resolve_store behind successful open check: only
  set owns_store=true and update current_project when store is non-NULL,
  preventing misleading state when an unknown project is queried
- Expand smoke_guard.sh to test all 5 guarded handlers (search_graph,
  query_graph, get_graph_schema, trace_call_path, get_code_snippet) instead
  of search_graph only; each checks both the guard error and no-ghost-file
  invariant

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 18:28:27 -05:00
Shane McCarronandClaude Sonnet 4.6 e6717457d7 test(smoke): add smoke_guard.sh for guard and ghost-file invariants
Asserts that query handlers return a guard error for unknown projects
and that no ghost .db file is created in the cache directory.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 18:18:21 -05:00