Skip to content

fix(scip): index converges with the discovery census and reports a summary - #1674

Merged
Shashankss1205 merged 1 commit into
mainfrom
fix/scip-index-convergence
Aug 26, 2026
Merged

Shashankss1205 merged 1 commit into
mainfrom
fix/scip-index-convergence

Conversation

@Shashankss1205

Copy link
Copy Markdown
Collaborator

Fixes the user-reported scip-dotnet loop: no summary after indexing, and "repository '.' has only 32 of 46 files indexed. Continuing." on every rerun, forever.

  • Convergence by construction: every shortfall path in the SCIP pipeline (supplement parse error, parse crash, failed SCIP-covered write) now records at least a minimal File node — the same accounting rule the Tree-sitter pipeline already follows — so graph count reaches the discovery census and reruns hit "already indexed … Skipping".
  • The summary actually prints for SCIP runs (files by extension, function/class/CALLS counts), and the stale-summary hazard (a SCIP run printing the previous Tree-sitter run's table) is closed by resetting before the run.
  • Census symmetry: estimate_processing_time now takes the context's cgcignore_path, so both sides of the "N of M" comparison count the same file set.
  • Actionable gaps: the "Continuing" branch names up to 5 missing files.

Regression tests drive the full pipeline with a fake scip module against a real embedded database — including a simulated parser crash — asserting graph-count ≥ census and a populated summary. Unit suite 1420 passed / 7 skipped; full integration gate 89 passed / 0 failed.

Fixes #1673

…t a summary (#1673)

User-reported: a mixed C#/other repo indexed via scip-dotnet finished with no
report, and every rerun said "repository '.' has only 32 of 46 files indexed.
Continuing." — forever.

- Minimal-File-node fallbacks on every shortfall path in the SCIP pipeline:
  supplement-parse errors, supplement-parse crashes, and failed SCIP-covered
  writes all still record the file, so the graph count converges with the
  discovery census by construction and reruns reach "already indexed".
- The SCIP path now populates the CLI index summary (files by extension,
  function/class/CALLS counts), and the builder resets the summary before a
  SCIP run so a stale Tree-sitter summary from the same process can't print.
- estimate_processing_time accepts cgcignore_path and the resume check passes
  the context's — the two sides of the "N of M" comparison now count the same
  set.
- The "Continuing" branch names up to 5 missing files, so a genuine gap is
  actionable instead of an eternal loop.

Regression tests drive the pipeline with a fake scip module against a real
embedded database, including a simulated parser crash.
@github-project-automation github-project-automation Bot moved this to Backlog tasks in CGC Progress Board Aug 26, 2026
@Shashankss1205
Shashankss1205 merged commit 5ae3084 into main Aug 26, 2026
6 of 7 checks passed
@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
code-graph-context-pack Ready Ready Preview Aug 26, 2026 7:15pm

@github-project-automation github-project-automation Bot moved this from Backlog tasks to Done in CGC Progress Board Aug 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi! 👋 Join our CodeGraphContext Discord channel to collaborate: https://discord.gg/dR4QY32uYQ

@Shashankss1205
Shashankss1205 deleted the fix/scip-index-convergence branch August 26, 2026 19:15
@github-actions

Copy link
Copy Markdown
Contributor

🔍 PR Code Graph Analysis

fix(scip): index converges with the discovery census and reports a summary (#1674)

📊 Interactive Visualization

View the blast radius graph: PR Reviewer Dashboard

📦 Artifacts

The graph JSON has been uploaded as a build artifact: pr-code-graph-1674


Generated by CodeGraphContext using FalkorDB Lite

This branch was successfully deployed

1 active deployment
Preview — 07d0e2dd Deployed Aug 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug(scip): index never converges — 'only N of M files indexed. Continuing.' on every run, and no summary is printed

1 participant