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 |
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.