File tree Expand file tree Collapse file tree 10 files changed +40
-20
lines changed
k8s-apiserver-doc-gen-001
k8s-applyconfig-doc-gen-001
k8s-controller-mgr-doc-gen-001
k8s-fairqueuing-doc-gen-001 Expand file tree Collapse file tree 10 files changed +40
-20
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212 curl \
1313 && rm -rf /var/lib/apt/lists/*
1414
15+ # Clone repo into /repo_full/ for verifier hallucination check only
16+ # Agent does NOT have access — workspace is empty, agent uses MCP
17+ RUN mkdir -p /repo_full && cd /repo_full && \
18+ git clone --filter=blob:none --no-checkout https://github.com/kubernetes/kubernetes.git . && \
19+ git checkout 8c9c67c000104450cfc5a5f48053a9a84b73cf93
20+
1521WORKDIR /workspace
1622
1723# Empty git repo so agent can commit work
@@ -21,6 +27,6 @@ RUN git init && \
2127
2228RUN mkdir -p /logs/agent /logs/verifier
2329
24- RUN touch /tmp/.sg_only_mode
30+ RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
2531
2632ENTRYPOINT []
Original file line number Diff line number Diff line change @@ -96,13 +96,11 @@ base = (
9696)
9797
9898# Hallucination penalty: invalid path mentions only.
99- # In sg_only mode, /workspace has no repo — skip path existence check
100- sg_only = Path('/tmp/.sg_only_mode').exists()
10199penalty = 0.0
102100path_candidates = set(re.findall(r"(?:staging/src|pkg|cmd|api)/[A-Za-z0-9_./-]+\.go", text))
103101invalid = 0
104102for p in path_candidates:
105- if not sg_only and not Path('/workspace', p).exists():
103+ if not Path('/workspace', p).exists():
106104 invalid += 1
107105if path_candidates:
108106 invalid_ratio = invalid / len(path_candidates)
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212 curl \
1313 && rm -rf /var/lib/apt/lists/*
1414
15+ # Clone repo into /repo_full/ for verifier hallucination check only
16+ # Agent does NOT have access — workspace is empty, agent uses MCP
17+ RUN mkdir -p /repo_full && cd /repo_full && \
18+ git clone --filter=blob:none --no-checkout https://github.com/kubernetes/kubernetes.git . && \
19+ git checkout 8c9c67c000104450cfc5a5f48053a9a84b73cf93
20+
1521WORKDIR /workspace
1622
1723# Empty git repo so agent can commit work
@@ -21,6 +27,6 @@ RUN git init && \
2127
2228RUN mkdir -p /logs/agent /logs/verifier
2329
24- RUN touch /tmp/.sg_only_mode
30+ RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
2531
2632ENTRYPOINT []
Original file line number Diff line number Diff line change @@ -96,13 +96,11 @@ base = (
9696)
9797
9898# Hallucination penalty: invalid path mentions only.
99- # In sg_only mode, /workspace has no repo — skip path existence check
100- sg_only = Path('/tmp/.sg_only_mode').exists()
10199penalty = 0.0
102100path_candidates = set(re.findall(r"(?:staging/src|pkg|cmd|api)/[A-Za-z0-9_./-]+\.go", text))
103101invalid = 0
104102for p in path_candidates:
105- if not sg_only and not Path('/workspace', p).exists():
103+ if not Path('/workspace', p).exists():
106104 invalid += 1
107105if path_candidates:
108106 invalid_ratio = invalid / len(path_candidates)
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212 curl \
1313 && rm -rf /var/lib/apt/lists/*
1414
15+ # Clone repo into /repo_full/ for verifier hallucination check only
16+ # Agent does NOT have access — workspace is empty, agent uses MCP
17+ RUN mkdir -p /repo_full && cd /repo_full && \
18+ git clone --filter=blob:none --no-checkout https://github.com/kubernetes/kubernetes.git . && \
19+ git checkout 8c9c67c000104450cfc5a5f48053a9a84b73cf93
20+
1521WORKDIR /workspace
1622
1723# Empty git repo so agent can commit work
@@ -21,6 +27,6 @@ RUN git init && \
2127
2228RUN mkdir -p /logs/agent /logs/verifier
2329
24- RUN touch /tmp/.sg_only_mode
30+ RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
2531
2632ENTRYPOINT []
Original file line number Diff line number Diff line change @@ -96,13 +96,11 @@ base = (
9696)
9797
9898# Hallucination penalty: invalid path mentions only.
99- # In sg_only mode, /workspace has no repo — skip path existence check
100- sg_only = Path('/tmp/.sg_only_mode').exists()
10199penalty = 0.0
102100path_candidates = set(re.findall(r"(?:staging/src|pkg|cmd|api)/[A-Za-z0-9_./-]+\.go", text))
103101invalid = 0
104102for p in path_candidates:
105- if not sg_only and not Path('/workspace', p).exists():
103+ if not Path('/workspace', p).exists():
106104 invalid += 1
107105if path_candidates:
108106 invalid_ratio = invalid / len(path_candidates)
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212 curl \
1313 && rm -rf /var/lib/apt/lists/*
1414
15+ # Clone repo into /repo_full/ for verifier hallucination check only
16+ # Agent does NOT have access — workspace is empty, agent uses MCP
17+ RUN mkdir -p /repo_full && cd /repo_full && \
18+ git clone --filter=blob:none --no-checkout https://github.com/kubernetes/kubernetes.git . && \
19+ git checkout 8c9c67c000104450cfc5a5f48053a9a84b73cf93
20+
1521WORKDIR /workspace
1622
1723# Empty git repo so agent can commit work
@@ -21,6 +27,6 @@ RUN git init && \
2127
2228RUN mkdir -p /logs/agent /logs/verifier
2329
24- RUN touch /tmp/.sg_only_mode
30+ RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
2531
2632ENTRYPOINT []
Original file line number Diff line number Diff line change @@ -96,13 +96,11 @@ base = (
9696)
9797
9898# Hallucination penalty: invalid path mentions only.
99- # In sg_only mode, /workspace has no repo — skip path existence check
100- sg_only = Path('/tmp/.sg_only_mode').exists()
10199penalty = 0.0
102100path_candidates = set(re.findall(r"(?:staging/src|pkg|cmd|api)/[A-Za-z0-9_./-]+\.go", text))
103101invalid = 0
104102for p in path_candidates:
105- if not sg_only and not Path('/workspace', p).exists():
103+ if not Path('/workspace', p).exists():
106104 invalid += 1
107105if path_candidates:
108106 invalid_ratio = invalid / len(path_candidates)
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212 curl \
1313 && rm -rf /var/lib/apt/lists/*
1414
15+ # Clone repo into /repo_full/ for verifier hallucination check only
16+ # Agent does NOT have access — workspace is empty, agent uses MCP
17+ RUN mkdir -p /repo_full && cd /repo_full && \
18+ git clone --filter=blob:none --no-checkout https://github.com/kubernetes/kubernetes.git . && \
19+ git checkout 8c9c67c000104450cfc5a5f48053a9a84b73cf93
20+
1521WORKDIR /workspace
1622
1723# Empty git repo so agent can commit work
@@ -21,6 +27,6 @@ RUN git init && \
2127
2228RUN mkdir -p /logs/agent /logs/verifier
2329
24- RUN touch /tmp/.sg_only_mode
30+ RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
2531
2632ENTRYPOINT []
Original file line number Diff line number Diff line change @@ -96,13 +96,11 @@ base = (
9696)
9797
9898# Hallucination penalty: invalid path mentions only.
99- # In sg_only mode, /workspace has no repo — skip path existence check
100- sg_only = Path('/tmp/.sg_only_mode').exists()
10199penalty = 0.0
102100path_candidates = set(re.findall(r"(?:staging/src|pkg|cmd|api)/[A-Za-z0-9_./-]+\.go", text))
103101invalid = 0
104102for p in path_candidates:
105- if not sg_only and not Path('/workspace', p).exists():
103+ if not Path('/workspace', p).exists():
106104 invalid += 1
107105if path_candidates:
108106 invalid_ratio = invalid / len(path_candidates)
You can’t perform that action at this time.
0 commit comments