ouroboros/devtools/benchmarks/cowork_bench/docker_discovery.sh
Anton Razzhigaev e41b00cdc4 feat(bench): add isolated Cowork Bench adapter and campaign controls
Run Ouroboros through the pinned official task/evaluation runner with persistent MCP services, cumulative spending controls, bounded Docker resources, and auditable results.

Co-authored-by: Ouroboros <311266734+ouroboros-agent@users.noreply.github.com>
2026-09-17 20:28:36 +00:00

12 lines
511 B
Bash

# Sourced only by the official runner through BASH_ENV. Its PATH reset would
# otherwise bypass a private bin directory, and it overwrites $DOCKER itself.
which() {
if [ "$#" -eq 1 ] && [ "$1" = docker ]; then
printf '%s\n' "${COWORK_DOCKER_SHIM:?missing run-scoped Docker shim}"
else
command which "$@"
fi
}
# Child shells and the shim need no startup injection. The runner already owns
# this function; its task subshells inherit the resolved absolute $DOCKER path.
unset BASH_ENV