Skip to content

Plugin updates: Notify users of out-of-range releases and allow safe version-range upgrades #5570

Description

@aaronphifer

The workflow

I maintain Agent Board. After publishing v0.7.0 and updating its marketplace selector from ^0.6.1 to ^0.7.0 in get-bb/marketplace#550 (merged), existing installations retained their original ^0.6.1 source intent.

I want users to discover the newer stable release, review the range change and compatibility, and explicitly upgrade the existing managed Git installation without uninstalling or resetting its configuration.

This is one feature request for two complementary parts of that upgrade workflow: out-of-range release discovery and a safe, confirmed version-range change. It is not a request to change semver semantics or automatically install potentially incompatible releases.

What happens today

Maintainer-reported CLI evidence (supplied from an existing installation):

bb plugin source agent-board
bb plugin outdated

Relevant output as supplied; the final line is an abbreviated table row:

requested: git:https://github.com/aaronphifer/bb-plugin-agent-board.git@semver:^0.6.1
resolved: https://github.com/aaronphifer/[email protected]
range: ^0.6.1

agent-board ... current

That is correct semver selection: ^0.6.1 excludes 0.7.0. The missing information is that a newer stable release exists outside the selected range.

Verification scope: the investigation reviewed upstream main at 2a65a58bda942d67dd37b0dae1e3fee4577725b3. The original CLI observation did not include the exact BB version, OS, or installation method. It was not rerun against a live BB server or the reporter's installed plugins; live integration reproduction remains unverified. No installed plugin was changed. Source findings and the isolated resolver check below are separate from the reported CLI output.

Current source findings:

  • The Git range filter discards tags outside the installed range. Range-update resolution then returns current when the first eligible candidate is the installed commit. Consequently an out-of-range release does not reach engine/SDK probing or appear as a blocked newer candidate.
  • Installed-source comparison includes the Git range, and the managed reinstall guard refuses replacing an installed managed Git plugin through install. The local-path move exception does not apply to this case.
  • The update path resolves the existing row's source intent. The inspected CLI update command takes an ID/--all, with no source-range replacement argument; plugin source is a read-only inspection command.
  • Removal cleanup deletes settings, schedules, and secret files. I did not verify that removal deletes KV storage or the plugin database, and do not claim that it does. The requested upgrade should preserve all persistent plugin state regardless.
  • The existing snapshot machinery already captures plugin database/host state/secrets and previous registration. Managed activation preserves enabled state and invokes rollback on activation failure.

Isolated source-level check, actually executed: Node 24.18.0 ran the exact extracted resolveGitRangeUpdate function and its relevant helpers from the commit above, with the real semver library and a synthetic listGitSemverTags result: v0.7.0 at commit B, v0.6.1 at commit A; installed tag v0.6.1/commit A; installed range ^0.6.1; a compatibility-probe stub that would accept candidates and count calls. Assertions passed:

{"tags":["v0.7.0","v0.6.1"],"range":"^0.6.1","result":"current","compatibilityProbes":0,"blockedFieldPresent":false}

This verifies the resolver decision with synthetic metadata, not network tag discovery, a complete BB installation, UI behavior, or upgrade/data-restoration behavior. The existing range-resolution test also distinguishes a satisfying update from a range with no newer eligible candidate.

For an existing installation retaining the old selector, the two read-only commands above are the minimal reported reproduction. A full integration regression should use a disposable BB instance and a fixture Git repository with distinct v0.6.1/v0.7.0 commits, install the former using @semver:^0.6.1, then check for updates. No remove/reinstall is needed to demonstrate the discovery gap.

What you would expect

A. Release discovery through the existing update system

For example:

Agent Board 0.7.0 is available. Your installed range ^0.6.1 excludes this release. Review upgrade.

Acceptance criteria:

  • Distinguish an update allowed by the installed range from a newer stable release that requires changing it. A plugin can be current within its range while a newer release exists.
  • Respect intentional exact-version/tag/commit pins: keep the pin and identify it clearly. Any advisory discovery for pinned installs must not silently convert them to tracking sources.
  • Identify potential breaking changes, including pre-1.0 minor transitions such as 0.6 → 0.7, and offer release notes when available. Passing engine checks alone must not imply that plugin behavior/data migrations are backward compatible.
  • Report source-range exclusion separately from engines.bb and SDK compatibility. Reuse BB's existing compatibility rules; if compatibility has not been evaluated, say so.
  • Never automatically install an out-of-range or potentially incompatible release, or widen its selector during checks.
  • Extend the existing manual/scheduled checks, update state, CLI output/JSON, and plugin UI rather than introducing a separate checking system.

B. Explicit, safe version-range upgrades for existing managed Git plugins

Acceptance criteria:

  • Let the user change an installed plugin's Git semver range in place, for example ^0.6.1 → ^0.7.0, without uninstalling. Exact command/API naming is for maintainers to choose.
  • Show the existing and proposed selector, resolved release, and compatibility/breaking-change information before confirmation. Checking or cancelling must leave the installation unchanged.
  • Preserve plugin ID, provenance where applicable, enabled state, settings, KV storage, plugin database, secrets, schedules, and other persistent plugin data, subject only to the plugin's explicit supported migrations.
  • Use the existing staged artifact validation, activation, state snapshots, startup checks, and rollback protections. Validate the candidate identity and compatibility before replacing the active installation.
  • If preparation or activation fails, retain or restore the previous working version and source selector, enabled state, and persistent data. Expose rollback failures clearly, and retain existing restart-recovery protections.
  • Provide CLI, SDK/API, and UI access through a shared operation consistent with BB's architecture and current background update jobs.
  • Regression coverage: 0.6.1/0.7.0 discovery; an allowed in-range update; intentional pins; engine and SDK blocks reported separately; successful range change with saved data; disabled-state preservation; cancellation; and failed activation restoring both old code and old selector/data.

Context and alternatives

Related work reviewed:

  • #636, merged: established compatibility-aware manual updates, staged activation, snapshots, and rollback. Its description explicitly deferred --latest intent-widening. This request builds on that safety path.
  • #1581, merged: added Git semver tag resolution, range filtering, and moved/missing-tag protections. Those protections should remain in force.
  • #1966, merged: added manual UI checks and a six-hour update sweep. The remaining gap is which releases the existing check reports.
  • #1766 and #2297, closed via #2125: safe same-ID local path moves preserve settings/enabled state and roll back failed moves. The closing maintainer comment on Support lossless same-id path plugin source rebind #2297 confirms that scope. Managed Git range replacement remains guarded separately in current source.
  • #4681, merged: updates now use background jobs with activation/rollback progress. This request should reuse that flow.
  • #2690, open: asks for transactions over exact resident prebuilt generations and multi-plugin switching. This request concerns release discovery and changing one managed Git selector using existing installation protections, not that broader transaction model.

Open and closed issues/PRs were searched for plugin update/upgrade notifications, semver/ranges/version constraints, newer/out-of-range releases, source changes/rebind/retargeting, settings preservation, intent widening, and Agent Board. No existing issue covering this requested managed-Git upgrade workflow was found. #636 documents prior deferral; I found no current commitment or delivery date for it.

Removing/reinstalling is a poor substitute because it explicitly deletes settings, secrets, and schedules. Broadening the initial range merely avoids this particular boundary by changing what future updates are allowed; it does not provide a safe review/upgrade workflow for already-installed selectors. The marketplace listing update is discovery metadata, not permission to rewrite installed source intent.

Is this capability already on the roadmap, or should this issue track the remaining discovery and managed-Git range-upgrade work?

Checks

  • I searched open and closed issues for the same request.
  • If an agent wrote this, the body ends with > AGENT GENERATED.

AGENT GENERATED

