How the agent in ptp-proj builds one hard physics task: where it checks difficulty, where it reads the knowhow, how it validates locally and where humanizing fits.
Black arrows are the normal path. Red dashed arrows are the loops back, and most of the time goes into them.
| Step | What the agent does | Tool or file |
|---|---|---|
| 1 See what exists | Prints the session id, the task this session owns and every task's one-line topic. | scripts/tasks.py list |
| 2 Claim folder | Takes the next number under a file lock and makes tasks/NNN-domain/ with empty field files. One task per session, write only in your own folder, scratch work in work/. | tasks.py claim --domain "..." |
| 3 Choose problem | Writes at least 5 candidates, drops duplicates, then ranks by: provable two ways, hard in the physics, not known, hard to guess, fair. Writes the topic: line and runs list again. | task.md, lessons file |
| 4 Build task | Solves it in work/ until two routes agree, then answer code, answer-only code, template, statement, derivation, tests, wrong-answer files, name. | verify.py --fill |
| 5 Test difficulty | Runs blind attempts on the bare statement and template, the same way the site does. | gate.py or stand-in agents |
| 6 Verify and review | Clears every BLOCK, reads the site's check list, sends a fresh reviewer agent over the folder. | verify.py, audit checklist |
| 7 Hand over or revise | Sets status: ready and reports fields, name, domains, rtol, atol, precision choice and honest screen counts. If the site says too easy, revises. | task.md, site advice files |
Think of the agent as a teacher writing one exam question for AI students. The answer is one number. The question must be fair, the official answer must be right, and the strong AI must fail it most of the time.
| Student | Tries | Result |
|---|---|---|
| Luna (weak) | 1 | If Luna solves it, the question is too easy and the check stops. |
| Neon (strong) | 8 | Solved 0, 1 or 2 times: pass. Solved 3 or more times: too easy. |
Each submission costs time, so the agent first runs a practice exam on your machine. Opus 5.5 plays Neon and Codex plays Luna. Only a question that survives the practice exam is submitted.
a) Write ideas, drop the obvious ones. The agent listed 7 problems and dropped 6 before writing any code. Saffman-Taylor finger width went because the answers are in published tables. Burgers turbulence went because a simple simulation can check the answer.
b) Quick quiz with no tools. The agent asks Opus how it would solve the problem, with no code allowed.
c) Practice exam with tools. Two Opus stand-ins get only the question and the empty template.
What a real pass looked like: task 005, design 7. A random walk on a grid may never touch one spot. What is the chance its path goes through another spot, as the grid grows without end? The value for a finite grid creeps toward the answer very slowly; it even overshoots and turns back near grid size 2560. One stand-in computed exact small-grid values and guessed the limit. It missed by 0.0001 while the tolerance is 0.000001, so it failed. Both stand-ins failed, and then the site passed it.
1. The lessons file, a diary of earlier runs:
| Tried | What happened |
|---|---|
| Next coefficient of a formula (005, designs 1 to 4) | Luna solved it |
| Famous result with one assumption quietly removed (006) | The AIs knew the rare papers too |
| Pick the best shape from a list (007) | A jump in the answer showed the missing shape |
| Exact small cases, but a very slow limit (005, design 7) | Passed |
2. The site's "How to make this task harder" report. A real line from task 001:
"The explicit thermodynamic-limit definition most likely exposed the central trap."
It quoted the words in the statement that gave the trap away ("where the limit is taken with") and suggested adding a second interaction to remove the shortcut. The agent turns each item into a fix.
3. The stand-ins' own work. After A2 the agent read how they won: they used the general formula at frequencies extremely close to critical as a checker. Lesson for the next design: take that checker away.
For task 010 the agent wrote one line per hand-out: the wording names no method; the tilt is an input; no closed form; three regimes in the inputs; no known case to anchor on; the only checker is a slow simulation.
| Check | What it means | Result |
|---|---|---|
| Two reference codes | answerCode.py and answerOnlyCode.py solve it two different ways | 600 random inputs agree to 1.2e-9 (tolerance 1e-6) |
| A third method | bem.py, a completely different numerical method | Agrees to 1e-7 |
| Known case | A square at the ordinary setting must give the textbook 4.75376 | Matches |
verify.py | Machine checks on files and format | 0 BLOCK, 0 WARNING, 55 tests |
| Wrong answers | Deliberately wrong solutions, built from common mistakes | Each fails 34 to 55 of 55 tests, so the tests catch mistakes |
| Stand-ins as checkers | Their independent answers on A2 | Agree to 1e-15 |
verify.py blocks, for example: Python code inside the statement, a library the site lacks, a different number on a second run, an email address or local path in a file. It warns when one test takes over 10 seconds, because on task 005 the site's answer check failed 3 times on a reference that took 13 seconds per call.
The create-new-task skill has no humanize step; humanism.md is a note from another project. The checker in the Humanize section further down looks for dashes, curly quotes, headers like "Context:" and words like comprehensive, robust or leverage.
Real results
16–18 in a table on line 154. Fix: 16 to 18.Word swaps from humanism.md
Before: We utilize a comprehensive method to ensure the result is robust.
After: We use a full method to check the result is solid.
The site tries only the main problem. The task must beat the first model once and the second model at least 6 times in 8. Every failure has to be a physics failure, not a missing package or an unclear format.
instruction.md still says Gemini 4 Carbon; the skills say to read that as Neon.| Site model | Local stand-in | How far to trust it |
|---|---|---|
| Luna (weak-1) | gate.py run weak-1 through Codex CLI, or a weaker subagent | A solve means too easy. A failure proves nothing: run weak-2 and weak-3 too. |
| Neon (strong-1..8) | Agent with model: opus, effort: high, given only the gate.py prompt text | A solve means too easy. 0 to 2 of 8 is an estimate of a pass, not proof. |
gate.py prepare tasks/NNN-x tasks/NNN-x/work/screen1 gate.py run .../weak-1 # Luna first gate.py prompt .../strong-1 # blind prompt for Opus high gate.py grade tasks/NNN-x .../screen1
Screen the bare statement and template before writing any reference code. Most ideas die here and it costs only waiting time. Use effort high, not xhigh: xhigh runs died on the 128k output limit.
| Result | What it means | What to do |
|---|---|---|
| Attempt solves | Find its route: one formula, dimensional analysis, brute-force numerics, a hint in the text. | Make the shortcut give a wrong number. Harder physics, not heavier computing. |
| Fails on physics | The wanted result. | Check a wrong-answer file predicted it. If not, add one. |
| Fails on setup | Unclear statement, missing convention, format, time-out. | A defect in the task. Fix and run that attempt again. |
| Reports an assumption | A gap in the statement. | Close each one. |
| All fail the same way | Maybe they are right and your reference is wrong. | Recheck both routes against their argument first. |
| When | Read | What you get |
|---|---|---|
| Before choosing (step 3) | references/lessons-from-earlier-sessions.md | The only passing recipe, the designs that failed, probe tips. CLAUDE.md makes this required. |
| Duplicate check | tasks.py list and other tasks' task.md | Topics already taken, and each task's candidate list and screen history. |
| Reading rollouts | phase-two-difficulty-review/SKILL.md | The six hand-outs and ten difficulty knobs, each with its fairness rule. |
| Came back too easy | references/site-advice-task-001.md, -002.md | Two real site reports word for word, and how they were mapped. |
| Writing any field | instruction.md | The site's rules and the list of what gets a task sent back. |
These come from the two site reports. The last two matter most, because with an anchor or an oracle the solver repairs its own mistakes.
| Hand-out | Example from a report | How to deny it |
|---|---|---|
| Wording states the trap | Task 001 spelled out the order of limits | Difficulty must not sit in one definition |
| Simplest model | Nearest-neighbour term reduced to closed form | Generic form: second coupling at a stated ratio |
| Ready toolkit | Drude spectrum with known transforms | A form chosen for the physics, not for short algebra |
| One regime | Same Fermi sea at every input | Input box that crosses a transition |
| Anchor | Equal temperatures gave a known state | No special line or limit inside the box |
| Oracle | Small exact calculation checked every piece | Cheap numerics stop far above the tolerance |
answerCode.py. Never type a value by hand. Inputs cover every corner of the box, end values, equal-parameter points and one per code branch.$$, no code or answer( in the statement, no e-mail or local path. Code: clean top level, sandbox imports only, one answer with docstring, same signatures. Refs pass, repeat, agree within 1/10 of tolerance. Stub must fail.work/wrong/. Each must fail at least one case, ideally most. Also grades blind attempts.verify.py inside the ptp-sandbox container: Python 3.13, no network. Time references with one thread; the site failed a 13 s call.Two site warnings to plan for. Coverage (TC-02) wants all corners and symmetry points. Unreached branches (RS-05) warns about every safeguard no valid input triggers, so leave those out.
humanism.md was written for another project and nothing in the PTP skills calls it. This is how it fits here.
problemStatement.mdderivation.mdinstruction.md (the site's guide)| Instead of | Write |
|---|---|
| ensure | check |
| leverage / utilize | reuse / use |
| comprehensive / robust | full / solid |
| crucial | important |
| substantial | large |
| in the event that | in case of |
Also: no em dashes, no labels like "Context:", mixed sentence lengths, no bold-then-colon lead-ins, answer directly.
Skip the "make mistakes" idea (dropped articles, grammar slips) for physics statements. The fairness audit blocks any sentence with two readings, and a dropped "the" or "a" can create one.
import re, sys, pathlib
# usage: python3 humanize_check.py tasks/010-fluid-dynamics
TELLS = {"em dash": "\u2014", "en dash": "\u2013", "curly quote": "\u2019", "curly dquote": "\u201c"}
SCAFFOLD = r"(Setting|Context|Background|What just happened|Your task|Objective):"
REGISTER = r"\b(comprehensive|robust|leverage|delve|crucial|seamless|holistic|furthermore|moreover|additionally|utilize|ensure that|it is important)\b"
folder = pathlib.Path(sys.argv[1])
for name in ("problemStatement.md", "derivation.md"):
f = folder / name
if not f.exists():
continue
text = f.read_text(encoding="utf-8")
counts = {k: text.count(v) for k, v in TELLS.items()}
counts["scaffold label"] = len(re.findall(SCAFFOLD, text))
counts["register word"] = len(re.findall(REGISTER, text, re.I))
bad = {k: v for k, v in counts.items() if v}
print(f"{name}: {'CLEAN' if not bad else bad}")
for n, line in enumerate(text.splitlines(), 1):
if any(t in line for t in TELLS.values()) or re.search(REGISTER, line, re.I):
print(f" line {n}: {line.strip()[:110]}")
Run on 2026-12-04: every task statement is clean. The derivations of tasks 002 and 010 have en dashes, used in number ranges like 16–18; "16 to 18" also works.
| Item | State | Effect |
|---|---|---|
| Python and 4 packages | present | verify.py runs directly (in /root/.venv) |
| Docker, ptp-sandbox image | present | gate.py refs and grade work |
| Codex CLI, signed in | present | gate.py run weak-* (Luna) should work |
| Gemini CLI | missing | strong attempts use Opus 5.5 high stand-ins |
| Tasks | 005 submitted, passed site | 010 in progress (design A1 too easy, A2 being screened); 008 has no design yet; the rest in progress |
phase-two-* skills are half edited and contradict themselves. create-new-task overrides them: AI drafting is allowed (your decision of 2026-11-22)..claude/skills/, so Claude Code does not load them as skills.gate.py defaults to xhigh (GATE_LUNA_EFFORT).gemini-4-neon was never tested; this matters only once a Gemini CLI is installed.