Repository navigation
insights: what counts as your memory is decided by its shape, who made it and whether you use it - #45
Merged
Merged
Conversation
…e it and whether you use it A folder counts as memory when an index links to its notes or its notes link each other, not by its name. A store in a repo mostly by others, with no commit and no session of yours writing in it, is not yours; a copy of a store you already have counts once. Reads count only files opened inside the store, and sessions this tool started are left out. Kit-Commit: 98c481814e54f0719ea4ad3604e61dbf407e6a79 Kit-Only: plugins/insights
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before and after:
MEMORY.md. A code module namedmemory/counted, and a notes store under any other name counted only if an instruction file pointed to it. Every memory store found was listed as yours, with no check of who made it: a cloned repo's memory folders were listed as the person's own even with no commit of theirs. A read of any folder above a store counted as a read of the store, and sessions this tool started (its own readers) counted as the person reading their memory, so one run inflated the next. Nested stores were added up twice.Limits: the bars (2 links, 3 notes, half identical for a copy) are first guesses. A folder with the shape that no rule finds as a candidate is counted in the output for later, not listed.
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 code module named
memory/, a store under another name, a cloned repo's stores, a store written only by sessions, parent-folder reads, the tool's own readers and nested stores; they pass and are not shipped here. A full scan on a real laptop ran to its end.One change. I did not edit a version, a
CHANGELOG.md,marketplace.jsonorkit.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.