Skip to content

Commit 40b7380

Browse files
fluffy314cursoragent
authored andcommitted
fix(autoresearch): bind resume lease to worker
Launch the certified REPL worker directly so the one-shot resume lease owner PID matches the process that consumes the certificate. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ff8b692 commit 40b7380

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

autoresearch/prefill/supervisor.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,17 @@ def run_gan_experiment(
14171417
ledger: dict,
14181418
tokenizer_id: str,
14191419
) -> tuple[str, str]:
1420+
bench_python = os.environ.get(
1421+
"KAKEYA_BENCH_PYTHON",
1422+
str(Path.home() / ".venv-distwan/bin/python"),
1423+
)
1424+
bench_model = os.environ.get(
1425+
"KAKEYA_BENCH_MODEL",
1426+
str(Path.home() / "kakeya-models/gemma-4-26B-A4B-it-mlx-4bit"),
1427+
)
14201428
command = [
1421-
"bash", str(repo / "scripts/run_agent_gan_repl.sh"),
1429+
bench_python, str(repo / "scripts/agent_gan_repl.py"),
1430+
"--tokenizer-id", bench_model,
14221431
"--skip-ensure", "--no-auto-loop",
14231432
"--candidate-file", str(candidate_path),
14241433
"--state-file", str(state_path),

0 commit comments

Comments
 (0)