Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

test(openai-codex): remove the bench launch spacing after the pid fix

Jack Rudenko97880c9c0f67
diff --git a/ai-docs/benches/codex-code-mode/README.md b/ai-docs/benches/codex-code-mode/README.md
index 57f37b94..26c201f6 100644
--- a/ai-docs/benches/codex-code-mode/README.md
+++ b/ai-docs/benches/codex-code-mode/README.md
@@ -104,8 +104,8 @@ CODEX_CODE_MODE_KEEP_LOGS=<dir> \
madbench madbench.yaml --concurrency 4 --trials 5 --report-json <out.json>
```
-- **Concurrency works through the shim's launch lock** (see "Concurrency" below). Without it,
- Scenarios that start together fail `agent never started` because of a claudish defect.
+- **Concurrency needs a claudish build with `1066489b`** (see "Concurrency" below). An older
+ build fails Scenarios that start together with `agent never started`.
- `--trials 5` gives 20 sessions, all on the subscription. Phase 7 used 10/10/3 sessions by
hand; `--scenario auto --trials 10` adds depth where D1 lived.
- A graded miss exits 0. Add `--fail-on-failure` where a miss must turn the job red.
@@ -125,7 +125,7 @@ Why each setting:
equivalent of `--code-mode off` (`code-mode/policy.ts`: flag > env > project > global >
`auto`). Nothing passes the flag, and `harness.args` belongs to the whole Bench (madbench
0.47.0 refuses `harness:` on a Scenario), so the environment is how one Scenario turns code
- mode off. A madbench feature request for per-Scenario harness args is drafted, not yet filed.
+ mode off. Per-Scenario harness args are requested upstream as MadAppGang/madbench#141.
- **`driver: false`**: every prompt is an order, so a question from the agent fails the Scenario
by name instead of being answered by a model and becoming a variable.
@@ -133,8 +133,8 @@ Why each setting:
The first smoke run, three Scenarios at once, reported two `agent never started: agent did not
start within 1m0s` with Claude Code ready in both panes. The cause is claudish's, not madbench's:
-`createTempSettingsFile` (`packages/cli/src/claude-runner.ts`) names its `--settings` overlay
-`~/.claudish/settings-<Date.now()>.json`. madbench starts concurrent Scenarios in lock-step (two
+`createTempSettingsFile` (`packages/cli/src/claude-runner.ts`) named its `--settings` overlay
+`~/.claudish/settings-<Date.now()>.json` before `1066489b`. madbench starts concurrent Scenarios in lock-step (two
claudish debug logs opened in the same millisecond), so two or three processes write ONE file and
every Claude Code loads the last writer's statusLine and hooks. madbench waits for a sample in
each run's own `statusline.jsonl`; the losers' stay empty, and all the samples land in the
@@ -142,9 +142,10 @@ winner's. At `--concurrency 3 --trials 3`, 2 of 3 trials collided this way; one
then also hung for 300 s, because its sink carried other sessions' samples. Full evidence:
`ai-docs/sessions/codex-code-mode-bench-20261020-172800-a1c3/conc/DIAGNOSIS.md` (gitignored).
-`claudish-under-test` carries a TEMPORARY launch lock (`/tmp/claudish-under-test.launch.lock`,
-held 100 ms per launch) so every process reads a different millisecond. Delete it, and this
-section's workaround, when claudish names the settings file uniquely per process.
+claudish `1066489b` fixed it: the overlay is now `settings-<pid>-<Date.now()>.json` (and the
+Windows status script `status-<pid>-<Date.now()>.js`), so two processes started in the same
+millisecond still write two files. The Bench carries no workaround; it needs a build with that
+commit.
## Reading a failure
@@ -177,7 +178,7 @@ the `relayed= resumed= lost=` tally), so most failures can be read straight from
An `exec` Check keeps its output only on failure, and madbench deletes the workspace after the run,
so a passing Check keeps none of the log lines it passed on. Until madbench keeps that output in the
-report (feature request drafted, not yet filed), the `provenance` Check carries a TEMPORARY first
+report (MadAppGang/madbench#142), the `provenance` Check carries a TEMPORARY first
line: with `CODEX_CODE_MODE_KEEP_LOGS=<dir>` set it copies `logs/claudish_*.log` and
`claudish-provenance.txt` to `<dir>/<workspace name>/`. Match a folder to its Scenario with the
report's `.results[].session.work_dir`. Delete that line when madbench ships the feature.
diff --git a/ai-docs/benches/codex-code-mode/claudish-under-test b/ai-docs/benches/codex-code-mode/claudish-under-test
index ad285ffa..adb57213 100755
--- a/ai-docs/benches/codex-code-mode/claudish-under-test
+++ b/ai-docs/benches/codex-code-mode/claudish-under-test
@@ -21,24 +21,4 @@ dist="$root/packages/cli/dist/index.js"
echo "dist_mtime=$(stat -f %Sm -t %Y-%m-%dT%H:%M:%S "$dist")"
} > claudish-provenance.txt
-# TEMPORARY — stands in for a claudish fix: createTempSettingsFile
-# (packages/cli/src/claude-runner.ts) names its file
-# ~/.claudish/settings-<Date.now()>.json, so two claudish processes started in
-# the same millisecond write ONE file, and both Claude Codes load the last
-# writer's statusLine and hooks. madbench starts concurrent Scenarios within a
-# millisecond of each other, so the losers' statusLine sinks stay empty and
-# madbench reports "agent never started" (diagnosis: README.md, "Concurrency").
-# This spaces launches at least 100 ms apart with a lock directory, so each
-# process reads a different Date.now(). Delete it when claudish names the
-# file uniquely per process.
-lock=/tmp/claudish-under-test.launch.lock
-waited=0
-until mkdir "$lock" 2>/dev/null; do
- waited=$((waited + 1))
- # a lock left by a killed launch is never older than a few seconds
- if [ "$waited" -gt 200 ]; then rmdir "$lock" 2>/dev/null || true; waited=0; fi
- sleep 0.02
-done
-( sleep 0.1; rmdir "$lock" 2>/dev/null ) &
-
exec bun "$dist" --debug-claudish --log-level debug -q "$@"
diff --git a/ai-docs/benches/codex-code-mode/madbench.yaml b/ai-docs/benches/codex-code-mode/madbench.yaml
index 5b4b2421..2c035341 100644
--- a/ai-docs/benches/codex-code-mode/madbench.yaml
+++ b/ai-docs/benches/codex-code-mode/madbench.yaml
@@ -89,10 +89,10 @@ scenarios:
metric: provenance
# The shim ran, so this worktree's dist/index.js is what claudish was.
#
- # TEMPORARY — the first line of this cmd stands in for the madbench
- # feature request "exec: keep the command's output on a passing Check"
- # (draft unsent; README.md, "Keeping the logs"). Delete it when madbench
- # ships it. An exec Check records its output only on failure and the
+ # TEMPORARY — the first line of this cmd stands in for
+ # MadAppGang/madbench#142 (exec: keep the command's output in Evidence
+ # when the Check passes; README.md, "Keeping the logs"). Delete it when
+ # madbench ships it. An exec Check records its output only on failure and the
# workspace is deleted after the run, so a PASS keeps none of the log
# lines that proved it. With CODEX_CODE_MODE_KEEP_LOGS=<dir> set, the
# logs are copied to <dir>/<workspace name>/ (map it to a Scenario by