Skip to content

Enclose Custom runner Trials in a multi-provider sandbox with Trial provider keys, web-search wrappers, and panel family rules #2189

Closed

Description

@JacobStephens2

This was generated by AI during a grill-with-docs session.

Parent

#1468

What to build

Enclose Custom runner Trials in one multi-provider sandbox with Trials-only provider API keys, Harness web-search wrappers, and Grader panel family integration (#1468 Q1.4, Q2.3, Q2.4; ADR 0028, ADR 0032).

  • Declared Harnesses and direct-SDK providers: extend the Custom runner manifest with harnesses (pinned by real binary path and --version during Arm preparation, plus <provider>/<model> or alias entries when OpenCode or Kimi is listed so provider hosts are known before the first Trial) and direct-SDK providers (anthropic, openai, xai, meta, google, fireworks-ai, baseten, kimi).
  • Trials-only [providers] keys in Credentials: add a [providers] section to Credentials holding direct-SDK API keys reserved for Trials. When any declared Harness login or declared [providers] key is missing on the host, record the Trial as a Void Trial (session_unavailable).
  • Single Trial-wide bwrap sandbox and HTTPS_PROXY: enclose the Custom runner and every child process it spawns inside one bwrap sandbox within the Trial's systemd-run memory scope (preserving THIRDSHIFT_TRIAL_NO_SANDBOX as the test/emergency escape). Populate fresh HOME with only the frozen mapped files, logins for declared harnesses (acquiring the Grok serialization lock when grok is declared, and building a multi-provider OpenCode configuration with webfetch/websearch denied when opencode is declared), and [providers] keys for declared providers. Run one allowlisting HTTPS_PROXY permitting only the union of declared Harnesses' and providers' API hosts while blocking GitHub, general web hosts, and unbound host paths.
  • PATH wrappers disabling provider-hosted web search: place thin executable wrappers ahead of pinned Harness binaries on PATH inside the sandbox so invoking a declared Harness prepends its Trial no-web-search switch without altering stdin, stdout, stderr, or exit codes.
  • Grader panel Arm families: union the provider families of every declared Harness and direct-SDK provider on a Custom-runner Arm into the Grader panel's Arm families so same-family panel seats withhold votes while another family is available and stand-in family breadth is checked before Trials start.

Acceptance criteria

  • prepare-arms pins declared harnesses by real path and --version and validates declared providers and OpenCode/Kimi provider host mappings.
  • Inside the Trial sandbox, only declared Harness logins and declared [providers] Credentials keys are present; ambient host environment variables, undeclared logins/keys, unbound host paths, and undeclared network hosts are unreachable, and a missing login or [providers] key produces a session_unavailable Void Trial.
  • Invoking a declared Harness binary by name inside a Custom runner automatically receives its no-web-search CLI switch while preserving stdin, stdout, stderr, and exit code.
  • A Grader panel seat from a family declared in a Custom runner's harnesses or providers is treated as an Arm family under the Bar's arm_family_rule and stand-in family check.

Blocked by

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

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions