Skip to content

ISS-15129: Support Bitbucket Cloud and multi-repository workspaces - #462

Merged
shafty023 merged 2 commits into
mainfrom
feat/iss-15129-bitbucket-host
Dec 4, 2026
Merged

shafty023 merged 2 commits into
mainfrom
feat/iss-15129-bitbucket-host

Conversation

@shafty023

@shafty023 shafty023 commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

ISS-15129. Vibe gains Bitbucket Cloud as a code host and multi-repository workspaces. Vibe and the generated ClosedLoop edition move to 1.1.125.

  • Bitbucket Cloud. An origin whose host is exactly bitbucket.org (HTTPS) or ssh.bitbucket.org (SSH) selects Bitbucket. Every other origin, including local paths, SSH aliases, ports, GitHub Enterprise and lookalike hosts, keeps the unchanged GitHub path. Bitbucket delivery goes through the bkt CLI the way GitHub goes through gh: PR publication (env-ctl.mjs pr), comments and threaded replies, PR body refresh (bkt pr edit, mirroring the GitHub body refresh), verified thread resolution (bkt pr comments resolve, mirroring GitHub), exact-commit Pipelines results and merge. Sign-in stays inside bkt; vibe never reads, asks for, stores or prints a credential.
  • Guards on Bitbucket. Before publication: fetched-main ancestry and declared Pipelines. Before merge: author, visual QA (including a conversation-level requirement) and exact-head Pipelines. code-host-cli.mjs merge is Bitbucket-only and refuses GitHub checkouts, which keep the guarded gh pr merge. Merge strategies are allowlisted. A merge counts only when Bitbucket reports the PR merged at the verified head; an open PR returns PENDING. The native bkt pr merge is denied, with flags on either side of pr. Handed-off Bitbucket PRs register worktree retirement.
  • Multi-repository workspaces. A workspace declares its repositories and their dependency order. code-host-cli.mjs workspace selects the changed repositories and their downstream checks. Sessions still use one worktree per repository.

Test plan

Head 7f75372b, a merge of main 8234d098 (#461) into the branch. Every ci.yml job ran on its committed recipe on a developer laptop, on a tree identical to this head (e7c64c96):

Job Result
plugin-manifest-versions, lint, typecheck pass
test (Python) pass
node-tests shards 1, 2 and 3 pass
vibe-eval-t0 pass
tools-ts (design-inventory, code-review-cost, guided-manual-qa, erd-diagram, vibe-workers, vibe-closedloop-build), including the committed dist check pass
plugin-version-bump runs on pull_request only; vibe and vibe-closedloop 1.1.124 to 1.1.125
  • The HTTP-backed Bitbucket test runs against a local server and passes. It now fails instead of skipping when it cannot listen, unless VIBE_TEST_ALLOW_NO_LOOPBACK=1 is set.
  • The fake bkt asserts the full argv of every write. A reviewer broke seven write arguments in a scratch copy, and the suite failed each time.
  • Read-only replay of the 13 live fleet branches through every stop point (push-check, turn start, handoff, PR create, merge guard, board, pre-PR record) gave the same refusals on the pre-merge tree 8698bad4 as on its base 4f9d50e4 against the same live state. No branch is newly refused.
  • Bitbucket API responses are exercised through fakes. No test reached live Bitbucket.

Review: one independent review (2 blocking, 6 should-fix) and two fix rounds, then a re-review with verdict READY. Its should-fix and nits were applied in the second round.

Risks

  • The installed bkt has no Cloud option to bind a merge atomically to an expected head. The guarded merge checks the head before and after the request, so a push in that gap remains possible. The source branch is kept after merge.

@shafty023
shafty023 merged commit 65decab into main Dec 4, 2026
15 checks passed
@shafty023
shafty023 deleted the feat/iss-15129-bitbucket-host branch December 4, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant