Skip to content

Flaky: harness_embed a_harness_runs_a_turn_against_the_provider_it_was_given fails or times out in the rust-cov lanes #8752

Open

Description

@M3gA-Mind

What fails

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:

  1. The prompt is held during the concurrent phase, in Lanes (rust-cov-facades), https://github.com/tinyhumansai/openhuman/actions/runs/43826664410 (fix(inference): list built-in Claude models for the claude-code provider #8739, 2026-11-16):
    harness_embed failure: concurrent turn 99 failed after 5.302360454s: Rpc { method: "openhuman.inference_agent_chat", message: "Prompt flagged for security review ..." }
    module panicked at harness_embed.rs:78:5
    
  2. A timeout, in Lanes (rust-cov-product), https://github.com/tinyhumansai/openhuman/actions/runs/43858115313 (refactor(security): move tool gate impls to security/tool_gates #8737, 2026-11-16):
    TIMEOUT [ 300.064s] openhuman-embed::harness_embed a_harness_runs_a_turn_against_the_provider_it_was_given
    

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.

Activity

  1. M3gA-Mind commented on Nov 16, 2026

    @M3gA-Mind
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions