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

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