Skip to content

Commit a98564c

Browse files
sjarmakclaude
andcommitted
fix: repair 2 sg_only + 4 artifact_only Dockerfiles found by full audit
sg_only fixes (critical — verifiers run go build): - flipt-protobuf-metadata-design-001: FROM ccb-repo-flipt-3d5a345f (was ubuntu:22.04) - flipt-repo-scoped-access-001: FROM ccb-repo-flipt-3d5a345f (was ubuntu:22.04) artifact_only fixes (missing /repo_full backup for diff application): - rust-subtype-relation-refac-001: add cp -a /workspace /repo_full - kafka-producer-bufpool-fix-001: add cp -a /workspace /repo_full - test-coverage-gap-001: FROM ccb-repo-envoy-1d0ba73a (was ubuntu:22.04) + add backup - test-coverage-gap-002: FROM ccb-repo-kafka-e678b4b (was ubuntu:22.04) + add backup Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ac44334 commit a98564c

File tree

6 files changed

+42
-80
lines changed

6 files changed

+42
-80
lines changed

benchmarks/ccb_build/rust-subtype-relation-refac-001/environment/Dockerfile.artifact_only

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ RUN git clone --filter=blob:none --no-checkout https://github.com/rust-lang/rust
2121
git config user.email "agent@example.com" && \
2222
git config user.name "Agent"
2323
# --- artifact_only mode ---
24+
# Back up full repo so answer_json_verifier_lib.sh can apply diffs to /repo_full
25+
RUN cp -a /workspace /repo_full
2426
# Sentinel flag for artifact-based verification.
2527
# Source stays readable for baseline agent; MCP agent deletes at runtime.
2628
RUN touch /tmp/.artifact_only_mode
Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
# flipt-protobuf-metadata-design-001 — sg_only_env variant
2-
# No local repo clone — agent uses Sourcegraph MCP exclusively for code access.
2+
# Source files truncated so agent must use Sourcegraph MCP for code access.
3+
# Verifier wrapper restores full repo before running tests.
34

4-
FROM ubuntu:22.04
5+
FROM ccb-repo-flipt-3d5a345f
56

67
ENV SOURCEGRAPH_REPO_NAME=sg-benchmarks/flipt--3d5a345f
78

8-
ENV DEBIAN_FRONTEND=noninteractive
9-
10-
RUN apt-get update && apt-get install -y --no-install-recommends \
11-
git \
12-
ca-certificates \
13-
python3 \
14-
curl \
15-
&& rm -rf /var/lib/apt/lists/*
9+
# --- sg_only_env: back up full repo, then truncate source ---
10+
RUN cp -a /workspace /repo_full
11+
RUN find /workspace -type f \( \
12+
-name "*.go" -o -name "*.py" -o -name "*.yaml" -o -name "*.yml" \
13+
-o -name "*.json" -o -name "*.proto" -o -name "*.sh" -o -name "*.md" \
14+
-o -name "*.txt" -o -name "*.toml" -o -name "*.cfg" \
15+
\) ! -path "*/.git/*" ! -path "*/vendor/*" -exec truncate -s 0 {} \;
16+
# Recommit truncated state so git history cannot recover full files.
17+
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
18+
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
1619

1720
WORKDIR /workspace
18-
19-
# Empty git repo so agent can commit work
20-
RUN git init && \
21-
git config user.email "agent@example.com" && \
22-
git config user.name "Agent"
23-
24-
RUN mkdir -p /logs/agent /logs/verifier
25-
26-
# Mark sg_only mode so verifiers can skip local-path checks
27-
RUN touch /tmp/.sg_only_mode
28-
2921
ENTRYPOINT []

benchmarks/ccb_fix/kafka-producer-bufpool-fix-001/environment/Dockerfile.artifact_only

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ RUN git clone --filter=blob:none --no-checkout https://github.com/apache/kafka.g
2020
git config user.email "agent@example.com" && \
2121
git config user.name "Agent"
2222
# --- artifact_only mode ---
23+
# Back up full repo so answer_json_verifier_lib.sh can apply diffs to /repo_full
24+
RUN cp -a /workspace /repo_full
2325
# Sentinel flag for artifact-based verification.
2426
# Source stays readable for baseline agent; MCP agent deletes at runtime.
2527
RUN touch /tmp/.artifact_only_mode
Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
# flipt-repo-scoped-access-001 — sg_only_env variant
2-
# No local repo clone — agent uses Sourcegraph MCP exclusively for code access.
2+
# Source files truncated so agent must use Sourcegraph MCP for code access.
3+
# Verifier wrapper restores full repo before running tests.
34

4-
FROM ubuntu:22.04
5+
FROM ccb-repo-flipt-3d5a345f
56

67
ENV SOURCEGRAPH_REPO_NAME=sg-benchmarks/flipt--3d5a345f
78

8-
ENV DEBIAN_FRONTEND=noninteractive
9-
10-
RUN apt-get update && apt-get install -y --no-install-recommends \
11-
git \
12-
ca-certificates \
13-
python3 \
14-
curl \
15-
&& rm -rf /var/lib/apt/lists/*
9+
# --- sg_only_env: back up full repo, then truncate source ---
10+
RUN cp -a /workspace /repo_full
11+
RUN find /workspace -type f \( \
12+
-name "*.go" -o -name "*.py" -o -name "*.yaml" -o -name "*.yml" \
13+
-o -name "*.json" -o -name "*.proto" -o -name "*.sh" -o -name "*.md" \
14+
-o -name "*.txt" -o -name "*.toml" -o -name "*.cfg" \
15+
\) ! -path "*/.git/*" ! -path "*/vendor/*" -exec truncate -s 0 {} \;
16+
# Recommit truncated state so git history cannot recover full files.
17+
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
18+
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
1619

1720
WORKDIR /workspace
18-
19-
# Empty git repo so agent can commit work
20-
RUN git init && \
21-
git config user.email "agent@example.com" && \
22-
git config user.name "Agent"
23-
24-
RUN mkdir -p /logs/agent /logs/verifier
25-
26-
# Mark sg_only mode so verifiers can skip local-path checks
27-
RUN touch /tmp/.sg_only_mode
28-
2921
ENTRYPOINT []

benchmarks/ccb_test/test-coverage-gap-001/environment/Dockerfile.artifact_only

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
# test-coverage-gap-001 — artifact_only variant
2-
# Minimal image: verifier scores test file by regex, no compilation needed.
3-
# Agent uses Sourcegraph MCP for code discovery.
2+
# Repos cloned for baseline agent to read locally.
3+
# MCP agent deletes source files at runtime via agent startup script.
4+
# Verifier scores agent output only — no repo restore needed.
45

5-
FROM ubuntu:22.04
6+
FROM ccb-repo-envoy-1d0ba73a
67

7-
ENV DEBIAN_FRONTEND=noninteractive
8-
9-
RUN apt-get update && apt-get install -y --no-install-recommends \
10-
git \
11-
curl \
12-
python3 ca-certificates \
13-
&& rm -rf /var/lib/apt/lists/*
14-
15-
WORKDIR /workspace
16-
17-
# Empty git repo so agent can commit work
18-
RUN git init && \
19-
git config user.email "agent@example.com" && \
20-
git config user.name "Agent"
21-
22-
RUN mkdir -p /logs/agent /logs/verifier
8+
# Back up full repo so answer_json_verifier_lib.sh can apply diffs to /repo_full
9+
RUN cp -a /workspace /repo_full
2310

2411
# Mark artifact-only mode
2512
RUN touch /tmp/.artifact_only_mode

benchmarks/ccb_test/test-coverage-gap-002/environment/Dockerfile.artifact_only

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
# test-coverage-gap-002 — artifact_only variant
2-
# Minimal image: verifier scores test file by regex, no compilation needed.
3-
# Agent uses Sourcegraph MCP for code discovery.
2+
# Repos cloned for baseline agent to read locally.
3+
# MCP agent deletes source files at runtime via agent startup script.
4+
# Verifier scores agent output only — no repo restore needed.
45

5-
FROM ubuntu:22.04
6+
FROM ccb-repo-kafka-e678b4b
67

7-
ENV DEBIAN_FRONTEND=noninteractive
8-
9-
RUN apt-get update && apt-get install -y --no-install-recommends \
10-
git \
11-
curl \
12-
python3 ca-certificates \
13-
&& rm -rf /var/lib/apt/lists/*
14-
15-
WORKDIR /workspace
16-
17-
# Empty git repo so agent can commit work
18-
RUN git init && \
19-
git config user.email "agent@example.com" && \
20-
git config user.name "Agent"
21-
22-
RUN mkdir -p /logs/agent /logs/verifier
8+
# Back up full repo so answer_json_verifier_lib.sh can apply diffs to /repo_full
9+
RUN cp -a /workspace /repo_full
2310

2411
# Mark artifact-only mode
2512
RUN touch /tmp/.artifact_only_mode

0 commit comments

Comments
 (0)