Repository navigation
0.2 (3/4): extension point for relevance, off unless named - #15
Merged
Merged
Conversation
A plugin registers in the personakit.plugins entry-point group and replaces how relevance is scored. Nothing loads unless PERSONAKIT_PLUGINS names it. The read policy stays in the core; a test proves a plugin cannot serve restricted or archived memories. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014dGcvUc3LqzKojYnqVGCjK
Conflicts were additive: module table, privacy list, review log and the cli import line keep both sides. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014dGcvUc3LqzKojYnqVGCjK
4 of 5 tasks
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.
Requested by Yanir · project thread
What changed
One thing: an extension point for how relevance is scored. Split out of #12. Independent of the decay and digest pull requests; whichever merges second needs a small merge of
main(both touchcli.pyand the docs), which I will do.plugins: one hook,relevance,(question, memories) -> one score per memory. The built-in word overlap is its default, so there is one code path and no duplicate logic.personakit.pluginsentry-point group. Nothing loads unlessPERSONAKIT_PLUGINSnames it; a name that is not installed is an error, not a silent fallback.retrieve.searchstill decides what may be served; a test proves a plugin that scores everything as relevant cannot serve restricted or archived memories.docs/PLUGINS.mddescribes the hook, the limits and how to write one. ARCHITECTURE, PRIVACY, README and REVIEW-LOG updated.Why
Word overlap is a baseline: it matches whole words in Latin letters only. An extension point lets a different scorer be used without forking the core, while the read policy cannot be widened by it.
How to verify
Also checked with a separately installed demo plugin: off when not named, on when named, a clear error when misspelled.
Checklist
git commit -s), see CONTRIBUTING.md (owner is exempt; commits are not signed off on the owner's behalf)docs/ARCHITECTURE.mdGenerated by Claude Code