Skip to content

refactor: localize internal implementation symbols#101831

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-all-surfaces-20260707-v49
Jul 7, 2026
Merged

refactor: localize internal implementation symbols#101831
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-all-surfaces-20260707-v49

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Internal implementation helpers were exported across core and plugin modules even though no repository caller consumed those exports. That inflated the apparent public surface and kept deadcode reports noisy.

Why This Change Was Made

Localize 80 file-private functions and classes while preserving their existing in-module use, and remove one unreferenced gateway scope helper. Public barrels, plugin SDK contracts, generated types, package APIs, and Codex protocol/runtime surfaces are unchanged.

User Impact

No user-visible behavior changes. Maintainers get a smaller internal API surface and more useful unused-export results.

Evidence

  • AWS Crabbox cbx_a0c80231b0b5 (harbor-crayfish), run run_b0dc060be2eb: pnpm check:changed passed on the exact rebased commit, including core/core-test/extension/extension-test typechecks, core and extension lint, import-cycle checks, and repository guards.
  • AWS Crabbox run run_b523fff2c493: 13 targeted Vitest shards passed, 884 assertions total.
  • AWS Crabbox run run_e613ee674391: ts-unused-exports report dropped from 3,576 to 3,550 flagged modules; none of the 80 localized symbols remain in the report.
  • Full duplicate scan: zero clones across production, test, and mixed lanes.
  • Fresh GPT-5.5 branch autoreview: no actionable findings; patch correct at 0.84 confidence.
  • git diff --check passed; 62 files, +80/-89, net -9 lines.

@vincentkoc vincentkoc self-assigned this Jul 7, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: msteams Channel integration: msteams channel: signal Channel integration: signal channel: slack Channel integration: slack channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo gateway Gateway runtime extensions: memory-core Extension: memory-core cli CLI command changes agents Agent runtime and tooling channel: feishu Channel integration: feishu extensions: minimax extensions: kimi-coding extensions: xiaomi extensions: kilocode channel: qqbot extensions: memory-wiki plugin: google-meet plugin: file-transfer extensions: google extensions: ollama extensions: vllm size: S maintainer Maintainer-authored PR labels Jul 7, 2026
@clawsweeper

clawsweeper Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: refactor: localize internal implementation symbols This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready proof:

  • Exact PR head: c20439d9eb443b965fece5315905698ab1c7cad0
  • AWS Crabbox cbx_a0c80231b0b5 (harbor-crayfish), run run_b0dc060be2eb: pnpm check:changed passed after rebasing onto current main, including core/core-test/extension/extension-test typechecks, core and extension lint, import-cycle checks, and repository guards.
  • AWS Crabbox run run_b523fff2c493: 13 targeted Vitest shards passed, 884 assertions total.
  • AWS Crabbox run run_e613ee674391: unused-export reporting dropped from 3,576 to 3,550 flagged modules; none of the 80 localized symbols remain.
  • Full duplicate scan: zero clones across production, test, and mixed lanes.
  • Fresh GPT-5.5 pre-commit and post-rebase branch autoreviews: no actionable findings.
  • Repo-native scripts/pr prepare-run 101831: hosted exact/recent-rebase gates passed; no changelog required.

Known proof gaps: none for this internal, behavior-preserving refactor.

@vincentkoc
vincentkoc marked this pull request as ready for review July 7, 2026 17:23
@vincentkoc
vincentkoc requested a review from a team as a code owner July 7, 2026 17:23
@vincentkoc
vincentkoc merged commit b88f809 into main Jul 7, 2026
279 of 289 checks passed
@vincentkoc
vincentkoc deleted the refactor/deadcode-all-surfaces-20260707-v49 branch July 7, 2026 17:23
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

steipete added a commit that referenced this pull request Jul 7, 2026
…symbol localization

Upstream #101831 made registerToolSearchCatalog module-private; fold the
headless ref-only catalog registration into one public seam.
steipete added a commit that referenced this pull request Jul 7, 2026
…e mode (#101195)

* feat(cron): add headless code-mode driver and trigger-script evaluator

Part A of cron event triggers: runCodeModeScriptHeadless runs a script
to completion (exec/settle/resume, no snapshots, no session), plus the
cron-facing evaluator with per-job tool catalog cache, semaphore, 16KB
state cap, and closed failure taxonomy.

* fix(cron): correct trigger-script bootstrap flags and cache narrowing

* feat(cron): add event triggers (polled condition-watcher scripts)

Part B: trigger field on cron jobs gated by cron.triggers.enabled;
timer evaluates the script each due tick, quiet ticks leave no run
history, fired runs append the script message to the payload; once
semantics, min-interval floor, SQLite columns, RPC/CLI/agent-tool
surfaces, and docs.

* fix(cron): propagate triggerEval through startup catch-up outcomes

* fix(cron): honor cron staggering on quiet trigger ticks; fix trigger test types

* fix(cron): reject with Error reason in trigger-script abort test

* fix(cron): regenerate protocol/docs/snapshot artifacts and break madge cycle for trigger types

CI fixes for #101195: trigger evaluator result types move to the cron
types leaf (madge cycle), cron tool schema inventory gains trigger,
Swift protocol bindings + docs map + Linux prompt snapshots regenerated.

* fix(cron): drop underscore-dangle names in trigger code sync assert

* fix(cron): adopt registerHeadlessToolSearchCatalog after tool-search symbol localization

Upstream #101831 made registerToolSearchCatalog module-private; fold the
headless ref-only catalog registration into one public seam.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 8, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 8, 2026
…e mode (openclaw#101195)

* feat(cron): add headless code-mode driver and trigger-script evaluator

Part A of cron event triggers: runCodeModeScriptHeadless runs a script
to completion (exec/settle/resume, no snapshots, no session), plus the
cron-facing evaluator with per-job tool catalog cache, semaphore, 16KB
state cap, and closed failure taxonomy.

* fix(cron): correct trigger-script bootstrap flags and cache narrowing

* feat(cron): add event triggers (polled condition-watcher scripts)

Part B: trigger field on cron jobs gated by cron.triggers.enabled;
timer evaluates the script each due tick, quiet ticks leave no run
history, fired runs append the script message to the payload; once
semantics, min-interval floor, SQLite columns, RPC/CLI/agent-tool
surfaces, and docs.

* fix(cron): propagate triggerEval through startup catch-up outcomes

* fix(cron): honor cron staggering on quiet trigger ticks; fix trigger test types

* fix(cron): reject with Error reason in trigger-script abort test

* fix(cron): regenerate protocol/docs/snapshot artifacts and break madge cycle for trigger types

CI fixes for openclaw#101195: trigger evaluator result types move to the cron
types leaf (madge cycle), cron tool schema inventory gains trigger,
Swift protocol bindings + docs map + Linux prompt snapshots regenerated.

* fix(cron): drop underscore-dangle names in trigger code sync assert

* fix(cron): adopt registerHeadlessToolSearchCatalog after tool-search symbol localization

Upstream openclaw#101831 made registerToolSearchCatalog module-private; fold the
headless ref-only catalog registration into one public seam.
giodl73-repo pushed a commit to giodl73-repo/openclaw that referenced this pull request Jul 8, 2026
giodl73-repo pushed a commit to giodl73-repo/openclaw that referenced this pull request Jul 8, 2026
…e mode (openclaw#101195)

* feat(cron): add headless code-mode driver and trigger-script evaluator

Part A of cron event triggers: runCodeModeScriptHeadless runs a script
to completion (exec/settle/resume, no snapshots, no session), plus the
cron-facing evaluator with per-job tool catalog cache, semaphore, 16KB
state cap, and closed failure taxonomy.

* fix(cron): correct trigger-script bootstrap flags and cache narrowing

* feat(cron): add event triggers (polled condition-watcher scripts)

Part B: trigger field on cron jobs gated by cron.triggers.enabled;
timer evaluates the script each due tick, quiet ticks leave no run
history, fired runs append the script message to the payload; once
semantics, min-interval floor, SQLite columns, RPC/CLI/agent-tool
surfaces, and docs.

* fix(cron): propagate triggerEval through startup catch-up outcomes

* fix(cron): honor cron staggering on quiet trigger ticks; fix trigger test types

* fix(cron): reject with Error reason in trigger-script abort test

* fix(cron): regenerate protocol/docs/snapshot artifacts and break madge cycle for trigger types

CI fixes for openclaw#101195: trigger evaluator result types move to the cron
types leaf (madge cycle), cron tool schema inventory gains trigger,
Swift protocol bindings + docs map + Linux prompt snapshots regenerated.

* fix(cron): drop underscore-dangle names in trigger code sync assert

* fix(cron): adopt registerHeadlessToolSearchCatalog after tool-search symbol localization

Upstream openclaw#101831 made registerToolSearchCatalog module-private; fold the
headless ref-only catalog registration into one public seam.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: msteams Channel integration: msteams channel: qqbot channel: signal Channel integration: signal channel: slack Channel integration: slack channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo cli CLI command changes extensions: google extensions: kilocode extensions: kimi-coding extensions: memory-core Extension: memory-core extensions: memory-wiki extensions: minimax extensions: ollama extensions: vllm extensions: xiaomi gateway Gateway runtime maintainer Maintainer-authored PR plugin: file-transfer plugin: google-meet size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant