Skip to content

0.2.2: queries against 0.2.1-built indexes fail with "zvec file metadata storage does not exist" while zg status reports healthy #139

Description

@alexisdegler-sys

Summary

After upgrading from 0.2.1 to 0.2.2, every real query against indexes built by 0.2.1 fails with:

zvec file metadata storage does not exist

zg status continues to report the indexes as ready, so the breakage is invisible to any status-level health check and only surfaces on the first actual search.

Environment

  • zvec-grep 0.2.1 -> 0.2.2 (upgrade only; index files untouched)
  • Linux x86_64
  • 4 separate indexed roots on the same machine, all built by 0.2.1, all affected identically

Repro

  1. On 0.2.1, index a root and verify queries return hits.
  2. Upgrade to 0.2.2.
  3. zg status -> still reported ready/healthy. No warning, no version-mismatch flag.
  4. Run any real query (CLI or MCP zvec_grep_search) -> zvec file metadata storage does not exist.

Expected

Either:

  • 0.2.2 reads 0.2.1-built indexes (backward compatibility), or
  • zg status fails loudly with an explicit incompatible-index state and migration guidance (e.g. "re-run zg index to upgrade the index format").

Actual

Silent break: status green, queries broken. Any automation that gates adoption on zg status will adopt a release that cannot search existing indexes. My upgrade harness did exactly that: its status-level check passed, and the first real query immediately falsified it.

Workaround / recovery

Downgrade to 0.2.1 -- queries work again immediately against the untouched indexes. This confirms the 0.2.1 data is intact and this is a read/format incompatibility introduced by 0.2.2, not index corruption.

Hypothesis

The error string suggests 0.2.2 introduced (or relocated) a file-metadata storage that 0.2.1-era indexes do not contain, and the read path treats its absence as a hard runtime error instead of detecting it as a version mismatch.

Note: the natural recovery (zg index --rebuild under 0.2.2) is itself broken and destructive -- see #140.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions