Skip to content

Docs: python3 arena_cli.py, and no comment that zsh acts on (F9-12) - #55

Merged
xdotli merged 1 commit into
mainfrom
docs/r9-python3-zsh
Sep 29, 2026
Merged

xdotli merged 1 commit into
mainfrom
docs/r9-python3-zsh

Conversation

@xdotli

@xdotli xdotli commented Sep 29, 2026

Copy link
Copy Markdown
Member

Round 9 funnel finding F9-12: the Arena's docs used bare python (a stock Mac has only python3) and had pasted comments that zsh acts on. #54 moved the notes that followed commands; this finishes the job in this repo. The same fix is in posttrain.com's cookbook (benchflow-ai/posttrain-arena, web/r9-fixes) and on the Space (branch arena/r9-fixes, not pushed).

Changes

  • docs/hf-submission-lab.md (14) and README.md (1): python arena_cli.py → python3 arena_cli.py.
  • hf-submission-lab.md: the commented launch line loses > run-receipt.json, and the text above the block says to keep the receipt. With interactivecomments off (zsh's default), a pasted # ... > run-receipt.json still runs its redirect, which emptied an existing receipt every time the block was pasted.
  • CONTRIBUTING.md: two full-line comments had a ;, so zsh ran "Python standard library only." and "normally it scores 0.0." as commands. Each ; is now a full stop.

Evidence

  • Stock zsh 5.9 (no user rc files): # a > f.txt creates f.txt, # a; touch x runs touch x, and an apostrophe opens a quote that swallows the pasted lines after it.
  • Every shell block in the README, CONTRIBUTING, starting-kit/README.md, submissions/README.md and hf-submission-lab.md, pasted into a stock zsh with python3 stubbed: each command gets exactly its arguments. The only errors are posttrainarena-train: command not found, because the stub skips the pip install that provides it.
  • arena_cli.py runs on macOS's /usr/bin/python3 (3.9.6): its 55 CLI tests pass there.

Left as is: CONTRIBUTING's python -m pip and python -m pytest lines, which run inside the activated venv that the block creates. That venv provides python.

A stock Mac has no `python`, so `python arena_cli.py` failed there: 14 times
in docs/hf-submission-lab.md and once in the README. They say python3 now,
like the scripts' commands.

zsh, macOS's shell, starts with interactivecomments off and parses a pasted
full-line comment as a command named '#', so what follows ; runs, and a > in
it creates or empties the file:
- hf-submission-lab.md's commented launch line kept `> run-receipt.json`,
  which emptied an existing receipt on every paste of the block. The line
  keeps the command; the text above says to keep the receipt.
- CONTRIBUTING's "Fast structural checks; Python standard library only." and
  "Empty trial must not score 1.0; normally it scores 0.0." ran "Python ..."
  and "normally ..." as commands. Each ; is now a full stop.

Checked by pasting every shell block of the README, CONTRIBUTING, the starting
kit, submissions/README.md and hf-submission-lab.md into a stock zsh (no user
rc files, python3 stubbed): every command gets exactly its arguments.
@xdotli
xdotli merged commit bcbaffb into main Sep 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant