Repository navigation
refactor(memory-wiki): share person-page classification - #134844
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vincentkoc
marked this pull request as ready for review
September 1, 2026 05:03
Member
Author
|
ClawSweeper rank-up disposition:
|
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 2, 2026
This was referenced Sep 5, 2026
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.
What Problem This Solves
Memory Wiki classified person-like pages in two separate private predicates. Compile-time directory generation and live/compiled query ranking could drift even though they own the same person, maintainer, and person-card invariant.
Why This Change Was Made
Moves that invariant into one plugin-private
isPersonLikePagehelper and deletes both local copies. The helper stays inside Memory Wiki with direct imports only; it adds no barrel, core, Plugin SDK, config, persistence, or public API surface.Classification behavior is unchanged:
personCardqualifiesentityTypeorpageTypeequal topersonqualifiesentityTypeorpageTypeequal tomaintainerqualifiesThe dedicated module owns cross-cutting page classification.
markdown.tsremains the parser owner, andcompiled-cache.tsremains the persistence owner.User Impact
No user-visible behavior changes. Compile dashboards, live queries, and compiled-digest queries now share one canonical person-page classification rule.
Evidence
pnpm test:extension memory-wiki, 42 files and 489 tests passed.v2026.8.1behavior was verified equivalent.query.ts; none changes the removed predicate. feat(memory-wiki): let bridge-ownership visibility be configured, not only inferred from sandbox mode #129191 has only nearby import conflict risk.Production LOC, raw diff:
+22/-30(net-8). Four call-site renames account for+4/-4; canonical logic and imports are+18/-26(net-8). Tests:+0/-0.Before landing, run
OPENCLAW_TESTBOX=1 scripts/pr prepare-run <PR>, then the native merge verification and squash flow. If the known branch-independent Control UI gzip failure reproduces, record the exact job and wait for its separate repair without changing UI assets or budgets here.