Implementation:AIScientists Dev WorldSeed run experiment handle
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Research_Automation, Distributed_Computing |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
Concrete DSL effect handler for the `run_experiment` action that validates agent-submitted code patches, resolves base source from baseline or parent papers, enforces rate limits, and enqueues training requests for the async worker.
Description
The handle function in `handlers/run_experiment.py` processes the `run_experiment` action. It:
- Validates `description` is provided
- Checks pending reviews — rejects if agent has unreviewed papers
- Accepts exactly one of `patches` (list of `{find, replace}`) or `new_train_py` (full file)
- Validates `hypothesis_id` — must be one of the agent's own hypotheses
- Resolves the base source: if hypothesis builds_on an accepted paper, start from that paper's `method_commit`; otherwise from baseline
- Applies patches (each `find` must match exactly once) or uses full source
- Rate-limits: rejects if agent has outstanding experiments
- Enqueues an `ExperimentRequest` for the async worker
Usage
This is a DSL effect handler, invoked by the engine when an agent calls the `run_experiment` action. Not called directly.
Code Reference
Source Location
- Repository: WorldSeed
- File: src/worldseed/autoresearch/handlers/run_experiment.py
Signature
def handle(
store: StateStore,
event_log: EventLog,
ctx: dict[str, Any],
tick: int,
) -> None:
"""Handle the run_experiment action."""
Import
from worldseed.autoresearch.handlers.run_experiment import handle
Related Pages
Implements Principle
Requires Environment
- Environment:AIScientists_Dev_WorldSeed_Python_3_11_Engine
- Environment:AIScientists_Dev_WorldSeed_EC2_GPU_Training
- Environment:AIScientists_Dev_WorldSeed_Baseline_Training
- Environment:AIScientists_Dev_WorldSeed_Autoresearch_Agent_Runtime
Uses Heuristic
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment