Skip to content

Instantly share code, notes, and snippets.

@arubis
Last active April 15, 2026 20:42
Show Gist options
  • Select an option

  • Save arubis/77f6799bbdfef91242257d70740ff15d to your computer and use it in GitHub Desktop.

Select an option

Save arubis/77f6799bbdfef91242257d70740ff15d to your computer and use it in GitHub Desktop.
Review: configmap-projection-order-race v2 (APPROVE)

Review: configmap-projection-order-race v2

Verdict: APPROVE

v2 passes all acceptance criteria. solution.sh scores 1.0 locally, docker mean is 0.44 (<0.50 threshold), teapot mean is 0.27 (≤0.85 threshold), and failures are genuine — agents get tripped up on the five-fault ordering puzzle, not on grader defects or setup flakes. Four non-blocking recommendations below, but nothing that should block acceptance.

Acceptance Criteria

Criterion Threshold Actual Status
Solvable solution.sh → 1.0 1.0 (5/5 subscores) ✅
Docker difficulty mean < 0.50 0.44 ✅
Teapot difficulty mean ≤ 0.85 0.27 ✅
Teapot observability ≥5 observable runs 5 fully observable (of 9 total) ✅
Substantial scope ≥4 hours 5 faults across deployment, projection, renderer, entrypoint ✅

Eval Results

Docker (biggie-nebula)

Batch Runs Scores Mean
b1 5 0.4, 0.8, 0.2, 0.2, 0.6 0.44

Teapot (nighthawk)

Batch Runs Scores Mean
b1 3 0, 0, 0 0.00
b2 1 0.2 0.20
b3 1 0.2 0.20
Aggregate (API) 9 0.6, 0.8, 0.6, 0, 0.2, 0.2, 0, 0, 0 0.27

Locally downloaded 7 of 9 teapot transcripts (2 filename collisions with docker run1-batch1.json; aggregate scores drawn from API summary). One teapot run is a confirmed infra/tool-error timeout, not a genuine failure.

Per-Subscore Pass Rate (10 valid runs with grade_result data)

Subscore Pass Rate Notes
runtime_config_integrity 7/10 70% Most agents identify the projected-volume path
timeline_functional_behavior 0/10 0% FAULT 5 (POST_LIMIT=6 hardcode) never discovered
propagation_durability 6/10 60% Config hash annotation pattern partially discovered
platform_rollout_health 4/10 40% ResourceQuota + rollout interaction catches several
hardening_validation 5/10 50% Renderer optional→required split discovered by ~half

timeline_functional_behavior is the only zero-pass check — every other subscore is cleared by at least 40% of runs. The next-lowest check (platform_rollout_health) sits 40 percentage points above it. This gap is what drives recommendation #1 below.

What's Working

Solid task concept. Projected-volume path key mismatch is a real-world failure mode, and stacking it with a ResourceQuota that silently blocks rolling updates mirrors actual production incidents. The "cold pods look worse than warm ones" framing in the prompt is an excellent grounding for agents — it points at init container / projection behavior without spoiling the mechanism.

Grader design is thoughtful. Five equally-weighted subscores representing working milestones (not file existence checks). Convergence-based waits with UUID-sentinel ConfigMap pokes (grader-sentinel-{uuid.uuid4().hex[:12]}) and randomized batch-size probes (random.choice([3, 4, 5])) prevent agents from hardcoding a lucky value. The quota headroom check hard_pods >= used_pods + 1 is a nice durability signal — it verifies the agent understood why they removed the quota, not just that they removed it.

Reward-hacking analysis is documented per check. Every grading function in grader.py includes a # REWARD HACKING ANALYSIS docstring section enumerating what cheats the check resists and how. This is a pattern worth borrowing across other tasks — it forces the author to think adversarially during grader design, not after, and gives reviewers a structured surface to verify. Examples from this grader:

  • runtime_config_integrity: "Compares live /config against the authoritative ConfigMap values retrieved by the grader itself — not against anything the agent can hardcode. Also inspects /work/rendered/app-config.env inside the pod to prove the init renderer produced the expected variable name. Hardcoded nginx responses that bypass the renderer fail this second check."
  • hardening_validation: "Uses empty-string mutation (not key removal) so the projected volume mount still succeeds; the failure mode tests renderer/app validation, not platform mount mechanics."

Answer-leakage concerns resolved. The prior auto-reviewer flag about # FAULT 1..5 comments in setup.sh is not exploitable: apex_arena mounts /mcp_server with chmod -R 0700 (confirmed in apex_arena/quality_checker.py:275), so the agent user cannot read setup.sh at all. Zero transcripts show any agent attempting to read setup.sh or referencing fault labels.

Genuine multi-dimensional difficulty. The five faults span four distinct subsystems (Deployment spec, ConfigMap projection, init-container shell, workload entrypoint), so agents can't pattern-match a single fix family. The score distribution (0 → 0.8 across 14 runs, no clustering) confirms the task is tiering agents by actual debugging skill, not by luck.

Prior-Review Reconciliation

Reviewer Concern Status
V1 auto FAULT N comments leak answers via setup.sh Resolved — chmod 0700 on /mcp_server blocks agent access
V1 auto Mattermost breadcrumbs too generous Fair framing but reasonable — 4 subtle hints, no direct answers
V2 auto Eval difficulty bounds Confirmed in-range (docker 0.44, teapot 0.27)

