Repository navigation
Preserve calendar-version identifiers in ACP maintenance - #5694
Closed
bb-slop-cop[bot] wants to merge 1 commit into
Closed
bb-slop-cop[bot] wants to merge 1 commit into
bb-slop-cop[bot] wants to merge 1 commit into
Conversation
SawyerHood
added a commit
that referenced
this pull request
Oct 20, 2026
## Human comments ## What was wrong bb shipped two ACP adapters side by side: the original (`packages/provider-bridge-acp`, plugin `provider-acp`, on by default) and the rebuilt one from #5266 (`packages/provider-bridge-acp-next`, plugin `bb--provider-acp-next`, opt-in and mutually exclusive through `BUNDLED_PLUGIN_REPLACEMENTS`). Fixes had to be made twice, and some weren't: #5374's shutdown cleanup only reached the original bridge. Deleting the original plugin directly would have caused data loss. The orphaned-builtin cleanup (`removeUnbundledBuiltins`) deletes a removed built-in's settings, so every default user's `customAgents` would have been wiped. Users who had opted in would have been left with `provider-acp` disabled and no ACP providers. ## What changed - **In-place swap.** The rebuilt bridge and plugin now live at `packages/provider-bridge-acp` and `plugins/provider-acp`, under the original package names and the `provider-acp` plugin id. Default users' plugin rows, `customAgents`, and threads carry over unchanged, since provider ids are the same (`acp-cursor`, …). The `-next` directories are deleted. So are the opt-in switch (`BUNDLED_PLUGIN_REPLACEMENTS`, the `standsAside` catalog filter and the paired enable/disable in `setEnabled`) and their tests. Hardcoded `bb--provider-acp-next` ids in the plugin (`known-agents.ts`, `registry-icons.ts`, `usage-source.ts`) are now `provider-acp`. Registry icon refs resolve as `provider-acp/registry-*`. - **Handover for opted-in users.** `RETIRED_BUNDLED_PLUGINS` in `builtin-registry.ts` declares `bb--provider-acp-next` → `provider-acp`. At startup, `handOverRetiredBuiltins()` runs before `removeUnbundledBuiltins()`. If the retired row was enabled, it copies `customAgents` to `provider-acp` and turns `provider-acp` on. Then it deletes the retired row's settings, secrets and schedules. It does not clear the user's disabled-provider list, which normal orphan cleanup would, because both plugins own the same provider ids. - **Plugin SDK.** `@get-bb/plugin-sdk/provider-bridge/acp` now exports the rebuilt bridge. The export names and type shapes are the same as before, plus `experimental_registerAcpDialect`. `provider-bridge/acp-next` stays as a deprecated alias re-exporting `/acp`. `docs/api_to_audit.md` merges the two entries. No wire change; `HostDaemonAcpLaunchSpec` is identical. - **#5374 ported to the rebuilt bridge.** Every agent connection (thread sessions, model discovery, session-option discovery) is tracked and removed on exit. New connections are refused once shutdown starts. stdin close, SIGTERM and SIGINT share one awaited cleanup that releases sessions and kills tracked agents. Includes `shutdown.test.ts` from #5374. - **References.** Updated `bundled-plugins`, `bb-official.json`, `first-party-plugins.json`, `forkable-plugins.json`, the web bundled-marketplace list, `turbo.json` (the -next task config moved to `bb-plugin-provider-acp`), the provider-literal ratchet, plugin-build tests, `docs/configuration.md`, and the bb-guide plugin-authoring references. ## How you verified - `pnpm exec turbo run typecheck lint` for `@bb/provider-bridge-acp`, `bb-plugin-provider-acp`, `@get-bb/plugin-sdk`, `@bb/server`, `@bb/web`, `@bb/domain`, and `@bb/plugin-build`. All passed. - `turbo run test` passed for the bridge (505 tests, including the 6 ported shutdown cases), the SDK (376), plugin-build (211) and domain (248). - The plugin package had 81 of 82 passing. The one failure is `native-roots.test.ts` omp, an environment-only failure because `/tmp/.agents` exists on the machine (per `.bb/skills/test-audit`). It passes with `TMPDIR=/var/tmp/...`. - Server: `vitest run` over `test/services/plugins`, `test/services/plugin-catalog`, `test/system/provider-management`, `test/system/execution-options`, `test/public/public-provider-installations` and `test/providers/provider-registry`: 65 files and 765 tests passed. That includes the new `retired-bundled-plugins.test.ts`, which covers three cases: an enabled retired plugin hands off settings and turns its successor on; a disabled one leaves the successor alone and keeps disabled providers; and a missing successor. - `packages/agent-runtime` `runtime.acp-topology.test.ts` passed. - `node scripts/check-plugin-forks.mjs plugins/provider-acp` passed (with a clean TMPDIR). The provider-literal ratchet passed. The plugin SDK npm version guard passed (0.6.56 is unpublished, so no bump). - Not run locally: the full server suite, tarball smoke, Windows, and a live Cursor/opencode thread on the merged build. Follow-up: #5692 and #5055 target only the removed original bridge and need re-targeting; #5694 touches both. > AGENT GENERATED --------- Co-authored-by: Sawyer <[email protected]>
Collaborator
SawyerHood
added a commit
that referenced
this pull request
Oct 20, 2026
## Human comments ## What was wrong ACP maintenance read installed and health versions with the shared strict SemVer reader. Calendar versions with zero-padded month/day components, such as cursor-agent's `2026.08.11-e8db854`, were discarded even though the executable was found (#5693). #5694 fixed both bridges; #5775 then deleted the original, so only its rebuilt-bridge half still applies. ## What changed Ports the surviving half of #5694 by @bb-slop-cop, at the bridge's new path: - `packages/provider-bridge-acp/src/bridge/provider-maintenance.ts` now accepts complete calendar-version tokens locally for installed and health versions. - Ordinary SemVer parsing, the shared parser and latest-version availability are unchanged. ## How you verified - Without the fix, the 3 calendar-version cases fail and the 9 controls pass; with it, all 12 pass. - `pnpm exec turbo run test lint typecheck --filter=@bb/provider-bridge-acp`: 522 passed, 4 skipped. - Live: `/api/v1/system/providers/state` now reports `installedVersion: "2026.08.11-e8db854"` for acp-cursor. Fixes #5693. Supersedes #5694. > AGENT GENERATED Co-authored-by: bb-slop-cop[bot] <316425484+bb-slop-cop[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman comments
What was wrong
ACP maintenance used the shared strict SemVer reader for installed and health versions. Calendar identifiers with zero-padded month/day components were discarded even though executable detection succeeded. Both existing ACP bridge implementations have this path. The shared parser cannot be relaxed globally because other providers use its output for SemVer ordering.
Reproduction and root-cause report: https://get-bb.github.io/reports/issues/5693.html
What changed
Accept complete calendar-version tokens locally in ACP version probes, while preserving ordinary SemVer parsing, executable invocation behavior, timeout, and failure handling. Route health and installation status through the same local reader in each existing ACP implementation. Latest-version availability is unchanged.
Four text files, 188 changed lines: 180 additions + 8 deletions, counted with
git diff --numstat origin/main. The change remains in ACP maintenance. No dependency, lockfile, generated file, migration, stored-data, public protocol/schema, authentication, permissions, packaging, or release-process changes. Existing CLI and SDK status fields carry the corrected value without introducing new surfaces.How you verified
6a639cfc0d66e0c789a1bd7309266973228d1a80. Repeated the same failure in a second clean trusted checkout with unchanged production code.pnpm exec turbo run build: all 67 tasks pass before the fix.pnpm exec turbo run test lint typecheck --filter=@bb/provider-bridge-acp --filter=@bb/provider-bridge-acp-next: passes, with 404 + 509 passing tests and four existing skips per package.pnpm exec turbo run test --filter=@bb/provider-bridge-protocol -- src/bridge-kit/provider-maintenance-kit.test.ts: all 47 tests pass, preserving shared strict SemVer behavior.pnpm parity --old ../verify --new . --provider acp-cursor --allowlist /tmp/empty-parity-allowlist.json, where that file contains[].pnpm exec oxfmton the four changed files andgit diff --checkpass; no binary changes.Broader baseline failures, left unchanged: the full shared-protocol suite has eight Claude permission-contract failures, also reproduced in the clean base checkout. Default Cursor parity rejects stale allowlist entries even when comparing the base checkout against itself; the empty-allowlist run verifies the actual event/row comparison without those unrelated entries. No live Cursor account or browser session was used.
Fixes #5693