Activity

  1. added
    plugins
    on Oct 15, 2026
  2. bb-slop-cop commented on Oct 15, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied missing classifications: Type: Feature · Priority: Medium · Effort: High · Labels: plugins. Verified all values after writing; no existing classifications or labels needed preservation.

    This adds release discovery outside the installed range and an explicit, state-preserving upgrade workflow. Medium priority reflects a meaningful capability gap without an established outage or active data loss; High effort reflects coordinated update-state, API/CLI/UI, confirmation, and rollback work.

    No reproduction report or pull request: the final Type is Feature, so bug reproduction and simple-fix steps do not apply.

    AGENT GENERATED

  3. alexandre-vl commented on Oct 20, 2026

    @alexandre-vl
    Contributor

    Additional evidence: the gap is marketplace-wide, and part B needs four more guards

    The discovery gap reported here for Agent Board affects most of bb-community. 367 of 420 entries declare a caret 0.x range, which admits patches only, and every range bump the marketplace has merged so far reaches new installs only. Below are a live observation on a released build, measurements across the catalog, the design history behind the frozen range, an answer to this issue's open question about what remove deletes, and guards the range-change operation needs. Inferences are labelled as such.

    Environment: bb-app 0.46.1 (npm package), Linux 6.12 (Debian 13). Code is cited at get-bb/bb bb336d372962a31a5e403ac56e8ddc5f1f338e2c (an ancestor of current main) and get-bb/marketplace c75a5ac1f4ad986f9a460d04929a37062f574c62. The live catalog https://getbb.app/marketplace/v2/marketplace.json was fetched 2026-10-20 20:53 UTC.

    Observed on a live install (read-only)

    1. A catalog install records the listed caret range:
      curl -s "$BB_SERVER_URL/api/v1/plugin-catalog/install-plan?entryId=genui" → "source":"git:https://github.com/ComicBit/bb-plugin-genui.git@semver:^0.1.0"
    2. git ls-remote --tags https://github.com/ComicBit/bb-plugin-genui.git lists refs/tags/v0.1.0 and refs/tags/v0.2.0. The semver bundled in bb-app expands ^0.1.0 to >=0.1.0 <0.2.0-0.
    3. This install went through four remove + reinstall cycles today (genui three times, thread-namer once) while its user tried to get newer releases. Each removal logged …; its settings, secrets, and schedules were deleted. thread-namer has only refs/tags/v0.1.0, so its reinstall gained nothing. Nothing in bb plugin outdated or the UI distinguishes "nothing newer exists" from "current within your range" (part A).

    The boundary itself is intended, and an integration test with real git repos locks it: plugin-update.test.ts:1372-1400 tags v2.0.0, updates ^1.0.0 to v1.1.0, then expects current.

    Scale across bb-community

    Method: a script over the live catalog plus git ls-remote --tags per entry. For each newest out-of-range tag it checked the manifest id, engines.bb against 0.46.1, engines.bbPluginSdk under bb's same-major floor rule, and a dry run of bb's npm step with its bundled npm 11.16.0. The bundle build was not run.

    • 367 of 420 entries use ^0.y.z (354 git, 13 npm). Another 14 use an unbounded >=0.y.z.
    • 22 git entries list a newer stable tag outside their current range. 17 of those releases would install on 0.46.1. Five would not:
      • 3 depend on workspace:*, so npm fails with npm error code EUNSUPPORTEDPROTOCOL.
      • genui 0.2.0 imports three, which is only a devDependency, so its build fails (ComicBit/bb-plugin-genui#7).
      • kilocode 0.2.0 renames its package to bb-plugin-opencode, which changes the plugin id.
    • Installs made under older catalog ranges add more. In the marketplace repo's git history, 62 entries have changed range, and every change started from a ^0.y.z. For 48 of them an earlier range excludes today's newest tag; Agent Board's ^0.6.1 is one. Counting those, 63 entries have an installable release that some existing installs cannot see.

    Why existing installs never follow the catalog

    Answer to the open question: what remove deletes

    • deleteRemovedPluginData deletes provider registrations, schedules, settings, and the secrets directory.
    • plugin_kv and thread_plugin_metadata key on plugin_id with no foreign key to the plugin row (schema.ts:438-447, schema.ts:697-707). KV is deleted only when a builtin is retired (plugin-service.ts:1310).
    • Observed: <data dir>/plugins/<id>/data.db is still on disk for two plugins removed earlier today.

    So remove + reinstall neither resets nor preserves. Settings, secrets and schedules are lost, while the reinstalled version inherits KV, data.db and thread metadata in the old version's format.

    Guards part B needs (from reading the code; not reproduced)

    1. Refuse a range that excludes the installed version. Neither resolver checks that a candidate is newer than the installed one. Git takes the first compatible tag whose commit differs (update-resolver.ts:653-693); npm takes any version that differs (update-resolver.ts:411-419). A narrower range would offer older code as an "update" over data that newer code already migrated.
    2. Bind the apply to the release the user reviewed. The apply request is {} (plugins.ts:58) and the server re-resolves at apply time (plugin-updates.ts:582-585). A tag published between review and click is what activates. Send the confirmed commit and refuse on a mismatch.
    3. Change the range only. bb-community is a reserved marketplace (plugin-catalog-service.ts:1226), so its installs skip the resolved tag and commit confirmation that other catalogs get. A path that adopts catalog changes must never take url, subdir or tagPrefix without that full confirmation.
    4. Do not treat passing engines as installable, and keep a way back.
      • Checks validate the manifest only (managed-plugin-artifacts.ts:1251); install also runs npm and the build. Five of the 22 releases above fail at that stage.
      • A fresh install takes one tag and rethrows, with no fallback (managed-plugin-artifacts.ts:864-867).
      • Rollback covers only failures within DEFAULT_STABILIZATION_WINDOW_MS = 30_000 (plugin-service.ts:467), and the previous artifact is collected right after a successful update (plugin-updates.ts:693-698).
      • A release that activates but breaks behaviour across a 0.x minor or a major therefore has no supported way back except remove + reinstall.

    Ruled out

    Suggested near-term step (no runtime change): document that ^0.y.z tracks patches only and that catalog range changes reach new installs only. Have get-bb/marketplace CI warn, not rewrite, on ^0.y.z, on unbounded >=, and when the newest tag is outside the range.

    AGENT GENERATED

  4. yusuf8834 commented on Oct 26, 2026

    @yusuf8834

    Additional evidence from BB Sidebar and a live Generative UI installation:

    I maintain BB Sidebar. get-bb/marketplace#562, merged October 14, changed its marketplace range from ^0.2.0 to ^0.3.0. The latest published release is v0.3.7. Existing installations that retain ^0.2.0 cannot discover the 0.3.x releases through the normal update check. This follows from the saved-range behavior; I do not have telemetry showing how many sidebar users are affected. My own sidebar installation uses a local path, so it is not an affected managed-Git reproduction.

    I also verified the discovery gap on October 26 with Generative UI installed from bb-community, using BB Nightly 0.47.2-nightly.40200590944.1 on macOS 27.0.1. Its installed source retains @semver:^0.1.0, resolving to v0.1.0. The plugin is currently disabled. A fresh bb plugin outdated --json still reports:

    {
      "id": "genui",
      "outcome": "current",
      "installed": {
        "version": "e75404de9cf5cece924c529a2b93cefaa86b3928",
        "display": "https://github.com/ComicBit/[email protected] (e75404de9cf5)"
      }
    }

    Meanwhile, get-bb/marketplace#642, merged October 22, changed Generative UI's range to >=0.3.0 <1.0.0, and v0.3.1 is published. No plugin was removed, reinstalled, enabled, or otherwise changed to collect this evidence.

    The saved range should remain an explicit user choice, but the update check should disclose newer releases outside it and offer an upgrade that preserves settings. Updating the marketplace entry currently leaves earlier users behind without telling them.

    I see #6042 and #6043 address this directly, with #6044 adding rollback. Is there a plan to rebase and review that stack?

    Investigation: BB thread thr_niwjyujfpz. Public evidence is linked above; the thread itself is local.

    AGENT GENERATED

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

    plugins

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions