Beads · issue #3924 · decision plan · pinned at e226083 (29 Oct 2026)
#3924 is fixed in released bd. Decide whether to close it, and whether plugin hooks and skills should follow the latest release instead of main.
Claude Code and Codex read one marketplace entry, which serves main; users run the latest release; no check compares the two. In May, main's plugin called bd codex-hook for 21 days before any release had it. Today its skill documents a flag that v1.3.2 lacks.
Maintainer view
Your call Q1Close #3924 as fixed? Suggested: yes, after the checks under Verify, which are also the repro asked for on 16 Jun. The changelog lists #3924 under 1.0.5. The p1 label rests on a 27 Sep bot note that the fix awaits the next tag. Q2Should plugin hooks and skills follow the latest release, as the docs have since 17 Jul? Suggested: yes, via B: point the marketplace entry at the latest stable tag, which Claude Code and Codex both accept. It closes the gap for hooks and skill text, and no feature PR waits for a release. Take B once a fork trial (R1) shows the entry installs on both clients. Otherwise, or to keep following main: A, a PR check that each hook command exists in the pinned release (hooks only). Biggest risk of B
Plugin fixes and release pulls would ride the release train.
Adds, vs today: Codex users and new Claude Code installs get a plugin-only fix such as #4377 at the next stable forward-port, not on merge (21 h after v1.3.2; #7827 carried v1.3.1 and v1.3.2 to main together). Existing Claude Code installs already wait for that version bump. A pulled release, as v1.0.5 was, stays served until the ref is moved back. Mitigation: a ref-revert step in RELEASING.md's Rollback Procedure (step 5), and patch releases for urgent plugin fixes.
Also: an entry pointing at its own repo is off Claude Code's documented path, so R1 gates B. Local development moves to --plugin-dir on Claude Code; Codex local editing is a named gap (R6).
Beyond the issue
- The v1.0.4 tag never had the hook file. #3819 added
hooks.jsonandcodex-hookon 8 May, a day after the tag commit and a day before the release, whileplugin.jsonstill said 1.0.4. The thread's "plugin 1.0.4" was a snapshot of main. plugins/beads @ v1.0.4 · #3819 · e69c53d - Nothing ties the plugin to a release. The entry is a relative path, added with no ref, so it serves the default branch, and Codex reads the same file. The catalog still describes itself as a "Local marketplace for beads plugin development". Per Claude Code's docs, a cached plugin refreshes only when its version string changes. marketplace.json L3–12 · claude-code-plugin.md L34–35 · Codex marketplace.rs L20–25 · Claude Code: host a marketplace
- v1.0.5 shipped
codex-hookon 29 May and was pulled over #4259. The tap reverted to 1.0.4 about 16 h later, and the GitHub release is no longer listed. Homebrew core kept 1.0.5. The first stable GitHub release with the subcommand and the fixed Codex path is v1.1.0 (4 Jul). tap ff350db · core 7b5d8d3 · info.go L405 - The gap is open again, and
bd doctorcannot see it. Main's skill lists--repoforbd gate create(#7176, 8 Oct); v1.3.2, Latest since 24 Oct, has no such flag. The doctor check compares the Claude plugin's version with PyPIbeads-mcp, and only inside Claude Code. ASYNC_GATES.md L55 · gate.go L1955 (not in v1.3.2's gate.go) · claude.go L406–433 - The project already settled this for docs. The 2026-07-17 decision says the docs describe the pinned release, not main, because users run the latest release. Its scope is
docs/, so the plugin falls outside it. The same class broke a hook in April (#3546,bd sync), and that fix covered only that one command. decision L1–19 · #3546
Contributor guide
For the contributor
Keep the diff reviewable (CONTRIBUTING_PR_GUIDELINES.md L23) and inline comments to a minimum (L33). B changes how every user installs the plugin, so it needs a maintainer's yes on Q2 before a PR.
Verify #3924 (Q1)
bd versionprints 1.1.0 or later. On Homebrew,brew upgrade beads. If bd came from the old tap,brew upgradelikely leaves the tap's 1.0.4 in place, because the shim formula carries the same version. Use the project's migration steps instead:brew uninstall bd, untap,brew install beads(upgrading.md L81–89).- Claude Code:
claude plugin update beads@beads-marketplace, then restart. The plugin reports 1.0.5 or later, and its cache directory has nohooks/hooks.json. Submit a prompt: nounknown command "codex-hook"line. - Codex 0.129 or later:
/hookslists fourbd codex-hookhandlers. Start a session and compact once: no hook error.
Before: with bd 1.0.4 and a plugin fetched between 8 and 27 May, step 2's prompt prints the error on every submit.
Option B: serve the plugin from the latest stable tag
.claude-plugin/marketplace.json(L10): replace"./plugins/beads"with{"source": "git-subdir", "url": "https://github.com/gastownhall/beads.git", "path": "plugins/beads", "ref": "v1.3.2"}. Leave the entry'sversiontoupdate-versions.sh, as today. Claude Code documentsgit-subdirwithrefas a sparse, partial clone; Codex parses the same fields (marketplace.rs L1057–1064). Land the switch with a stable bump: Claude Code keeps an install cached under the same version string.cmd/bd/setup/plugin_layout_test.go: it asserts the relative source today (L25–27). Assert the new shape instead, through a helper you can table-test:git-subdir, this repository,plugins/beads, and a ref of the formvX.Y.Z. When the entry'sversionis a stableX.Y.Z, the ref must bevX.Y.Z; during a release candidate, any stable tag passes.scripts/update-versions.sh, beside the marketplace line (L102): for a stable version, also set the ref; for-rc, leave it. The forward-port to main after the tag (RELEASING.md L127–137) then carries it, so main does not name a tag before it exists, as long as stable bumps happen on the release branch. Add the ref to RELEASING.md's list of version files (L240–254) and to the release formula's list (beads-release.formula.toml L359–372).- Local development docs: claude-code-plugin.md L38–55 and
plugins/beads/README.md§ Local Development. A local marketplace would now fetch the tag, so in Claude Code local edits load throughclaude --plugin-dir ./plugins/beads. Codex has no such flag, and a local marketplace at the checkout reads the same entry, so it fetches the tag too; this plan leaves Codex local editing as a named gap. RELEASING.md§ Rollback Procedure (L789–815): add a step that moves the marketplace entry's ref back to the previous stable tag when a release is pulled.
Unaffected: versioncheck reads only the entry's version (check.go L857–881), and the Copilot plugin is embedded in the binary (copilot_manifest.go L7).
Requirement → change → proposed test (not run)
| Requirement | Change | Proposed test |
|---|---|---|
| R1 A self-pointing entry installs the release's plugin on both clients (gate for B) | Step 1 | On a fork: set the entry's url to the fork and push tag v1.3.2 to it. In Claude Code, claude plugin marketplace remove beads-marketplace, then claude plugin marketplace add <fork>/beads#<branch>; in Codex, the same with codex plugin marketplace remove and add (Codex parses the # ref in source.rs L100–112). Install beads. The cached plugin has no --repo line in ASYNC_GATES.md. |
| R2 Existing installs follow a new ref | Steps 1–3 | On the same fork: install with ref v1.3.1, move the ref to v1.3.2, then run claude plugin update beads@beads-marketplace and codex plugin marketplace upgrade beads-marketplace. Both caches report 1.3.2. Codex should: its marketplace upgrade reinstalls configured plugins (manager.rs L2986–2998) and checks out the entry's ref (loader.rs L1891–1892). |
| R3 The entry keeps that shape | Step 2 | TestPluginLayoutUsesSharedBeadsRoot with the new assertions. Fails on today's tree, whose source is ./plugins/beads. |
| R4 The ref follows stable releases only | Steps 2–3 | Helper table: version 1.3.2 with ref v1.3.2 passes; 1.4.0-rc.1 with v1.3.2 passes; 1.4.0 with v1.3.2 fails; a ref of v1.4.0-rc.1 fails. |
| R5 Version bumps set the ref for stable versions | Step 3 | On a scratch branch, update-versions.sh 1.4.0-rc.1 leaves the ref and update-versions.sh 1.4.0 sets v1.4.0; R4's test catches a missed bump. |
| R6 Local development still loads local edits | Step 4 | Manual, Claude Code: claude --plugin-dir ./plugins/beads shows an edited skill line in a new session. Codex: named gap, no route. |
| R7 A pulled release stops being served to plugin users | Step 5 | Review: the Rollback Procedure lists the ref revert. Named gap: no automated check. |
Commands
go test ./cmd/bd/setup -run TestPluginLayoutUsesSharedBeadsRoot -count=1 # as in #4188 and #4377
claude plugin validate . # checks the entry's shape, not that the ref exists
Done when
- R1 and R2 pass on both clients from a fork, R3–R5 pass, R6 passes on Claude Code, and R7's step is in RELEASING.md.
- Q1 answered: #3924 closed with the versions and the tap migration note, or kept open with a reason.
Implementation notes
Where codex-hook reached users
| Channel | First version with it | Note |
|---|---|---|
| GitHub releases | v1.1.0, 4 Jul (prerelease v1.1.0-rc.1 on 26 Jun) | The v1.0.5 Release run succeeded on 29 May (run), but no v1.0.5 release is listed now; .goreleaser.yml at the tag publishes with draft: false. |
Homebrew core beads | 1.0.5, 29 May | Kept until 1.1.0 on 4 Jul. |
Tap gastownhall/beads/bd | 1.0.5 for about 16 h on 29 May | Reverted to 1.0.4 (ff350db). Since 23 Jun, a shim that depends on core beads and keeps version 1.0.4 (7d123ab). |
npm @beads/bd | 1.0.5, 29 May | Not deprecated. |
| Plugin from main | Hooks call it from 8 May | Claude path removed 27 May (#4188, guarded by plugin_layout_test.go L53–62). Codex pointer wrong from 27 May to 16 Jun (#4210, fixed by #4377). The v1.0.5 tag carries the wrong pointer. |
The changelog lists the #4188 change under 1.0.5, tagged #3924 (CHANGELOG.md L9384–9387). #4210 also proposed to "Gate the hooks on the binary version"; no such gate exists at the pin.
Q2 options
| Option | Hooks | Skill text | Cost |
|---|---|---|---|
| B Serve the plugin from the latest stable tag | Match the release, by construction | Match the release | One ref per stable release, set by update-versions.sh and carried to main by the forward-port. Plugin-only fixes and release pulls follow that train. Claude Code refreshes at the next version bump. Codex reinstalls from the new ref on its next marketplace upgrade, with one sparse clone each time. Local development changes per client. Variant: a moving stable branch, Claude Code's release-channel pattern, drops the per-release edit but needs a branch to move and protect. |
A PR check: every bd subcommand in a plugin hook exists in the bd built from docs/cli-docs.pin | Checked at PR time | Not covered. Today's case is a flag list under a command heading, which a line scan for bd <cmd> --flag misses. | A hook that needs a new subcommand fails CI until a release cut from main ships it and the pin moves. The pin stayed at v1.2.2 from 14 Aug to 24 Oct, through v1.3.0 and v1.3.1, so that wait can run to months. |
| Runtime gate, as #4210 proposed: each hook first checks that its subcommand exists | Skipped on older binaries | Not covered | Only option that also covers users on an older bd. Costs an extra process on every prompt and a shell form that works for each client and OS. |
| None | No | No | The next hook ahead of a release repeats #3924. |
If Q2 is no: option A in detail
scripts/check-plugin-hook-commands.sh(new): read every"command"value that starts withbdin every*.jsonunderplugins/beads/, includingplugins/beads/hooks/hooks.json, where #3924's hooks lived. Probe each distinct subcommand with"$BD" <sub> --help. Do not usebd help --list, which skips hidden commands (help_all.go L445–451) such ascodex-hook(codex_hook.go L52–53). A missing subcommand fails the probe even with--help: the root command declares noArgs(main.go L1223–1235), so cobra v1.10.2'sFindreturns "unknown command" before help runs (command.go L757–776, args.go L34–37).scripts/check-doc-flags.sh: Check 6 after Check 5 (L223–240), with the pinned$BD(L24–35). It runs in the PR jobcheck-doc-flags(pr.yml L429–460).scripts/check_plugin_hook_commands_test.go(new), in//scripts:shell_scripts_test(BUILD.bazel L128–133), in the style of check_testing_short_test.go, with a stubbd. T1: a stub withoutcodex-hookand a fixture atplugins/beads/hooks/hooks.jsoncalling it must fail and name it; a second row puts the fixture at.codex-plugin/hooks/hooks.json. T2: a stub whosehelp --listomitscodex-hookbut whosecodex-hook --helpexits 0 must pass. T3: hooks calling onlybd primemust pass.- Replay: the script with bd built from v1.0.4, against the tree at
65a61df(the #3819 merge), must fail namingcodex-hook.
Open PR #7428 edits check-doc-flags.sh and scripts/BUILD.bazel and adds check_doc_flags_test.go; rebase on it if it lands first. Check 6 would also run on release-branch PRs, where a hook and its subcommand can ship together.
What stays uncovered
- Users on a bd older than the latest release who refresh the plugin. Only the runtime gate covers them.
- Hooks that bd writes into a project.
bd initruns Codex setup (init.go L2411–2428), which writesbd codex-hookcommands (setup/codex.go L673–676) unless the plugin is present, and stages.codexin the bootstrap commit (init.go L4455–4463). Each coworker's own bd runs them. #3546 was this kind. - A new hook event on an old binary errors (codex_hook.go L86–87). Open PR #7709 edits that file.
bd doctorcompares the Claude plugin with PyPIbeads-mcp, though its explanation expects "Claude plugin version matches CLI version" (agent.go L605). It has no Codex plugin check.
Hook commands in the plugin today
| File | Commands |
|---|---|
| .claude-plugin/plugin.json L20–42 | bd prime ×2 |
.copilot-plugin/plugin.json | bd prime ×2 |
| .codex-plugin/hooks/hooks.json L9–44 | bd codex-hook ×4 (SessionStart, PreCompact, PostCompact, UserPromptSubmit) |
Unknowns
- U1 Does a
git-subdirentry that points back at its own marketplace repo install on both clients? Both parse the fields, but Claude Code's docs describegit-subdir"for a subdirectory of some other repository" (marketplace reference), so this use is off the documented path. R1 closes it. - U2 How many users run an older bd with a current plugin? Not public. It matters only to the runtime gate.
Who decides
maphew merged #3819 and #4188 and prepared the 1.0.5 and 1.1.0 releases; julianknutsen merged #7176 and the v1.3.x forward-ports; Chris Sells made the docs-pin decision. Closing #3924 and changing how the plugin is served are maintainer calls.
<!-- /ox:details -->Prepared from public sources only: the issue thread, linked PRs and issues, release records (GitHub, Homebrew core, the beads tap, npm), Claude Code's public docs, Codex's public source, and the code at the pinned commit. A draft for maintainers, not endorsed by them. Tests are proposed, not run; no repository code was executed; nothing was posted to GitHub. enriched by

