Skip to content

fix(deps): restore frozen installs for Anthropic SDK - #128671

Merged
vincentkoc merged 1 commit into
mainfrom
fix/anthropic-sdk-lock
Aug 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/anthropic-sdk-lock

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #128414
Related: #128131

What Problem This Solves

Fixes an issue where clean installs and CI hydration failed with ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY after #128414 refreshed the resolved Anthropic Agent SDK graph to 0.3.232 while the plugin manifest and lockfile importer added by #128131 still requested 0.3.219.

Why This Change Was Made

Align the Anthropic plugin's exact SDK pin and importer with the already-resolved 0.3.232 graph. This is intentionally limited to the manifest/importer mismatch; it adds no new resolved packages or workflow changes. AI-assisted.

User Impact

Developers and CI can run frozen pnpm installs from a clean checkout again. Anthropic runtime behavior and dependency ownership remain unchanged.

Evidence

  • Baseline reproduction on main (a9fdb68496d636461d11e8be29323de55636e337): Blacksmith Testbox hydration failed with ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY for the stale 0.3.219 importer: https://github.com/openclaw/openclaw/actions/runs/32716399797
  • Fixed head 61cb1fd2224abea05b0061fde59936c3d052697e: branch Testbox hydration completed the repository frozen install, and an explicit pnpm install --frozen-lockfile --ignore-scripts passed with installed SDK readback 0.3.232: https://github.com/openclaw/openclaw/actions/runs/32716575433
  • Anthropic Agent SDK runtime: 31 tests passed.
  • Plugin runtime dependency contract: 439 tests passed.
  • Package manifest contract: the Anthropic assertion confirming @anthropic-ai/claude-agent-sdk stays plugin-local passed. The aggregate sparse-checkout run also reported eight unrelated empty suites for plugins omitted by the GWT profile.
  • Docker plugin selection: 3 tests passed; direct selection and required-bundled checks both include anthropic.
  • Dependency change report: 2 dependency files changed; 0 packages added, removed, or version-changed in the resolved graph.
  • Direct dependency pin guard: 620 declared dependency specs checked, 0 violations.
  • git diff --check passed.
  • Autoreview: clean, 0.99 confidence.

@vincentkoc vincentkoc self-assigned this Aug 24, 2026
@clawsweeper

clawsweeper Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 24, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 24, 2026 10:38
@vincentkoc
vincentkoc requested a review from a team as a code owner August 24, 2026 10:38
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

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

Changed files:

  • extensions/anthropic/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency 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

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of @openclaw/openclaw-secops, or an OpenClaw organization member with Maintain or Admin repository access.

  • Current SHA: 61cb1fd2224abea05b0061fde59936c3d052697e
  • Trusted actor: @vincentkoc
  • Trusted role: pull request author; openclaw-secops

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

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 24, 2026
@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 6:43 AM ET / 10:43 UTC.

ClawSweeper review

What this changes

This PR updates the Anthropic plugin’s Agent SDK manifest pin and matching pnpm lockfile importer from 0.3.219 to 0.3.232 to restore frozen installs.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: this focused repair remains necessary because current main still declares and imports 0.3.219 while the PR aligns both to the resolved 0.3.232 graph. No blocking patch defect was found; merge after exact-head required checks finish green.

Priority: P1
Reviewed head: 61cb1fd2224abea05b0061fde59936c3d052697e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) This is a narrow, source-supported dependency metadata repair with focused after-fix install evidence and no actionable review finding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR; its body nevertheless includes after-fix frozen-install terminal evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR; its body nevertheless includes after-fix frozen-install terminal evidence.
Evidence reviewed 6 items Current-main mismatch: Current main still declares the plugin dependency as 0.3.219, so the requested alignment is not already implemented.
Current-main importer: Current main’s Anthropic importer also records 0.3.219, matching the reported stale importer rather than the PR’s repaired 0.3.232 value.
Plugin ownership and runtime contract: The plugin imports the Agent SDK directly and dynamically loads its query entrypoint; the dependency therefore belongs in this plugin’s manifest rather than core.
Findings None None.
Security None None.

Live Verification

Command: pnpm install --frozen-lockfile --ignore-scripts

Result: PASS (completed)

pnpm install --frozen-lockfile --ignore-scripts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128671-phJrN1/target$ pnpm install --frozen-lockfile --ignore-scripts
Scope: all 170 workspace projects
Already up to date
Done in 529ms using pnpm v11.22.0
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128671-phJrN1/target$ pnpm install --frozen-lockfile --ignore-scripts
Scope: all 170 workspace projects
Already up to date
Done in 550ms using pnpm v11.22.0
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128671-phJrN1/target$









































Assertions:

  • PASS expect_output: Done in

How this fits together

The Anthropic provider plugin owns its Agent SDK dependency, and pnpm uses the lockfile importer to reproduce that dependency during clean frozen installs. A mismatch prevents dependency hydration before the plugin runtime can load.

flowchart LR
  A[Anthropic plugin manifest] --> B[pnpm lockfile importer]
  B --> C[Frozen dependency install]
  C --> D[Plugin runtime]
  D --> E[Anthropic Agent SDK]
Loading

Before merge

  • Resolve merge risk (P1) - The exact plugin SDK pin changes, so merge only after the exact-head frozen-install and required CI checks confirm the importer and peer resolution remain valid.
  • Complete next step (P2) - This protected, member-authored PR has a bounded repair and awaits ordinary exact-head CI completion and maintainer merge review.
Agent review details

Security

None.

PR surface

Config 0, Other 0. Total 0 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 1 1 1 0
Generated 0 0 0 0
Other 1 2 2 0
Total 2 3 3 0

Review metrics

Metric Value Why it matters
Production versus test delta production +1/-1 (net 0); generated lockfile importer +2/-2; tests 0 The runtime declaration and installation metadata move together without changing plugin runtime code or tests.

Merge-risk options

Maintainer options:

  1. Wait for exact-head install validation (recommended)
    Merge after the required exact-head checks confirm frozen installation and the existing Agent SDK peer graph resolve successfully.

Technical review

Best possible solution:

Land the manifest/importer alignment once exact-head checks confirm clean frozen installation against the existing resolved graph.

Do we have a high-confidence way to reproduce the issue?

Yes — current main directly shows the stale 0.3.219 manifest and importer, while the PR body supplies a clean frozen-install failure and passing after-fix terminal evidence.

Is this the best way to solve the issue?

Yes — updating the plugin-owned declaration and its importer together is the narrowest canonical repair; changing runtime code or moving the dependency to core would violate the established ownership boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1bca825105e5.

Labels

Label justifications:

  • P1: The manifest/importer mismatch blocks clean frozen installs used by developers and CI.
  • merge-risk: 🚨 compatibility: The exact plugin runtime SDK pin changes and must remain compatible with the already-resolved peer graph.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR; its body nevertheless includes after-fix frozen-install terminal evidence.

Evidence

What I checked:

  • Current-main mismatch: Current main still declares the plugin dependency as 0.3.219, so the requested alignment is not already implemented. (extensions/anthropic/package.json:8, 1bca825105e5)
  • Current-main importer: Current main’s Anthropic importer also records 0.3.219, matching the reported stale importer rather than the PR’s repaired 0.3.232 value. (pnpm-lock.yaml:475, 1bca825105e5)
  • Plugin ownership and runtime contract: The plugin imports the Agent SDK directly and dynamically loads its query entrypoint; the dependency therefore belongs in this plugin’s manifest rather than core. (extensions/anthropic/agent-sdk.runtime.ts:11, 61cb1fd2224a)
  • Existing ownership regression contract: The package-manifest contract explicitly requires the Agent SDK to remain a plugin-local Anthropic runtime dependency. (src/plugins/contracts/package-manifest.contract.test.ts:16, 61cb1fd2224a)
  • Narrow patch scope: The branch changes one manifest declaration and its corresponding importer record; it does not alter runtime code or add resolved package entries. (pnpm-lock.yaml:475, 61cb1fd2224a)
  • Related merged history: The supplied repository context identifies the merged Agent SDK migration and dependency refresh as the adjacent changes that established this plugin and its newer resolved graph. (12d0fd2ef8af)

Likely related people:

  • steipete: Authored the merged Anthropic Agent SDK migration and the related dependency refresh identified in the PR context. (role: feature and dependency-history contributor; confidence: medium; commits: 12d0fd2ef8af, 234df15a6d7f; files: extensions/anthropic/package.json, pnpm-lock.yaml, extensions/anthropic/agent-sdk.runtime.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the remaining exact-head required checks finish before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-24T10:31:27.702Z sha 61cb1fd :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc merged commit d9165f9 into main Aug 24, 2026
442 of 445 checks passed
@vincentkoc
vincentkoc deleted the fix/anthropic-sdk-lock branch August 24, 2026 10:54
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files extensions: anthropic maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant