Skip to content

query never uses the work memory: a question already answered, asked in other words, starts from scratch #4477

Open

Description

@devkancheti4-design

What happens

graphify save-result --outcome useful and graphify reflect --graph already record which nodes answered which questions: the .graphify_learning.json sidecar keeps each lesson's provenance questions. graphify query only uses that memory to label nodes (learning=...). It never uses it to decide where to start. So a question that was already answered, asked again in other words by a teammate or the next session, starts from scratch. Keyword seeding often misses it, because the new wording doesn't name the same symbols.

On SWE-bench Lite (12 repos), with the older half of each repo's issues saved as useful answers (question = issue title, cited node = the fixed file) and each one asked again by its issue body, the default query puts the right file first for 26 of 140.

Proposal

Add an opt-in mode that reads the sidecar. Nodes whose useful provenance questions are well covered by the new question's query terms become start nodes ahead of the keyword seeds:

  • no embeddings, using the same _query_terms;
  • stale lessons skipped, using the existing code fingerprint;
  • explicit --seed values never overridden.

In the same setup it puts the right file first for 98 of 140, while new, never-taught questions are unchanged in the top 5. A PR follows.

Activity

  1. github-actions commented on Oct 15, 2026

    @github-actions

    Thanks for opening this issue, @devkancheti4-design. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions