Skip to content

Environment

trialdesignbench.environment

Shared, pinned Docker image for agent and verifier environments.

The pins below are the single source of truth: tdb env build passes them to the Dockerfile as build arguments and records them as image labels, and tdb run refuses agent versions that differ from these pins. Which agents use which pin is recorded in trialdesignbench.agents.

OPENCODE_MODELS_PATH = '/opt/tdb/opencode-models.json' module-attribute

OpenCode model catalog downloaded at image build time. The catalog bundled in the OpenCode binary lags behind new models, and trials cannot fetch it.

R_PACKAGES = ('gsDesign', 'gsDesign2', 'rpact', 'lrstat', 'graphicalMCP', 'eventPred', 'survival', 'mvtnorm', 'jsonlite', 'dplyr', 'ggplot2', 'digest') module-attribute

Packages the agent may use. Includes everything referenced by the group-sequential-design skill's reference and examples.

build_command(tag, context, *, platforms=None, push=False, no_cache=False)

docker build for the native platform, docker buildx build otherwise.

docker_host_warning()

Explain when the Docker host cannot enforce Harbor's allowlist policy.

stage_context(dest, *, tdb_source='auto')

Write a complete Docker build context to dest.

tdb_source controls how the grader package gets into the image: local builds a wheel from this source checkout, pypi installs the pinned release, auto picks local when a checkout is available. Returns a description of what was staged.