Skip to content

refactor(memory-wiki): share person-page classification - #134844

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/memory-wiki-person-page
Sep 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/memory-wiki-person-page

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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 isPersonLikePage helper 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:

  • a present personCard qualifies
  • normalized entityType or pageType equal to person qualifies
  • normalized entityType or pageType equal to maintainer qualifies

The dedicated module owns cross-cutting page classification. markdown.ts remains the parser owner, and compiled-cache.ts remains 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

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.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc vincentkoc self-assigned this Sep 1, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 1, 2026 05:03
@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up disposition:

@vincentkoc
vincentkoc merged commit b386a5f into main Sep 1, 2026
165 checks passed
@vincentkoc
vincentkoc deleted the refactor/memory-wiki-person-page branch September 1, 2026 05:14
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant