{"at":"2026-11-22T23:35:16.881Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T23:35:20.754Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T23:35:21.456Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-22T23:35:25.311Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"airas","version":"1.30.0"}}}}
{"at":"2026-11-22T23:35:25.311Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:35:25.311Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:35:25.314Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Draft the analysis of a study from its record and run outputs.\n\nReads `.research/record.json` and `.research/results/` in the clone at\n`local_path`: every live hypothesis and claim with its frozen criterion\nand predicted interval, the observed difference, and the verdict the\ncriterion derives. `model` (required; see `get_available_llms`) reads\nthem and returns `analysis` — per claim, then the hypothesis, then\nlimitations and open questions — plus each claim's verdict and observed\ndifference. Nothing is written: the analysis is a draft for the\nDiscussion, to be checked against the numbers like any other prose.\nWithout an LLM key, `get_prompts(step=\"experiment_analysis\",\nlocal_path=...)` renders the same prompt for you to answer.\n","inputSchema":{"properties":{"local_path":{"title":"Local Path","type":"string"},"model":{"title":"Model","type":"string"}},"required":["local_path","model"],"title":"analyze_experimentArguments","type":"object"},"name":"analyze_experiment","outputSchema":{"additionalProperties":true,"title":"analyze_experimentDictOutput","type":"object"}},{"description":"Report which LLMs are usable with the currently configured API keys.\n\nReads credentials fresh (so keys added or rotated since the server\nstarted are picked up) and, for each known LLM provider, reports whether\nits required API key(s) are present. Call this before the LLM-backed\ntools (`analyze_experiment`, `verify_paper_values` with a model) to know\nwhich will\nrun and which model names you may pass — a tool whose model belongs to an\nunconfigured provider fails fast with the missing key named. This tool\nitself needs no API key.\n\nSet `include_models` to true to also list, per configured provider, the\nmodel names in litellm's catalog. It defaults to false because some\nproviders return hundreds of models, which bloats the response; request\nit only when you need to choose a specific model.\n\nScope: this reports the **LiteLLM** view — provider credentials\n(`LITELLM_PROVIDER_REQUIRED_ENV_VARS`) and litellm's model catalog. Every\ngeneration tool executes via litellm and accepts any model name litellm\ncan route to the configured providers, so a listed provider/model is\nusable by all of them.\n\nReturns:\n- `any_provider_configured`: whether at least one provider is usable\n- `configured_providers`: sorted provider names that are ready\n- `providers`: per-provider `configured` flag, `required_env_vars`,\n  `missing_env_vars`, and (when configured and requested) `models` /\n  `model_count`\n- `setup_instructions`: how to add keys, present only when none are set\n","inputSchema":{"properties":{"include_models":{"default":false,"title":"Include Models","type":"boolean"}},"title":"get_available_llmsArguments","type":"object"},"name":"get_available_llms","outputSchema":{"additionalProperties":true,"title":"get_available_llmsDictOutput","type":"object"}},{"description":"The prompt for an authoring step, so you write the result yourself —\nno LLM API key required.\n\nThe skills route each authoring step here. The prompt says what the\nstep's output must contain and where it goes; the material (the record,\nthe run outputs, the papers) is in the clone, which you read yourself.\nA step that also has a backend-LLM tool (`analyze_experiment`) renders\nthe very prompt the tool sends, from the clone at `local_path`, so what\nyou read is what the tool would have read.\n\nSteps: \"hypothesis_and_design\", \"experiment_code\", \"paper_writing\"\n(plain text; `local_path` is not needed) and \"experiment_analysis\"\n(needs `local_path`).\n\nReturns `prompt`, the `output_json_schema` to produce, and a `flow` note\non where the output goes.\n","inputSchema":{"properties":{"local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Local Path"},"step":{"title":"Step","type":"string"}},"required":["step"],"title":"get_promptsArguments","type":"object"},"name":"get_prompts","outputSchema":{"additionalProperties":true,"title":"get_promptsDictOutput","type":"object"}},{"description":"Start an experiment run (asynchronous). The code must already be pushed.\n\n`run_stage` selects the stage, in increasing scale: \"sanity\" for a quick\ncorrectness run, \"pilot\" for a small preliminary one, \"full\" for the real\nexperiment. `run_id` identifies the experiment run defined by the\nexperiment code (one config/run/{run_id}.yaml). Pass the same stage to\n`import_run_outputs` to collect the run's results afterwards.\n\n`backend` selects where the run executes; either way the run's outputs\nstay on the backend's side until `import_run_outputs` copies them into\nthe repository with their provenance, and the returned `execution_id` is\nwhat that call and `get_experiment_run_status` take.\n- \"github_actions\" (default): dispatches run_experiment.yml in the\n  experiment repository; `runner_label` picks the runner. Requires\n  GH_PERSONAL_ACCESS_TOKEN.\n- \"seyval\": executes on the Seyval compute platform. `compute_id` picks\n  the machine — normally a cluster you registered, \"byo:<uuid>\" from the\n  Seyval MCP server's `list_computes`; it defaults to SEYVAL_COMPUTE_ID,\n  and without either the run goes to Seyval-managed compute.\n  `compute_type` sets the resource request in both cases (e.g.\n  \"cpu-general\", \"gpu-a10\"). `workspace_id` (default SEYVAL_WORKSPACE_ID)\n  is required when your key sees several workspaces: a repository is\n  registered into one for good.\n\n`user_dockerfile_path` (default \"Dockerfile\") makes Seyval build the\ncommitted Dockerfile as-is instead of generating an environment; pass\nNone to let it generate one. Its CMD then runs verbatim, so the run's\ncommand is `command_args` (argv), which defaults to\n`make run RUN_ID=<run_id> MODE=<run_stage>` — the repository's one entry\npoint, the same one run_experiment.yml calls. The Makefile reads the\nrun's kind from `config/run/<run_id>.yaml`: an experiment runs\n`src.main`, airas-eval and `src.evaluate` (a run that stops after\n`src.main` writes no metrics.json and fails verification); a `lean` run\nbuilds the module and writes `lean.json`. Lean has sanity and full\nstages only.\n\n`inputs_from_runs`, `time_limit` and `resource_count` apply to \"seyval\"\nonly. `inputs_from_runs` takes `execution_id`s of earlier completed runs\nand restores their outputs into this run's working directory at the paths\nthey were written to, so a run can consume what a previous one produced.\n`time_limit` (e.g. \"24:00:00\") and `resource_count` request per-run\nresources from a registered cluster; accepted values are in its\n`run_profile` from `list_computes`.\n","inputSchema":{"properties":{"backend":{"default":"github_actions","enum":["github_actions","seyval"],"title":"Backend","type":"string"},"branch_name":{"title":"Branch Name","type":"string"},"command_args":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Command Args"},"compute_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Compute Id"},"compute_type":{"default":"gpu-a10","title":"Compute Type","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"inputs_from_runs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Inputs From Runs"},"repository_name":{"title":"Repository Name","type":"string"},"resource_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Resource Count"},"run_id":{"title":"Run Id","type":"string"},"run_stage":{"default":"sanity","enum":["sanity","pilot","full"],"title":"Run Stage","type":"string"},"runner_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Runner Label"},"time_limit":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Time Limit"},"user_dockerfile_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"Dockerfile","title":"User Dockerfile Path"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Workspace Id"}},"required":["github_owner","repository_name","branch_name","run_id"],"title":"dispatch_experimentArguments","type":"object"},"name":"dispatch_experiment","outputSchema":{"additionalProperties":true,"title":"dispatch_experimentDictOutput","type":"object"}},{"description":"Check one experiment run and fetch its execution logs (non-blocking).\n\n`execution_id` identifies the run on the selected `backend`: the\n`execution_id` returned by `dispatch_experiment(backend=\"seyval\")`, or a\n`workflow_run_id` from `get_workflow_runs` for \"github_actions\" (pass\n`github_owner` and `repository_name` in that case).\n\nReturns the run status and, once the run has finished, the last\n`log_tail_lines` lines of stdout and stderr where the backend provides\nthem — use stderr to diagnose execution errors and fix the experiment\ncode locally.\n","inputSchema":{"properties":{"backend":{"default":"github_actions","enum":["github_actions","seyval"],"title":"Backend","type":"string"},"execution_id":{"title":"Execution Id","type":"string"},"github_owner":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Github Owner"},"log_tail_lines":{"default":200,"title":"Log Tail Lines","type":"integer"},"repository_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repository Name"}},"required":["execution_id"],"title":"get_experiment_run_statusArguments","type":"object"},"name":"get_experiment_run_status","outputSchema":{"additionalProperties":true,"title":"get_experiment_run_statusDictOutput","type":"object"}},{"description":"Check the status of recent GitHub Actions runs in the experiment repository (non-blocking).\n\nReturns the most recent workflow runs with their status, conclusion and\nthe commit they ran on, newest first. Runs from every trigger are\nincluded, so this is also how the record gate (`Verify Record`, which\nruns on push) and `Publish Paper` are read: pass `branch_name=\"verify\"`\nto follow the staging ref, and match `head_sha` against the sha you\npushed. Pass `event=\"workflow_dispatch\"` to see only runs started by\n`dispatch_experiment`. Poll it between other work instead of waiting.\nRequires GH_PERSONAL_ACCESS_TOKEN.\n","inputSchema":{"properties":{"branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Branch Name"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Event"},"github_owner":{"title":"Github Owner","type":"string"},"limit":{"default":5,"title":"Limit","type":"integer"},"repository_name":{"title":"Repository Name","type":"string"}},"required":["github_owner","repository_name"],"title":"get_workflow_runsArguments","type":"object"},"name":"get_workflow_runs","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"get_workflow_runsOutput","type":"object"}},{"description":"Read what the runs left under `.research/results/` in the clone.\n\nUse after `import_run_outputs` has committed a run's outputs and the\nclone has pulled them. Returns, per results directory, the `metrics`\n(metrics.json), the airas-eval `evaluation` report (metrics, curves,\nskipped metrics with reasons), the `figures` under it, and the entry\nthe provenance manifest holds for it (None when the directory arrived\nsome other way, which `verify_record` will fail). Nothing is\ninterpreted here: the record's verdicts come from `update_record`.\n","inputSchema":{"properties":{"local_path":{"title":"Local Path","type":"string"}},"required":["local_path"],"title":"fetch_experiment_resultsArguments","type":"object"},"name":"fetch_experiment_results","outputSchema":{"additionalProperties":true,"title":"fetch_experiment_resultsDictOutput","type":"object"}},{"description":"Copy a finished run's result files from the backend's store into the repository.\n\nNeither backend pushes results back: Seyval keeps them in its storage and\na GitHub Actions run uploads them as a workflow artifact. This downloads\neverything the run wrote under `.research/results/` and commits it to\n`branch_name` at the same paths, together with\n`.research/results/.provenance.json` declaring, per results directory,\nthe backend, `execution_id`, commit, dispatch parameters and each file's\nsha256. `verify_record` pins its cross-check to that declaration, so\nresults that arrive any other way, or are edited afterwards, fail.\n\n`execution_id` is what `dispatch_experiment` returned and `backend` the\none it ran on. Call it once `get_experiment_run_status` reports a\nterminal status.\n\nA repository path holds one run's results regardless of stage, so\nimporting a provisional stage (\"sanity\" or \"pilot\") replaces the full\nrun's results at the paths they share, and requires\n`confirm_overwrite=True`. \"visualization\" needs no confirmation because\nsuch a run adds figures derived from an earlier run.\n\nFile contents never leave airas. Requires GH_PERSONAL_ACCESS_TOKEN, and\nSEYVAL_API_KEY for `backend=\"seyval\"`.\n","inputSchema":{"properties":{"backend":{"default":"github_actions","enum":["github_actions","seyval"],"title":"Backend","type":"string"},"branch_name":{"title":"Branch Name","type":"string"},"confirm_overwrite":{"default":false,"title":"Confirm Overwrite","type":"boolean"},"execution_id":{"title":"Execution Id","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"repository_name":{"title":"Repository Name","type":"string"},"run_id":{"title":"Run Id","type":"string"},"run_stage":{"default":"full","enum":["sanity","pilot","full","visualization"],"title":"Run Stage","type":"string"}},"required":["github_owner","repository_name","branch_name","run_id","execution_id"],"title":"import_run_outputsArguments","type":"object"},"name":"import_run_outputs","outputSchema":{"additionalProperties":true,"title":"import_run_outputsDictOutput","type":"object"}},{"description":"Download the artifacts produced by a GitHub Actions workflow run.\n\n`workflow_run_id` comes from `get_workflow_runs`. Useful for inspecting\nlogs and outputs of a specific run. Requires GH_PERSONAL_ACCESS_TOKEN.\n","inputSchema":{"properties":{"branch_name":{"title":"Branch Name","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"repository_name":{"title":"Repository Name","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"integer"}},"required":["github_owner","repository_name","branch_name","workflow_run_id"],"title":"download_workflow_artifactsArguments","type":"object"},"name":"download_workflow_artifacts","outputSchema":{"additionalProperties":true,"title":"download_workflow_artifactsDictOutput","type":"object"}},{"description":"Render a result chart whose data points come from measured metrics.\n\nUse this for publication-quality result figures. The Vega-Lite spec\nmust not contain literal numbers in its data: write every numeric\ndatum as `\"metric:<run_id>.<path>\"` (e.g. `\"metric:run_1.accuracy\"`),\nand the tool resolves it against `.research/results/` in `local_path`\nitself — so a plotted point cannot be a number no run measured.\nCategorical fields (method names, dataset labels) stay plain strings;\n`calculate`/`expr` transforms are rejected. `\\unverified` has no\nchart equivalent: a number that no run produced does not belong in a\nresult figure.\n\nSave charts as **PNG** under `.research/results/chart/` in the clone\n(`output_path` must lie under that directory and end with .png or\n.svg), then commit and push — the LaTeX build collects figure PDFs\nand PNGs under `.research/results/`. PDF chart output is refused:\nvl-convert's PDF bytes are not deterministic across processes, so a\nPDF chart could never be verified against a re-render. The unresolved\nspec is appended to `.research/record.json`, under the hypothesis\nnamed by `hypothesis_id`, as the chart's declaration, and the chart and record.json are committed together in\nthe same step (`commit` in the result); `verify_paper_values`\nre-resolves, re-renders and byte-compares. A path that already has a\ndifferent declared spec is refused — render to a new path, or\nsupersede the old declaration via `append_to_record`.\nRendering runs in-process (vl-convert); no data leaves the machine\nand no API keys are required.\n","inputSchema":{"properties":{"hypothesis_id":{"title":"Hypothesis Id","type":"string"},"local_path":{"title":"Local Path","type":"string"},"output_path":{"title":"Output Path","type":"string"},"vega_lite_spec":{"additionalProperties":true,"title":"Vega Lite Spec","type":"object"}},"required":["vega_lite_spec","output_path","local_path","hypothesis_id"],"title":"render_chartArguments","type":"object"},"name":"render_chart","outputSchema":{"additionalProperties":true,"title":"render_chartDictOutput","type":"object"}},{"description":"Render a text diagram (diagram-as-code) to a file via Kroki.\n\nUse this for method/architecture diagrams: write the diagram source in\na text notation (`diagram_type`: \"mermaid\", \"graphviz\", \"d2\",\n\"plantuml\", and 20+ more Kroki types). When rendering into a local\nclone of the experiment repository, save the result as a PDF under\n`.research/results/diagram/`, then commit and push — the LaTeX build\ncollects every `*.pdf` under `.research/results/`. `output_path` must\nend with .pdf, .svg, or .png; PDF conversion happens locally from the\nSVG (vector). Types whose SVG embeds\nHTML labels (e.g. mermaid) fall back to a raster PDF automatically —\nprefer \"graphviz\" / \"plantuml\" when you want vector text. Rendering uses\nthe public https://kroki.io by default — set KROKI_BASE_URL to a\nself-hosted instance to keep unpublished diagrams private. No API keys\nrequired.\n","inputSchema":{"properties":{"diagram_source":{"title":"Diagram Source","type":"string"},"diagram_type":{"title":"Diagram Type","type":"string"},"output_path":{"title":"Output Path","type":"string"}},"required":["diagram_type","diagram_source","output_path"],"title":"render_diagramArguments","type":"object"},"name":"render_diagram","outputSchema":{"additionalProperties":true,"title":"render_diagramDictOutput","type":"object"}},{"description":"List AIRAS's hand-curated candidate models for a subfield.\n\nCheck here first. Subfields follow the shared domain>category taxonomy:\nlanguage (\"text_generation\", \"text_understanding\",\n\"sequence_to_sequence\", \"code_generation\", \"text_embedding\",\n\"reranking\", \"hosted_api\"), vision (\"image_recognition\",\n\"image_generation\"), \"vision_language\", \"speech\", \"forecasting\",\n\"protein\". Returns a dict\nkeyed by model name; each value has model_architecture, task_type,\nhuggingface_url, dependent_packages, a runnable code snippet, citation,\nand more. If none of these fit the experimental design, fall back to\n`search_huggingface_hub` (kind=\"models\"), which returns the same shape\nfrom the live Hub. No API keys required.\n","inputSchema":{"properties":{"model_subfield":{"enum":["text_generation","text_understanding","sequence_to_sequence","code_generation","text_embedding","reranking","hosted_api","image_recognition","image_generation","vision_language","speech","forecasting","protein"],"title":"Model Subfield","type":"string"}},"required":["model_subfield"],"title":"retrieve_modelsArguments","type":"object"},"name":"retrieve_models","outputSchema":{"additionalProperties":true,"title":"retrieve_modelsDictOutput","type":"object"}},{"description":"List AIRAS's hand-curated candidate datasets for a subfield.\n\nCheck here first. Subfields follow the shared domain>category\ntaxonomy: language (\"instruction_tuning\", \"reasoning_evaluation\",\n\"nlp_tasks\", \"prompt_engineering\", \"code_evaluation\"),\n\"image_recognition\", \"speech\", \"vision_language\". Returns a dict keyed\nby dataset name; each value has description, task_type, huggingface_url,\ndependent_packages, a runnable code snippet, citation, and more. If none\nfit the experimental design, fall back to `search_huggingface_hub`\n(kind=\"datasets\"), which returns the same shape from the live Hub.\nNo API keys required.\n","inputSchema":{"properties":{"dataset_subfield":{"enum":["instruction_tuning","reasoning_evaluation","nlp_tasks","prompt_engineering","code_evaluation","image_recognition","speech","vision_language"],"title":"Dataset Subfield","type":"string"}},"required":["dataset_subfield"],"title":"retrieve_datasetsArguments","type":"object"},"name":"retrieve_datasets","outputSchema":{"additionalProperties":true,"title":"retrieve_datasetsDictOutput","type":"object"}},{"description":"Live Hugging Face Hub fallback for `retrieve_models`/`retrieve_datasets`.\n\nUse this only when the curated tools (`retrieve_models` /\n`retrieve_datasets`) have no suitable candidate for the experimental\ndesign — check them first, then come here to go wider or find newer\nreleases. Returns the same shape as the curated tools: a dict keyed by\nresource id, each value carrying the curated-compatible fields\n(description, task_type, huggingface_url, dependent_packages; code and\ncitation are empty for Hub results — read the card at huggingface_url),\nplus discovery metadata (downloads, likes, tags, last_modified).\n\n`kind` is \"models\" or \"datasets\"; `query` is free-text search; `task`\nfilters by pipeline tag for models (e.g. \"text-generation\",\n\"image-classification\", \"automatic-speech-recognition\") or by tag for\ndatasets; `sort` ranks results (\"downloads\", \"likes\", \"trendingScore\",\n\"lastModified\"). HF_TOKEN is optional (only for gated resources).\n","inputSchema":{"properties":{"kind":{"default":"models","enum":["models","datasets"],"title":"Kind","type":"string"},"limit":{"default":10,"title":"Limit","type":"integer"},"query":{"default":"","title":"Query","type":"string"},"sort":{"default":"downloads","title":"Sort","type":"string"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task"}},"title":"search_huggingface_hubArguments","type":"object"},"name":"search_huggingface_hub","outputSchema":{"additionalProperties":true,"title":"search_huggingface_hubDictOutput","type":"object"}},{"description":"Look up canonical documentation endpoints for AI research libraries.\n\nCovers ~165 libraries organized as domain > category (the same shared\ntaxonomy as retrieve_models / retrieve_datasets). Domains: foundations,\nlanguage, vision, audio, multimodal, reinforcement_learning,\ntime_series, graph, systems, statistics, machine_learning,\ndecision_science, interpretability, science. For\neach library returns the official docs URL, the source repository, and\n— where the project publishes one — its `llms.txt` / `llms-full.txt`\nendpoint, which serves the current documentation in a machine-readable\nform. Fetch those endpoints to get up-to-date library guidance while\nwriting experiment code. Pass `library` for one entry; `domain` or\n`category` to filter the listing; no arguments to list everything.\nNo API keys required.\n","inputSchema":{"properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Category"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Domain"},"library":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Library"}},"title":"get_library_docsArguments","type":"object"},"name":"get_library_docs","outputSchema":{"additionalProperties":true,"title":"get_library_docsDictOutput","type":"object"}},{"description":"Search academic papers across multiple sources in parallel.\n\nSources: openalex, semantic_scholar, arxiv, airas_db (curated conference\ndatabase: the major ML and NLP venues, plus the formal-methods and\ntheorem-proving venues — ITP, CPP, CADE, IJCAR, CAV, TACAS, LICS, POPL —\nfor theory claims), airas_records (the research AIRAS itself produced\nwhose gate passed). Pass a comma-separated subset or \"all\". `year`\nfilters by publication year (\"2024\" or \"2020-2024\"); it does not apply\nto airas_records.\n\n`airas_records` matches the query against what each study hypothesized\nand claimed — and the titles of the papers it built on, so a paper's\ntitle finds the studies that rest on it — not against paper prose. Each\nrow's `abstract` lists the hypotheses and claims with their verdicts, and\n`external_ids.airas_record` is the id `preregister_record` takes. `verdict`\nkeeps studies with a claim of that verdict (`refuted` finds what has\nalready failed), `stage` keeps preregistered-only or realized studies;\nboth apply to airas_records alone, so select only that source with them.\n\n`search_mode=\"keyword\"` (default) does lexical/relevance search on every\nsource. `search_mode=\"semantic\"` does AI-embedding search that matches by\nmeaning; it is only supported by `openalex` and requires OPENALEX_API_KEY\n(so pass sources=\"openalex\"). Selecting any other source in semantic mode\nis an error.\n\nResults are normalized (title, authors, abstract, doi, arxiv_id, pdf_url,\ncitations, source) and de-duplicated across sources; failures of\nindividual sources are reported in `search_errors` without failing the\nsearch. Keyword search needs no API keys (SEMANTIC_SCHOLAR_API_KEY /\nOPENALEX_API_KEY optionally raise rate limits). Pass a promising row's\narxiv_id / doi / pdf_url to `fetch_paper_fulltext`.\n","inputSchema":{"properties":{"max_results_per_source":{"default":5,"title":"Max Results Per Source","type":"integer"},"query":{"title":"Query","type":"string"},"search_mode":{"default":"keyword","enum":["keyword","semantic"],"title":"Search Mode","type":"string"},"sources":{"default":"all","title":"Sources","type":"string"},"stage":{"anyOf":[{"enum":["prereg","results"],"type":"string"},{"type":"null"}],"default":null,"title":"Stage"},"verdict":{"anyOf":[{"enum":["supported","refuted","inconclusive"],"type":"string"},{"type":"null"}],"default":null,"title":"Verdict"},"year":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Year"}},"required":["query"],"title":"search_papersArguments","type":"object"},"name":"search_papers","outputSchema":{"additionalProperties":true,"title":"search_papersDictOutput","type":"object"}},{"description":"Download a paper's full text into a local file you then read yourself.\n\nIdentifiers are tried in the order arXiv ID, then PDF URL, then DOI, and\npassing several is useful rather than wasteful: arXiv IDs are fetched\nstraight from arXiv, DOIs are resolved to an open-access PDF through\nSemantic Scholar, and a DOI that resolves to nothing falls back to the\n`pdf_url` you supplied. Pass both whenever `search_papers` gave you both\n— a DOI alone returns only the abstract for any paper Semantic Scholar's\nopen-access index does not cover, bioRxiv among them.\n\nOn `status=\"fulltext\"` the text is written to `fulltext_path` under\n`~/.airas/cache/fulltext/` (pages separated by form feeds) and nothing is\nreturned inline: a paper runs to 80k+ characters, so read the file with\nyour own tools, in parts or by searching it. `total_chars` says how long\nit is. `abstract_only` returns the abstract inline and writes no file;\n`not_found` means nothing at all was reachable. The cache keeps files\nfor seven days; nothing is written to the research repository or the\nrecord — that happens at `preregister_record`, which takes the papers\nthe hypothesis rests on together with their `fulltext_path`.\nNo API keys required.\n","inputSchema":{"properties":{"arxiv_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Arxiv Id"},"doi":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Doi"},"pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pdf Url"}},"title":"fetch_paper_fulltextArguments","type":"object"},"name":"fetch_paper_fulltext","outputSchema":{"additionalProperties":true,"title":"fetch_paper_fulltextDictOutput","type":"object"}},{"description":"Compile the paper locally and report whether it is actually sound.\n\nUse this before `open_in_overleaf` or a push — those produce a\nlink and a dispatch receipt, neither of which tells you the document\nbuilt. This one builds it and answers the questions that decide whether\nthe paper is publishable: did a PDF come out (`compiled`, `page_count`),\ndo any citations render as `?` (`undefined_citations` — the usual cause\nis writing main.tex without also writing the generated bibliography to\n`.research/latex/{template}/references.bib`, whose shipped version is a\nsingle placeholder entry), do any `\\ref`s render as `??`\n(`undefined_references`), and is any figure referenced but absent\n(`missing_figures`). `ok` is true only when all of those are clean and\n`errors` — the `!` lines from the log, which is where a missing package\nor a broken environment shows up — is empty too.\n\nIt compiles exactly the file set `open_in_overleaf` would export, so\nwhat is checked is what would be shipped. The toolchain is still the\nlocal one — Overleaf builds its own TeX Live image through latexmk — so\nread the two verdicts differently: `ok=False` is a property of the\ndocument and will follow it anywhere, while `ok=True` says this machine\nbuilt it, not that Overleaf will. A package installed there but not\nhere is the likely way the two disagree.\n\nPass `local_path` — the absolute path of your local clone — to check the\nworking tree with no push and no API keys. Otherwise pass\n`github_owner`/`repository_name`/`branch_name` to check what was pushed\n(requires GH_PERSONAL_ACCESS_TOKEN).\n\nPass `output_path` to keep the PDF this build produced — the build\ndirectory is temporary otherwise, and `pdf_path` in the result says\nwhere it landed. A Japanese paper's PDF comes from here or from the\nPublish Paper workflow (lualatex on both).\n\nRequires a local TeX distribution. A Japanese document is built with\nlualatex (`texlive-luatex`, `texlive-lang-japanese`); everything else\nwith pdflatex.\n\nWhen checking a local clone of a paper that uses the canonical-record\nsystem (a `.research/record.json` created by `preregister_record`\nexists), the record is verified too — the same checks as\n`verify_paper_values`: declarations, append-only history, value/\ntable/chart recomputation, claim flags, and (unless\n`check_provenance=False`) the Seyval provenance cross-check. The\nrecord's verification lands under `record` (every failure is a line\nin its `problems`) and the build under `build`. On failure `ok`\nis false and no PDF is written to `output_path` — so a PDF this tool\nhands out states verified, provenance-backed numbers.\n","inputSchema":{"properties":{"branch_name":{"default":"","title":"Branch Name","type":"string"},"check_provenance":{"default":true,"title":"Check Provenance","type":"boolean"},"github_owner":{"default":"","title":"Github Owner","type":"string"},"latex_template_name":{"default":"mdpi","enum":["iclr2024","agents4science_2025","mdpi"],"title":"Latex Template Name","type":"string"},"local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Local Path"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Output Path"},"repository_name":{"default":"","title":"Repository Name","type":"string"}},"title":"verify_latexArguments","type":"object"},"name":"verify_latex","outputSchema":{"additionalProperties":true,"title":"verify_latexDictOutput","type":"object"}},{"description":"Check that everything the paper states is what was declared and measured.\n\nVerifies the canonical record `.research/record.json` end to end. At\nthe prereg stage (no run outputs yet) it checks the declarations'\ninternal consistency, that nothing realized exists prematurely, and\nthe append-only history. Once results exist, the deterministic checks\nthat decide `ok`: every declared value is recomputed from the run\noutputs under `.research/results/` and compared to the record's\nstored results (a tampered record surfaces as a mismatch),\n`values.tex` and `claims.tex` are regenerated and diffed byte-for-byte\n(`claims.tex` at the prereg stage too), every `\\airasval` key\nmain.tex references must be\ndeclared, every table\nunder `tables/` and every chart under `.research/results/chart/`\nmust match a regeneration of its declaration (undeclared files fail),\nevery results directory must belong to a declared run, the record's\ngit history must be pure appends to the declaration section, and each\nclaim's stored verified flag must be borne out by the recomputation:\nverified means every run under the claim has results. A claim that is\nmerely not yet verified does not fail the check — only a stored flag\nthe recomputation contradicts does.\n\nUnless `check_provenance=False`, the local metrics files are also\ncross-checked against the execution platform's stored run outputs\n(currently Seyval): each referenced results directory must be\nbyte-identical to what the run *declared* for it in\n`.research/results/.provenance.json` (written by `import_run_outputs`)\nactually produced, that run must be completed, and its commit must be\nan ancestor of the local HEAD. Each check lists the other completed\nruns of the same commit (`sibling_run_ids`); review them — repeated\nexecutions mean the reported run was a choice. `provenance.status`\n\"unavailable\" is surfaced without failing the local checks.\n\n`unverified` lists every `\\unverified{...}` the author marked —\nreview input, not a failure. Run this after any step that may edit\nmain.tex (including compile agents), and treat the list as mandatory\nreview items before publishing. `unsupported_citations` is the same\nkind of item: what the judge did not find borne out by the passage.\n`unjudged_citations` — citations no judgment covers as the text now\nstands — fail the check. Pass `model` to have that model read each\nunjudged citation against its passage first; the judgments are written\ninto the record and committed, so the same call then reports only what\nthe model found unsupported. Re-run with `model` after rewriting a\nsentence that cites a passage. Requires an LLM provider key when `model`\nis given.\n","inputSchema":{"properties":{"check_provenance":{"default":true,"title":"Check Provenance","type":"boolean"},"latex_template_name":{"default":"mdpi","enum":["iclr2024","agents4science_2025","mdpi"],"title":"Latex Template Name","type":"string"},"local_path":{"title":"Local Path","type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Model"}},"required":["local_path"],"title":"verify_paper_valuesArguments","type":"object"},"name":"verify_paper_values","outputSchema":{"additionalProperties":true,"title":"verify_paper_valuesDictOutput","type":"object"}},{"description":"Create a link that opens the paper in Overleaf for editing.\n\nReturns `overleaf_url`, which must be shown to the user as a clickable\nlink. Opening it in a browser packages the LaTeX project (main.tex,\nbibliography, template assets, plus every figure PDF under\n`.research/results/` and `.research/diagrams/` mapped into `images/`)\nand submits it to Overleaf, creating a new project in the user's\nOverleaf account (login required; each click creates a new project).\n\nBy default the project is read from the experiment repository on GitHub\n(main.tex must have been pushed; requires GH_PERSONAL_ACCESS_TOKEN,\nprivate repositories work). Pass `local_path` — the absolute path of your local\nclone — to read the working tree on disk instead: no push needed, and\nlocally rendered figures are included as-is. Starts the local dashboard\nAPI in the background if needed.\n","inputSchema":{"properties":{"branch_name":{"title":"Branch Name","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"latex_template_name":{"default":"mdpi","enum":["iclr2024","agents4science_2025","mdpi"],"title":"Latex Template Name","type":"string"},"local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Local Path"},"repository_name":{"title":"Repository Name","type":"string"}},"required":["github_owner","repository_name","branch_name"],"title":"open_in_overleafArguments","type":"object"},"name":"open_in_overleaf","outputSchema":{"additionalProperties":true,"title":"open_in_overleafDictOutput","type":"object"}},{"description":"Create the research record before any experiment has run.\n\nWrites `.research/record.json` — the canonical record the whole\nverification system keys on — and commits it in the same step\n(`freeze_commit` in the result). That commit is the freeze point: every\nlater revision must *contain* this one whole, so a claim cannot be\nreworded, its criterion cannot be moved, a run's conditions cannot be\nchanged and a result cannot be dropped once written.\n\nThe record is a tree, read as \"to support this hypothesis, these claims;\nto verify this claim, these designs; a design is these runs\":\n\n  hypotheses: [{\n    \"id\": \"h1\", \"statement\": \"the hypothesis, in prose\",\n    \"assumptions\": [\"what must be granted for the claims together to \"\n                    \"imply h1, naming the claims concerned\", ...],\n    \"claims\": [{\n      \"id\": \"c1\", \"statement\": \"one assertive sentence\",\n      \"rationale\": \"why c1 holding is evidence for h1, and for which part\",\n      \"verifier\": {\"kind\": \"seyval\"},\n      \"criterion\": {\"metric\": \"accuracy\", \"subject\": \"proposed-...\",\n                    \"reference\": \"comparative-1-...\", \"op\": \">=\",\n                    \"margin\": 0.02},\n      \"prediction\": {\"low\": 0.02, \"high\": 0.04, \"basis\": \"pilot run\"},\n      \"designs\": [{\n        \"id\": \"d1\", \"summary\": \"...\",\n        \"runs\": [{\"run_id\": \"proposed-...\", \"description\": \"...\",\n                  \"params\": {\"mode\": \"full\"}}]\n      }]\n    }],\n    \"tables\": [...], \"charts\": [...], \"notes\": [...]\n  }]\n\n`literature` is what the hypothesis rests on, pinned in the same\ncommit. Each entry is a paper (`doi` / `arxiv_id` from `search_papers`,\nwith `title`, `authors`, `year`, `venue`,\n`pdf_url`, and the `fulltext_path` `fetch_paper_fulltext` returned), a\nrepository (`url`, a full 40-hex `commit`, `files`) or a study AIRAS\nproduced (`airas_record`), each with `passages`:\n`[{\"node_type\": \"gap|claim|result|method|setup|definition\", \"quote\":\n\"<copied verbatim from the full text>\", \"anchor\"?}]`. A registry\n(doi.org, arXiv, git) must confirm each source exists, its\ntext is snapshotted under `.research/sources/<id>/`, and every quote is\nchecked against that snapshot. Sources get ids in the order given\n(`s1`, `s2`, …) and passages `p1`, `p2`, … within each, so a\nhypothesis's `grounded_on`, a claim's, design's or run's\n`cites_passages` and a criterion's `reference_passage` name them as\n`\"s1.p2\"`: what the declaration rests on, in the prior work's own\nwords. The gate refuses a passage no source declares.\n\n`run_id` names the results directory the run will produce and must be\nunique across the whole record — a run belongs to exactly one claim.\n(Not a bare number: `criterion.reference` reads a number as a constant.)\n\nThe claims are meant to imply the hypothesis together (c1 ∧ … ∧ cn ⇒\nh1). `rationale` says why each claim is a member of that set; the\nhypothesis's `assumptions` say what has to be granted for the\nconjunction to reach h1 — a proxy metric standing for the property,\ngeneralisation beyond the datasets run, and the like. Every claim\nsupported leaves exactly the assumptions unverified, so they are what\nthe paper states as such; claims.tex lists them under the claims.\n\n`verifier` says what verifies the claim and sets its `verified` and\n`verdict`; one per claim (a claim needing both a proof and an experiment\nis two claims), and required. The kind decides what `params` declares\nand what the gate re-derives:\n\n  seyval    (experiment) params = dispatch conditions, e.g. {\"mode\":\n            \"full\"}, checked against what the platform recorded.\n            `criterion` is the falsification line, required:\n            (subject.metric - reference) op margin, where reference is\n            a run under this claim (its same metric) or a constant;\n            exactly at the margin counts as met. `prediction` is the\n            interval the difference is expected to land in, required,\n            a range never a point, with where it comes from. Verdict:\n            supported/refuted by the criterion on the runs' metrics;\n            inconclusive when the metric cannot be resolved.\n  lean      (theory) {\"kind\": \"lean\", \"toolchain\": \"leanprover/lean4:\n            v4.33.1\", \"mathlib_rev\": \"<sha>\", \"allowed_axioms\": [...]};\n            params = {\"module\": \"Airas.Thm1\", \"decl\": \"thm1\",\n            \"statement\": \"<the type `#check @thm1` prints>\"}. The\n            toolchain and mathlib_rev are the repository's\n            `lean/lean-toolchain` and `lean/lake-manifest.json`. The run\n            is dispatched like an experiment (`dispatch_experiment` with\n            a `config/run/<run_id>.yaml` holding kind: lean, module,\n            decl) and writes `lean.json` into its results directory.\n            Verdict: supported iff the result has no errors (build\n            failed, sorry, statement drift, module/decl/toolchain/\n            mathlib_rev other than declared, an axiom outside\n            allowed_axioms); else inconclusive — Lean cannot refute.\n  llm_judge (qualitative) {\"kind\": \"llm_judge\", \"model\": \"<dated id>\",\n            \"rubric\": \"<repo path>\", \"temperature\": 0, \"samples\": 5};\n            params = {\"evidence\": [\"<repo paths>\"]}. The judgment\n            writes `judgment.json` into the run's results directory.\n            It verifies that the evidence presented supports the\n            claim, not that the evidence is true.\nThe tool that executes llm_judge, and the gate's re-execution of lean\nand llm_judge, are not implemented yet.\n\nAlso renders `claims.tex` — the numbered claim list with each criterion,\nprediction and (pending) verdict — into `.research/latex/{template}/`\nand commits it with the record; `\\input{claims.tex}` where the paper\nlists its claims. The gate regenerates and diffs it at every stage.\n\nFails if record.json already holds declarations (use `append_to_record`;\nthe empty record a repository ships is initialised in place), if a claim\ndeclares no run, if a seyval claim lacks its criterion or prediction, or\nif the clone cannot commit. After this: write every future experimental\nnumber in main.tex as `\\airasval{<run_id>.<metric>}` or\n`\\airasval{<run_id>.params.<key>}`, compile, commit main.tex and push\nto the staging ref — tell the user the freeze sha once it lands.\n","inputSchema":{"properties":{"hypotheses":{"items":{"additionalProperties":true,"type":"object"},"title":"Hypotheses","type":"array"},"latex_template_name":{"default":"mdpi","enum":["iclr2024","agents4science_2025","mdpi"],"title":"Latex Template Name","type":"string"},"literature":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Literature"},"local_path":{"title":"Local Path","type":"string"}},"required":["local_path","hypotheses"],"title":"preregister_recordArguments","type":"object"},"name":"preregister_record","outputSchema":{"additionalProperties":true,"title":"preregister_recordDictOutput","type":"object"}},{"description":"Add declarations to the record; nothing already in it ever changes.\n\nThe record only grows: every committed revision must contain the one\nbefore it whole, so this tool appends and never edits. `hypotheses`\nappends whole new hypotheses; `claims`, `tables`, `charts` and `notes`\nappend under the hypothesis named by `hypothesis_id`. Entry shapes are\nthe ones `preregister_record` documents.\n\nRevising a frozen entry means appending a new one with the *same id* —\nthe later entry is the live one and the earlier stays readable in place.\nThat is also how a design or a run is added to an existing claim: append\nthe claim again, with the extra design.\n\nUse this for exploratory extensions (declare the claim and its runs\nfirst, then execute — results for an undeclared run fail verification).\nThe append is committed in the same step (`commit` in the result);\nanything a run should count as evidence for must be in that commit's\nhistory before the run executes, so a claim declared after its run stays\nunverified forever. A seyval claim appended here needs its criterion and\nprediction like one preregistered; `claims.tex` is re-rendered and\ncommitted alongside.\n\n`literature` appends sources the paper came to rest on after the\nfreeze (same entry shape as `preregister_record`); `passages` append\nunder the source named by `source_id` (`{\"node_type\", \"quote\",\n\"anchor\"?}`). A quote must be copied from that source's `fulltext.txt`,\nor the append is refused.\n","inputSchema":{"properties":{"charts":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Charts"},"claims":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Claims"},"hypotheses":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Hypotheses"},"hypothesis_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Hypothesis Id"},"latex_template_name":{"default":"mdpi","enum":["iclr2024","agents4science_2025","mdpi"],"title":"Latex Template Name","type":"string"},"literature":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Literature"},"local_path":{"title":"Local Path","type":"string"},"notes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Notes"},"passages":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Passages"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Source Id"},"tables":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Tables"}},"required":["local_path"],"title":"append_to_recordArguments","type":"object"},"name":"append_to_record","outputSchema":{"additionalProperties":true,"title":"append_to_recordDictOutput","type":"object"}},{"description":"Realize the record from the run outputs and commit it.\n\nThis is the only sanctioned way experimental numbers enter the paper.\nThe declarations live in `.research/record.json`; this tool reads the\nactual run outputs in the local clone (`.research/results/<run_id>/` —\nmetrics.json, eval_inputs/, evaluation/) and the provenance manifest\n`.provenance.json`, and appends to each run a `results[]` entry: the\nplatform's execution id and commit, the hash of the evaluation inputs,\nthe evaluator's report, and the metrics file verbatim. Numbers cannot\nbe passed in, so a value that was never measured cannot enter the\nrecord.\n\nA lean run is read from `lean.json` and an llm_judge run from\n`judgment.json` in the same results directory.\n\nA claim's `verified` is set to true when every run under it has\nresults — the data the claim rests on is in — and its `verdict` once\nthe verifier concludes: for seyval, the declared criterion applied to\nthe runs' metrics. Both\nare written once and never back; a re-run that would flip the verdict\nis reported by the gate as drift, and re-judging means appending the\nclaim again under the same id. Whether the claim was declared before\nits runs executed is not modelled yet.\n\nIt then renders `values.tex`, `tables/<key>.tex` and `claims.tex` into\n`.research/latex/{template}/`; when the clone has an `origin` remote,\nevery value macro is a hyperlink to record.json at the commit that\nwrote it.\n\nThis tool does not judge the result, and deliberately so. Whatever it\nreported locally, the agent could push regardless, so a local verdict\nwas advice rather than a gate — and running the identical checks twice\nmade the advisory pass look like a second, independent opinion. The\nverdict comes from CI, on the pushed commit, where the agent cannot\nintervene: push to the staging ref, read the run, and fast-forward the\nprotected branch only when it is green.\n\nThen `\\input{values.tex}` in main.tex's preamble,\n`\\input{tables/<key>.tex}` where each table belongs, and every\nexperimental number as `\\airasval{key}` — never a literal. A\nlegitimate number no declaration can produce (e.g. a value quoted\nfrom a cited paper) must be wrapped as `\\unverified{...}` so it is\nsurfaced for review.\n","inputSchema":{"properties":{"latex_template_name":{"default":"mdpi","enum":["iclr2024","agents4science_2025","mdpi"],"title":"Latex Template Name","type":"string"},"local_path":{"title":"Local Path","type":"string"}},"required":["local_path"],"title":"update_recordArguments","type":"object"},"name":"update_record","outputSchema":{"additionalProperties":true,"title":"update_recordDictOutput","type":"object"}},{"description":"Create a GitHub repository for running experiments, ready to enforce.\n\nCreates the repository from the AIRAS experiment template and the\nworking branch, and returns `html_url` and `clone_url` so the next step,\ncloning it locally, needs nothing reconstructed by hand. Run it once\nbefore writing experiment code, then `set_github_actions_secrets`.\n\nIt also protects `protected_branch` (the working branch unless another\nis named) and points GitHub Pages at the artifact the `Publish HTML`\nworkflow deploys. Both are setup whose absence is invisible: without\nbranch protection a red CI run can simply be pushed past, so they happen\nhere rather than being left to a later call.\n\nBranch protection is what makes the record's guarantees enforceable\ninstead of advisory: the record and paper gates become required status\nchecks, admins included, with force pushes and deletions refused because\nthe record's evidence is its git history. Squash and rebase merging are\ndisabled repository-wide, since verification asks whether each run's\nrecorded commit is an ancestor of HEAD and a rewrite breaks that. So\nwork on a branch and, once the gate is green on a commit, fast-forward\nthat same sha onto the protected branch. On GitHub's free plan branch\nprotection is only available on public repositories, which is why\n`is_private` defaults to false.\n\nA step that fails does not abort the creation; it is reported in\n`warnings` and in its own flag. **A repository whose `branch_protected`\nis false is not enforcing anything**; say so rather than proceeding as\nthough it were. The call is safe to repeat on a repository it created,\nand re-running it is how a failed CI setup gets repaired, e.g. once the\ntoken has admin rights.\n\nRequires GH_PERSONAL_ACCESS_TOKEN with admin rights on the repository.\n","inputSchema":{"properties":{"branch_name":{"default":"main","title":"Branch Name","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"is_private":{"default":false,"title":"Is Private","type":"boolean"},"protected_branch":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Protected Branch"},"repository_name":{"title":"Repository Name","type":"string"}},"required":["github_owner","repository_name"],"title":"prepare_repositoryArguments","type":"object"},"name":"prepare_repository","outputSchema":{"additionalProperties":true,"title":"prepare_repositoryDictOutput","type":"object"}},{"description":"Copy locally configured API keys into the repository's Actions secrets.\n\nRun once right after `prepare_repository`, and again when a key is\nadded or rotated. The record gate needs `SEYVAL_API_KEY`\nin the repository to re-fetch each run's stored outputs and compare them\nagainst what the repository holds; without it that check is skipped\nrather than failed, so CI looks green without having run it.\n\nReads the values from this machine's environment and writes them\nencrypted; no value appears in the result. `secret_names` defaults to\nevery key airas knows about, and a name with no local value is skipped\nrather than failing. Requires GH_PERSONAL_ACCESS_TOKEN with admin rights\non the repository.\n","inputSchema":{"properties":{"branch_name":{"default":"main","title":"Branch Name","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"repository_name":{"title":"Repository Name","type":"string"},"secret_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Secret Names"}},"required":["github_owner","repository_name"],"title":"set_github_actions_secretsArguments","type":"object"},"name":"set_github_actions_secrets","outputSchema":{"additionalProperties":true,"title":"set_github_actions_secretsDictOutput","type":"object"}},{"description":"Start paper-reproduction code generation on GitHub Actions (asynchronous).\n\nDispatches a workflow that reads `paper_url`, picks a figure or table to\nreproduce (guided by `instruction`), and generates the code. Returns\nimmediately with `dispatched`; track progress with `get_workflow_runs` and\nrun the experiment with `dispatch_paper_reproduction_run` once the run\nsucceeds. `model` (required) is forwarded to the workflow as the coding-\nagent model (`model_name`) — call `get_available_llms` to list valid\nmodels. Requires GH_PERSONAL_ACCESS_TOKEN.\n\nReturns repro_id, which identifies this reproduction's directory\n(.reproduction/<repro_id>/) and must be passed to every subsequent\nreproduction tool.\n","inputSchema":{"properties":{"branch_name":{"title":"Branch Name","type":"string"},"github_actions_agent":{"default":"claude_code","enum":["claude_code","open_code"],"title":"Github Actions Agent","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"instruction":{"title":"Instruction","type":"string"},"model":{"title":"Model","type":"string"},"paper_url":{"title":"Paper Url","type":"string"},"repo_url":{"default":"","title":"Repo Url","type":"string"},"repository_name":{"title":"Repository Name","type":"string"},"runner_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Runner Label"}},"required":["github_owner","repository_name","branch_name","paper_url","instruction","model"],"title":"dispatch_paper_reproduction_generateArguments","type":"object"},"name":"dispatch_paper_reproduction_generate","outputSchema":{"additionalProperties":true,"title":"dispatch_paper_reproduction_generateDictOutput","type":"object"}},{"description":"Start a paper-reproduction run on GitHub Actions (asynchronous).\n\nUse after a `dispatch_paper_reproduction_generate` run has succeeded.\n`repro_id` is the ID returned by `dispatch_paper_reproduction_generate`.\nReturns immediately with `dispatched`; track progress with\n`get_workflow_runs` and collect outputs with\n`fetch_paper_reproduction_results`. Requires GH_PERSONAL_ACCESS_TOKEN.\n","inputSchema":{"properties":{"branch_name":{"title":"Branch Name","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"repo_url":{"default":"","title":"Repo Url","type":"string"},"repository_name":{"title":"Repository Name","type":"string"},"repro_id":{"title":"Repro Id","type":"string"},"runner_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Runner Label"}},"required":["github_owner","repository_name","branch_name","repro_id"],"title":"dispatch_paper_reproduction_runArguments","type":"object"},"name":"dispatch_paper_reproduction_run","outputSchema":{"additionalProperties":true,"title":"dispatch_paper_reproduction_runDictOutput","type":"object"}},{"description":"Fetch and validate the results of a paper reproduction run.\n\nUse after a `dispatch_paper_reproduction_run` has succeeded. `repro_id` is\nthe ID returned by `dispatch_paper_reproduction_generate`. Returns the\nself-reported result, a validation verdict, and the reproduced\nfigure/table. `model` (required) is the LLM used to judge the\nreproduction — call `get_available_llms` to list valid models. Requires\nGH_PERSONAL_ACCESS_TOKEN and an LLM provider API key.\n","inputSchema":{"properties":{"branch_name":{"title":"Branch Name","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"model":{"title":"Model","type":"string"},"repository_name":{"title":"Repository Name","type":"string"},"repro_id":{"title":"Repro Id","type":"string"}},"required":["github_owner","repository_name","branch_name","repro_id","model"],"title":"fetch_paper_reproduction_resultsArguments","type":"object"},"name":"fetch_paper_reproduction_results","outputSchema":{"additionalProperties":true,"title":"fetch_paper_reproduction_resultsDictOutput","type":"object"}},{"description":"Start a hyperparameter tuning run for a paper reproduction (asynchronous).\n\nRequires a completed paper reproduction on the branch. `repro_id` is the ID\nreturned by `dispatch_paper_reproduction_generate`. Returns immediately\nwith `dispatched`; track progress with `get_workflow_runs` and fetch\nresults with `fetch_parameter_tuning_results`. Requires\nGH_PERSONAL_ACCESS_TOKEN.\n","inputSchema":{"properties":{"branch_name":{"title":"Branch Name","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"repo_url":{"default":"","title":"Repo Url","type":"string"},"repository_name":{"title":"Repository Name","type":"string"},"repro_id":{"title":"Repro Id","type":"string"},"runner_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Runner Label"}},"required":["github_owner","repository_name","branch_name","repro_id"],"title":"dispatch_parameter_tuning_runArguments","type":"object"},"name":"dispatch_parameter_tuning_run","outputSchema":{"additionalProperties":true,"title":"dispatch_parameter_tuning_runDictOutput","type":"object"}},{"description":"Fetch the results of a parameter tuning run.\n\nUse after a `dispatch_parameter_tuning_run` has succeeded. `repro_id` is\nthe ID returned by `dispatch_paper_reproduction_generate`. Returns the\ntuning summary and optimization figure. Requires\nGH_PERSONAL_ACCESS_TOKEN.\n","inputSchema":{"properties":{"branch_name":{"title":"Branch Name","type":"string"},"github_owner":{"title":"Github Owner","type":"string"},"repository_name":{"title":"Repository Name","type":"string"},"repro_id":{"title":"Repro Id","type":"string"}},"required":["github_owner","repository_name","branch_name","repro_id"],"title":"fetch_parameter_tuning_resultsArguments","type":"object"},"name":"fetch_parameter_tuning_results","outputSchema":{"additionalProperties":true,"title":"fetch_parameter_tuning_resultsDictOutput","type":"object"}}]}}}
