You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky: harness_embed a_harness_runs_a_turn_against_the_provider_it_was_given fails or times out in the rust-cov lanes #8752
The openhuman-embed test harness_embed::a_harness_runs_a_turn_against_the_provider_it_was_given (crates/openhuman-embed/tests/harness_embed.rs) fails intermittently in the coverage lanes, on PRs that don't touch the embed harness or inference. It has been seen failing in two ways:
The same test passed in the same lanes on other PRs that day (for example #8738 and #8744). Pushes to main run only CodeQL, so main has no run to compare against.
Likely cause (from reading the code, not yet confirmed)
The test sends 100 concurrent turns, and every turn goes through the prompt screen.
The screen defaults to Enforce, the test's offline_config() doesn't turn it off, and security-module is a default core feature.
ReviewBlocked can come from a fail-closed hold: a scan or client error, or the 2 s screening budget running out (security/prompt_injection/detector.rs).
With 100 scans at once on a loaded CI runner, one turn being held fits that.
The timeout case may be the same stall. Nextest's 300 s slow-timeout fires before the test's own 300 s guard, which only starts at the concurrent phase.
What it blocks
It turns CI Gate red on unrelated PRs, and a red cov lane has to be re-run before review. #6758 (closed) was an earlier flake in this test with a different cause (a 20 s budget).
Suggested next step
Log the [prompt_injection] hold reason when a concurrent turn fails, so the cause shows in CI.
Then either disable the prompt screen in this test's offline_config() (it tests the harness, not screening), or give screening a budget sized for 100 concurrent scans.
A second test shows the same refusal, and on our Linux CI runner it does so every time, which may make this easier to chase.
openhuman-embed --test tool_hook_context, test cwd_and_identity_follow_the_turn_and_then_return_to_the_agent_defaults, unedited, on main 94971862e5 with the test modules staged (TinySecurity 0.21.1): the isolated turn's send fails with
Rpc { method: "openhuman.inference_agent_chat", message: "Prompt flagged for security review and was not processed. Please rephrase clearly." }
From reading the code, the cause looks the same as described above: the fixture never turns the prompt screen off, so the test passes only when the screen answers Allow within its 2 s budget.
So the fix suggested here (log the hold reason, and turn the screen off in fixtures that aren't testing it) should cover tool_hook_context as well.
Not checked: whether this test has passed in a recent rust-cov run on hosted CI, and which hold reason the runner hit.
Activity
M3gA-Mind commentedon Nov 16, 2026
A second test shows the same refusal, and on our Linux CI runner it does so every time, which may make this easier to chase.
openhuman-embed --test tool_hook_context, testcwd_and_identity_follow_the_turn_and_then_return_to_the_agent_defaults, unedited, on main94971862e5with the test modules staged (TinySecurity 0.21.1): the isolated turn's send fails withFrom reading the code, the cause looks the same as described above: the fixture never turns the prompt screen off, so the test passes only when the screen answers Allow within its 2 s budget.
So the fix suggested here (log the hold reason, and turn the screen off in fixtures that aren't testing it) should cover
tool_hook_contextas well.Not checked: whether this test has passed in a recent rust-cov run on hosted CI, and which hold reason the runner hit.