Skip to content

insights: the memory verdict for Claude Code's own memory folder is decided by code, not by the reader - #46

Merged
teocns merged 1 commit into
mainfrom
insights-builtin-memory-verdict
Nov 13, 2026
Merged

teocns merged 1 commit into
mainfrom
insights-builtin-memory-verdict

Conversation

@teocns

@teocns teocns commented Nov 13, 2026

Copy link
Copy Markdown
Member

Before and after:

  • Before, the setup read's memory verdict for a project whose only memory is Claude Code's own per-project folder (~/.claude/projects/<project>/memory) was the AI reader's word. Code already kept that folder from counting, so the page never read it as memory shown, but the word itself varied: the same folder was judged "shown", "partly" and "not shown" by different readers, and between two runs. A project with a store of its own could also have its memory quote taken from that built-in folder.
  • After, one function decides it: when every memory store a project's reader could see is the built-in kind, the verdict is "not shown" with the reason "only the memory Claude Code keeps by itself", whatever the reader said, and no quote is kept. A quote that backs memory as shown must come from a store that is not built-in; the other parts' quotes are unchanged. The reader's brief says in one sentence that Claude Code's own memory folder is not the person's work.

Limits: a project with no memory store at all still shows the reader's word; code already keeps it from counting.

Test:

  • cd plugins/insights/scripts/v15/engine/variants/views && uv run --no-project python -m unittest test_view_built test_view_mylevel test_counts (OK)

  • The sources this repository is published from have tests for a built-in-only project with each reader answer, an own store beside the built-in folder, the other parts' quotes, and the brief; they pass and are not shipped here.

  • One change. I did not edit a version, a CHANGELOG.md, marketplace.json or kit.json.

  • Nothing personal: no names, no paths from my machine, no output of my own scan, no secrets.

No version change: nothing reaches members until a release.

…ecided by code, not by the reader

When every memory store a project's reader could see is Claude Code's built-in folder, the verdict is not shown with its reason, whatever the reader said; a memory quote may not come from that folder.

Kit-Commit: 4d80a1dc4f101b861cf2f08ee8f3bb3cd040effd
Kit-Only: plugins/insights
@teocns
teocns merged commit 8386b9a into main Nov 13, 2026
@teocns teocns mentioned this pull request Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant