Skip to content

fix(memory): inflated edges_created stat in link_memory_notes #1792

@bug-ops

Description

@bug-ops

Introduced in #1788. The edges_created counter increments when the same pair is found from both entity directions (A→B and B→A), even though only one edge is inserted (source < target). The stat is cosmetically inflated. Fix by counting actual insert_edge successes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    memoryzeph-memory crate (SQLite)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions