Skip to content

Commit 0d84aca

Browse files
author
Karan Manoharan
committed
test(omp): clear inherited gemini and rovo markers in the blind-ancestry case
harness_marker checks GEMINI_CLI, ATLASSIAN_AGENT_TYPE and ROVODEV_CLI before CLAUDECODE. With ancestry hidden, no process name outranks them, so a suite that inherited one of them failed the marker-only case with 'gemini' or 'rovo'. The case now clears those markers as well.
1 parent c8320f8 commit 0d84aca

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/fm-omp-harness.test.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,13 @@ test_detection_anchored_name_and_marker_precedence() {
9090
"$bin/claude" -c '"$1"; :' _ "$HARNESS")
9191
[ "$out" = claude ] || fail "a leaked FM_OMP_HARNESS without an omp ancestor must not relabel a claude worker, got '$out'"
9292
# Hide ancestry so a named parent cannot mask an incorrectly trusted marker.
93+
# With no ancestry to outrank them, the gemini and rovo markers that
94+
# harness_marker checks before CLAUDECODE must be cleared too, so an
95+
# inherited one cannot decide this case.
9396
blind_bin=$(fm_fakebin "$TMP_ROOT/blind-ancestry")
9497
fm_fake_blind_ancestry "$blind_bin"
9598
out=$(env -u PI_CODING_AGENT -u CURSOR_AGENT -u CURSOR_INVOKED_AS \
99+
-u GEMINI_CLI -u ATLASSIAN_AGENT_TYPE -u ROVODEV_CLI \
96100
PATH="$blind_bin:$PATH" CLAUDECODE=1 FM_OMP_HARNESS=omp "$HARNESS")
97101
[ "$out" = claude ] || fail "a leaked FM_OMP_HARNESS with ancestry hidden must not override CLAUDECODE, got '$out'"
98102
pass "fm-harness: omp detects by its anchored name; the marker is a precedence override that needs real omp ancestry"

0 commit comments

Comments
 (0)