Skip to content

refactor(normalization): reuse trimmed list helpers - #113295

Merged
vincentkoc merged 1 commit into
mainfrom
cleanup/string-list-normalizer-dedup-20260724
Jul 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
cleanup/string-list-normalizer-dedup-20260724

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Slack error handling and model-catalog normalization carried five private copies of string trimming and array filtering behavior already owned by normalization-core. Those copies increased drift risk, and the model-catalog file retained a max-lines suppression after the duplicated code was removed.

Why This Change Was Made

Reuse the existing normalization-core helpers directly in model-catalog-core and through the public Plugin SDK barrel in Slack. Remove the now-unused max-lines directive and its ratchet baseline entry in the same cleanup; no dependency, public API, or runtime topology is added.

User Impact

No intended user-visible behavior change. Slack scope handling and model-catalog parsing preserve their existing trimming, invalid-entry filtering, ordering, and optional-list semantics while sharing one implementation.

Evidence

  • Blacksmith Testbox tbx_01ky9jm875qf0et5qbc7x66dg5: pnpm test:serial extensions/slack/src/send.identity-fallback.test.ts packages/model-catalog-core/src/model-catalog-normalize.test.ts packages/normalization-core/src/string-normalization.test.ts — 66 tests passed.
  • Same Testbox: path-scoped pnpm check:changed passed across core, core tests, extensions, extension tests, and tooling lanes.
  • The changed gate confirmed the max-lines ratchet shrank and all typechecks, lint fanout, import-cycle checks, and structural guards passed.
  • Fresh autoreview --mode local: clean, no accepted/actionable findings, correctness 0.94.
  • git diff --check passed after rebasing onto current origin/main.
  • Production diff: 11 additions, 49 deletions; total diff: 33 additions, 58 deletions.
  • No code-similarity index or generated index artifact is included.
  • No sanitized agent transcript is attached because no transcript artifact was generated for this change.

@vincentkoc vincentkoc self-assigned this Jul 24, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack size: S maintainer Maintainer-authored PR labels Jul 24, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 24, 2026 09:31
@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready proof for 7af3e9f85ff39bd5eda36d2806f54d7ec9bb20e4:

Known proof gaps: none.

@vincentkoc
vincentkoc merged commit e363685 into main Jul 24, 2026
195 of 200 checks passed
@vincentkoc
vincentkoc deleted the cleanup/string-list-normalizer-dedup-20260724 branch July 24, 2026 09:43
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 24, 2026
…omic-publication-20260724

* origin/main:
  refactor(memory-lancedb): remove dead legacy path scan (#113299)
  fix(test): satisfy no-map-spread in exec approvals (#113303)
  fix: keep OAuth refresh failures terminal [AI] (#112957)
  fix: reusable exec approvals apply to approved arguments (#112946)
  refactor(agents): split tool search internals (#113296)
  fix: keep inline eval approvals one-shot [AI] (#112956)
  refactor(normalization): reuse trimmed list helpers (#113295)
  fix(openai): fail fast on invalid TLS certificates (#111818)
  fix: recognize more shell wrappers [AI] (#112955)
  fix(i18n): correct Indonesian seconds labels
  chore(i18n): refresh native locales
  fix: block opaque exec dispatch wrappers (#112953)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant