Skip to content

chore: sync upstream openclaw v2026.7.35 into boon - #307

Merged
convyusboy merged 3523 commits into
boonfrom
ridho/upstream-sync-2026.7.35
Nov 18, 2026
Merged

convyusboy merged 3523 commits into
boonfrom
ridho/upstream-sync-2026.7.35

Conversation

@convyusboy

@convyusboy convyusboy commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Keeps the boon fork in sync with upstream OpenClaw. We were parked on the merge-base with upstream from 2026-06-24; this brings in v2026.7.35 (3463 upstream commits) while preserving boon's own patches, and then catches the branch up with origin/boon's latest tip on top of that.

Why This Change Was Made

Upstream trains are parallel maintenance branches, not a line: v2026.6.35 is not an ancestor of v2026.7.35 (both share merge-base 9e3a917), so this merge brought in all boon-side 2026.6 patches as real conflicts rather than inheriting them via ancestry. v2026.7.35 was chosen over a live upstream train to stay on the Node 22 line (upstream pins 22.22.3 in CI), avoiding the Node 24 native-module ABI break a newer train would force.

Conflict policy (same as prior sync PRs #250/#281): boon's patches win unless boon has no competing behavior, or upstream is strictly higher on a security pin, decided case by case rather than by version number alone.

One concrete example from the follow-up commit: root + 13 extension package.json files had drifted to upstream's [email protected] pin while pnpm-lock.yaml had already resolved ws to boon's long-standing 8.21.0 everywhere. No OSV/GHSA advisory for ws requires 8.21.3 over 8.21.0, so all 14 files were realigned to 8.21.0 and every npm-shrinkwrap.json regenerated from that consistent state.

User Impact

No behavior change intended beyond what upstream v2026.7.35 itself ships; this is a dependency/source sync. Opening as a draft specifically to get full CI (check/test/build) on a merge this size before anyone reviews it for content — Testbox wasn't available locally to pre-validate.

Evidence

  • pnpm install --frozen-lockfile clean
  • node scripts/generate-npm-shrinkwrap.mjs --all --check — all 74 shrinkwraps current
  • test/package-manager-config.test.ts — 13/13 passing (narrow local proof via scripts/run-vitest.mjs)
  • Full check/test/build proof pending from this PR's CI run (Testbox unavailable locally)

🤖 Generated with Claude Code


Summary by cubic

Syncs the boon fork with upstream OpenClaw v2026.7.35 while preserving boon's own patches. This is a dependency/source sync; no intended behavior change beyond what upstream ships.

v2026.6.35 is not an ancestor of v2026.7.35, so boon's 2026.6 patches were resolved as real conflicts: boon patches win unless upstream is strictly higher on a security pin. The sync carries the finalized 2026.7.1 stable cut plus post-cut fixes: release-provenance/evidence-validation reuse, reviewed-migration-residue tolerance, alpha-tag changelog headings, unreleased-changelog QA builds, changelog provenance canonicalization, the SQLite WAL-reset protection, and the macOS DMG artwork refresh with its Swift 6 chat-proof concurrency backport. It also carries verified backports for GPT-5.6 (incl. Ultra) defaults with nonce-retry hardening, UTF-16-safe block-chunk and tool-result truncation, append-only prompt history and tool-result preservation across media fallback, Codex binding-fingerprint convergence and migration-hang prevention, Codex turns continuing after progress replies, login-profile identity, the managed app-server bump to 0.144.3 with npm lock-metadata recovery, trusted thinking-policy loading, browser.proxy approval-scope and post-OAuth model-availability fixes, a ClawHub plugin-switch updater fix, OpenAI chat-completions refusal surfacing and pre-catalog image routing, CLI startup migration-lease release and plugin-listing memory reduction, auto-reply transcript-steering queuing, repaired tool-call stream completion, installer temp-file cleanup, and transport fixes (Feishu streaming timeouts, Discord ffmpeg stderr bounding and gateway-resume recovery, OpenRouter emoji-safe model IDs).

Details

  • Realigned 14 package.json files back to boon's [email protected] and regenerated all 74 npm-shrinkwrap.json files.
  • Pinned to v2026.7.35; runtime floor is now Node 22.22.3+, 24.15+, or 25.9+ (SQLite WAL-reset safety), and the Windows installer validates the upgraded SQLite runtime.
  • New workflows: Android release, native-app locale refresh, plugin-init scaffold validation, Vercel container registry publish, Mantis web-UI chat proof, and a CodeQL process-exec boundary; CI adopts cache-mode and evidence reuse, QA profile default becomes all, and QA parity mocks are repaired.
  • .agents churn rides along: multi-engine autoreview rewrite, new CI-limits skill, and the Crabbox default moving to Blacksmith Testbox.
  • Upstream bumps of the ClawHub CLI (0.23.1), Kova ref, and Docker base digest ride along.
  • Opened as draft so full CI runs before review; local validation limited to pnpm install --frozen-lockfile, shrinkwrap consistency, and the narrow package-manager test suite.

Written for commit 49648bc. Summary will update on new commits.

View guided diff Turn on auto-fix

steipete and others added 30 commits July 10, 2026 22:57
Shipped alpha tags carry a dedicated ## X-alpha.N heading with no base
section (see v2026.6.20-alpha.1's tagged CHANGELOG.md); the renderer and
candidate provenance now prefer that dedicated heading for alpha and
correction tags while beta/stable remain pinned to the stable base
section per openclaw#103222.

(cherry picked from commit eefe2e8)
…w#104186)

* fix(ci): package unreleased QA builds safely

* style(ci): format QA changelog intent

(cherry picked from commit 6e9e64b)
…faults for the stable cut (openclaw#104656)

* feat(openai): default new setups to GPT-5.6 (openclaw#103581)

* feat(openai): default fresh setup to GPT-5.6

* test(crestodian): expect GPT-5.6 Codex defaults

* test(crestodian): expect GPT-5.6 bootstrap default

(cherry picked from commit ab5d143)

* fix(infra): converge legacy state migrations on archive collisions

(cherry picked from commit 474d660)

* fix(codex): prevent startup hangs after binding migration (openclaw#103281)

* fix(codex): archive imported orphan binding sidecars

* fix(codex): harden binding sidecar migration

Co-authored-by: Benjamin Badejo <[email protected]>

* chore: keep release notes out of contributor PRs

---------

Co-authored-by: Benjamin Badejo <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit 1f3ea6f)

* fix(migrations): converge recoverable legacy state (openclaw#104529)

Signed-off-by: sallyom <[email protected]>
(cherry picked from commit cdb58ca)

* test(openai): align auth contract with provider default (openclaw#103760)

(cherry picked from commit 9b4c7c0)

* fix: clear remaining release validation blockers (openclaw#104555)

* test: align provider tool call lifecycles

* test: isolate plugin install repair migrations

* fix: accept catalog temperature compatibility

* fix: disable GPT-5.6 tool reasoning on completions

* style: avoid shadowed stream model

(cherry picked from commit 57af2bb)

* test(release): keep GPT-5.6 backport scoped

* test(release): restore doctor config type import

---------

Signed-off-by: sallyom <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Ben Badejo <[email protected]>
Co-authored-by: Benjamin Badejo <[email protected]>
Co-authored-by: Sally O'Malley <[email protected]>
…des (openclaw#104491)

Approving a node whose pairing surface advertises browser.proxy only required
operator.write, while invoking browser.proxy already requires operator.admin
(server-methods/nodes.ts). resolveNodePairApprovalScopes bumped the approval
scope to operator.admin only for NODE_SYSTEM_RUN_COMMANDS, so a write-scoped
operator could trust a browser.proxy-capable node that later routes bundled
browser-tool traffic. Add NODE_BROWSER_PROXY_COMMAND to the admin-approval set
so approval scope matches the invoke-time gate.

(cherry picked from commit 68c18ca)
(cherry picked from commit f902110fdc244ee8ed47564d8667afab48f6ccf9)
)

* fix(agents): preserve UTF-16 boundaries in block chunks

* refactor(agents): import UTF-16 helper from leaf module

---------

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit 92870e5)
(cherry picked from commit 44c022d83e44e64b51c96f0923d7fbb891c601ba)
…enclaw#102948)

* fix(feishu): bound streaming-card API requests with a 30s timeout

* fix(feishu): honor configured streaming timeout

Signed-off-by: sallyom <[email protected]>

* test(feishu): declare streaming mock credentials

Signed-off-by: sallyom <[email protected]>

---------

Signed-off-by: sallyom <[email protected]>
Co-authored-by: NIO <[email protected]>
Co-authored-by: sallyom <[email protected]>
(cherry picked from commit 473df17)
(cherry picked from commit 591df2e52fb2a58682afaab38a3a4e7c92ecfd46)
…penclaw#104433)

Co-authored-by: Vincent Koc <[email protected]>
(cherry picked from commit 03558dc)
(cherry picked from commit 6092dd41693e03168d21c4279775e07cec805099)
(cherry picked from commit 47751c1)
(cherry picked from commit 108e40cd7445f22c5b039b31719979a6ed147c2a)
* fix(agents): keep tool-result truncation UTF-16 safe

Replace raw .slice() calls in tool-result truncation with UTF-16-safe
helpers (sliceUtf16Safe/truncateUtf16Safe) so surrogate pairs are not
split when capping tool output, error-tail detection, or aggregate
elision markers.

- hasImportantTail: sliceUtf16Safe(text, -2000)
- appendBoundedTruncationSuffix: truncateUtf16Safe + sliceUtf16Safe
- truncateToolResultText head/tail/default paths: sliceUtf16Safe
- formatAggregateElisionText fallback: truncateUtf16Safe

Added regression tests for emoji at char and head+tail boundaries.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* test(agents): cover exact tool-result UTF-16 cuts

---------

Co-authored-by: chengzhichao-xydt <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit 9e75ce9)
) (openclaw#102610)

Session-scoped tool-result projection freeze (shrink-only, stable
fallback identities for ambiguous tool ids) and a sent-watermark so
late-resolving inbound media appends a new user turn instead of
rewriting an already-sent slot. Stops Anthropic prompt-cache tail
invalidation on busy/media-heavy embedded sessions.

(cherry picked from commit fd34019)
…sure (openclaw#99756)

* fix: keep text tool results ahead of stale media placeholders

* fix(agents): preserve fresh results before runtime context

* fix(agents): defer fresh results during aggregate recovery

* fix(google): preserve omitted media fallback

* fix(openai): preserve omitted media fallback

* fix(agents): narrow tool-result recovery scope

* fix(agents): keep one fresh-result recovery path

* chore: keep sweep changelog neutral

---------

Co-authored-by: AcosX <[email protected]>
Co-authored-by: Acos_X <[email protected]>
Co-authored-by: Colin Johnson <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit abd6cbb)
…law#102344)

* fix: surface OpenAI chat-completions refusal as assistant text

* fix: cover message.refusal on packages/ai completions path

(cherry picked from commit 3fd5251)
* fix(discord): recover from failed gateway resumes

* chore: leave release notes to release workflow

(cherry picked from commit abbd5ae)
- docs/gateway/security/index.md: dedupe the Trust boundary matrix / Not
  vulnerabilities by design / Gateway and node trust sections that a prior
  merge resolution pasted in twice, and disambiguate the "Deployment and
  host trust" heading that collided with an unrelated section further down;
  regenerate docs_map.md and add the new i18n glossary terms this touched.
- extensions/qa-lab/confidence-report.ts: escape backslashes before pipes
  in escapeTableCell (CodeQL: incomplete string escaping).
- extensions/qa-lab/lab-server-ui.ts: use sha256 instead of sha1 for the UI
  asset cache-busting fingerprint (CodeQL: weak crypto algorithm); output
  format is unchanged (still sliced to 12 hex chars).
- extensions/diffs: restore pierre-themes.ts (missing after the merge, only
  its package.json dependency survived) and re-wire its Node-safe theme
  loader into render.ts, ported to @pierre/diffs' current registerCustomTheme
  API (the old RegisteredCustomThemes/ResolvedThemes/ResolvingThemes maps
  this plugin code used no longer exist after the version bump).
- src/memory/memory-artifact-provenance.ts: recognize sender-identity-scoped
  identities/<id>/USER.md and identities/<id>/MEMORY.md as memory artifacts,
  fixing resolveBootstrapFilesForRun/resolveBootstrapContextForRun dropping
  a sender's USER.md/MEMORY.md entirely (the new provenance eligibility gate
  only recognized the workspace-root paths).
- src/agents/subagent-registry-lifecycle.test.ts: condense an over-long test
  comment flagged by review.

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 11 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

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

Comment thread extensions/diffs/src/pierre-themes.ts Resolved
convyusboy and others added 3 commits November 18, 2026 15:43
…am fix available

picomatch <=4.0.7 is vulnerable to catastrophic backtracking on
single-branch repeated extglobs like +(*a) (confirmed locally: exponential
blowup, ~7s at n=30). The advisory lists no first_patched_version, and the
one linked PR (micromatch/picomatch#194) is unmerged and explicitly out of
scope for this exact shape per its own author.

Patch [email protected] and @4.0.4 (the two versions reachable in the
production dependency closure, via vite/vitest/tinyglobby under
extensions/qa-lab's @copilotkit/aimock) to treat a branch with a bare
top-level star alongside other content as risky and literalize it - the
same safety/correctness trade-off picomatch's own prior ReDoS mitigation
(#182) already makes for mixed star/qmark branches. A branch that is
nothing but stars (e.g. +(*)c) stays safe, matching existing tested
behavior.

Verified against picomatch's own upstream test suites at both versions:
1981/1983 and 1973/1975 passing. The only two newly-failing assertions
(*(a*|b) matching "ax", */*(W*, *)* matching a benign short string)
independently reproduce as themselves exponential against an adversarial
input on the unpatched code - two more instances of the same unfixed bug
the suite never exercised adversarially, not false positives in this patch.

Documents the override in pnpm-audit-prod.mjs's existing
AUDIT_ADVISORY_VERSION_OVERRIDES mechanism; remove once picomatch ships a
real fix.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- GatewayCustomHeaders.kt: reserve the remaining hop-by-hop headers
  (keep-alive, te, trailer, transfer-encoding) the WebSocket upgrade owns,
  not just connection/content-length/host/proxy-connection/upgrade, so an
  operator-supplied header can't corrupt the handshake.
- GatewayStoreMigration.kt: when manual gateway mode is enabled but
  misconfigured (empty host or invalid port), stay disconnected instead of
  silently falling back to a previously discovered gateway the user did not
  choose. Verified with ./gradlew testPlayDebugUnitTest + ktlintCheck
  (new regression test included).
- IPadActivityScreen.swift: reconcile each successful session-list response
  through NodeAppModel.reconcileChatSessionReadState, matching
  CommandCenterTab. Without it, readAcknowledgedChatSessionKey never clears
  for a session that stays open, so a second unread episode on the same
  session silently skips the read-ack patch. (Verified by inspection only;
  no local Xcode toolchain available to compile this target.)
- fastlane Fastfile (android + ios): retry record_mobile_release_ref! up to
  3 times before surfacing failure. mobile-release-ref.ts's record command
  already checks the remote ref first and no-ops if it points at this SHA,
  so retrying a transient git/network failure is safe - previously a single
  failed ref write reported the whole lane as failed even though the Play
  Store / App Store upload it ran after had already succeeded.
- full-release-validation.yml: release-ci/<workflowSha>-<timestamp> branches
  (scripts/full-release-validation-at-sha.mjs and two other call sites) are
  pushed to pin the trusted WORKFLOW sha, not the target content sha under
  test - the target is only a dispatch input. check_child was comparing
  release-ci/* child runs against TARGET_SHA, which would fail verification
  on every legitimate SHA-pinned-helper validation. Only extended-stable/*
  carrier branches (real release branches whose tip IS the release commit)
  compare against TARGET_SHA now; release-ci/* falls through to the
  PARENT_WORKFLOW_SHA check like every other same-ref dispatch.
- release-openclaw-maintainer/SKILL.md: set OPENCLAW_RELEASE_REPO on the
  Full Release Validation SHA-pinned helper invocation so dispatch and
  evidence lookup resolve against this fork, not openclaw/openclaw.
- openclaw-landable-bug-sweep/SKILL.md: gate the Sweep Loop's discovery step
  on source_mode, matching the Inputs section's already-stated intent -
  provided-prs mode was documented as scoped but the loop's own steps still
  instructed broad discovery unconditionally.
- DESIGN-cron-on-exit.md: correct the fail-closed claim. persistCompletion
  failing does stop the stale wake from firing, but it also releases the
  watcher slot without disabling the job, so a later reconcile (restart or
  not) re-arms and re-runs the watched command. Documented as a known
  limitation rather than claimed as a no-double-run guarantee.

Not changed (reviewed and found not applicable): the suggested revert of
the PR close/reopen batch limit (openclaw-pr-maintainer/SKILL.md:316) - that
5->20 threshold is an intentional upstream maintainer decision
(openclaw/openclaw@7137be38e87, "raise PR close batch limit"), not an
accidental weakening.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…grade saved state

This Saver (and its single rememberSaveable call site) replaced three
separately-saved values (activeTab, settingsRoute,
returnToOverviewFromSettings) at the same position in ShellScreen.kt.
Positional scoping means a process recreated from a saved-instance-state
bundle captured before that refactor shipped can still hand this restorer
one of those old, differently-shaped values. listSaver's restore does an
unchecked cast to List<String> before the restore lambda ever runs, so none
of the old values (none of which were lists) could be handled from inside
that lambda - an explicit rememberSaveable key was the other obvious fix,
but this Compose version deprecated custom keys for bypassing positional
scoping.

Switched to building the Saver manually so the cast itself can be wrapped:
any shape mismatch (not a list, too few elements, an enum name that no
longer matches, or a raw Boolean/String stale value) now falls back to a
fresh ShellNavigation() instead of crashing the restore.

Verified with ./gradlew testPlayDebugUnitTest (full app suite, 1015 tests)
and ktlintCheck. New test exercises the exact incompatible-payload shapes
this is defending against; existing shellNavigationSaverRoundTripsCrossTabState
confirms the normal save/restore path is unchanged.

Addresses the cubic-dev-ai finding on PR #307 for ShellNavigation.kt:82.

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 17 files (changes from recent commits).

Requires human review: Auto-approval blocked because this review re-detected 3 unresolved issues already reported by Cubic.

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

…g a loader

Follow-up to the earlier pierre-themes.ts restoration: registerCustomTheme
always rejected (and only logged) registering "pierre-dark"/"pierre-light"
as duplicates, because @pierre/diffs registers its own bundled loaders for
those exact names as an import-time side effect
(shared_highlighter.js's top-level registerThemeIfAbsent loop, which runs
before any application code), so the Node-safe loader this module defines
was never actually used - SSR silently kept using @pierre/diffs' own
fetch-oriented built-in theme content the whole time.

Verified empirically (ad hoc Node scripts against the installed package):
calling registerCustomTheme for these names always logs "theme name
already registered", even as the very first statement after importing
the package. Switched to seeding the resolver's resolved-theme cache
directly via getSharedHighlighter + attachResolvedThemes, which only skip
seeding a theme that is already resolved (not already *registered*) -
confirmed this wins over the built-in both on first resolution and after
a later getSharedHighlighter call requests the same themes "for real",
and that it is unaffected by disposeHighlighter() being called between
renders (the resolved-theme cache outlives the highlighter instance).

Renaming the theme identifiers instead (cubic's other suggested fix) would
have needed touching types.ts's literal type, viewer-payload.ts's
"pierre-light"/"pierre-dark" validator, viewer-client.ts's client bundle
config, and regenerating the multi-MB compiled assets/viewer-runtime.js -
a much larger, build-pipeline-dependent change; seeding the cache is the
narrower fix that doesn't touch the client/server theme-name contract.

Verified: full extensions/diffs test suite (150/150), targeted render
before/after/dispose/re-render check, tsgo:extensions, oxlint, and the
diffs runtime-dependency contract test.

Addresses the cubic-dev-ai finding on PR #307 for pierre-themes.ts:45
(posted against the previous commit's restoration).

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 2 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

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

Comment thread extensions/diffs/src/pierre-themes.ts Resolved
convyusboy and others added 2 commits November 18, 2026 16:34
…valid manual config

Follow-up review found a real regression in the earlier GatewayStoreMigration
fix: returning null for a misconfigured manual gateway correctly stopped
the wrong-gateway auto-connect, but migrateCredentials/migrateDeviceTokens/
migrateNotificationSessionKey still ran unconditionally with a null
destination, which unconditionally deletes the legacy keys - permanently
discarding a real, user-entered token/password with nowhere to go. Worse,
since run() always wrote STORAGE_KEY afterward, migration could never
retry: fixing the host/port or disabling manual mode later would not help,
because run() short-circuits once STORAGE_KEY exists.

Fixed by checking for the enabled-but-invalid case before any migration
step runs at all (isManualModeEnabledAndInvalid()), and returning from
run() early in that case without touching legacy keys or writing
STORAGE_KEY. legacyActiveEntry()'s manual branch no longer needs its own
validity check or null return, since run() already guarantees manual mode
is valid by the time it's reached. Migration now retries on every launch
until the config is fixed or manual mode is disabled, at which point it
completes normally and migrates the preserved credential to the right
place.

Also: condensed ShellNavigation.Saver's KDoc to the invariant/fallback
behavior per review feedback (the migration-history/call-site narrative
belongs in the commit message, not the source comment), and added the
invalid-port half of the manual-config regression test plus two new tests
(credential preserved while deferred; migration completes on a later
launch once fixed).

Verified with ./gradlew testPlayDebugUnitTest (full app suite, 1018
tests) and ktlintCheck.

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.

1 issue found across 4 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayStoreMigration.kt">

<violation number="1" location="apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayStoreMigration.kt:15">
P3: Shorten this comment to the invariant and failure consequence; the migration-history and retry-detail narrative makes the changed block longer than the repository's concise source-comment convention. For example, state that invalid manual mode defers migration so legacy credentials are not discarded before a valid host/port can receive them.

(Based on your team's feedback about concise source comments.)</violation>
</file>

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

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

@convyusboy
convyusboy removed the request for review from a team November 18, 2026 09:49
convyusboy and others added 2 commits November 18, 2026 16:54
…026.7.35

# Conflicts:
#	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
#	extensions/chutes/package.json
#	extensions/clickclack/npm-shrinkwrap.json
#	extensions/clickclack/package.json
#	extensions/cloudflare-ai-gateway/npm-shrinkwrap.json
#	extensions/cloudflare-ai-gateway/package.json
#	extensions/codex-supervisor/package.json
#	extensions/codex/npm-shrinkwrap.json
#	extensions/codex/package.json
#	extensions/cohere/npm-shrinkwrap.json
#	extensions/cohere/package.json
#	extensions/comfy/package.json
#	extensions/copilot-proxy/package.json
#	extensions/copilot/npm-shrinkwrap.json
#	extensions/copilot/package.json
#	extensions/deepgram/package.json
#	extensions/deepinfra/npm-shrinkwrap.json
#	extensions/deepinfra/package.json
#	extensions/deepseek/npm-shrinkwrap.json
#	extensions/deepseek/package.json
#	extensions/diagnostics-otel/package.json
#	extensions/diagnostics-prometheus/npm-shrinkwrap.json
#	extensions/diagnostics-prometheus/package.json
#	extensions/diffs-language-pack/npm-shrinkwrap.json
#	extensions/diffs-language-pack/package.json
#	extensions/diffs/npm-shrinkwrap.json
#	extensions/diffs/package.json
#	extensions/discord/npm-shrinkwrap.json
#	extensions/discord/package.json
#	extensions/document-extract/package.json
#	extensions/duckduckgo/package.json
#	extensions/elevenlabs/package.json
#	extensions/exa/npm-shrinkwrap.json
#	extensions/exa/package.json
#	extensions/fal/package.json
#	extensions/feishu/npm-shrinkwrap.json
#	extensions/feishu/package.json
#	extensions/file-transfer/package.json
#	extensions/firecrawl/npm-shrinkwrap.json
#	extensions/firecrawl/package.json
#	extensions/fireworks/npm-shrinkwrap.json
#	extensions/fireworks/package.json
#	extensions/github-copilot/package.json
#	extensions/gmi/npm-shrinkwrap.json
#	extensions/gmi/package.json
#	extensions/google-meet/npm-shrinkwrap.json
#	extensions/google-meet/package.json
#	extensions/google/package.json
#	extensions/googlechat/npm-shrinkwrap.json
#	extensions/googlechat/package.json
#	extensions/gradium/npm-shrinkwrap.json
#	extensions/gradium/package.json
#	extensions/groq/npm-shrinkwrap.json
#	extensions/groq/package.json
#	extensions/huggingface/package.json
#	extensions/image-generation-core/package.json
#	extensions/imessage/package.json
#	extensions/inworld/npm-shrinkwrap.json
#	extensions/inworld/package.json
#	extensions/irc/npm-shrinkwrap.json
#	extensions/irc/package.json
#	extensions/kilocode/npm-shrinkwrap.json
#	extensions/kilocode/package.json
#	extensions/kimi-coding/npm-shrinkwrap.json
#	extensions/kimi-coding/package.json
#	extensions/line/npm-shrinkwrap.json
#	extensions/line/package.json
#	extensions/litellm/package.json
#	extensions/llama-cpp/npm-shrinkwrap.json
#	extensions/llama-cpp/package.json
#	extensions/llm-task/package.json
#	extensions/lmstudio/package.json
#	extensions/lobster/npm-shrinkwrap.json
#	extensions/lobster/package.json
#	extensions/matrix/CHANGELOG.md
#	extensions/matrix/npm-shrinkwrap.json
#	extensions/matrix/package.json
#	extensions/mattermost/npm-shrinkwrap.json
#	extensions/mattermost/package.json
#	extensions/media-understanding-core/package.json
#	extensions/memory-core/package.json
#	extensions/memory-lancedb/npm-shrinkwrap.json
#	extensions/memory-lancedb/package.json
#	extensions/memory-wiki/package.json
#	extensions/microsoft-foundry/package.json
#	extensions/microsoft/package.json
#	extensions/migrate-claude/package.json
#	extensions/migrate-hermes/package.json
#	extensions/minimax/package.json
#	extensions/mistral/package.json
#	extensions/moonshot/npm-shrinkwrap.json
#	extensions/moonshot/package.json
#	extensions/msteams/npm-shrinkwrap.json
#	extensions/msteams/package.json
#	extensions/nextcloud-talk/npm-shrinkwrap.json
#	extensions/nextcloud-talk/package.json
#	extensions/nostr/npm-shrinkwrap.json
#	extensions/nostr/package.json
#	extensions/novita/package.json
#	extensions/nvidia/package.json
#	extensions/oc-path/package.json
#	extensions/ollama/package.json
#	extensions/open-prose/package.json
#	extensions/openai/package.json
#	extensions/opencode-go/package.json
#	extensions/opencode/package.json
#	extensions/openrouter/package.json
#	extensions/openshell/npm-shrinkwrap.json
#	extensions/openshell/package.json
#	extensions/parallel/npm-shrinkwrap.json
#	extensions/parallel/package.json
#	extensions/perplexity/npm-shrinkwrap.json
#	extensions/perplexity/package.json
#	extensions/pixverse/npm-shrinkwrap.json
#	extensions/pixverse/package.json
#	extensions/policy/package.json
#	extensions/qa-channel/package.json
#	extensions/qa-lab/package.json
#	extensions/qa-matrix/package.json
#	extensions/qianfan/npm-shrinkwrap.json
#	extensions/qianfan/package.json
#	extensions/qqbot/npm-shrinkwrap.json
#	extensions/qqbot/package.json
#	extensions/qwen/npm-shrinkwrap.json
#	extensions/qwen/package.json
#	extensions/raft/npm-shrinkwrap.json
#	extensions/raft/package.json
#	extensions/runway/package.json
#	extensions/searxng/npm-shrinkwrap.json
#	extensions/searxng/package.json
#	extensions/senseaudio/package.json
#	extensions/sentry-monitor/package.json
#	extensions/sglang/package.json
#	extensions/signal/npm-shrinkwrap.json
#	extensions/signal/package.json
#	extensions/slack/npm-shrinkwrap.json
#	extensions/slack/package.json
#	extensions/sms/npm-shrinkwrap.json
#	extensions/sms/package.json
#	extensions/stepfun/npm-shrinkwrap.json
#	extensions/stepfun/package.json
#	extensions/synology-chat/npm-shrinkwrap.json
#	extensions/synology-chat/package.json
#	extensions/synthetic/package.json
#	extensions/tavily/npm-shrinkwrap.json
#	extensions/tavily/package.json
#	extensions/telegram/package.json
#	extensions/tencent/npm-shrinkwrap.json
#	extensions/tencent/package.json
#	extensions/tlon/npm-shrinkwrap.json
#	extensions/tlon/package.json
#	extensions/together/package.json
#	extensions/tokenjuice/npm-shrinkwrap.json
#	extensions/tokenjuice/package.json
#	extensions/tts-local-cli/package.json
#	extensions/twitch/npm-shrinkwrap.json
#	extensions/twitch/package.json
#	extensions/venice/npm-shrinkwrap.json
#	extensions/venice/package.json
#	extensions/vercel-ai-gateway/npm-shrinkwrap.json
#	extensions/vercel-ai-gateway/package.json
#	extensions/video-generation-core/package.json
#	extensions/vllm/package.json
#	extensions/voice-call/npm-shrinkwrap.json
#	extensions/voice-call/package.json
#	extensions/volcengine/package.json
#	extensions/voyage/package.json
#	extensions/vydra/package.json
#	extensions/web-readability/package.json
#	extensions/webhooks/package.json
#	extensions/whatsapp/npm-shrinkwrap.json
#	extensions/whatsapp/package.json
#	extensions/workboard/package.json
#	extensions/xai/package.json
#	extensions/xiaomi/package.json
#	extensions/zai/npm-shrinkwrap.json
#	extensions/zai/package.json
#	extensions/zalo/npm-shrinkwrap.json
#	extensions/zalo/package.json
#	extensions/zalouser/npm-shrinkwrap.json
#	extensions/zalouser/package.json
#	npm-shrinkwrap.json
#	package.json
@convyusboy
convyusboy requested a review from a team November 18, 2026 11:00
check-guards failed with "new pnpm package patches are not allowed" because
the [email protected]/4.0.7 patches (added to fix GHSA-fc5q-39xc-vjpf) were
never registered in scripts/check-package-patches.mjs's approved-patches
allowlist.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@convyusboy
convyusboy removed the request for review from a team November 18, 2026 11:11
…tion

The test still asserted the pre-fix combined condition
( release-ci/* || extended-stable/* ) && TARGET_SHA, which went stale when
the check_child SHA comparison was split so only extended-stable/* trusts
TARGET_SHA and release-ci/* falls through to PARENT_WORKFLOW_SHA (that split
is the intentional fix: release-ci branches pin the workflow SHA, not the
content SHA, so comparing their head against TARGET_SHA would check the
wrong thing). Updated the assertion to match the current elif/if split.

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.

Code Review Summary

Verdict: APPROVE (ready-to-release)

Scope and Assessment

  • Syncs upstream OpenClaw v2026.7.35 into the boon fork while preserving boon-specific patches and conflict resolutions.
  • Successfully integrates upstream maintenance improvements, backports, and fixes while maintaining stability on the Node 22 line.
  • Aligns ws pins to 8.21.0 across root and 13 extension manifests, keeping all 74 npm-shrinkwrap.json files synchronized.
  • Mitigates picomatch ReDoS (GHSA-fc5q-39xc-vjpf) for v4.0.4 and v4.0.7 in production dependencies with proper package-patch guard allowlisting.
  • Resolves mobile and extension edge cases identified during review:
    • Android: GatewayStoreMigration safely defers migration on invalid manual config rather than dropping legacy credentials; ShellNavigation.Saver defensively restores against legacy bundle state.
    • iOS: IPadActivityScreen reconciles chat session read state with NodeAppModel; hop-by-hop headers reserved in GatewayCustomHeaders.
    • Diffs extension: seeds Node-safe Pierre themes into resolved highlighter cache.
    • CI / workflow adjustments: splits full-release-validation parent workflow SHA checking between release-ci and extended-stable branches.
  • Successfully merged with origin/boon and addressed all automated reviewer feedback.

Verification and CI Proof

  • Full CI test and build matrix passed on commit 49648bc.
  • ci-gate passed green.
  • All core test suites, linting (check-lint), typechecks (check-prod-types, check-test-types), shrinkwrap checks (check-shrinkwrap), guard checks (check-guards), and build artifacts (build-artifacts) completed successfully.

@convyusboy
convyusboy merged commit baa5f97 into boon Nov 18, 2026
159 of 163 checks passed
@convyusboy
convyusboy deleted the ridho/upstream-sync-2026.7.35 branch November 18, 2026 14:20
convyusboy added a commit that referenced this pull request Nov 18, 2026
…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]>
convyusboy added a commit that referenced this pull request Nov 18, 2026
…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]>
convyusboy added a commit that referenced this pull request Nov 18, 2026
…stream base reset) (#335)

* chore(release): bump version 2026.6.35-boon.7 -> 2026.7.35-boon.1 (upstream 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]>

* fix(release): recognize the boon fork's -boon.N version suffix in release-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]>

* fix(release): realign stale plugin shrinkwrap peer ranges and packages/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]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
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.