Skip to content

Commit 94009cd

Browse files
committed
no-mistakes: apply CI fixes
1 parent e66b688 commit 94009cd

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

bin/fm-spawn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2701,7 +2701,7 @@ if [ "$KIND" = secondmate ]; then
27012701
fi
27022702
if [ "$ACCOUNT_EFFECTIVE_MODE" = enforce ]; then
27032703
if ! secondmate_home_supports_account_routing "$PROJ_ABS"; then
2704-
echo "error: refusing account-routed secondmate launch for $PROJ_ABS: the home lacks Agent Fleet routing support. Fast-forward or otherwise reconcile the home to this Firstmate revision, run bin/fm-config-push.sh, and retry." >&2
2704+
echo "error: refusing account-routed secondmate $ID launch for $PROJ_ABS: the home lacks Agent Fleet routing support. Fast-forward or otherwise reconcile the home to this Firstmate revision, run bin/fm-config-push.sh, and retry." >&2
27052705
exit 1
27062706
fi
27072707
elif ! secondmate_home_supports_account_routing "$PROJ_ABS"; then

tests/fm-account-routing.test.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,7 +2226,8 @@ test_enforced_secondmate_requires_routing_inheritance_and_capable_home() {
22262226
status=$?
22272227
[ "$status" -ne 0 ] || fail "enforced secondmate launched from a pre-Agent-Fleet home"
22282228
assert_contains "$out" "$id" "capability refusal omitted the offending secondmate"
2229-
assert_contains "$out" "dirty working tree" "capability refusal did not stop at the freshness gate"
2229+
assert_contains "$out" "home lacks Agent Fleet routing support" \
2230+
"capability refusal omitted the unsupported-home reason"
22302231
assert_not_grep '^new-window ' "$TMUX_LOG" "capability refusal created an endpoint"
22312232
pass "enforced secondmates require inherited routing policy and Agent Fleet-capable homes"
22322233
}
@@ -2269,9 +2270,9 @@ test_secondmate_routing_inheritance_is_authoritative_for_every_mode() {
22692270
sm=$(cd "$sm" && pwd -P)
22702271
out=$(FM_TEST_PANE_PATH="$sm" run_spawn "$id" "$sm" --secondmate)
22712272
status=$?
2272-
[ "$status" -ne 0 ] || fail "off secondmate launched from a dirty, capability-drifted home"
2273-
assert_contains "$out" "dirty working tree" "off capability drift did not stop at the freshness gate"
2274-
assert_not_grep '^new-window ' "$TMUX_LOG" "off capability drift created an endpoint"
2273+
[ "$status" -eq 0 ] || fail "off secondmate refused a clean home that does not need routing capability"
2274+
assert_contains "$out" "lacks Agent Fleet routing support; launching because account routing is off" \
2275+
"off capability warning omitted the explicit routing policy"
22752276
pass "secondmate launches require authoritative routing policy in every mode"
22762277
}
22772278

0 commit comments

Comments
 (0)