Repository navigation
Conversation
|
Speaking as Kun's firstmate: thank you @c6aw. Grok opening an unrequested browser sign-in during a plain full-suite run is exactly the kind of surprise a default-on guard shouldn't cause. What I checked at Contract-class: opt-in (my own read). Launching Grok from this guard becomes off unless you turn it on. Nothing in the product changes. VISION: One captain aligns (no surprise browser prompt) · Authority aligns ("never behavior that assumes consent", applied to a test that can trigger a sign-in) · Scripts aligns · Restart n/a · Delegation aligns (a regression test that fails on the old guard) · Vendor aligns (the other harnesses keep their coverage) · Scope aligns. CI: the run on this head is still in progress. Main's own CI is currently red from the ubuntu 26.04 runner move, so some Linux serial shards will probably fail here for reasons that have nothing to do with this change. That is on our side, not yours. The no-mistakes check passes, and the attestation binds this head. Status: waiting on CI. Nothing is needed from you. Once CI is green on this head and it's clean, this can merge. |
|
The red jobs in run 40338691919 look unrelated to this change, which touches only
None of these scripts runs the liveness guard or the live-gate test, and |
|
Speaking as Kun's firstmate: thanks @c6aw, that breakdown is right. I checked run 40338691919 against main's run 40280579086 at Head is still Main CI is red from the ubuntu 26.04 runner move. That's on our side, not yours, and a fix is pending. Status: waiting on CI, and nothing is needed from you. Once the fix lands we'll rerun this on fresh main, and when it's green and clean it merges. |
|
Speaking as Kun's firstmate: thanks @c6aw. Yes, the red serials on run Rerunning those jobs wouldn't give a useful answer. A rerun replays the original workflow and merge ref, so it would stay on the unpinned image and the old main. Outside PRs now get the Full suite through the Head Status: this is waiting on us to run the full suite, not on you. If it passes and the PR is still clean, it merges on a later pass. |
|
Head 5f13524 is unchanged since the runner image was pinned. Following your note here that outside PRs now get the full suite through the |
Intent
tests/fm-harness-liveness-drift-live-e2e.test.shis a default-on live guard that launches every installed harness bare. The Grok CLI opens a browser to authenticate on first launch when it has no usable sign-in, so a plain full-suite run on a host with Grok installed but not signed in opens an unrequested browser sign-in. The guard should launch Grok only with an explicit opt-in (FM_GROK_LIVE_E2E=1, which the Grok-specific live test already uses, orFM_LIVE=1), and otherwise report Grok as skipped with the variable to set. Other harnesses stay unchanged.What Changed
tests/fm-harness-liveness-drift-live-e2e.test.shnow skips Grok unlessFM_GROK_LIVE_E2E=1orFM_LIVE=1is set. A bare launch without a usable sign-in opens a browser to authenticate.FM_GROK_LIVE_E2E=0keeps Grok off even whenFM_LIVE=1is set. A skipped run prints a note that namesFM_GROK_LIVE_E2E=1. The closing summary now reads "not installed or not opted in". The other harnesses are unchanged.tests/fm-live-gate.test.shaddstest_liveness_guard_launches_grok_only_on_request. It runs the guard against a fakegrok, on a PATH from which every real harness name is removed, and checks four cases:FM_GROK_LIVE_E2E=1launches Grok bare.FM_LIVE=1together withFM_GROK_LIVE_E2E=0does not launch Grok.FM_LIVE=1alone launches Grok.claudein a system directory is never launched.🤖 Generated with Claude Code
Risk Assessment
✅ Low: The change is limited to tests. It adds a narrow Grok skip to the liveness guard that matches fm_live_gate's precedence: FM_GROK_LIVE_E2E=1 launches Grok, FM_LIVE=1 launches it unless FM_GROK_LIVE_E2E=0, and otherwise Grok is skipped with the variable named. The other harnesses are unchanged. The new regression test runs the real guard against a fake grok on an isolated PATH and HOME, so no real harness can launch.
Testing
I ran the real default-on guard on a host with Grok installed and no opt-in. It checked all six other installed harnesses, and every one was classified alive and identified correctly. It skipped Grok with a message naming FM_GROK_LIVE_E2E=1, and it never started the grok binary. The new targeted test runs the real guard script against a fake grok. It shows four results: no opt-in skips Grok; FM_GROK_LIVE_E2E=1 launches it bare; FM_LIVE=1 launches it; and FM_GROK_LIVE_E2E=0 keeps it off even when FM_LIVE=1 is set. The same test fails against the guard from before the fix, because the old guard ran
grok --versionwithout an opt-in. These test results are not live product runs, so the opt-in, override and regression scenarios are recorded as untested live. I did not launch the real Grok opted in. On this host that could open the very browser sign-in the change exists to prevent. Nothing in this change has a visual surface, so there are no screenshots.Evidence: Real guard run with no opt-in (Grok skipped, the six other harnesses pass)
Source: Real guard run with no opt-in (Grok skipped, the six other harnesses pass)
Evidence: fm-live-gate test run on the change
Source: fm-live-gate test run on the change
Evidence: New test failing against the guard from before the fix
Source: New test failing against the guard from before the fix
not ok - the liveness guard must not launch grok without an opt-in: launch:--versionPipeline
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.
env -u FM_LIVE -u FM_GROK_LIVE_E2E bash tests/fm-harness-liveness-drift-live-e2e.test.sh(the real guard on this host, with real claude, codex, opencode, pi, cursor-agent and muse installed, and Grok installed too)bash tests/fm-live-gate.test.sh, including the new test_liveness_guard_launches_grok_only_on_request (the real guard script run against a fake grok that records each launch: no opt-in, FM_GROK_LIVE_E2E=1, FM_LIVE=1 with FM_GROK_LIVE_E2E=0, and FM_LIVE=1)Regression check:bash tests/fm-live-gate.test.shrun against the guard from the base commit, then the fixed guard put back (worktree clean)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.