Skip to content

[bug] lore embed-rebuild leaves coverage at 0% while lore_health reports embedder enabled #88

@kunallanjewar

Description

@kunallanjewar

Summary

guild lore embed-rebuild enters an inconsistent state where the reset wipes the vector rows but the re-encode loop reports embedder disabled, while lore_health simultaneously reports the embedder as enabled. Net result: the corpus stays at 0% coverage and the rebuild appears to silently no-op.

Affected files

  • internal/lore/embed_rebuild_cmd.go
  • internal/lore/embed/runtime.go
  • internal/lore/embed_wiring.go

Reproduction

  1. Inscribe several lore entries on a project with a healthy embedder.
  2. Run guild lore embed-rebuild.
  3. Observe coverage stays at 0%; encode loop log mentions "embedder disabled".
  4. guild lore health simultaneously reports the embedder as enabled.

Acceptance

  • After embed-rebuild, vector coverage returns to >0% for projects with active embedders.
  • The "embedder disabled" log line and the lore_health "enabled" report do not contradict each other.
  • Regression test covers the rebuild-then-encode happy path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: loreLore knowledge archivebugSomething isn't workingpriority: P1High prioritysize: M< 200 lines

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions