This repository was archived by the owner on Aug 25, 2026. It is now read-only.
Repository navigation
fix(backends): harden Herdr presentation lifecycle - #95
Merged
Merged
Conversation
…tab reconciliation
…ile stale responses
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Timeboxed Herdr presentation e2e freeze remainder (2026-08-06): prove a scoped Herdr launch and teardown path that fails closed with precise diagnostics, not a 96-suite drive. The proof must show no failure path produces an empty or silent exit 1; launch and teardown are bound to the exact recorded Herdr workspace, tab, pane, and process identity rather than a guessed or focused pane; Herdr run submission is atomic or refuses before a half-created workspace; and preflight refuses with the existing loud error when live teardown cannot be made safe because the installed host lacks pane.close_bound(expected_pid). Preserve the narrow scope: do not run bin/fm-run-behavior-tests.sh full 96 suite, restart continuous auto-fix, port the authority-broker cascade item, run herdr update, change the captain's live Herdr session, merge, or restore unrelated deleted Herdr farm files. Concurrent-create reconciliation and production launch atomicity are deferred to the isolated-session ship, not this scoped e2e. Restore or implement only files the focused e2e actually needs. Deliver the committed change through JTInventory/firstmate no-mistakes.
What Changed
pane.runsubmission, and process-bound teardown with explicit fail-closed diagnostics.Risk Assessment
Testing
The provided baseline passed, and the focused Herdr E2E passed against installed Herdr 0.8.0 protocol 19. The captured CLI transcript demonstrates fail-closed preflight, exact identity binding, atomic launch, precise diagnostics, and safe teardown reconciliation.
Evidence: Focused Herdr presentation E2E transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 3 issues found → auto-fixed ✅
bin/backends/herdr.sh:579- A zero-exit workspace-create response is accepted without verifying its IDs against provider state. A stale tuple can orphan the new workspace and bind work to the wrong workspace. Verify before persisting; reconcile and refuse on mismatch.bin/backends/herdr.sh:1812- A zero-exit task-tab response accepts any non-empty tab/pane IDs. Stale IDs can route launch to the seed or another pane while leaving the new task tab orphaned. Validate identity, then reconcile and refuse on mismatch.tests/fm-backend-herdr-presentation-e2e.test.sh:535- The intent requires teardown to bind to the exact recorded workspace, tab, pane, and process identity. The E2E directly calls fm_backend_herdr_kill with injected PID values instead of exercising fm-teardown.sh's identity boundary. Add that executable scenario, or confirm adapter-only scope is intentional.🔧 Fix: Guard Herdr workspace/task identities and reconcile stale responses
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-worker-isolation.test.sh && bash tests/fm-watch-session.test.sh && bash tests/fm-slot-occupant-proof.test.sh && FM_TEARDOWN_TEST_FOCUS=s1 bash tests/fm-teardown.test.shbash tests/fm-backend-herdr-presentation-e2e.test.shBaseline already provided by the outer gate:bash tests/fm-worker-isolation.test.sh && bash tests/fm-watch-session.test.sh && bash tests/fm-slot-occupant-proof.test.sh && FM_TEARDOWN_TEST_FOCUS=s1 bash tests/fm-teardown.test.shCaptured the complete focused CLI transcript in/tmp/no-mistakes-evidence/01KZXSMA2GCC04BNMHSMRBE56F/herdr-presentation-e2e.log✅ **Document** - passed
✅ No issues found.
⏭️ **Lint** - skipped
Step was skipped.
✅ **Push** - passed
✅ No issues found.