Commands extracted from a README can execute locally with the user's privileges
Source references: 6The reproduction flow treats the repository README and linked documents as command sources and automatically selects a target. With `--run-selected`, it passes that text to the runtime. The child process inherits the full environment by default and starts in the repository. Being documented does not mean the command was safely reviewed.
A malicious or unsafe README command could alter or delete accessible files, install software, use the network, or read inherited credentials. Direct mode reduces shell-syntax exposure but does not restrict what the launched program can do.
The risk is supported, but execution occurs only when the user explicitly enables `--run-selected`. The flow extracts and selects commands from the README or linked local documentation, then passes the selected command to a local runner. The runner starts it in the repository and, by default, copies the controller's full environment. Being “documented” is not equivalent to a security review here. The user should inspect the exact selected command, retain direct mode, and restrict the child environment or use isolation.
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
) else: run_data = maybe_run_command( repo_path, chosen["documented_command"], args.timeout, args.user_language, args.shell_mode, runtime_root, model_adapter, args.monitor_gpu, ) 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,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 fulltraining or autonomous source repair. 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.") ) 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,