Repository navigation
test: stabilize Herdr presentation order verification - #6
Merged
Merged
Conversation
This was referenced Sep 26, 2026
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
Fix Herdr presentation ordering for concurrently spawned projected workers on Herdr 0.9.0 and record Herdr 0.9.0 protocol 22 as verified. Diagnose the real concurrent presentation E2E failure by separating its trigger, masking conditions such as spawn timing or lock ownership, and visible symptom; compare the failing path with proven Herdr 0.8.0 behavior, including workspace-create insertion, protocol-22 workspace.move insert_index semantics, and the projection_labels_from_log expectation; test the smallest counterfactual and seek disconfirming evidence before settling on the cause. Preserve the invariant that projected children appear directly under their owning home in Herdr serialized create order, and do not weaken or delete the ordering assertion; if 0.9.0 makes that invariant unachievable, stop for a decision with evidence. Make tests/fm-backend-herdr-presentation-e2e.test.sh pass on 0.9.0, keep the entire real-herdr-gated family plus fm-backend-herdr-focus-flash-e2e.test.sh green on 0.9.0, preserve protocols 16 through 19 and the CI-pinned Herdr 0.7.4 lane, and add a portable fake-CLI regression in tests/fm-backend-herdr.test.sh when the root cause can be pinned without a real server. Add dated exact-command and output evidence for Herdr 0.9.0 protocol 22 to docs/verification/runtime-backends.md and update the verified-version sentence in docs/herdr-backend.md. Do not change bin/fm-install-herdr.sh or its CI pin. Keep every real-Herdr experiment isolated through bin/fm-herdr-lab.sh with a named non-default session and preserve the default-session tripwire. Never commit the diagnostic herdr source clone; keep it deleted or moved under /tmp/fm-fm-herdr-090-spawn-order.
What Changed
Risk Assessment
✅ Low: Captain, the change is limited to correcting the real-Herdr test oracle, adding protocol-22 regression coverage, and recording verification evidence without changing production behavior.
Testing
Confirmed the Herdr 0.9.0/protocol-22 baseline, passed the portable fake-CLI regression, all 12 guarded real-Herdr tests, and the focus-flash E2E; direct CLI transcripts show serialized concurrent ordering, preserved focus, and an intact default-session tripwire. No visual artifact was applicable because this is a shell/CLI runtime behavior change.
Evidence: Portable protocol-22 regression
ok - herdr presentation ordering: protocol 22 appends a later child after the existing serialized child blockEvidence: Real concurrent ordering E2E
Source: Real concurrent ordering E2E (local file:
/var/folders/t1/8htjz3j91cqcfslff4w76zqc0000gn/T/no-mistakes-evidence/01M2DR8VV69YJ3QRR5Y7NN79CR/real-herdr-gated-0.9.0-protocol22.txt)Evidence: Focus-flash and isolation evidence
evidence: herdr=0.9.0 protocol=22 steal_live=0 floor_verdict=0 default-session-tripwire=armedEvidence: Review excerpt
Consolidated reviewer-visible behavior lines and summaries from all three runs.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.
herdr --versionandherdr status --json | jq '{client,server,sessions}'confirmed Herdr 0.9.0 protocol 22.bin/fm-test-run.sh tests/fm-backend-herdr.test.shenv -u HERDR_ENV -u HERDR_PANE_ID -u HERDR_TAB_ID -u HERDR_WORKSPACE_ID -u HERDR_SOCKET_PATH -u HERDR_SESSION bin/fm-test-run.sh --family real-herdr-gatedenv -u HERDR_ENV -u HERDR_PANE_ID -u HERDR_TAB_ID -u HERDR_WORKSPACE_ID -u HERDR_SOCKET_PATH -u HERDR_SESSION bin/fm-test-run.sh tests/fm-backend-herdr-focus-flash-e2e.test.shgit diff --exit-code 4a2fc09f444665162a057b6e6775fc77cb731abb..2eb3ce21dadaf9c086e64754549b9d2b71013efc -- bin/fm-install-herdr.sh .github/workflows/ci.ymlCheckedgit status --shortand searched the worktree for a diagnostic Herdr source clone.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.