Add incremental analyzer cache for large repo scans#651
Conversation
CodeDecay PR CheckLead catch: Past regression area changed — Untrusted memory context: past regression "Package directory with test in name misclassified as test file" may be relevant. packages/test-audit/src/index.ts was once treated as a test file because path matching used the whole path instead of segment/basename-aware test detection. Risk: High · Merge 100/100 · Decay 39/100 · Security 0/100 Full CodeDecay reportCodeDecay ReportOverall risk: High
Changed Files
Likely Impacted Areas
Symbol Impact EvidenceGraph artifact:
Language And Parser Coverage
Merge Risk Breakdown
Top contributors:
Decay Risk Breakdown
Top contributors:
Dampeners:
Notes:
Security Risk Breakdown
Security Matcher Coverage
Test Evidence
Changed Path Test Proof
High Risk Findings
Medium Risk Findings
Low Risk Findings
Recommended Checks
NotesCodeDecay is deterministic and local-first. This report was generated without telemetry, API keys, LLMs, or model calls. Found by CodeDecay - deterministic, local-first, no telemetry. |
Summary
Closes #643.
Adds a local JS/TS analyzer artifact cache under
.codedecay/local/analyzer-js-cache.jsonso repeated analysis runs can reuse unchanged file metadata and parsed artifacts instead of reparsing every source file.What Changed
.codedecay/localand generated local artifacts from repo scanning so cache files do not become analysis inputs.codedecay configJSON and markdown output.Validation
npx --yes pnpm@11.8.0 run lintnpx --yes pnpm@11.8.0 run typechecknpx --yes pnpm@11.8.0 test— 566 passed, 1 skippednpx --yes pnpm@11.8.0 run buildnpx --yes pnpm@11.8.0 eval:pr-safety -- --run-id local-pr-safety-issue-643-final— 2/2 scenarios passednpx --yes pnpm@11.8.0 --filter @submuxhq/codedecay pack --dry-runnode packages/cli/dist/index.js --helpnode packages/cli/dist/index.js analyze --format markdownnode packages/cli/dist/index.js config --format markdownNotes
A concurrent local run of
pnpm buildandeval:pr-safetybriefly collided while both commands cleaneddist; rerunningpnpm buildalone passed.