Skip to content

index_repository without name silently creates a duplicate index #2134

Description

@avigdorsky

Severity: medium — data-integrity foot-gun.

index_repository(repo_path="/path/to/proj") created a new project whose name
was derived from the absolute filesystem path, while the existing index of the same
root_path stayed untouched. Both then appear in list_projects with identical
root_path. The failure is silent and looks like a successful reindex; the symptom
is metrics that do not move at all after a "successful" reindex — which is exactly
how a stale index gets read as fresh.

Ask: when an indexed project already exists with the same root_path, update it
or fail loudly rather than forking a second index under a derived name.


Observed on v0.10.8 (build 996bad5fe6fb), macOS arm64, Python monorepo (~36k nodes / ~179k edges). Happy to provide a minimal reproduction repo if useful.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.ux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions