Skip to content

fix(ci): keep internal runtime helpers private - #201017

Merged
vincentkoc merged 2 commits into
mainfrom
fix/ci-private-runtime-contracts-20261118
Nov 18, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/ci-private-runtime-contracts-20261118

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The scheduled main dependency check reports unused exports from four internal runtime modules. Production consumers use the containing public contracts, rather than these leaf names.

User Impact

No user-visible behavior or Plugin SDK contract changes. Public containing types and their members remain available.

Why This Change Was Made

Keep the GBrain asset selector, requester wake scope, and hook/metric leaf types private. This removes eight unnecessary export declarations without changing implementations or the Knip rules. The provider-policy test derives its event type from the retained public hook contract; its assertions are unchanged.

Evidence

  • Original failure: scheduled main dependency check, source 08cb881bf7ed1751c6f61a9197cb13099b6add83.
  • All four owning files match that failed source at the frozen task base 5e677bad858c331ec7db0a547bebf0b15e4786d4. No SDK barrel/package exports these eight names. The one test importing the hook event type now derives it from the retained public hook contract; containing API types and signatures are unchanged.
  • Exact frozen-source Knip 6.40.0 production and full-tree scans before/after remove all eight targeted findings. Both scans still exit 1 for separately owned test-helper and wrapper findings; this change does not claim the aggregate dependency gate passes. The scans ran on Node 26.13.0 with a private frozen install.
  • Six existing owner/consumer test files pass: 67 case executions, including the provider-policy cases through both tooling runtime paths. Core and root-test typecheck leaves, targeted type-aware lint, formatting, and git diff --check pass.
  • The initial local review found the direct test import; it is migrated above and passes the exact root-test typecheck. Fresh local review of the complete corrected committed range found no actionable correctness or security issues.

@vincentkoc vincentkoc self-assigned this Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review ended

ClawSweeper stopped reviewing this revision because the pull request closed.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling plugin: gbrain size: XS labels Nov 18, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 18, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 18, 2026 05:57
@vincentkoc
vincentkoc enabled auto-merge (squash) November 18, 2026 05:57
@vincentkoc
vincentkoc merged commit 62a9ca0 into main Nov 18, 2026
202 of 203 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-private-runtime-contracts-20261118 branch November 18, 2026 06:08
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
* fix(ci): keep internal runtime helpers private

* test: derive model request event from public hook contract
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. plugin: gbrain size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant