Skip to content

Pinned memory importance always 0.0 in recompute_importance formula #976

Closed

Description

@ajianaz

Problem

store.rs:315:

let importance = 0.3 * access_score + 0.3 * recency_score + 0.2 * connectivity + 0.2 * 0.0;

The pinned bonus term is hardcoded 0.2 * 0.0 instead of using m.pinned.

Fix

let pinned_score = if m.pinned { 1.0 } else { 0.0 };
let importance = 0.3 * access_score + 0.3 * recency_score + 0.2 * connectivity + 0.2 * pinned_score;

Severity: MAJOR (importance calc wrong for pinned memories)

Activity

  1. added
    bug
    scope:core
    on Aug 10, 2026
  2. ajianaz commented on Aug 10, 2026

    @ajianaz
    CollaboratorAuthor

    Fixed in #983 (merged to develop)

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

    bugscope:core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions