Skip to content

fix(mod): bump supervision-branch Claude Code pin to 2.1.276 - #25

Merged
andrewesweet merged 1 commit into
mainfrom
fm/fm-mod-pin-276
Sep 18, 2026
Merged

andrewesweet merged 1 commit into
mainfrom
fm/fm-mod-pin-276

Conversation

@andrewesweet

Copy link
Copy Markdown
Owner

Intent

Regression test our mod against CC 2.1.276, confirm green light for upgrade.

The regression ran on 2026-09-18 and every check passed, so the upgrade is cleared and the pin moves to 2.1.276. The results, verbatim, are in data/fm-mod-pin-276/evidence/ (relative to the firstmate home named in the Setup section): plugin-and-validate-2.1.276.log holds claude --version, the strict claude plugin validate pass and the plugin test suite's two ok lines with their FM_TEST_BEGIN and FM_TEST_END timestamps; live-e2e-2.1.276.log holds the live end-to-end run's four ok lines (136035 ms end to end, exit 0). The test host was this Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 machine, Claude Code 2.1.276 installed at ~/.local/share/claude/versions/2.1.276 and resolved by PATH, with CLAUDE_CODE_PIN temporarily set to 2.1.276 in a scratch checkout of main at 459972d. The changelog for 2.1.275 and 2.1.276 was read in full: nothing announced touches the function-hooks module API, $.tool.register, $.agent.spawn, $.prompt.submit, the Stop hook contract, or --plugin-dir directory loading; 2.1.276 itself fixes only a proxy 400 … advisor_20260301 regression from 2.1.275.

What Changed

  • CLAUDE_CODE_PIN in .claude/mods/fm-branch-mod/hooks/branch.ts moves from 2.1.274 to 2.1.276, so the mod now loads on Claude Code 2.1.276 and refuses (pass-through) on any other version.
  • docs/claude-supervision-branch.md updates the launch-settings measurement line and the version-pin paragraph to 2.1.276 (measured 2026-09-18).
  • docs/verification/runtime-backends.md adds a "2026-09-18 Claude Code 2.1.276 pin evidence" entry recording claude --version, the strict claude plugin validate pass, the plugin test suite's two ok lines with FM_TEST_BEGIN/FM_TEST_END timestamps, and the live end-to-end run's four ok lines (136035 ms, exit 0); notes 2.1.275 was skipped and the 2.1.275/2.1.276 changelogs touched none of the hook APIs the mod relies on.

Risk Assessment

✅ Low: Change is a single pin constant bump plus documentation whose quoted results match the evidence logs verbatim; the plugin tests and live e2e script read the pin from the module, so no other source references need updating.

Testing

Ran claude --version (2.1.276), claude plugin validate --strict on the mod, bin/fm-test-run.sh tests/fm-branch-claude-mod-plugin.test.sh (validate + claude plugin test suite: 2 ok, exit 0), and the opt-in live run FM_BRANCH_MOD_LIVE=1 bin/fm-test-run.sh tests/fm-branch-claude-mod-live-e2e.test.sh (real Claude Code 2.1.276 in tmux, 4 ok, exit 0, 135845 ms). Adversarially confirmed the pin guard by running the live test with the 2.1.274 binary on PATH, which skipped with the pinned-to-2.1.276 message. Every scenario passed; logs saved to the evidence directory; worktree left clean.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Operator runs strict plugin validation of fm-branch-mod on Claude Code 2.1.276 and sees ✔ Validation passed with the documented hook/capability/env surface ✅ pass live plugin-and-validate-2.1.276.log
Operator runs the mod's plugin test suite under real Claude Code 2.1.276 (claude plugin test), covering pin refusal on another version, load on the pin, classification records, captain hand-back, ro… ✅ pass live plugin-and-validate-2.1.276.log
Operator launches the live supervision session on Claude Code 2.1.276: mod loads enabled, main holds lock, routine wake spawns branch, captain wake handed back, next wake reaches same agent via SendMe… ✅ pass live live-e2e-2.1.276.log
Adversarial: with Claude Code 2.1.274 on PATH, the live regression refuses to run and reports the mod is pinned to 2.1.276 ✅ pass live pin-mismatch-skip-2.1.274.log
Evidence: plugin-and-validate-2.1.276.log

Source: plugin-and-validate-2.1.276.log

2.1.276 (Claude Code)
Validating plugin manifest: ~/.no-mistakes/worktrees/feb37d45d9da/01M2T8R279NXPJ13CMZ3891K82/.claude/mods/fm-branch-mod/.claude-plugin/plugin.json

Validating hooks: ~/.no-mistakes/worktrees/feb37d45d9da/01M2T8R279NXPJ13CMZ3891K82/.claude/mods/fm-branch-mod/hooks/hooks.json

  ❯ ./branch.ts hooks: session.start, turn.start, prompt.submit, tool.call, turn.step, session.compact, turn.complete
  ❯ ./branch.ts calls: $.agent.list (via resolveBranchAgentId), $.agent.spawn (via spawnBranch), $.clock.now (via routeWake), $.env.get (via bind), $.fs.exists (via modeOn, routeWake, scopeForUnreadWake), $.fs.list (via scopeForUnreadWake), $.fs.read (via classify, newStatusLinesNote, readConfig, readLockPid, readPassedSeqs, restoreCounters, scopeForUnreadWake, statusKind), $.fs.write (via saveCounters, writePassedSeqs), $.model.complete (via classify), $.process.run (via appendLine, backstopCheck, checkPin, gatherEvidence, grant, outcome, routeWake), $.prompt.submit, $.session.cwd (via ensureBound), $.tool.call (via armMonitor, sendToBranch), $.tool.register, $.ui.log
  ❯ ./branch.ts env writes: nothing
  ❯ ./branch.ts env reads: FM_CONFIG_OVERRIDE, FM_HOME, FM_ROOT_OVERRIDE, FM_STATE_OVERRIDE

✔ Validation passed
---
FM_TEST_BEGIN 2026-09-18T12:46:28Z tests/fm-branch-claude-mod-plugin.test.sh family=live-harness-optin expected_gate_skip=live-capability
ok - Claude Code 2.1.276 (Claude Code) validates the supervision-branch mod strictly: the documented hooks, the spawn, the classifier, and only the home-resolution environment
ok - Claude Code 2.1.276 (Claude Code) runs the supervision-branch mod's plugin test suite clean: pin refusal, classification records, captain hand-back, and routine spawn
FM_TEST_END 2026-09-18T12:46:44Z tests/fm-branch-claude-mod-plugin.test.sh exit=0 duration_ms=16925 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=16966
FM_TEST_SUMMARY_FAMILY family=live-harness-optin count=1 duration_ms=16925 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-branch-claude-mod-plugin.test.sh duration_ms=16925
exit=0
Evidence: live-e2e-2.1.276.log

Source: live-e2e-2.1.276.log

ok - Claude Code 2.1.276 loads the supervision-branch mod enabled and main holds the session lock ok - the first routine wake passes the classifier and spawns the branch agent, which reports it routine ok - the captain-class wake is passed to main by the classifier with a covering outcome row, and the next routine wake reaches the same agent through SendMessage ok - one spawn, every send successful, no dropped hand-back, no backstop delivery across the run FM_TEST_END 2026-09-18T12:49:21Z tests/fm-branch-claude-mod-live-e2e.test.sh exit=0 duration_ms=135845 gate_skip=false

FM_TEST_BEGIN 2026-09-18T12:47:05Z tests/fm-branch-claude-mod-live-e2e.test.sh family=live-harness-optin expected_gate_skip=live-capability
ok - Claude Code 2.1.276 loads the supervision-branch mod enabled and main holds the session lock
ok - the first routine wake passes the classifier and spawns the branch agent, which reports it routine
ok - the captain-class wake is passed to main by the classifier with a covering outcome row, and the next routine wake reaches the same agent through SendMessage
ok - one spawn, every send successful, no dropped hand-back, no backstop delivery across the run
FM_TEST_END 2026-09-18T12:49:21Z tests/fm-branch-claude-mod-live-e2e.test.sh exit=0 duration_ms=135845 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=135904
FM_TEST_SUMMARY_FAMILY family=live-harness-optin count=1 duration_ms=135845 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-branch-claude-mod-live-e2e.test.sh duration_ms=135845
live exit=0
Evidence: pin-mismatch-skip-2.1.274.log

Source: pin-mismatch-skip-2.1.274.log

2.1.274 (Claude Code) skip: Claude Code 2.1.274 installed, the supervision-branch mod is pinned to 2.1.276 exit=0

2.1.274 (Claude Code)
skip: Claude Code 2.1.274 installed, the supervision-branch mod is pinned to 2.1.276
exit=0

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Operator runs strict plugin validation of fm-branch-mod on Claude Code 2.1.276 and sees ✔ Validation passed with the documented hook/capability/env surface ✅ pass live plugin-and-validate-2.1.276.log
Operator runs the mod's plugin test suite under real Claude Code 2.1.276 (claude plugin test), covering pin refusal on another version, load on the pin, classification records, captain hand-back, ro… ✅ pass live plugin-and-validate-2.1.276.log
Operator launches the live supervision session on Claude Code 2.1.276: mod loads enabled, main holds lock, routine wake spawns branch, captain wake handed back, next wake reaches same agent via SendMe… ✅ pass live live-e2e-2.1.276.log
Adversarial: with Claude Code 2.1.274 on PATH, the live regression refuses to run and reports the mod is pinned to 2.1.276 ✅ pass live pin-mismatch-skip-2.1.274.log
  • claude --version → 2.1.276 (Claude Code)
  • CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude plugin validate --strict .claude/mods/fm-branch-mod → ✔ Validation passed
  • bin/fm-test-run.sh tests/fm-branch-claude-mod-plugin.test.sh → 2 ok, exit=0 (includes mod plugin suite version pin refusal/load tests under real claude plugin test host)
  • FM_BRANCH_MOD_LIVE=1 bin/fm-test-run.sh tests/fm-branch-claude-mod-live-e2e.test.sh → 4 ok, exit=0, duration_ms=135845
  • PATH=<2.1.274 shim>:$PATH FM_BRANCH_MOD_LIVE=1 bash tests/fm-branch-claude-mod-live-e2e.test.sh → skip: Claude Code 2.1.274 installed, the supervision-branch mod is pinned to 2.1.276
⚠️ **Document** - 1 info
  • ℹ️ docs/claude-supervision-branch.md:79 - docs/claude-supervision-branch.md line 79 still says the permissions.deny hook-frame behaviour was measured 'On 2.1.274'. That is a dated measurement, not the pin, and the user intent does not claim it was re-measured on 2.1.276, so it was left unchanged.
✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

All three pin checks passed on Claude Code 2.1.276 (2026-09-18): claude plugin validate --strict, the engine-hosted plugin suite, and the live end-to-end guard (136035 ms, exit 0).

Evidence: /home/andre/tools/firstmate/data/fm-mod-pin-276/evidence/.
@andrewesweet
andrewesweet merged commit acd7047 into main Sep 18, 2026
14 checks passed
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