Skip to content
Source
Sign inSign up
TanStack/ai

Upgrade @vercel/sandbox to 4 (blocked by @vercel/detect-agent trust-policy check) #100007

Send to my agent
Opentombeckenham opened this issue 0 comments
tombeckenhamcommented

@vercel/sandbox 4 does not install. @tanstack/ai-sandbox-vercel stays on 2.x.

What fails

pnpm update --latest stops on the trustPolicy: no-downgrade check in pnpm-workspace.yaml:

High-risk trust downgrade for "@vercel/detect-agent@1.2.5" (possible package takeover)
This error happened while installing the dependencies of @vercel/sandbox@4.0.0

To do

  1. Check how @vercel/detect-agent@1.2.5 was published (npm provenance, publisher).
  2. If it is legitimate, add that exact version to trustPolicyExclude with a comment. If it is not, wait for a release that passes the check.
  3. Bump @vercel/sandbox to 4. This is two majors (2 to 4), so read the 3.0 and 4.0 release notes and update the provider for any API changes.
  4. Run test:types and test:lib for @tanstack/ai-sandbox-vercel, then add a changeset.

Found during the all-dependencies update on chore/renovate-all-deps.

  1. tanstack-source added labelsbug

  2. tanstack-source assignedAlemTuzlak with the note “You are a @TanStack/tanstack-core code owner for the repo-level tooling this touches (.changeset/config.json, .npmrc, pnpm-workspace trust policy, CI scripts). This is a dependency/trust-policy bump for @tanstack/ai-sandbox-vercel rather than core API work, so one core owner is enough.”

Sign in to join this conversation.