Resource gatekeeper. Other agents must call the budgeter before launching long-running training, expensive LLM calls, or held-out queries. The budgeter consults resbudgetledger and either approves the request, suggests a smaller request, or halts.
Attempt formal proofs in Lean 4 for stated lemmas. Scope: small statistical identities (sample mean unbiasedness, Chebyshev/Cauchy-Schwarz/Markov/Bonferroni inequalities, simple CLT/MLE statements). Triage gate: only spawn when triageforformalization returns eligible=True.
Adversarial reviewer of finished manuscripts. Refuses to sign off on central result claims until publication-critical metrics trace back to pinned evidence (empirical checklist) AND theorem claims trace back to an empty diagnostic manifest plus either a Lean verification or an explicit unverified flag (proof…
Runs before the agent uses a tool for Read, Write, Edit, Bash and Bash tool calls, executing leakage_guard.py and destructive_bash_guard.py via uv with --no-sync (2 commands). From whenpoem/aiscientist.
Runs when the agent finishes a response, executing intervention_pump.py and stop_flush.py via uv with --no-sync (2 commands). From whenpoem/aiscientist.
Rank competing hypotheses or proof skeletons from the complete comparison ledger using a joint batch MAP Bradley-Terry fit and approximate posterior intervals. Use whenever 3 or more candidates compete for the next experiment, or when the user asks which branch currently leads. Do not present the intervals as…
Diagnose errors, failed tests, crashes, hangs, regressions, suspicious outputs, and unexpected experimental results through reproducible hypothesis-driven debugging. Use whenever a script or system behaves incorrectly, even if the user only says it is broken or pastes an error. Respect diagnosis-only requests…
Lock a confirmatory falsification target and its fixed multiple-comparison family before observing the confirmatory result. Use before promoting an exploratory finding to a main claim or whenever several related hypotheses need Bonferroni control. Records metric, threshold, family id/size, correction, and seed budget.
Build and audit a statistical or mathematical proof from proposition capture through skeleton selection, diagnosis, correction, optional empirical checking, and optional Lean reinsurance. Use when the user asks to prove or rigorously derive a proposition, a graph proposition lacks a verified proof, or a reviewer…
Audit a past pruning or approval decision by creating a counterfactual branch from a saved snapshot without mutating the live graph. Use when the user asks what would have happened under another decision, disputes a paused branch, or wants to inspect an earlier checkpoint.
Run an end-to-end, auditable research workflow from question framing through literature, competing hypotheses, experiment selection, implementation, verification, and claim handoff. Use whenever the user asks to investigate, compare, test, validate, or establish an empirical research claim, including when they do not…
Produce or revise research reports, result-bearing Markdown, paper sections, and manuscripts without overstating evidence. Use whenever writing text that reports experimental metrics, statistical conclusions, hypothesis rankings, theorem claims, or research findings. Do not trigger for ordinary README edits…