Recommendations (Non-Blocking)

1. FAULT 5 acts as a ceiling (observation, not blocker)

No agent across any run in any backend (0/10 locally, consistent with the full 14-run aggregate) discovered that POST_LIMIT=6 is hardcoded in the entrypoint while timeline-batch-size is in the ConfigMap. Even the best agent (0.8, docker b1.2) got every other check right and missed this one. In practice, this caps the task at 0.8 for any agent that doesn't re-read the entrypoint after fixing the env var name.

A single dead-weight subscore is acceptable — every other check is cleared by at least 40% of runs, so this isn't a structural grader problem, just a deep-enough fault that it sits below the natural stopping condition. Flagging for author awareness; not recommending a follow-up version purely to lift this.

The fault dependency chain (using the author's numbering from setup.sh):

flowchart TD
    Q[ResourceQuota: pins pods at current count, blocks surge rollouts] --> R1[platform_rollout_health]
    F4[FAULT 4: projected volume path redis/seed-list nested subdir] --> R2[runtime_config_integrity]
    F1[FAULT 1: renderer has redis-seed-list in optional list] --> R3[hardening_validation]
    F3[FAULT 3: entrypoint uses REDIS_SEEDS, renderer writes REDIS_SEED_LIST] --> S{/timeline status = ok?}
    S -->|yes: natural stopping point| Ceiling[0.8 ceiling reached]
    S -->|no: keep digging| F5[FAULT 5: POST_LIMIT=6 hardcode ignores TIMELINE_BATCH_SIZE]
    F5 --> R5[timeline_functional_behavior]
    F3 --> R4[propagation_durability]
Loading

FAULT 5 is gated behind FAULT 3: once the env-var rename goes in, /timeline returns status=ok and the natural stopping condition fires before FAULT 5 is ever suspected.

Worth noting: Mattermost breadcrumb #2 (posted in setup.sh) directly hints at FAULT 5:

"bumping timeline-batch-size to 3 to cut load while we investigate but /timeline still comes back with 6 posts. restarted the pod, same thing. feels like that setting is not making it into the process at runtime."

So the signal isn't buried — it's explicit, in character, and in exactly the place the prompt tells agents to read. The 0/10 pass rate is closer to an agent-behavior finding ("agents stop at status=ok and don't cross-reference the ops channel against observed output") than a task-design finding. Additional prompt polish probably wouldn't move the needle; this is the kind of thing only stronger evaluator reasoning would unlock.

The grader probes batch size by setting timeline-batch-size to a random value and verifying /timeline returns that many posts. An agent that only checks /timeline status (=ok) and count (=6) after the env-var fix will see green and move on. Consider:

  • Option A — Stronger prompt signal: add "and the configured batch window should be honored" or similar to the task prompt. Currently the prompt says "feeds are missing posts" which points at status/availability, not batch size.
  • Option B — Pre-seed a realistic failure signal: have one of the wiki / Mattermost breadcrumbs mention "the configured page size isn't taking effect." Currently breadcrumbs focus on projection/ordering.
  • Option C — Accept as ceiling: if the intent is to cap this task at 0.8 for even strong agents, document that in a task note. The current 0% pass rate suggests the signal is too buried.

2. Make quota headroom an explicit requirement

The prompt asks the agent to "make sure this class of cold-start drift can't silently recur," which is gracefully open-ended, but in practice platform_rollout_health requires the agent to leave ≥1 pod of quota headroom after removing/resizing the ResourceQuota. That specific framing isn't derivable from the task text — agents who delete the quota entirely get full credit, but agents who resize it without +1 headroom get dinged.

Either (a) accept the implicit requirement and note it in the author's comments, or (b) add one line to the prompt like "any remaining quota must allow future rolling updates."

3. /work/rendered/app-config.env implicit contract

The hardening check verifies the renderer's output file path, but the expected path (/work/rendered/app-config.env) is only visible by reading the existing renderer ConfigMap. Agents who rewrite the renderer from scratch risk picking a different path and failing the check silently. This is a minor quibble — most agents patched the existing ConfigMap — but worth considering whether the grader should probe via the actual init-container log rather than path match.

4. TIME_WAIT / port-reuse sensitivity

The grader hits /config and /timeline dozens of times during convergence probes. Two teapot runs (b1.1, b1.2) show connection-reset failures that look like TCP state exhaustion rather than genuine misconfiguration. Not sure this is actionable, but if teapot runs start failing at higher rates, this is the first place I'd look.

Grader Strengths Worth Preserving

These patterns should survive any future edits:

  • UUID sentinel ConfigMap pokes for propagation checks (prevents caching false-positives)
  • Randomized batch-size probes (random.choice([3, 4, 5])) — prevents hardcoded-value cheats
  • Convergence-based waits with structured retry rather than sleep N
  • Equal subscore weighting across the 5 checks (platform standard)
  • Quota headroom check (hard_pods >= used_pods + 1) — elegant durability verification

Summary

APPROVE. The task is solvable, genuinely hard across both backends, and the grader is well-constructed. Recommendations 1–4 are observations and quality-of-life suggestions, not blockers. Rec #1 (FAULT 5 acting as a ceiling) is acceptable as-is; the other three are minor polish that the author can take or leave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment