Skip to content

refactor(shared): privatize requirement helpers - #106837

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-next-batch
Jul 13, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-next-batch

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The shared requirements evaluator exposed seven lower-level production helpers only so tests could call its internal decomposition directly. That kept private implementation details in the dead-export baseline and made the owner boundary look wider than runtime callers actually use.

Why This Change Was Made

This maintainer-requested dead-code sweep makes the lower-level evaluators module-private and exercises their behavior through evaluateRequirementsFromMetadataWithRemote, the wrapper used by entry-status runtime consumers. This preserves binary, environment, config, OS, remote-capability, and always behavior while removing seven obsolete export exemptions.

User Impact

No user-visible behavior changes. The internal requirements surface is smaller, tests follow the production path, and the batch removes 48 net lines.

Evidence

  • Final branch head: c3191845ef4be73eb6a023a7037876487a82e965.
  • Exact codebase-memory graph: 312,637 nodes and 1,298,645 edges. Each lower-level helper has one definition; repository search shows runtime callers use only evaluateRequirementsFromMetadataWithRemote.
  • No open PR overlaps this file or these symbols.
  • Exact-head Testbox: https://github.com/openclaw/openclaw/actions/runs/29287277719
    • touched-path pnpm check:changed: passed
    • pnpm deadcode:exports: baseline matched 1,289 entries
    • 31 focused tests passed across shared requirements, entry status, and skill discovery
  • Fresh exact-head gpt-5.6-sol medium autoreview: clean, confidence 0.96.

@vincentkoc vincentkoc self-assigned this Jul 13, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Jul 13, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 13, 2026 21:50
@vincentkoc
vincentkoc merged commit d08228e into main Jul 13, 2026
116 of 121 checks passed
@vincentkoc
vincentkoc deleted the refactor/deadcode-next-batch branch July 13, 2026 21:50
@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