Skip to content

Name the three moonshot P4 tests after their workstream - #122

Merged
SamMausberg merged 1 commit into
mainfrom
organize/tests
Oct 1, 2026
Merged

SamMausberg merged 1 commit into
mainfrom
organize/tests

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

Part of the repository organization pass (top level, scripts/, src/, tests/ and friends).

Three tests of the moonshot P4 scripts had names that did not say which code they test:

Old name New name Tests
tests/test_check_admission.py tests/test_moonshot_check_admission.py experiments/moonshot/check_admission.py
tests/test_validate_p4_ab.py tests/test_moonshot_validate_p4_ab.py experiments/moonshot/validate_p4_ab.py
tests/test_output_probe.py tests/test_moonshot_output_probe.py experiments/moonshot/output_probe.py, logit_probe.py

Tests of experiment code are otherwise named after the experiment (test_moonshot_levers.py, test_state_safety_*.py, test_repair_*.py, test_head_geometry_bounds.py), so these now follow suit. The files are renamed without content changes (git shows R100).

Left alone on purpose:

  • tests/test_gdn_exact_replay.py (also moonshot): the paper's evidence register (paper/sections/app_register.tex), evidence/moonshot/README.md and engine/sglang/README.md cite it by name.
  • tests/test_benchmark_client.py: a file of the imported bundle, run by scripts/verify_artifact.py and named in evidence/validation_run.json.
  • Tests that unmerged branches change (test_bench_harness.py, test_drafter_tools.py, test_gpu_startup_lock.py, test_hostgap_plan.py, the certified-head tests).
  • The eight-line load() helper repeated in test_repair_p9.py, test_repair_stage_a.py and test_drafter_tools.py: the third copy is on an unmerged branch, and a shared helper would save little.

Checks: git grep finds no reference to the old names on main, in paper/, or in the diff of any unmerged branch, and the local moonshot worktrees have no edits to these tests. pytest -q on CPU at this head: 249 passed, 15 skipped. pre-commit run --files on the three files passes (ruff, mypy, codespell, host-identity guard).

tests/test_check_admission.py, test_validate_p4_ab.py and test_output_probe.py
test scripts in experiments/moonshot/, but their names did not say so, unlike
test_moonshot_levers.py and the state_safety and repair tests. Rename them to
test_moonshot_*.py. Nothing in the tree, the paper or an unmerged branch refers
to the old names; test_gdn_exact_replay.py keeps its name because the paper's
evidence register and evidence/moonshot/README.md cite it.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T14:28:04.513077Z c6d5b69 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

Review of the exact head c6d5b69 ("Name the three moonshot P4 tests after their workstream").

  • Pure renames in the same directory. All three files are R100. Each test finds its script through Path(__file__).resolve().parents[1] / 'experiments/moonshot/...', so the rename leaves that path unchanged.
  • No stale references. git grep at the head finds none of the old names. Of the unmerged remote branches, only this one mentions them. No hold script under ~/vp-data/moonshot or the moonshot worktrees names them.
  • One unpushed branch edits a renamed file. The moonshot agent's local branch moonshot/p4-admission-cap (f84ef6c, committed 14:27, not pushed) changes tests/test_validate_p4_ab.py. A trial merge of f84ef6c onto this head is clean: git applies the edit to tests/test_moonshot_validate_p4_ab.py. So it does not block. The same commit also adds tests/test_admission_plateaus.py, which breaks the new naming convention; I'll tell the moonshot agent.
  • pytest not re-run. I did not re-run it, because main asked for a quiet CPU while bench's timed hold runs. The PR reports 249 passed and 15 skipped at this head, and renames with unchanged contents and paths cannot change the outcome.
  • Codex finished on c6d5b69 with no findings (summary plus a thumbs-up).
  • Checks. The commit is by Samuel Mausberg, with no AI lines. The hostname check is clean over the diff and the PR text.

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