Skip to content

Separate cold catalog refresh and preserve index generations - #6

Merged
shaoxiang merged 1 commit into
mainfrom
fix/catalog-cold-refresh-20261127
Nov 27, 2026
Merged

shaoxiang merged 1 commit into
mainfrom
fix/catalog-cold-refresh-20261127

Conversation

@shaoxiang

Copy link
Copy Markdown
Contributor

Changes

  • Give explicit catalog index refresh its own configurable 60-second download and parsing budget. Expose it through MCP and suggest it when a cold index times out. Keep the ordinary search budget at 12 seconds by default.
  • Read indexed candidate rows and their generation in one SQLite snapshot. Write candidate details without republishing old indexed rows after a concurrent refresh.
  • Persist live provider candidates in one transaction per provider. Keep query results and cursor identity bound to their source generation.

Verification

  • Real installed-source ABO refresh fetched 8,317,292 metadata bytes and indexed 7,953 records. The subsequent notebook search fetched zero metadata bytes.
  • Interleaved six-run warm-cache comparison preserved result IDs and order. Local medians were 679.905 ms before and 313.760 ms after.
  • Regression coverage includes timeouts during final-row parsing, an actual overlapping SQLite refresh, stale indexed writes, cursor rejection, and MCP transport contracts.

@shaoxiang
shaoxiang merged commit 25322f6 into main Nov 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants