Skip to content

chore(release): bump version 2026.6.35-boon.7 -> 2026.7.35-boon.1 (upstream base reset) - #335

Merged
convyusboy merged 3 commits into
boonfrom
ridho/release-2026.7.35-boon.1
Nov 18, 2026
Merged

convyusboy merged 3 commits into
boonfrom
ridho/release-2026.7.35-boon.1

Conversation

@convyusboy

@convyusboy convyusboy commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

#307 merged upstream v2026.7.35 into boon today, but no fork release was cut for it yet: package.json on boon still read the bare upstream version with no -boon.N suffix, and the fleet (gandalf-manager) has nothing to pin to. This PR cuts that release so the version artifact exists and the fleet rollout (canary first) can proceed.

Why This Change Was Made

Per gandalf-manager:docs/fleet/openclaw-version-deploy.md, merging a newer upstream base resets the fork increment to -boon.1. Base moves 2026.6.35 -> 2026.7.35 (via #307), so the next version is 2026.7.35-boon.1.

  • Root package.json + npm-shrinkwrap.json version bumped.
  • node scripts/sync-plugin-versions.ts run: 142 bundled plugin manifests aligned (version, openclaw dep ranges, compat.pluginApi, build.openclawVersion) plus one plugin CHANGELOG.md entry it generates itself (@openclaw/matrix).
  • Every extension's own npm-shrinkwrap.json version string updated by literal find-and-replace (no dependency content changed, so the live-registry shrinkwrap regeneration was skipped — same precedent as the boon.7/boon.6 bumps).
  • Root CHANGELOG.md section added for 2026.7.35-boon.1, summarizing chore: sync upstream openclaw v2026.7.35 into boon #307's upstream sync.

User Impact

No fork-only behavior change in this PR — purely the version/changelog bump completing #307's sync. The actual user-visible payload is whatever upstream v2026.7.35 itself ships (already merged in #307); this just gives it a releasable fork version so gandalf-manager can pin and roll it, starting at canary (arief-openclaw-test) only.

Evidence

  • node scripts/sync-plugin-versions.ts --check -> Updated: 0. Changelogged: 0. Skipped: 141. (fully in sync after the bump).
  • Every changed .json file re-parsed with node -e "JSON.parse(...)" -> all valid.
  • git diff --check -> clean (no whitespace errors).
  • Diff is JSON + CHANGELOG.md only (218 files, 483 insertions, 469 deletions); no lint/typecheck/build surface touched.
  • Local pre-commit hook couldn't run (scripts/pre-commit/guard-staged-content.mjs no longer exists in the tree post-chore: sync upstream openclaw v2026.7.35 into boon #307 — pre-existing, unrelated to this change) — committed with --no-verify; full check/test/build proof deferred to this PR's CI.
  • ⚠️ This is a version-only bump with no dependency content deltas, so it will likely trip dependency-guard. Per repo policy it needs a /allow-dependencies-change comment from a repo admin (holywend/insomnius/augusteo), then a guard re-run.

🤖 Generated with Claude Code


Summary by cubic

Cuts fork release 2026.7.35-boon.1 so the upstream v2026.7.35 sync from #307 is releasable and pinnable by the fleet (gandalf-manager), starting with the canary. Also fixes release-preflight, which rejected the fork's -boon.N version suffix.

  • Resets the fork base from 2026.6.35-boon.7 to 2026.7.35-boon.1 per the version-deploy policy; no fork behavior changes.
  • Bumps root package.json/shrinkwrap, all 142 bundled plugin manifests via scripts/sync-plugin-versions.ts, each extension shrinkwrap by literal find-and-replace, and adds the CHANGELOG.md entry.
  • Adds parseForkReleaseVersion, used only by preflight's two call sites that read the real package.json; upstream's parseReleaseVersion and all other consumers are unchanged.
  • Realigns 21 plugin shrinkwraps whose peerDependencies.openclaw range still locked the pre-bump >=2026.7.35, and corrects the packages/ai shrinkwrap version field.
  • Needs a /allow-dependencies-change comment from a repo admin since it's a version-only bump with no dependency content deltas.

Rollout

  • Requires a PR comment to clear dependency-guard before the fleet rollout can proceed.

Written for commit 7fc3438. Summary will update on new commits.

View guided diff Turn on auto-fix

…stream base reset)

Cuts the fork release for #307 (upstream v2026.7.35 sync), which
merged to boon after the v2026.6.35-boon.7 tag. The upstream base
moves 2026.6.35 -> 2026.7.35, so the fork increment resets to boon.1.

Bump the root package.json and npm-shrinkwrap.json, all 142 bundled
plugin manifests (scripts/sync-plugin-versions.ts), and the version
string in every extension npm-shrinkwrap.json by a literal
find-and-replace (no dependency content changes, so the shrinkwrap
regeneration with its live registry lookup is skipped). Add the
2026.7.35-boon.1 CHANGELOG.md section and the matrix plugin's
changelog entry.

- `node scripts/sync-plugin-versions.ts --check` -> 0 drift after sync.
- All changed JSON files re-verified as valid JSON.
- `git diff --check` -> clean.
- `--no-verify`: the local pre-commit hook (`core.hooksPath`) calls
  scripts/pre-commit/guard-staged-content.mjs, which no longer exists
  in the tree after #307's upstream sync (pre-existing on origin/boon,
  unrelated to this change) -- MODULE_NOT_FOUND, not a content finding.
- Full check/test/build proof deferred to CI/Crabbox per repo policy.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/acpx/npm-shrinkwrap.json
  • extensions/acpx/package.json
  • extensions/admin-http-rpc/package.json
  • extensions/alibaba/package.json
  • extensions/amazon-bedrock-mantle/npm-shrinkwrap.json
  • extensions/amazon-bedrock-mantle/package.json
  • extensions/amazon-bedrock/npm-shrinkwrap.json
  • extensions/amazon-bedrock/package.json
  • extensions/anthropic-vertex/npm-shrinkwrap.json
  • extensions/anthropic-vertex/package.json
  • extensions/anthropic/package.json
  • extensions/arcee/npm-shrinkwrap.json
  • extensions/arcee/package.json
  • extensions/azure-speech/package.json
  • extensions/bonjour/package.json
  • extensions/boon-pdf-prep/package.json
  • extensions/brave/npm-shrinkwrap.json
  • extensions/brave/package.json
  • extensions/browser-handoff/package.json
  • extensions/browser/package.json
  • extensions/byteplus/package.json
  • extensions/canvas/package.json
  • extensions/cerebras/npm-shrinkwrap.json
  • extensions/cerebras/package.json
  • extensions/chutes/npm-shrinkwrap.json
  • 192 additional dependency-related files not shown

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: 7fc3438a5424cacee7fec1e5af08ba608563de52
  • Trusted actor: @convyusboy
  • Trusted role: pull request author; repository admin

Security review is still recommended before merge when the dependency graph change is intentional.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 218 files

Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread package.json Resolved
Comment thread packages/ai/package.json Resolved
Comment thread extensions/tencent/package.json Resolved
Comment thread extensions/opencode-go/package.json Resolved
Comment thread extensions/matrix/package.json Resolved
Comment thread extensions/msteams/package.json Resolved
Comment thread extensions/voice-call/package.json Resolved
Comment thread extensions/zalouser/package.json Resolved
Comment thread extensions/tokenjuice/package.json Resolved
Comment thread extensions/acpx/package.json Resolved
…ease-preflight

PR #335's CI caught this: checks-node-core-tooling failed on
test/scripts/release-preflight.test.ts's npm-version-metadata check
against the real root package.json, because upstream's
parseReleaseVersion (scripts/lib/release-version.mjs) has never known
about the fork's own `-boon.<N>` version suffix (e.g.
`2026.7.35-boon.1`) -- it only matches upstream's own
stable/alpha/beta/correction grammar. That's not new in this PR; any
boon release (boon.6, boon.7, ...) would fail the same way now that
#307's upstream sync brought this validator (and the test exercising
it against the live repo) into the fork tree for the first time.

Add parseForkReleaseVersion as a new, purely additive export: it
strips a trailing `-boon.<N>` before delegating to the unmodified
parseReleaseVersion, so every other consumer of that shared upstream
release-version grammar (npm publish, Docker/Vercel channel promotion,
Android/iOS version bumping, upgrade-survivor baselines, ...) is
untouched. Only release-preflight.mjs's two call sites that read the
real package.json (npm version metadata, macOS Info.plist version)
switch to the fork-aware parser.

- `node scripts/release-preflight.mjs --npm-versions-only` -> OK
  (was: "package.json has invalid release version \"2026.7.35-boon.1\"").
- `node scripts/release-preflight.mjs --macos-versions-only` -> OK.
- Manual check of parseForkReleaseVersion against boon versions,
  every upstream channel (stable/alpha/beta/correction), and an
  invalid string; parseReleaseVersion itself still returns null for a
  `-boon.N` string, so no other caller's behavior changes.
- Full Vitest run deferred to this PR's CI (no local node_modules in
  this worktree); `--no-verify` for the same missing local pre-commit
  hook script noted in the prior commit, unrelated to this content.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 220 files

Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread extensions/google-meet/package.json Resolved
…s/ai version

Addresses cubic review on #335:

- 21 bundled plugins (clickclack, discord, feishu, google-meet,
  googlechat, line, matrix, mattermost, msteams, nextcloud-talk,
  nostr, pixverse, qqbot, raft, slack, tlon, tokenjuice, voice-call,
  whatsapp, zalo, zalouser) had their package.json
  peerDependencies.openclaw range bumped to >=2026.7.35-boon.1 by
  sync-plugin-versions.ts, but each plugin's own npm-shrinkwrap.json
  still mirrored the pre-bump >=2026.7.35 range in its packages[""]
  entry. Realigned each shrinkwrap's range to match its package.json.
- packages/ai/npm-shrinkwrap.json's own version field was missed by
  the first commit's literal find-and-replace (which only targeted
  extensions/*/npm-shrinkwrap.json); bumped its two self-version
  occurrences to 2026.7.35-boon.1 to match package.json.
- CHANGELOG.md: corrected an overclaim that PR #307's CI was fully
  green -- two non-required scanners (Scan iOS dead code, CodeQL)
  show FAILURE on that PR; confirmed via the repo's "boon-new" ruleset
  (required_status_checks is not one of its rule types, so neither
  scanner gates a merge) that this doesn't affect mergeability. Also
  added changelog bullets for the release-preflight fork-version fix
  and this shrinkwrap realignment.
- Every changed npm-shrinkwrap.json re-parsed as valid JSON.
- `node scripts/sync-plugin-versions.ts --check` -> 0 drift.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@boon-hermes-bot boon-hermes-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Cuts fork release 2026.7.35-boon.1 completing the upstream v2026.7.35 base sync from PR #307.

  • Fork Base Reset: Resets the fork increment from 2026.6.35-boon.7 to 2026.7.35-boon.1 per docs/fleet/openclaw-version-deploy.md.
  • Root Manifest and Shrinkwrap: Bumps package.json and npm-shrinkwrap.json from 2026.7.35 to 2026.7.35-boon.1.
  • Release Preflight Fork Suffix Support: Adds parseForkReleaseVersion in scripts/lib/release-version.mjs to strip -boon.<N> (/^(?<base>.+)-boon\.(?<forkPatch>[1-9]\d*)$/) before delegating to parseReleaseVersion. Switches collectMacosVersionErrors and collectNpmVersionErrors in scripts/release-preflight.mjs to this helper, leaving all other upstream release-version consumers untouched.
  • Bundled Plugins and Packages: Aligns 142 plugin manifests via sync-plugin-versions.ts. Realigns packages/ai version in package.json and npm-shrinkwrap.json.
  • Plugin Peer Range Shrinkwrap Realignment: Realigns peerDependencies.openclaw to >=2026.7.35-boon.1 across 21 plugin shrinkwraps (clickclack, discord, feishu, google-meet, googlechat, line, matrix, mattermost, msteams, nextcloud-talk, nostr, pixverse, qqbot, raft, slack, tlon, tokenjuice, voice-call, whatsapp, zalo, zalouser).
  • Changelogs: Adds 2026.7.35-boon.1 release notes in root CHANGELOG.md and extensions/matrix/CHANGELOG.md.

Verification Details

  • Diff Inspection: Verified across all 221 modified files that changes are strictly version bumps, peer dependency alignments, release preflight fork-version parsing, and changelog additions. No application logic or runtime behavior was altered.
  • CI Status: All 30 GitHub Actions check runs on commit 7fc3438a5424cacee7fec1e5af08ba608563de52 are completed and green (ci-gate, checks-node-core-tooling, dependency-guard, and all checks-node-* shards succeeded).
  • Dependency Guard: Acknowledged as informational by GitHub Actions since the PR author is a repository admin.
  • Verification Basis: Diff inspection across all files and full CI run validation. Local test suite was not run locally in worktree; relied on green CI matrix.

Verdict: APPROVE (ready-to-release)

@convyusboy
convyusboy merged commit 11cb975 into boon Nov 18, 2026
140 of 147 checks passed
@convyusboy
convyusboy deleted the ridho/release-2026.7.35-boon.1 branch November 18, 2026 16:18
convyusboy added a commit that referenced this pull request Nov 19, 2026
…hem (#336)

* fix(release): resolve workspace: dependencies before npm pack ships them

The just-published v2026.7.35-boon.1 release tarball is broken for every
`npm i -g` install, not just one host: #307's upstream sync added
`@openclaw/ai` as a root dependency for the first time, declared as
`"workspace:*"`. `npm pack` (used by boon-release.yml to build the fork's
GitHub Release tarball) has no concept of pnpm's workspace: protocol and
ships that literal specifier as-is. Any global install of the tarball
then asks npm's resolver to fetch `@openclaw/ai@workspace:*`, which it
can't parse -- confirmed on two different npm/node versions (the
canary host's npm 11.21.1/node 22.23.4, and a local npm 11.8.0/node
24.13.1) that it dies deterministically right after resolving
@mozilla/readability's manifest with a bare `exit 1` and no further
diagnostic, a known class of npm bug for unsupported specifiers.

Root-caused by comparing against the real npm registry: upstream
publishes `@openclaw/ai` in lockstep with their own root `openclaw`
releases (confirmed `@openclaw/[email protected]` exists and matches the
exact upstream base this fork train is built on), but the fork never
publishes packages/* members under its own -boon.N suffix -- there is
no `@openclaw/[email protected]` anywhere for npm to fetch, and
pointing at it would just trade one failure for a 404. The correct
resolution is the real, already-published upstream base version.

Adds scripts/lib/resolve-workspace-pack-deps.mjs: rewrites any
`workspace:` root dependency to the matching local workspace package's
version, stripping a `-boon.N` fork suffix back to the real publishable
base (reusing parseForkReleaseVersion from release-version.mjs, the
same helper #335 added for the release-preflight gap). Wired into the
existing prepack/postpack lifecycle (mirrors scripts/package-changelog.mjs's
established backup-and-restore shape) so it applies automatically to
any `npm pack`/`npm publish` of the root package, not just
boon-release.yml's one call site -- no workflow change needed. The
bare CLI mode defaults to a dry-run preview; only `prepare` mutates
(with a backup) and only `restore` reverts, after an un-backed-up bare
invocation during local verification taught this the hard way.

- Verified end-to-end: patched the real v2026.7.35-boon.1 tarball's
  @openclaw/ai to the resolved 2026.7.35, re-tarred it, and
  `npm i -g` succeeded ("added 390 packages"), with @openclaw/ai
  installed at the correct version.
- `node scripts/lib/resolve-workspace-pack-deps.mjs` (bare) against the
  real repo: previews the exact same rewrite without touching disk.
- Full prepare/restore round-trip verified byte-identical against the
  real repo's package.json.
- New unit tests in test/scripts/resolve-workspace-pack-deps.test.ts
  cover glob expansion, *//^/~/explicit-pin rewriting, the missing-match
  error, the prepare/restore round-trip, the backup-free no-op case,
  and the stale-version restore refusal; manually executed the
  equivalent assertions directly (no local node_modules in this
  worktree) -- all passed. Full Vitest run deferred to CI.
- `git diff --check` -> clean; package.json re-parsed as valid JSON.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(release): address cubic review on the workspace-deps packing fix

Addresses cubic review on #336:

- Rewrite workspace: specifiers across dependencies, optionalDependencies,
  AND peerDependencies (only dependencies was handled before), matching
  the three sections generate-npm-shrinkwrap.mjs already treats as a unit.
- An explicit `workspace:<version>` pin now also strips a fork `-boon.N`
  suffix via publishableBaseVersion, so a pin copied from a local
  fork-suffixed version doesn't reproduce the same unparseable-specifier
  break the rest of this fix exists to close.
- prepareWorkspacePackDependencies now writes the backup to disk BEFORE
  mutating package.json (was: mutate, then back up), so a failed backup
  write can never leave the checkout permanently rewritten with nothing
  to restore from.
- restoreWorkspacePackDependencies now does a full-content comparison
  against the rewrite its own backup would have produced, not just a
  version-field check -- a same-version edit made to package.json between
  prepare and restore is refused instead of silently clobbered.
- New scripts/postpack-restore.mjs runs the changelog and workspace-deps
  restores unconditionally and reports both failures, replacing the
  `&&`-chained postpack script (which skipped the second restore entirely
  if the first one failed).
- Reordered prepareWorkspacePackDependencies before preparePackageChangelog
  in openclaw-prepack.ts's main(): a missing-workspace-member error now
  aborts before the changelog is touched, instead of after.
- Removed ticket/PR references from both files' header comments per
  AGENTS.md ("No Linear ticket references... in code, comments") and the
  root CLAUDE.md's "no PR/user-specific lore in inline comments" rule;
  state the protocol invariant and failure mode directly instead.
- Did NOT change npm-shrinkwrap.json's existing @openclaw/[email protected]
  entry (cubic P1, confidence 10): verified the published tarball does
  not include npm-shrinkwrap.json at all (`tar tzf` on the real packed
  tarball has zero shrinkwrap entries), so there is nothing "shipped"
  for npm to read during a downstream `npm i -g` -- the stale shrinkwrap
  pin is pre-existing pnpm/registry resolution drift, unrelated to the
  install-breaking bug this PR fixes. Left for a separate change; replied
  with the evidence on the thread.

- Manually re-verified every test-file assertion directly against the
  updated implementation (multi-section rewriting, explicit-pin
  stripping, backup-before-mutate ordering, full-content restore refusal
  for both a version change and a same-version edit) -- all passed.
  Verified scripts/postpack-restore.mjs surfaces a forced
  resolve-workspace-pack-deps restore failure with exit 1 while still
  running the changelog restore step independently.
- `git diff --check` -> clean; package.json re-parsed as valid JSON;
  bare CLI invocation against the real repo still only previews, no
  mutation.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(lint): avoid tuple-array type inference oxlint flagged in postpack-restore

CI's check-lint failed: typescript(restrict-template-expressions) on
scripts/postpack-restore.mjs:21:40. The `steps` array mixed a string
name with a zero-arg function in each entry with no explicit tuple
type, so TypeScript inferred it as a plain array of the union type
(string | (() => ...))[][] instead of two distinct [string, fn] tuples
-- destructuring `[name, run]` then gave `name` that same union type,
which can include a function, so interpolating `${name}` tripped the
rule.

Replaced the loop-over-heterogeneous-array with two explicit named
calls to a small typed runRestoreStep(name, run) helper -- no array
literal to infer a tuple shape for, and clearer for exactly two fixed
steps anyway.

- `node scripts/postpack-restore.mjs` -> exit 0 (no backups present).
- Re-verified the forced-failure case still surfaces correctly:
  a corrupted post-prepare package.json makes
  resolve-workspace-pack-deps's restore throw, postpack-restore logs
  it and exits 1.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(release): write package.json atomically in resolve-workspace-pack-deps

Addresses cubic review on #336: writeFileSync directly to package.json
can truncate the file if the write fails partway (disk full, process
killed), leaving the checkout invalid with no automatic recovery.

Added writeFileAtomic (write to a same-directory `.<pid>.tmp` file,
then renameSync into place), matching the existing pattern in
scripts/lib/vitest-shard-timings.mjs. Applied to all three
package.json writes in this file: the rewrite in
resolveWorkspacePackDependencies, the mutated-manifest write in
prepareWorkspacePackDependencies, and the restore write in
restoreWorkspacePackDependencies.

- Manually re-verified the full prepare/restore round trip still
  produces a byte-identical restore, with no leftover `.tmp` file in
  the directory afterward.
- New test asserts no `.tmp` file remains after a prepare + restore
  cycle.
- `git diff --check` -> clean.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(format): wrap over-width import and soften atomic-write docstring

Addresses cubic review on #336:

- The node:fs import line was 110 chars, over this repo's 100-char
  printWidth -- format:check would have failed. Wrapped it across
  multiple lines, as oxfmt would reformat it.
- The writeFileAtomic docstring claimed the content is "safely on
  disk" after the rename, which overstates what a write without an
  fsync actually guarantees. Reworded to state only what this
  function actually provides: the original file stays intact if the
  write is interrupted, with no durability-across-power-loss claim.

- `node scripts/lib/resolve-workspace-pack-deps.mjs` (bare) still
  only previews, no mutation.
- `git diff --check` -> clean.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
convyusboy added a commit that referenced this pull request Nov 20, 2026
…ationError's runtime identity (#339)

* fix(agent-core): stop depending on @openclaw/ai for ToolArgumentValidationError's runtime identity (ENG-23048)

ToolArgumentValidationError (added in #144 for sentry-monitor classification)
lives in packages/llm-core/src/validation.ts, which upstream's base-reset
(v2026.7.35, #307/#335/#336) recently extracted into the externally-resolved
@openclaw/ai package -- never bundled into the openclaw CLI tarball or the
standalone @openclaw/agent-core package, per tsdown.config.ts. Boon never
publishes its own @openclaw/ai, so any consumer installing openclaw plus a
normal @openclaw/ai from the public registry gets upstream's unpatched
package, which has never carried this class. The compiled openclaw package's
proxy chunk statically imports it as a value from "@openclaw/ai/validation",
crashing at module-evaluation time for any consumer touching
openclaw/plugin-sdk/agent-harness.

agent-loop.ts's only production use of the class is `.summary` via
instanceof, so switch to a structural check and a type-only import; the
agent-core validation.ts facade re-exports the type only. Type-only exports
erase at build time, so the bundler no longer needs a runtime binding for
this symbol from the externally-resolved @openclaw/ai.

Verified: packages/llm-core and packages/agent-core unit tests pass; `pnpm
build` dist no longer imports the class as a value from @openclaw/ai/validation;
oxlint and tsgo:core clean; plugin-sdk SDK-surface export budget unaffected;
and end-to-end by copying the fixed dist into a consumer repo
(anychat-boon-web) with the real, unpatched public @openclaw/ai still
installed -- a test that previously crashed on import now passes.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(agent-core): address cubic review feedback on PR #339

Trim both ToolArgumentValidationError comments to the short rationale (why
the check is structural, not why the package got externalized) per review
feedback on keeping changed-source comments focused. Also drop the
`instanceof Error` requirement from isToolArgumentValidationError: the check
only needs `name`/`summary`, and `instanceof Error` would reject a
cross-realm or plain-object error that otherwise carries both fields.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(agent-core): make ToolArgumentValidationErrorShape a local type, not a re-export (ENG-23048)

Published @openclaw/[email protected]'s dist/validation.d.mts exports only
validateToolArguments and validateToolCall -- no ToolArgumentValidationError
type, matching its missing value export. `export type { ... } from
"@openclaw/ai/validation"` resolved fine against the workspace-linked
@openclaw/ai (boon's own packages/ai), masking that a real external
consumer type-checking against the published registry package would hit
TS2305.

Define the minimal shape locally instead (just the `name`/`summary` fields
agent-loop.ts's structural guard reads), so the public .d.ts no longer
depends on the externally-resolved package's declarations at all. Verified
against the actual published @openclaw/[email protected] dist/validation.d.mts.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants