Commit 0ccb2085
0ccb20850541Mergedon mrmrs-a60a8c
mrmrs · 13 days ago · 7 files · ~7 modified
Details
- Commit
- 0ccb20850541
- Parent
- 15a9a88b4cbb
cloudflare/agent-runner/DockerfilemodifiedView file
@@ -8,6 +8,24 @@
88
# fresh HOME, and cannot read the journal, plan, other trials or /proc99
# environments of root processes;1010
# - containment_check.py proves that before any trial is admitted.11+
# Independent Git instrument for the trusted oracle: a separately built,12+
# pinned Git (not the Git under test), so Git rows get the same13+
# independent_committed_tree evidence class as Oak rows read by the14+
# independent SQLite reader. Without it the campaign report refuses to pair15+
# Git and Oak trials.16+
FROM debian:bookworm-slim AS git-instrument17+
ARG GIT_INSTRUMENT_VERSION=2.47.118+
ARG GIT_INSTRUMENT_SHA256=f3d8f9bb23ae392374e91cd9d395970dabc5b9c5ee72f39884613cd84a6ed31019+
RUN apt-get update \20+
&& apt-get install -y --no-install-recommends build-essential ca-certificates curl xz-utils zlib1g-dev \21+
&& rm -rf /var/lib/apt/lists/*22+
RUN curl -fsSL -o /tmp/git.tar.xz "https://www.kernel.org/pub/software/scm/git/git-${GIT_INSTRUMENT_VERSION}.tar.xz" \23+
&& echo "${GIT_INSTRUMENT_SHA256} /tmp/git.tar.xz" | sha256sum -c - \24+
&& tar -xJf /tmp/git.tar.xz -C /tmp \25+
&& make -C "/tmp/git-${GIT_INSTRUMENT_VERSION}" -j4 prefix=/opt/git-instrument \26+
NO_CURL=1 NO_EXPAT=1 NO_GETTEXT=1 NO_TCLTK=1 NO_PERL=1 NO_PYTHON=1 NO_OPENSSL=1 install \27+
&& /opt/git-instrument/bin/git --version28+
1129
FROM node:22-bookworm-slim1230
1331
ARG OAK_VERSION=0.112.0@@ -27,6 +45,8 @@
2745
&& npm cache clean --force \2846
&& ln -s "$(command -v claude)" /usr/local/bin/claude-real2947
48+
COPY --from=git-instrument /opt/git-instrument /opt/git-instrument49+
3050
RUN useradd --create-home --uid 1001 --shell /bin/sh agent3151
3252
# Harness (read-only to the agent: root-owned, no group/other write).@@ -40,7 +60,11 @@
4060
&& chmod 755 /usr/local/bin/claude-contained \4161
&& mkdir -m 700 /work4262
63+
# OAK_BENCH_READER_DEADLINE_SCALE: the independent Oak reader's safety64+
# deadline was calibrated on an M4; this runner's vCPU is several times slower.4365
ENV OAK_BENCH_LOCK_PATH=/work/.measurement.lock \66+
OAK_BENCH_GIT_INSTRUMENT=/opt/git-instrument/bin/git \67+
OAK_BENCH_READER_DEADLINE_SCALE=4 \4468
OAK_NO_UPDATE_CHECK=1 \4569
PYTHONDONTWRITEBYTECODE=14670
EXPOSE 8080cloudflare/agent-runner/server.pymodifiedView file
Loading diff…
cloudflare/agent-runner/wrangler.jsoncmodifiedView file
Loading diff…
scripts/agent_metrics_schema.pymodifiedView file
Loading diff…
scripts/agent_workflow.pymodifiedView file
Loading diff…
scripts/oakbench/oak_sqlite_reader.pymodifiedView file
Loading diff…
scripts/oakbench/workflow_oracles.pymodifiedView file
Loading diff…