Skip to content

refactor(scripts): extract legacy-store path domain#104894

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/legacy-store-analysis-domain
Jul 12, 2026
Merged

refactor(scripts): extract legacy-store path domain#104894
vincentkoc merged 1 commit into
mainfrom
refactor/legacy-store-analysis-domain

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #104871

What Problem This Solves

The database-first legacy-store analyzer mixed TypeScript traversal with a dense set of value-domain merge rules. That made branch semantics difficult to audit and increased the cost of changing the analyzer safely.

Why This Change Was Made

This extracts the pure literal, object-property, sentinel, and branch-assignment merge domain into one private script helper. The analyzer keeps the same inputs, outputs, CLI behavior, allowlists, and detection rules.

User Impact

No user-visible behavior or public contract changes. Config, SDK, protocol, generated files, CLI options, and runtime storage behavior are unchanged. Maintainers and coding agents get a smaller analyzer core with one test-covered location for branch-value semantics.

Evidence

  • corepack pnpm test:serial test/scripts/check-database-first-legacy-stores.test.ts: 469 tests passed on Blacksmith Testbox tbx_01kx9zzm3ethj75acmxgj7fa4b.
  • corepack pnpm check:changed: passed on the same Testbox.
  • Fresh .agents/skills/autoreview/scripts/autoreview --mode uncommitted --base origin/main: clean at 0.99 confidence.
  • oxfmt --check, node --check, and git diff --check: passed.

@vincentkoc vincentkoc self-assigned this Jul 12, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Jul 12, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 12, 2026 02:19
@vincentkoc
vincentkoc merged commit 01fc1ed into main Jul 12, 2026
81 of 85 checks passed
@vincentkoc
vincentkoc deleted the refactor/legacy-store-analysis-domain branch July 12, 2026 02:19
@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

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant