Skill v1.0.0
currentAutomated scan100/100name: ml-theory-research-agent description: Orchestrate the full ML theory research workflow, including idea discovery, upgraded split proof workflow with global proof diagnostics and review, specialized final reviewers, checkpoints, tracker lifecycle, branch routing, and accepted-result copying. metadata: version: "1.0.0"
ML Theory Research Agent
Use this public controller skill for the full ML-theory research workflow. The controller owns workflow order, checkpoints, tracker lifecycle, worker provenance, retry routing, and accepted-result copying. Internal research and proof rubrics live in the producing or reviewing skills.
Responsibilities
- Orchestrate Workflow 1: literature survey, perspective selection, idea generation, and formalization.
- Orchestrate Workflow 2: split proof sketch, sketch review, global proof diagnostics, global proof review, step proof, step review, proof assembly, specialized final review, and aggregate final review.
- Enforce
RUN_MODE, defaulting tointeractive;RUN_MODE = autopilotapproves checkpoints by default but does not change perspective coverage. - Maintain
theory_tracker.md,proof_tracker.md,IDEA_REPORT.md,workflow_feedback.md, andworker_log.md. - Route local and final review outcomes to the smallest retry point.
- Copy accepted final artifacts into
results/perspective_M/idea_N/theory.
Inputs And Outputs
Required input:
$ARGUMENT
Optional input:
RESEARCH_BRIEF.md
RESEARCH_BRIEF.md refines or overrides $ARGUMENT; after the Workflow 1 merge, $ARGUMENT in this controller means the merged effective research direction. The merged effective research direction is subject to the Source-Direction Fidelity Contract in ../_shared/checklists/artifact-contracts.md; downstream workers must extract only constraints that are present or clearly implied, without assuming fixed brief headings.
Controller-owned outputs:
LITERATURE_SURVEY.mdPerspective_Selection.mdIDEA_REPORT.mdtheory_tracker.mdworkflow_feedback.mdworker_log.mdperspective_M/idea_N/proof_tracker.mdperspective_M/idea_N/proof_history/for non-binding archival copies of overwritten proof-stage artifacts- accepted artifacts under
results/perspective_M/idea_N/theory
Internal Skill Calls
/research-lit "$ARGUMENT"-> writesLITERATURE_SURVEY.md/perspective-select "$ARGUMENT"-> writesPerspective_Selection.md/subagent-idea-generator "$ARGUMENT"-> writesperspective_M/idea_N/idea.md, or returnsNO_VIABLE_IDEAwithout finalizing an idea when all candidates fail hard gates/idea-formalizer-> writesperspective_M/idea_N/setting.md/proof-sketch-> writesperspective_M/idea_N/proof_sketch.md/proof-sketch-review-> writesperspective_M/idea_N/proof_sketch_review.md/global-proof-> writesperspective_M/idea_N/global_proof.md/global-proof-review-> writesperspective_M/idea_N/global_proof_review.md/proof-step <Step ID>-> writesperspective_M/idea_N/proof_steps/<Step ID>/proof.md/proof-step-review <Step ID>-> writesperspective_M/idea_N/proof_steps/<Step ID>/review.md/proof-assembly-> writesperspective_M/idea_N/latex_template/andperspective_M/idea_N/assembly_report.md/proof-review-structural-> writesperspective_M/idea_N/proof_review_structural.md/proof-review-rigor-> writesperspective_M/idea_N/proof_review_rigor.md/proof-review-citation-> writesperspective_M/idea_N/proof_review_citation.md/proof-review-adversarial-> writesperspective_M/idea_N/proof_review_adversarial.md/proof-review-aggregate-> writesperspective_M/idea_N/proof_review.md
Slash-style calls are symbolic skill invocations. To invoke a skill, load its SKILL.md, provide the listed inputs through the assigned subagent, and verify the expected artifact.
Split Subagent Model
Before perspective branches, spawn or resume two distinct run-scoped subagents:
literature-workerfor/research-lit "$ARGUMENT"perspective-selectorfor/perspective-select "$ARGUMENT"
These run-scoped handles are required worker provenance for the full workflow, but they are not counted in the per-perspective 12 + 2k proof/idea distinctness gate.
For each approved perspective, spawn twelve distinct perspective-scoped subagents:
idea-workerfor/subagent-idea-generatorformalizerfor/idea-formalizersketch-workerfor/proof-sketchsketch-reviewerfor/proof-sketch-reviewglobal-proof-workerfor/global-proofglobal-proof-reviewerfor/global-proof-reviewassemblerfor/proof-assemblystructural-reviewerfor/proof-review-structuralrigor-reviewerfor/proof-review-rigorcitation-reviewerfor/proof-review-citationadversarial-reviewerfor/proof-review-adversarialreview-aggregatorfor/proof-review-aggregate
For each accepted sketch step, spawn two additional distinct step-scoped subagents:
step-workerfor/proof-step <Step ID>step-reviewerfor/proof-step-review <Step ID>
If an approved perspective has k sketch steps, the controller requires 12 + 2k distinct runtime-visible subagent handles for that perspective. Step-scoped handles are tied to one Step ID; do not reuse them for another step in the same sketch. Reruns may resume the same handle for the same role and step when available; otherwise spawn a replacement and record a handoff.
Before each delegated stage, append a row to worker_log.md using ../_shared/templates/worker-log.md. Do not run a delegated stage with an empty or invented handle.
Resolve ../_shared/... references relative to this skill directory (skills/ml-theory-research-agent/ in source form or the installed skill directory), not relative to the active run root.
Artifact Gates
Before consuming an artifact for routing, tracker updates, acceptance, or copying, validate it against ../_shared/checklists/artifact-contracts.md.
Required checks:
LITERATURE_SURVEY.mdkeeps the required literature-survey structure and does not contradict extracted source-direction constraints; when source-relevant constraints matter downstream, the survey keeps them visible in relation and gap prose.Perspective_Selection.mdcontains complete normalized perspective tuples and does not contradict extracted source-direction constraints; if normalization drops source-critical details, its gap or focus prose preserves them as residual context for idea generation.idea.mdpreserves required headings, concrete lineage notes, and support provenance in existingNotesfields; theorem-critical assumptions, procedures, protocols, and mechanisms are standard/literature-derived or novel example-verified, and every novel component names several branch-specific concrete verification examples. When source-direction constraints are present,idea.mdrecords source alignment, progress type, and materiality, and does not pass an unmarked weakening ornon_materialcandidate.setting.mdpreserves required headings, assigns a stable ASCII assumption id such asassump:smoothnessto every technical assumption, contains exactly one goal statement, preserves idea-level assumption-support provenance in# Note / Rigor, and preserves source-alignment and progress-type metadata when present.proof_sketch.mdexposes stable steps, exact claims, dependencies, assumptions, proof tools, theorem-critical mechanism-witness entries, exported-interface feasibility for downstream-facing theorem-critical outputs, including source-convention compatibility, object-target compatibility for theorem-critical entry/reference/baseline objects, same-target bridges with residual-to-target adequacy when the produced object is transformed, weighted, preconditioned, whitened, reference-operator-modified, or otherwise surrogate relative to the consumed target, and raw-assumption-to-interface feasibility for direct derivations, standard facts or tools, current-notation wrappers, and primitive-source derivations when applicable, baseline invariance obligations when present, obligation locality classification when theorem-critical hard obligations are visible, noncircular closure status when applicable, entry-state / first-update stress results when applicable, generated-output flow entries when theorem-facing generated outputs are consumed, and blockers.proof_sketch_review.mdcontains a controlled sketch-review status, integer sketch viability score, smallest retry target, retry mode, audit summary, early obstruction audit including the theorem-critical mechanism-witness gate, Exported Interface Feasibility Gate, Residual-To-Target Adequacy Gate when applicable, Baseline Invariance Obligation when applicable, Step-Locality And Theorem-Contract Gate, Noncircular Closure Gate, Entry-State / Activation Trace Gate, source-interface feasibility including source-convention compatibility and object-target compatibility for direct derivations, standard facts or tools, current-notation wrappers, and primitive-source derivations when applicable, same-target bridge checks with residual-to-target adequacy for transformed or surrogate produced objects, and generated-output flow when applicable, aGate Evidence Tablesatisfying the shared Gate Evidence Row Contract, blocking issues, required repair bundle, and rationale.global_proof.mdcontains a controlled global proof status, reviewed sketch identity, attempted theorem claim, detailed whole-proof draft, theorem-level block map, sketch-step coverage, dependency and assumption audit, citation and tool audit, quantitative dependence audit including baseline invariance obligations when present, scope and closure certificate covering theorem-critical mechanism witnesses, exported-interface feasibility for downstream-facing theorem-critical outputs, including source-convention compatibility, object-target compatibility for theorem-critical entry/reference/baseline objects, same-target bridges with residual-to-target adequacy for transformed or surrogate produced objects, and raw-assumption-to-interface feasibility for direct derivations, standard facts or tools, current-notation wrappers, and primitive-source derivations when applicable, obligation locality classification using onlystep-local,sketch/interface defect, oridea/theorem-contract defect, noncircular closure status when applicable, entry-state / first-update stress results when applicable, generated-output flow when applicable, early obstruction and repair-plausibility audit, global gaps and hard steps, diagnostic boundary note, and suggested routing.global_proof_review.mdcontains a controlled global-proof review status, smallest retry target, blocking issues, required repair bundle, contract and status audit, claim and sketch fidelity audit, theorem-level structure audit, dependency and assumption audit, citation and tool audit, quantitative dependence audit, scope and closure review with an independent theorem-critical mechanism-witness gate, Exported Interface Feasibility Gate, Residual-To-Target Adequacy Gate when applicable, source-interface feasibility including source-convention compatibility and object-target compatibility for direct derivations, standard facts or tools, current-notation wrappers, and primitive-source derivations when applicable, same-target bridge checks with residual-to-target adequacy for transformed or surrogate produced objects, and Baseline Invariance Obligation when applicable, aGate Evidence Tablesatisfying the shared Gate Evidence Row Contract, row-level obligation locality classification review, Noncircular Closure Gate, Entry-State / Activation Trace Gate, Step-Locality And Theorem-Contract Gate, and generated-output flow when applicable, hard-step localization audit, early idea-failure screen, and rationale.- every step proof and review artifact contains the required local proof and local review sections.
latex_template/contains the required content and support files and passes the self-contained paper-ready TeX gate.assembly_report.mdcontains a controlled assembly status, attempted claim, blockers, and notes.- the Assumption Provenance Contract passes for sketch, global proof, step, assembly, and final review artifacts.
- every specialized review artifact contains
Reviewer Verdict,Blocking Issues,Nonblocking Concerns,Suggested Repair Depth, andSmallest Candidate Repair Target. - aggregated
proof_review.mdcontainsScore,Failure Type,Critical Issues,Suggested Next Action, andRetry Mode. - accepted-result copying copies only
setting.md,latex_template/, andproof_review.md.
Hard controller gates:
MAX_*budgets are total allowed producer attempts, not retry counts. Do not run or accept attemptMAX + 1for any idea, sketch, global proof, step, or assembly producer.- Before any rerun overwrites a branch artifact path that has already been consumed for routing, tracker updates, acceptance checks, or accepted-result copying, copy the previous consumed file or directory into branch-local
proof_history/sketch_XXX/...under a stage-and-attempt-specific path. Preserve enough path structure to identify the original artifact, includingproof_steps/<Step ID>/...andlatex_template/when applicable. proof_history/is archival history only. It is never current proof evidence, never satisfies an artifact gate, and is never copied to accepted results.- Specialized final reviewers are diagnostic. After a specialized reviewer reports a blocker in a contract-valid artifact, any producer repair must be routed by
/proof-review-aggregate; the controller may rerun or hand off a specialized reviewer directly only when that diagnostic review artifact is missing or contract-invalid. - Finalization must fail if any budget gate, worker-provenance gate, artifact gate, or accepted-copy verification gate fails.
Initialization
Treat the current directory as the run root unless the user explicitly names another root.
Before running /research-lit:
- If
worker_log.mdis missing at the run root, initialize it with the table structure from../_shared/templates/worker-log.md. - If
workflow_feedback.mdis missing at the run root, initialize it from../_shared/templates/workflow-feedback.md. - If
theory_tracker.mdis missing at the run root, initialize it from../_shared/templates/theory-tracker.md. - If
IDEA_REPORT.mdis missing at the run root, initialize it from../_shared/templates/idea-report.md. - Preserve existing controller-owned files when present; do not rewrite or truncate prior run history during initialization.
- Do not append a
theory_tracker.mdbranch row during initialization. Append a normal viable-idea branch row only afteridea.mdpasses its checkpoint and the cross-perspective duplicate gate. Exception: if/subagent-idea-generatorreturnsNO_VIABLE_IDEAor the approvedidea.mdfails the cross-perspective duplicate gate, append the corresponding failed row for that consumedidea_Nslot immediately before routing to the next idea slot or marking the perspective exhausted.
Existing proof-stage artifacts are branch history. Do not delete them unless the user asks. On a rerun, use the latest relevant review or final review artifact as the triggering repair artifact.
Before a rerun overwrites any latest proof-stage artifact path that was previously consumed, archive that consumed artifact under proof_history/sketch_XXX/.... Do not archive by moving the live artifact; copy it, then let the producer overwrite the fixed path.
Control Parameters
RUN_MODE:interactiveorautopilot; defaultinteractiveand requires explicit user approval at checkpointsMAX_PERSPECTIVES = 3MAX_IDEA_VARIANTS_PER_PERSPECTIVE = 8MAX_SKETCH_ATTEMPTS_PER_IDEA = 6MAX_GLOBAL_PROOF_ATTEMPTS_PER_SKETCH = 3MAX_STEP_ATTEMPTS_PER_STEP = 3MAX_ASSEMBLY_ATTEMPTS_PER_SKETCH = 8ACCEPT_THRESHOLD = 7
Retry Mode is recorded only in proof_sketch_review.md and aggregated proof_review.md, and may be summarized in proof_tracker.md Reasons; do not add a proof-tracker column for it. global_proof.md records Status and Suggested Routing, not retry mode. global_proof_review.md records Global-Proof Review Status and Smallest Retry Target, not retry mode or a numeric score. Step-review and specialized review artifacts do not include Retry Mode: proof_steps/<Step ID>/review.md records Step-Review Status and Smallest Retry Target, and the controller derives step repair routing from those fields; specialized review artifacts provide diagnostic repair depth and candidate target for the aggregator only.
Retry Budget Rules
The controller owns retry budgets. Reviewer skills diagnose outcomes and retry targets but do not consume or update budgets.
- Each
MAX_*value is the total number of allowed producer attempts. Attempt1consumes the first budget slot; the controller must stop before dispatching attemptMAX + 1. Budget state is invalid if one perspective has more thanMAX_IDEA_VARIANTS_PER_PERSPECTIVEconsumed idea slots, or if any accepted proof-tracker row hasSketch attempt > MAX_SKETCH_ATTEMPTS_PER_IDEA, globalUnit attempt > MAX_GLOBAL_PROOF_ATTEMPTS_PER_SKETCH, stepUnit attempt > MAX_STEP_ATTEMPTS_PER_STEP, or assemblyUnit attempt > MAX_ASSEMBLY_ATTEMPTS_PER_SKETCH. MAX_IDEA_VARIANTS_PER_PERSPECTIVElimits idea-generation slots under one approved perspective.IDEA_FAILconsumes this budget by creating the nextidea_N;NO_VIABLE_IDEAconsumes the currentidea_Nslot without creating or accepting anidea.md; cross-perspective duplicate rejection consumes the currentidea_Nslot afteridea.mdcheckpoint approval but before formalization. Enforce the budget by counting alltheory_tracker.mdrows for that perspective withIdea attempt = idea_N, including failedNO_VIABLE_IDEAandDUPLICATE_IDEArows. Exhaustion ends the perspective branch.MAX_SKETCH_ATTEMPTS_PER_IDEAlimits proof-roadmap and decomposition attempts for one idea.Sketch attemptstarts at1; sketch-reviewREVISE_SKETCH, global-proof-reviewREVISE_SKETCH, and finalPROOF_SKETCH_FLAWconsume this budget by incrementingSketch attempt.MAX_GLOBAL_PROOF_ATTEMPTS_PER_SKETCHlimits/global-proofproducer attempts under the current accepted sketch. The first global diagnostic usesUnit attempt = 1;global-proof-reviewREVISE_GLOBALconsumes this budget by rerunning/global-proofwith the next globalUnit attemptunder the sameSketch attempt.MAX_STEP_ATTEMPTS_PER_STEPlimits attempts for oneStep IDunder the current sketch attempt.REVISE_STEPand finalPROOF_STEP_FLAWconsume the affected step'sUnit attemptbudget.BLOCKED_BY_DEPENDENCYconsumes the blocking dependency step'sMAX_STEP_ATTEMPTS_PER_STEPbudget, not the downstream step that reported the dependency block.MAX_ASSEMBLY_ATTEMPTS_PER_SKETCHlimits assembly attempts under the current accepted sketch. FinalPROOF_ASSEMBLY_FLAWconsumes the assemblyUnit attemptbudget./global-proof-reviewconsumes no producer budget itself.REVISE_GLOBALconsumes the global-proof attempt budget by rerunning/global-proofunder the same accepted sketch and sameSketch attempt.REVISE_SKETCHconsumes the sketch retry budget by rerunning/proof-sketch.IDEA_FAILconsumes the idea-generation budget by creating the next idea slot.- After any sketch revision, previous step proof/review and assembly artifacts from an earlier
Sketch attemptare stale for binding purposes. The controller must rerun/proof-stepand/proof-step-reviewfor every required step in the newly accepted sketch, in dependency order, before assembly. The only prior proof material that may be consulted is the latest prior relevant artifact for the same branch and same step or dependency, such as the latest previous same-step proof/review, latest previous dependency proof/review, or latest aggregate review that triggered repair. These artifacts may be used only as diagnostic or repair references when their claims, assumptions, and dependencies still match the current accepted sketch. Do not scan or rely on the full historical archive; acceptance requires fresh artifacts under the currentSketch attempt. - After any
/proof-step <Step ID>producer rerun, the previous acceptedproof_steps/<Step ID>/review.mdis stale unless itsSketch attempt,Step ID,Unit attempt, andReviewed proof artifactidentify the currentproof_steps/<Step ID>/proof.mdproduced by that rerun. The repaired step proof must pass a fresh/proof-step-review <Step ID>withStep-Review Status = ACCEPTEDbefore it can be consumed by downstream step reviews, assembly, specialized final reviews, aggregate review, or accepted-result copying. - The specialized final reviewer ensemble consumes no producer budget and does not route retries directly.
- Final
/proof-review-aggregateconsumes no budget itself. ItsSuggested Next Actionconsumes the controller-supported repair target's budget. - When a local step or assembly budget is exhausted, escalate to sketch revision. When sketch attempts are exhausted, escalate to a new idea. When idea-generation slots are exhausted, mark the branch failed.
- Before any
IDEA_FAILor retry-exhaustion route creates a freshidea_N, perform a minimal-delta check: identify the failed needed property, any failed baseline invariance obligation, and which prior primitive assumption, algorithm/model/procedure, theorem scope/mode/metric, exposed dependence, success criterion, or mechanism source, including any theorem-facing mechanism source not supported by the setting, is implicated, or whether weakening the conclusion is implicated. Prefer the smallest idea/formalization repair that keeps unaffected idea structure intact, including inherited baseline/recovery conclusions unless the triggering failure explicitly made their weakening target-changing. First preserve any review-allowed same-setting sketch repair when the route is not a validIDEA_FAIL; after a validIDEA_FAIL, treat primitive-assumption, theorem-contract, or target changes as idea repair rather than as repair of the existing proof artifacts, and create a materially new idea only when the implicated repair cannot preserve the prior branch structure. A target-changing drift afterIDEA_FAIL, retry exhaustion, or explicit checkpoint feedback must remain the smallest change justified by the failure record and must preserve source-direction metadata and remaining-gap labeling.
Workflow 1: Idea Discovery
- Read
$ARGUMENT; ifRESEARCH_BRIEF.mdexists, merge it with$ARGUMENT, with the brief taking priority. All later/research-lit "$ARGUMENT",/perspective-select "$ARGUMENT", and/subagent-idea-generator "$ARGUMENT"calls use this merged effective argument. Apply the Source-Direction Fidelity Contract to downstream Workflow 1 artifacts: extract constraints from available prose only when present or clearly implied, and do not assume fixedRESEARCH_BRIEF.mdheadings. - Spawn or resume the run-scoped
literature-worker, append aworker_log.mdrow withBranch Path = run,Stage = literature-survey, andNotescontainingscope=run, then run/research-lit "$ARGUMENT"and checkpointLITERATURE_SURVEY.md. - Spawn or resume the run-scoped
perspective-selector, append aworker_log.mdrow withBranch Path = run,Stage = perspective-selection, andNotescontainingscope=run, then run/perspective-select "$ARGUMENT"and checkpointPerspective_Selection.md. - Launch all approved perspectives as active branches before proof work monopolizes any one branch: create every approved
perspective_M/, allocate each initialidea_1slot, spawn each distinctidea-worker, and dispatch/subagent-idea-generator "$ARGUMENT"for all approved perspectives when the runtime supports parallel delegation. If true parallel delegation is unavailable, use fair round-robin scheduling across active perspectives and do not run one perspective to acceptance, exhaustion, or hard-gate termination before launching or advancing the others. - As each active perspective branch's idea worker returns
NO_VIABLE_IDEA, do not checkpoint that branch'sidea.mdand do not run/idea-formalizerfor that branch. Append exactly one failedtheory_tracker.mdrow for the consumed branch-localidea_Nslot withSetting = N/A,Goal = N/A,Setting Signature = N/A,Goal Signature = N/A,Status = Fail,Best Scoreempty or0, andReasons = NO_VIABLE_IDEA: <compact gate-failure reasons>; if that perspective's idea budget remains, route that branch to the nextidea_Nusing those compact gate-failure reasons as feedback, otherwise mark only that perspective branch exhausted. - For each active perspective branch whose worker produces an
idea.md, checkpoint that branch-localidea.md; on approval, run the cross-perspective duplicate gate for that branch. - If the cross-perspective duplicate gate rejects an approved branch-local
idea.md, do not run/idea-formalizerfor that branch and do not include that branch inIDEA_REPORT.md. Append exactly one failedtheory_tracker.mdrow for the consumed branch-localidea_Nslot withSetting,Goal,Setting Signature, andGoal Signaturefilled from the generatedidea.mdusing the same normalized summaries used for viable idea rows,Status = Fail,Best Scoreempty or0, andReasons = DUPLICATE_IDEA: matches <perspective_M/idea_N>; <compact duplicate reason>; if that perspective's idea budget remains, route that branch to the nextidea_Nusing that duplicate reason as feedback, otherwise mark only that perspective branch exhausted. - For each viable non-duplicate branch-local idea, append the normal
theory_tracker.mdrow only after that branch'sidea.mdpasses checkpoint and duplicate gate. - Keep
IDEA_REPORT.mdas a current snapshot of active non-duplicate branches.
Checkpoint actions:
- In
RUN_MODE = interactiveor whenRUN_MODEis unspecified, stop at each checkpoint and ask the user forapprove/proceed,edit, orre-generate/re-search. approveorproceed: continue.edit: apply the requested edits to the current artifact, then checkpoint again.re-generateorre-search: persist feedback inworkflow_feedback.md, rerun the producing skill, then clear the feedback section.RUN_MODE = autopilot: choose approve/proceed. Autopilot approval does not authorize first-attempt target weakening or source-scope drift; first ideas still follow the Source-Direction Fidelity Contract, and later drift requires valid failure evidence, retry exhaustion, or explicit checkpoint feedback. Autopilot also does not stop the run after the first accepted branch; launch all approved perspectives as active branches and continue them unless the user explicitly requested a first-success search.
Workflow 2: Split Theory Proof
Workflow 2 runs one active proof branch per approved perspective whose current idea passed duplicate checks. Keep these perspective branches active in parallel when the runtime supports it; otherwise advance them by fair round-robin scheduling. Branch-local retries consume only that branch's budgets. Acceptance and finalization are branch-local: after one branch is accepted and copied, continue every remaining approved perspective until that perspective is accepted, exhausted, or blocked by a hard gate, unless the user explicitly requested a first-success search.
Phase 1: Formalization
Spawn or resume the perspective's distinct formalizer, then invoke:
/idea-formalizer
Inputs:
perspective_M/idea_N/idea.mdthat has passed the support-provenance artifact gate- optional
LITERATURE_SURVEY.md - optional branch-local files under
perspective_M/
Output:
perspective_M/idea_N/setting.md
Checkpoint setting.md, including the compact assumption-support summary in # Note / Rigor. When accepted, initialize perspective_M/idea_N/proof_tracker.md from the shared proof-tracker template.
Phase 2: Proof Sketch
Spawn or resume the perspective's distinct sketch-worker, append a proof-tracker row with Sketch attempt = current sketch attempt, Unit type = sketch, Unit id = sketch, Unit attempt = 1, and Score = N/A, then invoke:
/proof-sketch
Inputs:
perspective_M/idea_N/setting.mdperspective_M/idea_N/proof_tracker.md- optional
idea.md,LITERATURE_SURVEY.md,theory_tracker.md,technical_survey.md, and prior same-perspective artifacts - on reruns, the triggering
proof_sketch_review.md,global_proof.md,global_proof_review.md,proof_steps/<Step ID>/review.md, or aggregatedproof_review.md - on reruns, controller-provided
Retry Mode:revise_sketch
Outputs:
perspective_M/idea_N/proof_sketch.md- optional
perspective_M/idea_N/technical_survey.md
The sketch must expose stable step IDs, intended claims, dependencies, assumptions, proof tools or cited results, theorem-critical mechanism-witness entries, exported-interface feasibility for downstream-facing theorem-critical outputs, source-convention compatibility, object-target compatibility for theorem-critical entry/reference/baseline objects, same-target bridges with residual-to-target adequacy when the produced object is transformed, weighted, preconditioned, whitened, reference-operator-modified, or otherwise surrogate relative to the consumed target, and raw-assumption-to-interface feasibility for direct derivations, standard facts or tools, current-notation wrappers, and primitive-source derivations when applicable, obligation locality classification when theorem-critical hard obligations are visible, noncircular closure status when applicable, entry-state / first-update stress results when applicable, generated-output flow entries when theorem-facing generated outputs are consumed, and blockers.
Phase 3: Proof Sketch Review
Spawn or resume the perspective's distinct sketch-reviewer, then invoke:
/proof-sketch-review
Inputs:
perspective_M/idea_N/setting.mdperspective_M/idea_N/proof_sketch.md- optional lineage, tracker, and technical-survey artifacts
Output:
perspective_M/idea_N/proof_sketch_review.md
After proof_sketch_review.md passes its artifact gate, fill the open sketch proof-tracker row with Score = N/A, Review outcome = <sketch review status>, Retry target = <Smallest Retry Target>, and Status = Accept only for ACCEPTED; otherwise set Status = Fail.
Route sketch-review status:
ACCEPTED: count sketch steps ask, prepare the12 + 2kworker-provenance plan, then proceed to global proof.REVISE_SKETCH: requireRetry Mode = revise_sketch; ifMAX_SKETCH_ATTEMPTS_PER_IDEAremains, incrementSketch attemptand rerun/proof-sketch; otherwise route to idea revision or branch exhaustion.IDEA_FAIL: requireSmallest Retry Target = /subagent-idea-generator,Retry Mode = new_idea, and an explicit rationale explaining why same-setting sketch repair cannot preserve the current formalized setting and goal and identifying the required theorem-contract change: changed primitive assumptions, changed algorithm/model/procedure, changed theorem scope/mode/metric, changed exposed dependence, changed success criterion, adding a theorem-facing mechanism source not supported by the setting, or weakening the conclusion. If that rationale is missing, treat the review artifact as contract-invalid and rerun or hand off/proof-sketch-review. If valid andMAX_IDEA_VARIANTS_PER_PERSPECTIVEremains, route to idea revision with the triggeringproof_sketch_review.mdas prior failure evidence; otherwise mark branch exhaustion.
Phase 4: Global Proof
After the sketch review is accepted, spawn or resume the perspective's distinct global-proof-worker, append a proof-tracker row with Sketch attempt = current sketch attempt, Unit type = global, Unit id = global, Unit attempt = next global proof attempt under the current sketch attempt starting at 1, and Score = N/A, then invoke:
/global-proof
Inputs:
setting.md- accepted
proof_sketch.md - accepted
proof_sketch_review.md - optional prior failures and tracker history
Output:
perspective_M/idea_N/global_proof.md
The global proof artifact must be a detailed theorem-level diagnostic draft, not a short sketch summary. It must expose the attempted claim, theorem-level block map, step coverage, dependency and assumption audit, cited-tool obligations, source-convention compatibility, object-target compatibility for theorem-critical entry/reference/baseline objects, same-target bridges with residual-to-target adequacy when the produced object is transformed, weighted, preconditioned, whitened, reference-operator-modified, or otherwise surrogate relative to the consumed target, and raw-assumption-to-interface feasibility for direct derivations, standard facts or tools, current-notation wrappers, and primitive-source derivations when applicable, quantitative-dependence obligations when relevant, scope-and-closure certificate for all entries covered by the Theorem-Critical Mechanism Witness Gate, exported-interface feasibility and raw-control-to-exported-interface paths for downstream-facing theorem-critical outputs, obligation locality classification for theorem-critical hard obligations, noncircular closure status when applicable, entry-state / first-update stress results when applicable, generated-output flow when applicable, and diagnostic boundary note required by the shared artifact contract. global_proof.md may label candidate idea-level evidence, but only global_proof_review.md can route that evidence to /subagent-idea-generator.
After global_proof.md passes its artifact gate, spawn or resume the perspective's distinct global-proof-reviewer, append a worker-log row, then invoke:
/global-proof-review
Inputs:
setting.md- accepted
proof_sketch.md - accepted
proof_sketch_review.md global_proof.md- optional prior failures and tracker history
Output:
perspective_M/idea_N/global_proof_review.md
After global_proof_review.md passes its artifact gate, fill the open global proof-tracker row with Score = N/A, Review outcome = <Global-Proof Review Status>, Retry target = <Smallest Retry Target>, and Status = Accept only for ACCEPTED; otherwise set Status = Fail. Do not copy any global-proof or global-proof-review diagnostic score into the tracker.
Route global-proof-review status:
ACCEPTED: requireSmallest Retry Target = None, then continue to step proof usingglobal_proof.mdonly as accepted diagnostic context.REVISE_GLOBAL: requireSmallest Retry Target = /global-proof; ifMAX_GLOBAL_PROOF_ATTEMPTS_PER_SKETCHremains, append a new global proof-tracker row with the next globalUnit attempt, rerun/global-proofunder the same accepted sketch and sameSketch attempt, then rerun/global-proof-review. If the global proof budget is exhausted, escalate to/proof-sketchwithRetry Mode = revise_sketchif the sketch budget remains; otherwise route to idea revision or branch exhaustion.REVISE_SKETCH: requireSmallest Retry Target = /proof-sketch; ifMAX_SKETCH_ATTEMPTS_PER_IDEAremains, incrementSketch attemptand rerun/proof-sketchwithRetry Mode = revise_sketchand the triggeringglobal_proof_review.md; otherwise route to idea revision or branch exhaustion.IDEA_FAIL: requireSmallest Retry Target = /subagent-idea-generatorand an explicit rationale explaining why same-setting sketch repair cannot preserve the current formalized setting and goal and identifying the required theorem-contract change: changed primitive assumptions, changed algorithm/model/procedure, changed theorem scope/mode/metric, changed exposed dependence, changed success criterion, adding a theorem-facing mechanism source not supported by the setting, or weakening the conclusion. If that rationale is missing, treat the review artifact as contract-invalid and rerun or hand off/global-proof-review. If valid andMAX_IDEA_VARIANTS_PER_PERSPECTIVEremains, route to idea revision with the triggeringglobal_proof_review.mdas prior failure evidence; otherwise mark branch exhaustion.
global_proof.md is diagnostic. It must not replace accepted step proofs, justify assembly acceptance, or change sketch-step claims without routing back through accepted global_proof_review.md and then /proof-sketch.
Phase 5: Step Proof And Step Review
Run steps in dependency order. A step may start only after all listed dependencies have accepted reviews.
For each Step ID, spawn or resume the distinct step-scoped step-worker, append a proof-tracker row with Sketch attempt = current sketch attempt, Unit type = step, Unit id = <Step ID>, Unit attempt = next attempt for this Step ID under the current sketch attempt, and Score = N/A, then invoke:
/proof-step <Step ID>
Inputs:
setting.mdproof_sketch.md- accepted
proof_sketch_review.md - optional accepted diagnostic
global_proof.mdwhen paired with acceptedglobal_proof_review.md - accepted
global_proof_review.mdwhenglobal_proof.mdis provided - target
Step ID - accepted dependency step proof/review artifacts, when dependencies exist
- on reruns, triggering same-step
proof_steps/<Step ID>/review.md, downstreamproof_steps/<Downstream Step ID>/review.mdnaming this step as the failed dependency, or aggregatedproof_review.mdwhen repairing a step
Output:
proof_steps/<Step ID>/proof.md
Then spawn or resume the distinct step-scoped step-reviewer and invoke:
/proof-step-review <Step ID>
Inputs:
setting.mdproof_sketch.md- accepted
proof_sketch_review.md - target
Step ID proof_steps/<Step ID>/proof.md- accepted dependency step proof/review artifacts, when dependencies exist
Output:
proof_steps/<Step ID>/review.md
After proof_steps/<Step ID>/review.md passes its artifact gate, fill the open step proof-tracker row with Score = N/A, Review outcome = <Step-Review Status>, Retry target = <Smallest Retry Target>, and Status = Accept only for ACCEPTED; otherwise set Status = Fail.
Route step-review status:
ACCEPTED: continue to downstream steps or assembly.REVISE_STEP: ifMAX_STEP_ATTEMPTS_PER_STEPremains for thisStep ID, rerun/proof-step <Step ID>with the same-step review as the triggering repair artifact, then rerun/proof-step-review <Step ID>against the repaired proof and proceed only if that same-step review returnsACCEPTED; otherwise route by the new step-review status. If the step budget is exhausted, escalate to sketch revision.REVISE_SKETCH: ifMAX_SKETCH_ATTEMPTS_PER_IDEAremains, rerun/proof-sketchwithRetry Mode = revise_sketchand an incremented sketch attempt; otherwise route to idea revision or branch exhaustion.BLOCKED_BY_DEPENDENCY: ifMAX_STEP_ATTEMPTS_PER_STEPremains for the named dependency, rerun/proof-step <dependency Step ID>with the downstream review as the triggering repair artifact, then rerun/proof-step-review <dependency Step ID>against the repaired dependency proof and proceed only if that dependency review returnsACCEPTED; after that, rerun affected downstream step reviews or step proofs as needed in dependency order. If the dependency review is notACCEPTED, route by its step-review status. If the dependency step budget is exhausted, escalate to sketch revision.
Phase 6: Proof Assembly
After all required steps are accepted, spawn or resume the perspective's distinct assembler, append a proof-tracker row with Sketch attempt = current sketch attempt, Unit type = assembly, Unit id = assembly, and Unit attempt = next assembly attempt under the current sketch attempt, then invoke:
/proof-assembly
Inputs:
setting.md- accepted
proof_sketch.md - accepted
proof_sketch_review.md - accepted proof/review artifacts for every required step
- optional aggregated
proof_review.mdwhen repairingPROOF_ASSEMBLY_FLAW
Outputs:
perspective_M/idea_N/latex_template/perspective_M/idea_N/assembly_report.md
Assembly may combine accepted step claims and reconcile notation, but it must not introduce independent unreviewed lemmas.
The assembly proof-tracker row remains open until the aggregate final review is valid. Fill that row from aggregated proof_review.md: numeric Score, Review outcome = Failure Type, Retry target = Suggested Next Action, and Status = Accept only for Failure Type = ACCEPTED; otherwise Status = Fail.
Phase 7: Specialized Final Reviews
After assembly, spawn or resume the four distinct specialized reviewers and invoke:
/proof-review-structural/proof-review-rigor/proof-review-citation/proof-review-adversarial
Inputs:
setting.md- assembled
latex_template/ assembly_report.md- accepted
proof_sketch.md - accepted
proof_sketch_review.md - valid diagnostic
global_proof.mdpaired with acceptedglobal_proof_review.md - accepted
global_proof_review.md - accepted step proof/review artifacts for every required sketch step
Outputs:
perspective_M/idea_N/proof_review_structural.mdperspective_M/idea_N/proof_review_rigor.mdperspective_M/idea_N/proof_review_citation.mdperspective_M/idea_N/proof_review_adversarial.md
Each specialized review is diagnostic only. It must emit Reviewer Verdict, Blocking Issues, Nonblocking Concerns, Suggested Repair Depth, and Smallest Candidate Repair Target; it must not update trackers or route retries.
Validate each specialized review artifact before invoking /proof-review-aggregate. If one is missing or contract-invalid, rerun or hand off only that diagnostic reviewer with a real worker-log row; this consumes no proof producer budget and must not be recorded as a proof flaw.
If a contract-valid specialized review reports BLOCKING, do not repair the producer directly from that specialized review. Invoke /proof-review-aggregate first, then route the producer repair only from the aggregate proof_review.md.
Phase 8: Aggregate Final Review
Spawn or resume the perspective's distinct review-aggregator, then invoke:
/proof-review-aggregate
Inputs:
setting.md- assembled
latex_template/ assembly_report.md- accepted
proof_sketch.md - accepted
proof_sketch_review.md - valid diagnostic
global_proof.mdpaired with acceptedglobal_proof_review.md - accepted
global_proof_review.md - accepted step proof/review artifacts for every required sketch step
- all four specialized review artifacts
Output:
perspective_M/idea_N/proof_review.md
Aggregate final review outputs:
ScoreFailure Type:ACCEPTED,PROOF_ASSEMBLY_FLAW,PROOF_STEP_FLAW,PROOF_SKETCH_FLAW, orIDEA_FAILCritical IssuesSuggested Next ActionRetry Mode
Acceptance requires:
Score >= ACCEPT_THRESHOLDFailure Type = ACCEPTEDCritical Issues = Nonelatex_template/contains the required content and support files, and the LaTeX bundle is self-contained/paper-readyassembly_report.mdhasStatus = COMPLETE,Blockers = None, and an attempted claim consistent with the public LaTeX bundle andsetting.md- no unreviewed lemma, changed accepted step statement, stale dependency, or missing step coverage
- the Assumption Provenance Contract passes: unconditional final theorems must not assume unproved generated-object, event, local-validity, stability, recurrence, boundedness, membership, or invariant facts through an admissibility or similar package
- all four specialized review artifacts pass their contracts and report no acceptance-blocking issue
- required run-scoped worker provenance and per-perspective
12 + 2kdistinctness gates pass
Phase 9: Refine Or Finish
Route aggregate final review outcomes. Suggested Next Action and Retry Mode must align with Failure Type; if they disagree, treat the aggregate review as contract-invalid and rerun or hand off /proof-review-aggregate.
ACCEPTED: run branch-local finalization and accepted-result copying, then continue any remaining approved perspectives or active branches unless the user explicitly requested a first-success search.PROOF_ASSEMBLY_FLAW: requireSuggested Next Action = /proof-assemblyandRetry Mode = repair_assembly; ifMAX_ASSEMBLY_ATTEMPTS_PER_SKETCHremains, rerun/proof-assemblywith aggregatedproof_review.mdas the triggering repair artifact, then specialized reviews and aggregate review; otherwise escalate to sketch revision.PROOF_STEP_FLAW: requireSuggested Next Action = /proof-step <Step ID>andRetry Mode = repair_step; ifMAX_STEP_ATTEMPTS_PER_STEPremains for the affectedStep ID, rerun/proof-step <Step ID>with aggregatedproof_review.mdas the triggering repair artifact, then rerun/proof-step-review <Step ID>against the repaired proof and proceed only if that same-step review returnsACCEPTED; after that, rerun affected downstream step reviews or step proofs as needed, assembly, specialized reviews, and aggregate review. If the same-step review is notACCEPTED, route by its step-review status. If the step budget is exhausted, escalate to sketch revision.PROOF_SKETCH_FLAW: requireSuggested Next Action = /proof-sketchandRetry Mode = revise_sketch; ifMAX_SKETCH_ATTEMPTS_PER_IDEAremains, rerun/proof-sketchwith an incremented sketch attempt and aggregatedproof_review.mdas the triggering repair artifact; otherwise route to idea revision or branch exhaustion.IDEA_FAIL: requireSuggested Next Action = /subagent-idea-generator,Retry Mode = new_idea, and an explicit rationale explaining whyPROOF_SKETCH_FLAWcannot preserve the current formalized setting and goal and identifying the required theorem-contract change: changed primitive assumptions, changed algorithm/model/procedure, changed theorem scope/mode/metric, changed exposed dependence, changed success criterion, adding a theorem-facing mechanism source not supported by the setting, or weakening the conclusion. If that rationale is missing, treat the aggregate review as contract-invalid and rerun or hand off/proof-review-aggregate. If valid, revise the idea whenMAX_IDEA_VARIANTS_PER_PERSPECTIVEremains, using aggregatedproof_review.mdas prior failure evidence.
When retry limits are exhausted, escalate in this order: local unit retry -> sketch revision -> new idea -> branch failure.
Finalization
For an accepted branch, finalization is branch-local:
- Verify final artifact gates.
- Verify split worker-provenance gates.
- Verify no perspective has more than
MAX_IDEA_VARIANTS_PER_PERSPECTIVEconsumed idea slots intheory_tracker.md, includingNO_VIABLE_IDEAandDUPLICATE_IDEArows, and no accepted proof-tracker row uses an over-budget producer attempt, including global proof attempts. - Copy only:
setting.mdlatex_template/proof_review.md
- Do not copy diagnostic or archival artifacts, including
assembly_report.md,global_proof.md,global_proof_review.md, specialized review artifacts, sketch artifacts, step artifacts, orproof_history/. - Copy into
results/perspective_M/idea_N/theory. - Verify the copied files exist, including the complete
latex_template/directory withmain.tex,arxiv.sty,ims.bst,reference.bib, and the five content files. - Mark the current theory-tracker row
Acceptonly after copy verification passes.
After all approved perspectives terminate, return the accepted-branches summary, which may contain zero, one, or multiple accepted branches. If no branch is accepted after all approved perspectives terminate, return a failure summary.
References
Load these only when needed. Paths are relative to this skill directory, not to the active run root:
../_shared/templates../_shared/templates/worker-log.md../_shared/templates/workflow-feedback.md../_shared/templates/theory-tracker.md../_shared/templates/idea-report.md../_shared/templates/proof-tracker.md../_shared/templates/global-proof-review.md../_shared/templates/assembly-report.md../_shared/checklists/artifact-contracts.md../_shared/checklists/tracker-lifecycle.md../_shared/checklists/review-outcomes.md../_shared/checklists/result-copy.md../_shared/references/directory-conventions.md
Detailed mathematical rubrics belong in the internal proof and review skills, not in this public controller.