Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: baf946b80f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A fire that started the daemon after a restart, with no Sonny window open, left the lead deaf to its tasks and `auto` calls with nobody to judge them. Before it sends, a fire now starts the lookout when none watches that daemon, and the approver when the agent it wakes is in `auto` and none serves it, as a window does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHCyGRHdT5WYDPKVFY
…y its lock The lookout and approver a fire starts now get the login shell's environment under Agent's env file, as the daemon does, so a judge whose key only the profile exports can run. Whether a lookout runs is now whether one holds the lock, not whether the pid in its file lives, which after a restart may be another process's. Also passes store and socket at sonny acp's two call sites, which main added meanwhile. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHCyGRHdT5WYDPKVFY
baf946b to
892fbb8
Compare
|
No fix exists for it yet. I'm re-running the failed job once. Generated by Claude Code |
|
I couldn't re-run it: the re-run call got 403 "Resource not accessible by integration". The PR stays watched. Someone with Actions access needs to re-run the failed Generated by Claude Code |
|
Closing this. George picked a different shape: the daemon will start, restart and stop companion commands listed in Generated by Claude Code |
Step 1 of the autonomy plan. Before this PR, only an open Sonny window (and
sonny acp) started the lookout and theautoapprover. A trigger's fire that started the daemon, for example after the Mac restarted with no window open, started neither. Leads it woke never heard from their tasks, andautocalls had nobody to judge them.What changes
flockand lets go at once. It no longer goes by the pid in the lock file, which after a restart may belong to another process. A lookout that starts during that instant tries its lock once more after 50 ms.autoand no approver servesauto, the fire also starts the approver, judged on the agent's model unless[judge]names another.~/.agent/envon top, the same as the daemon a fire starts. That way a judge whose key only the person's profile exports can still run.start_lookoutandserve_autoa window uses. They now take the store, the socket and aloginflag instead of the window's options, andsonny acp's call sites are updated to match.docs/SONNY.mdanddocs/LOOKOUT.mddescribe this.Sonny only; the daemon doesn't change.
Tests
test_a_fire_that_starts_its_daemon_brings_up_the_lookout_and_the_approver: makes anautolead, shuts down the daemon, and fires with a login profile that exports a key. It checks that a lookout watches,autois served, and that both processes have the profile's key (Linux/proc). A second fire keeps the same lookout. The test fails without the login environment and passes with it.a_lookout_runs_while_one_holds_its_lock_whatever_pid_it_names.tests.test_trigger+tests.test_lookout: 32 ran, 1 skipped (launchd, macOS only).cargo test -p sonny,cargo clippy --workspace --all-targets -D warningsandcargo fmt --checkare clean.No visible change, so no screenshots.
🤖 Generated with Claude Code