The execution switch can run repository-documented commands without OS-level isolation
Source references: 6The orchestrator extracts commands from the README and up to three linked documents, selects a candidate automatically, and passes the selected string to a local subprocess when `--run-selected` is enabled. Direct mode avoids shell metacharacter interpretation but does not restrict the launched program's file, process, or network abilities.
A malicious or compromised repository can disguise a destructive program as an inference, evaluation, or training command. Once launched, it has the host permissions granted to the current user and may modify accessible files, start child processes, or use available network access.
This risk is supported, but execution occurs only when the user explicitly enables `--run-selected`. The orchestrator extracts commands from the README, selects a target, and passes that command to the local runtime. Direct mode reduces shell-metacharacter interpretation, but the launched program is not OS-sandboxed and can access files or the network under the user's permissions. Users should inspect the selected command and execute only trusted repositories, or require an isolated executor.
scan_data = run_json(scan_script, ["--repo", str(repo_path), "--json"]) readme_path = scan_data.get("readme_path") command_data: Dict[str, Any] = {"commands": [], "counts": {}, "warnings": []} if readme_path: command_data = run_json(extract_script, ["--readme", readme_path, "--json"]) command_data = delegate_to_docs(readme_path, extract_script, command_data)Show 5 other places
chosen = choose_goal(command_data.get("commands", []), repo_path) dataset_hint = derive_dataset_hint(asset_data) checkpoint_hint = derive_checkpoint_hint(asset_data) run_data: Dict[str, Any] = { ) elif args.run_selected: if chosen["selected_goal"] == "training": run_data = maybe_run_training( repo_path=repo_path, command=chosen["documented_command"], train_script=train_execute_script, lane=args.lane, try: argv = build_command(command, shell_mode) environment = dict(os.environ if child_env is None else child_env) spec["requested_argv"] = list(argv) atomic_write_json(run_dir / "spec.json", spec) if shell_mode == "direct": argv = resolve_direct_argv(argv, repo, environment) spec["argv"] = list(argv) atomic_write_json(run_dir / "spec.json", spec) creationflags = subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0 process = subprocess.Popen( argv, env=environment, cwd=repo, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding="utf-8", errors="replace", bufsize=1, creationflags=creationflags, start_new_session=os.name != "nt", ) except (FileNotFoundError, ShellSyntaxRequired, OSError, ValueError) as exc: parser.add_argument("--user-language", default="en", help="Language tag for human-readable reports.") parser.add_argument("--run-selected", action="store_true", help="Execute the selected documented command.") parser.add_argument("--include-analysis-pass", action="store_true", help="Run analyze-project and record its outputs in the stage ledger.")This is local execution with credential environment filtering, not an OS sandbox.Approved programs can access the host and network; use only trusted repositoriesuntil an isolated executor is configured. Commands that change scientificconditions must be explicitly reviewed. P1 targets small evaluations, not full