test(fm-brief): align secondmate charter role assertion with #685 vocabulary - #2
Merged
Merged
Conversation
…uid#685 vocabulary Commit 1182883 (kunchenguid#685) intentionally changed the secondmate charter scaffold's role declaration from 'a persistent domain supervisor' to 'a persistent second mate' and updated the captain-translation-contract test, but missed the assertion in tests/fm-brief.test.sh. The stale expectation left the secondmate-charter case failing. Point the role-declaration assertion at the current wording so it verifies the charter still declares its role without weakening the check or reverting the intended vocabulary.
4 tasks
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
Repair the pre-existing failing 'secondmate charter must declare its role' case in tests/fm-brief.test.sh so the firstmate suite is fully green. Root cause: merged PR kunchenguid#685 (commit 1182883, 'accept secondmate house vocabulary') intentionally reworded bin/fm-brief.sh's secondmate charter role declaration from 'a persistent domain supervisor' to 'a persistent second mate' and updated the captain-translation-contract test, but missed the assertion in tests/fm-brief.test.sh, leaving it grepping for the removed phrase. The fix is deliberately test-only and minimal: update the single assert_grep in test_scout_and_secondmate_scaffold to grep for the current 'persistent second mate' wording. I did NOT change bin/fm-brief.sh, because reverting the script wording would undo the intentional kunchenguid#685 vocabulary change that other contracts depend on; the test remains a genuine role-declaration check, not weakened to pass. Verified: fm-lint clean, fm-brief.test.sh green, full 78-file suite green (the only other failure, fm-backend-herdr-prune-safety-e2e, is a real-herdr e2e flake that passes on isolated re-run and is unrelated to this test-only change).
What Changed
assert_grepintest_scout_and_secondmate_scaffold(tests/fm-brief.test.sh) to expect "persistent second mate" instead of the removed "persistent domain supervisor" phrase, matching the secondmate charter wording that fix: accept secondmate house vocabulary kunchenguid/firstmate#685 introduced inbin/fm-brief.shbut missed updating in this test.bin/fm-brief.shis untouched, and the assertion still verifies that the secondmate charter declares its role. The pipeline's Test stage failure comes from the unrelatedfm-backend-herdr-prune-safety-e2eflake, not fromfm-brief.test.sh, which now passes.Risk Assessment
✅ Low: Single-line test-only change that aligns a stale assertion with the intentional kunchenguid#685 charter wording; verified the new pattern matches the actual output of bin/fm-brief.sh and the assertion remains a genuine role-declaration check.
Testing
Completed 1 recorded test check.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - 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"✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.