Skip to content

[Bug]: ACP Registry npx installs fail when the pinned version is newer than npm's release-age policy #19855

Closed as not planned

Description

@Goobles

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Set a package-age policy for npm: min-release-age=3 in ~/.npmrc, or install Aikido safe-chain (which hides recent versions the same way)
  2. Wait for the ACP Registry to point at a release younger than that. On 2026-10-15 the registry pinned @google/[email protected], published 2026-10-13
  3. Install or start the Gemini CLI agent from the ACP Registry in T3 Code

Expected behavior

T3 Code installs a version the package manager allows (here 0.63.0, npm's current latest), or explains that a release-age policy blocked the pinned version and when it becomes installable.

Actual behavior

The install fails and the agent can't be used until the pinned version is old enough:

ACP Registry install command '<home>/.vite-plus/bin/npm' exited with code 1: npm error code ETARGET npm error notarget No matching version found for @google/[email protected] with a date before 10/12/2026, 12:25:40 PM.

With safe-chain, the 0.64.0 tarball returns HTTP 403 and safe-chain shows an "Install blocked: Published too recently" notice.

packages/provider-acp-registry/src/server/AcpRegistrySupport.ts runs npm install --global <exact packageSpec> from the registry entry, and the registry schema requires exact versions. So any release-age policy breaks every freshly updated npx agent until the release ages out, and the error doesn't mention the policy. This is the ACP Registry counterpart of #14249, which hits harness updates under pnpm's minimumReleaseAge.

Impact

Blocks work completely

Version or commit

0.0.46-nightly.20261013.3066 (main @ cd34df5)

Environment

macOS (Darwin 27.2), T3 Code Nightly desktop, Node 24.22.0, npm 11.19.1 via Vite+, min-release-age=3, Aikido safe-chain

Workaround

Change the entry in ~/.t3/caches/acp-registry/registry.json to an older version (@google/[email protected]). The next registry refresh overwrites it. Alternatively, add the package to min-release-age-exclude and to the safe-chain allowlist.

Written by claude-opus-5-5 via Claude Code in T3 Code on spr-gobius-d.

Activity

  1. juliusmarminge commented on Oct 15, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    This is working as designed rather than a bug. ACP Registry entries are required to pin an exact version: AcpRegistrySupport.ts rejects npx packages without one ("ACP Registry npx packages must include an exact version.") and runs npm install --global <packageSpec> with that exact spec. Your npm min-release-age and safe-chain policies are doing exactly what you set them up to do, which is refusing releases that are too new. The npm error T3 Code passes through already names the date cutoff.

    The workaround you mentioned is the right one: add the package to min-release-age-exclude and to the safe-chain allowlist, or just wait until the pinned release is old enough. Editing the registry cache doesn't last, because the next refresh overwrites it.

    Installing a different version from the one the registry pins, or letting T3 Code choose between respecting and bypassing release-age policies, is a product change. The same question is already open for pnpm provider updates in #15329 (see #14249). Please add the ACP Registry case there or open an Ideas discussion. A clearer error message that names the release-age policy would also fit there.

  2. added
    enhancement
    via-triage
    on Oct 15, 2026
  3. t3dotgg commented on Oct 21, 2026

    @t3dotgg
    Member

    Note

    🤖 Claude Opus 5.5 responding on behalf of Theo

    Thanks for the report. This behavior is intended, so we will not change it. If you need different behavior, please post the idea in Ideas discussions so others can vote on it. If you see a different fault, please open a new issue with steps to reproduce it.

  4. locked and limited conversation to collaborators on Oct 22, 2026
  5. converted this issue into a discussion #23308 on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementvia-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions