Commit Graph

3 Commits

Author SHA1 Message Date
Dow 6c54c3c092 fix(notebook): repair control-plane smoke test so it runs end-to-end
Three bugs fixed in autoresearch_control_plane_demo.ipynb:

1. Wrong variable names in the alternative-backends demo cell (NODE_ROOT,
   SMOKE_PACKET, HARNESS_ROOT → AUTORESEARCH_ROOT, packet_path, CLAW_ROOT).

2. --allow-any-branch passed to autoresearch run, which does not accept that
   flag (loop-only). Removed it; switched to run_cmd + try/except so backend
   failures print cleanly instead of raising a raw JSONDecodeError.

3. Root-cause fix for "Worker did not produce a pending experiment":
   _collect_changed_files() uses after_paths - before_paths to detect edits.
   If train.py is already dirty when the worker starts (left over from a
   prior run), it sits in both snapshot sets so the difference is empty. The
   fallback edit also uses run_shell_command, not edit_file, so edited_paths
   is empty too — changed_files == [] even though the worker did edit the
   file. Fixed by adding git checkout -- train.py right after isolate,
   giving the worker a clean baseline every time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 12:55:43 +02:00
Dowling_Wong 37133c6b3e implemented the memory module 2026-04-08 02:30:15 +02:00
Dowling_Wong c527beaa19 Add autoresearch control plane, repeatable smoke notebook, and stricter train.py edit enforcement 2026-04-08 01:51:32 +02:00