PTP task agent workflow

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.

One session builds one task in seven steps

Black arrows are the normal path. Red dashed arrows are the loops back, and most of the time goes into them.

too easy: make the physics harder unclear text BLOCK, or a wrong answer passes: fix submit Site checks quality, Luna, Neon too easy Too easy report site's advice map to 6 hand-outs Revise step 7 new design, screen first pass: reviewer, approved normal path go back and fix
After three redesigns of one problem without passing, the agent drops it and picks the next candidate from step 3. Steps 1 and 2 run once; everything from step 3 on can repeat.
StepWhat the agent doesTool or file
1 See what existsPrints the session id, the task this session owns and every task's one-line topic.scripts/tasks.py list
2 Claim folderTakes 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 problemWrites 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 taskSolves 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 difficultyRuns blind attempts on the bare statement and template, the same way the site does.gate.py or stand-in agents
6 Verify and reviewClears every BLOCK, reads the site's check list, sends a fresh reviewer agent over the folder.verify.py, audit checklist
7 Hand over or reviseSets 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 plain version, with real examples

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.

How the site grades the question

StudentTriesResult
Luna (weak)1If Luna solves it, the question is too easy and the check stops.
Neon (strong)8Solved 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.

Track record: every design so far on two tasks

Task 005 Mathematical Physics Task 010 Fluid Dynamics (today) too easy passed the site open
Task 005 went around the loop seven times before it passed. Task 010 has gone around three times and is still too easy, so it was not submitted.

Step 1. Check difficulty: task 010

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.

  • Design B (vorticity inside an ellipse): full correct plan in 4 minutes. Dropped, nothing built.
  • Design A (tilted box shaking in a layered fluid): 11 minutes, guessed 2.0 where the truth is 1.58287, rated its own chance at 30%. Worth a full test.

c) Practice exam with tools. Two Opus stand-ins get only the question and the empty template.

  • A1: both solved 55 of 55 in about 15 minutes. Too easy.
  • A2 (frequency fixed at the critical value, where the usual math breaks): both solved it in about 45 minutes. Local Luna failed 0 of 39. Still too easy.

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.

Step 2. Find the knowhow: three sources

1. The lessons file, a diary of earlier runs:

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

Step 3. Local validation: real numbers from task 010, A1

CheckWhat it meansResult
Two reference codesanswerCode.py and answerOnlyCode.py solve it two different ways600 random inputs agree to 1.2e-9 (tolerance 1e-6)
A third methodbem.py, a completely different numerical methodAgrees to 1e-7
Known caseA square at the ordinary setting must give the textbook 4.75376Matches
verify.pyMachine checks on files and format0 BLOCK, 0 WARNING, 55 tests
Wrong answersDeliberately wrong solutions, built from common mistakesEach fails 34 to 55 of 55 tests, so the tests catch mistakes
Stand-ins as checkersTheir independent answers on A2Agree 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.

Step 4. Humanize: make it read like a person wrote it

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

  • All problem statements: clean.
  • Task 002 derivation: 17 en dashes, for example 16–18 in a table on line 154. Fix: 16 to 18.
  • Task 010 derivation: 1 en dash.

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.

Difficulty is a three-stage gate, copied locally

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.

GPT-6 Luna 1 try Gemini 4 Neon 3 tries Neon again 5 more tries PASS 0 to 2 of 8 fails 0 or 1 solve ≤ 2 of 8 solves 2 or 3 solve 3 or more of 8 TOO EASY TOO EASY TOO EASY
The site's gate since the team's note of 2026-11-28. instruction.md still says Gemini 4 Carbon; the skills say to read that as Neon.

Who plays each model locally

Site modelLocal stand-inHow far to trust it
Luna (weak-1)gate.py run weak-1 through Codex CLI, or a weaker subagentA 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 textA solve means too easy. 0 to 2 of 8 is an estimate of a pass, not proof.

Order of a local screen

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.

Reading the attempts

ResultWhat it meansWhat to do
Attempt solvesFind 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 physicsThe wanted result.Check a wrong-answer file predicted it. If not, add one.
Fails on setupUnclear statement, missing convention, format, time-out.A defect in the task. Fix and run that attempt again.
Reports an assumptionA gap in the statement.Close each one.
All fail the same wayMaybe they are right and your reference is wrong.Recheck both routes against their argument first.

Knowhow lives in five places, each read at its own step

WhenReadWhat you get
Before choosing (step 3)references/lessons-from-earlier-sessions.mdThe only passing recipe, the designs that failed, probe tips. CLAUDE.md makes this required.
Duplicate checktasks.py list and other tasks' task.mdTopics already taken, and each task's candidate list and screen history.
Reading rolloutsphase-two-difficulty-review/SKILL.mdThe six hand-outs and ten difficulty knobs, each with its fairness rule.
Came back too easyreferences/site-advice-task-001.md, -002.mdTwo real site reports word for word, and how they were mapped.
Writing any fieldinstruction.mdThe site's rules and the list of what gets a task sent back.

What passed: task 005, design 7

  • No closed form, no special line inside the input box.
  • The answer is a limit that finite sizes never reach (a slow 1/ln R tail that overshoots).
  • Two barriers of different kinds: combinatorics, then an analytic limit.
  • Cheap oracles stop at 1e-3 to 1e-4; tolerance is 1e-6.
  • Short plain statement that names no method.

What failed, do not repeat

  • Leading or next-order coefficient of an expansion.
  • One known hard formula plus an anchor.
  • Minimum over a catalogue of shapes: a scan shows the jump.
  • Famous result with one assumption removed: models know the lore.
  • Any single "derive one theory, then compute" design: solved in 10 to 20 minutes.

The six hand-outs to deny the solver

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-outExample from a reportHow to deny it
Wording states the trapTask 001 spelled out the order of limitsDifficulty must not sit in one definition
Simplest modelNearest-neighbour term reduced to closed formGeneric form: second coupling at a stated ratio
Ready toolkitDrude spectrum with known transformsA form chosen for the physics, not for short algebra
One regimeSame Fermi sea at every inputInput box that crosses a transition
AnchorEqual temperatures gave a known stateNo special line or limit inside the box
OracleSmall exact calculation checked every pieceCheap numerics stop far above the tolerance

Local validation is five checks in a row

any problem: fix it, then run again from --fill
verify.py --fillWrites every expected output from 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.
verify.pyFiles and text: fences, $$, 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.
--candidateEach wrong route (naive formula, flipped sign, factor 2, rounded constant) in work/wrong/. Each must fail at least one case, ideally most. Also grades blind attempts.
gate.py refsThe same verify.py inside the ptp-sandbox container: Python 3.13, no network. Time references with one thread; the site failed a 13 s call.
Reviewer agentA fresh subagent reads the folder read-only, recomputes every number in the derivation and reads each sentence literally. Fix, then a second pass on the change list.

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.

Humanize the prose before the screen, never the physics

humanism.md was written for another project and nothing in the PTP skills calls it. This is how it fits here.

edited after? screen again
Same rule as humanism.md section 4: changing the text changes what is graded, so any screen done before the edit no longer counts.

Humanize these

  • Prose sentences of problemStatement.md
  • Prose of derivation.md
  • The task name

Never touch

  • Formulas, definitions, conventions, input ranges
  • The accuracy sentence: it must match rtol and atol exactly
  • Numbers, code, docstrings, test JSON
  • instruction.md (the site's guide)

Your swap list

Instead ofWrite
ensurecheck
leverage / utilizereuse / use
comprehensive / robustfull / solid
crucialimportant
substantiallarge
in the event thatin 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.

Detector for a task folder

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.

On this machine the Neon step runs on Opus stand-ins

ItemStateEffect
Python and 4 packagespresentverify.py runs directly (in /root/.venv)
Docker, ptp-sandbox imagepresentgate.py refs and grade work
Codex CLI, signed inpresentgate.py run weak-* (Luna) should work
Gemini CLImissingstrong attempts use Opus 5.5 high stand-ins
Tasks005 submitted, passed site010 in progress (design A1 too easy, A2 being screened); 008 has no design yet; the rest in progress

Four things in the files disagree