Skip to content

Commit 37b127f

Browse files
sjarmakclaude
andcommitted
fix: artifact Dockerfile regeneration + sdlc_suite_2config.sh Dockerfile selection
Root cause: sdlc_suite_2config.sh selected Dockerfile.sg_only for remote+artifact mode, setting /tmp/.sg_only_mode sentinel. This triggered sgonly_verifier_wrapper.sh instead of answer_json_verifier_lib.sh, so answer.json was never parsed and 5 MCP tasks scored 0. Fixes: - sdlc_suite_2config.sh: prefer Dockerfile.artifact_only for remote+artifact - 39 stub Dockerfile.artifact_only: add cp -a /repo_full backup + chmod 700 - 10 ccb_mcp Dockerfile.artifact_only: swap sentinel from sg_only to artifact - 67 existing Dockerfile.artifact_only: add chmod 700 /repo_full (agent isolation) - New script: scripts/regenerate_artifact_dockerfiles.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6112dc6 commit 37b127f

129 files changed

Lines changed: 992 additions & 360 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

benchmarks/ccb_build/bustub-hyperloglog-impl-001/environment/Dockerfile.artifact_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ENV DECRYPTION_KEY="theagentcompany is all you need"
2020
# Source stays in /workspace (readable by baseline agent).
2121
# MCP agent deletes source files at runtime via agent startup script.
2222
RUN cp -a /workspace /repo_full
23+
RUN chmod 700 /repo_full
2324
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
2425

2526
ENTRYPOINT []
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# camel-fix-protocol-feat-001 — artifact_only variant (write-only)
1+
# camel-fix-protocol-feat-001 — artifact_only variant (build-requiring)
22
# Repos cloned for baseline agent to read locally.
33
# MCP agent deletes source files at runtime via agent startup script.
4-
# Verifier scores agent output only — no repo restore needed.
4+
# Verifier applies patches from answer.json to /repo_full copy for scoring.
55

66
FROM ccb-repo-camel-1006f047
7-
# --- artifact_only mode ---
8-
# Sentinel flag for artifact-based verification.
9-
# Source stays readable for baseline agent; MCP agent deletes at runtime.
10-
RUN touch /tmp/.artifact_only_mode
7+
# --- artifact_only: backup full repo for verifier scoring ---
8+
# Source stays in /app (readable by baseline agent).
9+
# MCP agent deletes source files at runtime via agent startup script.
10+
RUN cp -a /app /repo_full
11+
RUN chmod 700 /repo_full
12+
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
1113

1214
ENTRYPOINT []

benchmarks/ccb_build/cgen-deps-install-001/environment/Dockerfile.artifact_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ WORKDIR /app/repo
2020
# Source stays in /app/repo (readable by baseline agent).
2121
# MCP agent deletes source files at runtime via agent startup script.
2222
RUN cp -a /app/repo /repo_full
23+
RUN chmod 700 /repo_full
2324
RUN touch /tmp/.artifact_only_mode && echo '/app/repo' > /tmp/.artifact_only_workdir
2425

2526
ENTRYPOINT []

benchmarks/ccb_build/codecoverage-deps-install-001/environment/Dockerfile.artifact_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ WORKDIR /app/repo
2424
# Source stays in /app/repo (readable by baseline agent).
2525
# MCP agent deletes source files at runtime via agent startup script.
2626
RUN cp -a /app/repo /repo_full
27+
RUN chmod 700 /repo_full
2728
RUN touch /tmp/.artifact_only_mode && echo '/app/repo' > /tmp/.artifact_only_workdir
2829

2930
ENTRYPOINT []
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# django-dep-refactor-001 — artifact_only variant (write-only)
1+
# django-dep-refactor-001 — artifact_only variant (build-requiring)
22
# Repos cloned for baseline agent to read locally.
33
# MCP agent deletes source files at runtime via agent startup script.
4-
# Verifier scores agent output only — no repo restore needed.
4+
# Verifier applies patches from answer.json to /repo_full copy for scoring.
55

66
FROM ccb-repo-flipt-3d5a345f
7-
# --- artifact_only mode ---
8-
# Sentinel flag for artifact-based verification.
9-
# Source stays readable for baseline agent; MCP agent deletes at runtime.
10-
RUN touch /tmp/.artifact_only_mode
7+
# --- artifact_only: backup full repo for verifier scoring ---
8+
# Source stays in /app (readable by baseline agent).
9+
# MCP agent deletes source files at runtime via agent startup script.
10+
RUN cp -a /app /repo_full
11+
RUN chmod 700 /repo_full
12+
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
1113

1214
ENTRYPOINT []

benchmarks/ccb_build/dotenv-expand-deps-install-001/environment/Dockerfile.artifact_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ WORKDIR /app/repo
2222
# Source stays in /app/repo (readable by baseline agent).
2323
# MCP agent deletes source files at runtime via agent startup script.
2424
RUN cp -a /app/repo /repo_full
25+
RUN chmod 700 /repo_full
2526
RUN touch /tmp/.artifact_only_mode && echo '/app/repo' > /tmp/.artifact_only_workdir
2627

2728
ENTRYPOINT []

benchmarks/ccb_build/dotnetkoans-deps-install-001/environment/Dockerfile.artifact_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ WORKDIR /app/repo
2424
# Source stays in /app/repo (readable by baseline agent).
2525
# MCP agent deletes source files at runtime via agent startup script.
2626
RUN cp -a /app/repo /repo_full
27+
RUN chmod 700 /repo_full
2728
RUN touch /tmp/.artifact_only_mode && echo '/app/repo' > /tmp/.artifact_only_workdir
2829

2930
ENTRYPOINT []

benchmarks/ccb_build/envoy-grpc-server-impl-001/environment/Dockerfile.artifact_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ RUN mkdir -p /logs/verifier /logs/agent
3939
# Source stays in /workspace (readable by baseline agent).
4040
# MCP agent deletes source files at runtime via agent startup script.
4141
RUN cp -a /workspace /repo_full
42+
RUN chmod 700 /repo_full
4243
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
4344

4445
ENTRYPOINT []

benchmarks/ccb_build/eslint-markdown-deps-install-001/environment/Dockerfile.artifact_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ WORKDIR /app/repo
2222
# Source stays in /app/repo (readable by baseline agent).
2323
# MCP agent deletes source files at runtime via agent startup script.
2424
RUN cp -a /app/repo /repo_full
25+
RUN chmod 700 /repo_full
2526
RUN touch /tmp/.artifact_only_mode && echo '/app/repo' > /tmp/.artifact_only_workdir
2627

2728
ENTRYPOINT []
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# flink-pricing-window-feat-001 — artifact_only variant (write-only)
1+
# flink-pricing-window-feat-001 — artifact_only variant (build-requiring)
22
# Repos cloned for baseline agent to read locally.
33
# MCP agent deletes source files at runtime via agent startup script.
4-
# Verifier scores agent output only — no repo restore needed.
4+
# Verifier applies patches from answer.json to /repo_full copy for scoring.
55

66
FROM ccb-repo-flink-0cc95fcc
7-
# --- artifact_only mode ---
8-
# Sentinel flag for artifact-based verification.
9-
# Source stays readable for baseline agent; MCP agent deletes at runtime.
10-
RUN touch /tmp/.artifact_only_mode
7+
# --- artifact_only: backup full repo for verifier scoring ---
8+
# Source stays in /app (readable by baseline agent).
9+
# MCP agent deletes source files at runtime via agent startup script.
10+
RUN cp -a /app /repo_full
11+
RUN chmod 700 /repo_full
12+
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
1113

1214
ENTRYPOINT []

0 commit comments

Comments
 (0)