fix(herdr): bump min protocol floor to 16 post-0.7.2 upgrade#15
Merged
Conversation
Handshake is exact-match per release: the fleet's server and client both run protocol 16 now. Floor of 14 would let a stale 0.7.1 binary pass the version check while unable to talk to the live server. Verified baseline updated to herdr 0.7.2, protocol 16 with full smoke-test evidence. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012pyrm43Fc6525CL37qtjmU
…es and comment to 16
…omment to 0.7.2/16
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.
Intent
Harden herdr backend by bumping minimum protocol floor from 14 to 16 post-0.7.2 upgrade. Handshake is exact-match per release; a floor of 14 would allow a stale 0.7.1 binary to pass the version check while being unable to communicate with the live protocol-16 server. Updated FM_BACKEND_HERDR_MIN_PROTOCOL constant and documented the new verified baseline (0.7.2, protocol 16) with full empirical evidence from the smoke test (spawn, peek, send, crew-state, teardown passes; task herdr-smoke-072, mpf worktree, 2026-07-11).
What Changed
FM_BACKEND_HERDR_MIN_PROTOCOLfrom 14 to 16 inbin/fm-backend.shandbin/backends/herdr.sh, since herdr's handshake is exact-match per release and a stale 14-floor would let an incompatible 0.7.1 client pass the version check against a live protocol-16 server.docs/herdr-backend.mdto record the new verified baseline (herdr 0.7.2, protocol 16) in place of the old 0.7.1/protocol-14 baseline.tests/fm-backend-herdr.test.sh,tests/fm-crew-state.test.sh, andtests/fm-send-popup-settle.test.shto protocol 16, so the fakebin-driven tests (spawn/container-ensure paths) reflect the new floor instead of asserting the now-invalid protocol 14 as passing.Risk Assessment
✅ Low: Both prior findings were fixed correctly and consistently, the diff is now self-consistent (constant, comment, and every test fixture agree on protocol 16 / 0.7.2), and no new issues were introduced.
Testing
Captain, ran the three test files touched by the protocol-floor bump plus the entire repo test suite; every assertion passed (58/58 in fm-backend-herdr, 40/40 in fm-crew-state, 8/8 in fm-send-popup-settle), including the one that specifically confirms the version check now accepts a 0.7.2/protocol-16 client and still refuses a genuinely old protocol — shipshape, no findings.
Evidence: fm-backend-herdr.test.sh full output (58 assertions, protocol-16 accept/reject cases)
Evidence: fm-crew-state.test.sh full output
Evidence: fm-send-popup-settle.test.sh full output
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 2 issues found → auto-fixed ✅
tests/fm-backend-herdr.test.sh:190- FM_BACKEND_HERDR_MIN_PROTOCOL was bumped from 14 to 16, but the test fixtures that mockherdr status --jsonstill report protocol 14 as the client protocol, and one test explicitly asserts that protocol 14 passes the gate. tests/fm-backend-herdr.test.sh:185-192 (test_version_check_accepts_current_protocol) sets "protocol":14 and asserts expect_code 0 with the message "version_check should accept protocol 14 (>= the verified minimum)" — this will now fail since 14 < 16 makes fm_backend_herdr_version_check return 1. The same stale protocol:14 mock also appears in tests/fm-crew-state.test.sh:99 and tests/fm-send-popup-settle.test.sh:82, and fm_backend_herdr_version_check is called as the first gate inside fm_backend_herdr_container_ensure (bin/backends/herdr.sh:312), so any test exercising spawn/container-ensure through these fakebins will now fail at the version gate before reaching the behavior under test.bin/backends/herdr.sh:111- The comment directly above fm_backend_herdr_version_check still says 'Verified locally: v0.7.1, protocol 14', which now reads as the enforced minimum right next to a function that gates on FM_BACKEND_HERDR_MIN_PROTOCOL=16. Given this repo's docs are supposed to record the exact-match verified baseline (per the commit's own intent), this comment should be updated to the new verified baseline (0.7.2 / protocol 16) to avoid misleading a future reader into thinking 14 is still accepted.🔧 Fix: fix(herdr): update stale protocol-14 test fixtures and comment to 16
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"bash tests/fm-backend-herdr.test.shbash tests/fm-crew-state.test.shbash tests/fm-send-popup-settle.test.shfull suite: for t in tests/*.test.sh; do bash "$t"; done (all green, rc=0)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.