codemap icon indicating copy to clipboard operation
codemap copied to clipboard

scanner: fixed 30s ast-grep budget leaves an 800-file TS repo with no graph

Open JordanCoin opened this issue 1 month ago • 0 comments

The ast-grep scan has a fixed 30 s budget (astGrepScanTimeout in scanner/astgrep.go, not configurable). On thedotmack/claude-mem (802 TypeScript files) the scan hits it and the daemon reports graph.status=failed: no graph at all, so every importer query is empty. The benchmark (#264) scores this as 3,073 of 3,073 true edges missed; it alone pulls held-out TypeScript recall from 0.998 to 0.838.

An 800-file repo is ordinary. Expected: the budget scales with repo size or the scan runs in batches, and a timeout degrades to a partial graph with a coverage note instead of none.

Part of #238.

JordanCoin avatar Nov 03 '26 18:11 JordanCoin