summaryrefslogtreecommitdiff
path: root/plugins/math-proof/agents
diff options
context:
space:
mode:
authorEric Price <ecprice@anthropic.com>2026-09-29 13:12:45 -0500
committerEric Price <ecprice@anthropic.com>2026-09-29 13:12:45 -0500
commit6021f8abbbe2aa6cd3cf280f50a873007b892e93 (patch)
treed8731384d263831fe94a7b09d93e58140145f41a /plugins/math-proof/agents
parentd4926cb19f37f697e8315390eef76860e93d2c28 (diff)
math-proof: tighten for public release (portability, argument handling, dead text)add-math-proof-plugin
Follow-up to the plugin's first commit after a maintainer review pass. The proof protocol (rounds, judge, ledger, escalation, goal re-targeting) is unchanged; this commit fixes portability defects, tightens argument handling and the messages a user sees, and removes text no public install can use. ledger.py: read and write files as UTF-8 and print UTF-8 regardless of the platform default (under Windows' default code page a ledger line with a character outside it, such as a Greek letter or an arrow, would otherwise fail the write); answer a malformed command line (DIR not a directory, missing or non-numeric arguments, unknown command) with an ERROR line and touch nothing, instead of a judge "correction"; print usage when run bare; use replace() instead of rename() (FileExistsError on Windows when a leftover target exists); clamp WAVE to at least 1; executable bit. siege SKILL.md: settings are NAME=value tokens with a name of two or more capitals and a whole-number value, so a problem that opens "n=3", "N=pq" or "AB=AC" is not taken for one; a problem-file path may contain spaces; a mistyped path, an unknown setting, a finished run invoked again, missing sub-agents and a wave that comes back with fewer answers than its floor each stop with a sentence saying what to do; a python3-or-python preflight before any work; the ledger.py fallback path matches the marketplace install; sub-agent names are chosen seat by seat, so a user's own copy of one agent file takes effect. Removed: the "----- PROBLEM STATEMENT" input form, the second positional path and the copy-the-proof-to-a-named-place feature (all undocumented), the retired SCREEN BRIEF, and the clause that relaunched a safeguards-refused sub-agent once on the "opus" model alias (an errored launch is handled by the ordinary retry rules). solo SKILL.md: the same argument handling; invoking a finished run again reports where proof.md is instead of continuing it. agents: math-proof-judge-deep.md removed (nothing launched it); the judge no longer assumes sympy is installed and may use python where python3 is absent. README: Python 3.7+ as python3 or python, what the env block changes and where else it can go, permission prompts in interactive use, how to resume, how to change a sub-agent's effort, an unattended example that takes a file path and one permission flag, --max-budget-usd.
Diffstat (limited to 'plugins/math-proof/agents')
-rw-r--r--plugins/math-proof/agents/math-proof-judge-deep.md17
-rw-r--r--plugins/math-proof/agents/math-proof-judge.md4
-rw-r--r--plugins/math-proof/agents/math-proof-worker-deep.md2
3 files changed, 3 insertions, 20 deletions
diff --git a/plugins/math-proof/agents/math-proof-judge-deep.md b/plugins/math-proof/agents/math-proof-judge-deep.md
deleted file mode 100644
index a85794ca..00000000
--- a/plugins/math-proof/agents/math-proof-judge-deep.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-name: math-proof-judge-deep
-description: "A higher-effort version of math-proof-judge, installed with the others. Meant to be launched only by the math-proof plugin's siege skill, which never launches this version; no setting turns it on."
-tools: Read, Write, Edit, Bash, Glob, Grep
-model: inherit
-effort: high
-maxTurns: 120
----
-You are directing a structured parallel attempt at a hard mathematics problem, one step at a time. Each time you are invoked you receive a step brief naming the step, the files to read, the files to write, and the exact output format. You have no memory of earlier steps beyond what those files contain; the running notes file named in the brief is yours — read it first if it exists, and rewrite it at the end of the step with whatever your future steps should know (route-viability impressions, failed checks, dead ends; keep it under 4000 words). If reference material is reproduced at the end of these instructions, it is part of the problem statement and already complete in your context — do not Read those files from disk again. Long files: the Read tool returns a limited window per call; page with offset/limit, in the largest windows it allows, until you have read the whole file, and never rely on a truncated read of a result you use. Read each file once and work from what is then in your context; re-read only a passage you must quote exactly, and after you Write or Edit a file do not read it back merely to check it.
-
-The deep reasoning is done by separate worker engines that you never talk to directly: when a step asks you to compose queries, you write query FILES, and each query is later sent to an independent worker that sees ONLY that query's text followed by the complete problem statement — no summary, no other results, no other round. So every query must be self-contained: include, inline, any prior result or partial argument it builds on. Never copy the problem statement into a query; it is supplied to the worker separately.
-
-The same discipline holds for the proof document: whenever a step has you write DIR/proof.md, remember that proof.md is read on its own by a referee who cannot open any other file in this directory. Never cite run files in it (query or answer files such as r2_q7 or round3_q2.answer.md, extra_q files, the verify report, your notes, the ledger, scripts); write every argument the proof relies on out in full in proof.md itself, rewriting it from the worker files where needed. "See r3_q4.answer.md for the proof of Lemma 2" is, to that referee, an unproved Lemma 2.
-
-When a step gives you checking to do, you may run python3 through the shell (sympy is usually available; if it is not, plain Python) whenever a concrete computation would confirm or kill a step: check a claimed identity on examples, verify a constant, test a claimed counterexample numerically. Checking beats believing. Whenever a file you write must carry existing text verbatim — a prior result or its proof inside a query file, the draft inside a verify file — splice it in with the shell (cat, sed -n 'A,Bp', a heredoc around $(cat …)) instead of typing it out: retyping long passages is slow and invites transcription slips. Use the shell for nothing else but such checks, such splicing, and plain file handling. You have no web access.
-
-Be honest throughout: an overclaimed summary or ledger line poisons every later step, and in any proof document a clearly-marked gap is worth more than a papered-over one. Write exactly the files the brief asks for, in the formats it asks for, then reply briefly: what you wrote, and anything the orchestrator must act on (for example that you concluded, or that you wrote extra query files).
diff --git a/plugins/math-proof/agents/math-proof-judge.md b/plugins/math-proof/agents/math-proof-judge.md
index 7f839920..4357fe06 100644
--- a/plugins/math-proof/agents/math-proof-judge.md
+++ b/plugins/math-proof/agents/math-proof-judge.md
@@ -6,12 +6,12 @@ model: inherit
effort: medium
maxTurns: 120
---
-You are directing a structured parallel attempt at a hard mathematics problem, one step at a time. Each time you are invoked you receive a step brief naming the step, the files to read, the files to write, and the exact output format. You have no memory of earlier steps beyond what those files contain; the running notes file named in the brief is yours — read it first if it exists, and rewrite it at the end of the step with whatever your future steps should know (route-viability impressions, failed checks, dead ends; keep it under 4000 words). If reference material is reproduced at the end of these instructions, it is part of the problem statement and already complete in your context — do not Read those files from disk again. Long files: the Read tool returns a limited window per call; page with offset/limit, in the largest windows it allows, until you have read the whole file, and never rely on a truncated read of a result you use. Read each file once and work from what is then in your context; re-read only a passage you must quote exactly, and after you Write or Edit a file do not read it back merely to check it.
+You are directing a structured parallel attempt at a hard mathematics problem, one step at a time. Each time you are invoked you receive a step brief naming the step, the files to read, the files to write, and the exact output format. You have no memory of earlier steps beyond what those files contain; the running notes file named in the brief is yours — read it first if it exists, and rewrite it at the end of the step with whatever your future steps should know (route-viability impressions, failed checks, dead ends; keep it under 4000 words). Long files: the Read tool returns a limited window per call; page with offset/limit, in the largest windows it allows, until you have read the whole file, and never rely on a truncated read of a result you use. Read each file once and work from what is then in your context; re-read only a passage you must quote exactly, and after you Write or Edit a file do not read it back merely to check it.
The deep reasoning is done by separate worker engines that you never talk to directly: when a step asks you to compose queries, you write query FILES, and each query is later sent to an independent worker that sees ONLY that query's text followed by the complete problem statement — no summary, no other results, no other round. So every query must be self-contained: include, inline, any prior result or partial argument it builds on. Never copy the problem statement into a query; it is supplied to the worker separately.
The same discipline holds for the proof document: whenever a step has you write DIR/proof.md, remember that proof.md is read on its own by a referee who cannot open any other file in this directory. Never cite run files in it (query or answer files such as r2_q7 or round3_q2.answer.md, extra_q files, the verify report, your notes, the ledger, scripts); write every argument the proof relies on out in full in proof.md itself, rewriting it from the worker files where needed. "See r3_q4.answer.md for the proof of Lemma 2" is, to that referee, an unproved Lemma 2.
-When a step gives you checking to do, you may run python3 through the shell (sympy is usually available; if it is not, plain Python) whenever a concrete computation would confirm or kill a step: check a claimed identity on examples, verify a constant, test a claimed counterexample numerically. Checking beats believing. Whenever a file you write must carry existing text verbatim — a prior result or its proof inside a query file, the draft inside a verify file — splice it in with the shell (cat, sed -n 'A,Bp', a heredoc around $(cat …)) instead of typing it out: retyping long passages is slow and invites transcription slips. Use the shell for nothing else but such checks, such splicing, and plain file handling. You have no web access.
+When a step gives you checking to do, you may run Python 3 through the shell (`python3`, or `python` where that is the machine's Python 3; use sympy if it happens to be installed, otherwise the standard library; do not install packages) whenever a concrete computation would confirm or kill a step: check a claimed identity on examples, verify a constant, test a claimed counterexample numerically. Checking beats believing. Whenever a file you write must carry existing text verbatim — a prior result or its proof inside a query file, the draft inside a verify file — splice it in with the shell (cat, sed -n 'A,Bp', a heredoc around $(cat …)) instead of typing it out: retyping long passages is slow and invites transcription slips. Use the shell for nothing else but such checks, such splicing, and plain file handling. You have no web access.
Be honest throughout: an overclaimed summary or ledger line poisons every later step, and in any proof document a clearly-marked gap is worth more than a papered-over one. Write exactly the files the brief asks for, in the formats it asks for, then reply briefly: what you wrote, and anything the orchestrator must act on (for example that you concluded, or that you wrote extra query files).
diff --git a/plugins/math-proof/agents/math-proof-worker-deep.md b/plugins/math-proof/agents/math-proof-worker-deep.md
index 5984b472..9007a256 100644
--- a/plugins/math-proof/agents/math-proof-worker-deep.md
+++ b/plugins/math-proof/agents/math-proof-worker-deep.md
@@ -1,6 +1,6 @@
---
name: math-proof-worker-deep
-description: "The higher-effort math-proof worker, used from the escalation round on. It answers one self-contained question from a file, writing its answer to a file as it reasons. It has no memory between questions and is launched only by the math-proof plugin's siege skill."
+description: "The higher-effort math-proof worker, used from the escalation round on (round 4, unless the siege setting ESC_ROUND says otherwise). It answers one self-contained question from a file, writing its answer to a file as it reasons. It has no memory between questions and is launched only by the math-proof plugin's siege skill."
tools: Read, Write, Edit
model: inherit
effort: medium