Repository navigation
Lookout: every note steers once its news settles (M12) - #768
Conversation
A 10-minute digest reached a task about 21 hours late: news that does not steer waited for its subscriber to rest, and a subscriber kept busy by messages from elsewhere (busy counts queued and ready turns) never did. News now waits for rest at most its window: its digest (the subscription's, else its source's), else `sonny.lookout_rest_minutes` (15 by default; 0 waits however long, as before). Then it goes as a steer, joining the running turn, and the note says why. A subscriber that rests hears everything as before; the person's words and steers go at once as before. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHC3i5tCSya5Hav3ZG
Codex Review Summary: ✅ CompletedThis 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: 1e4a4ae8e9
ℹ️ 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".
…its source's Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHC3i5tCSya5Hav3ZG
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHC3i5tCSya5Hav3ZG
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4220e89649
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a889bd3ce
ℹ️ 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".
…is late Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHC3i5tCSya5Hav3ZG
The cap on how long news waits for a busy subscriber to rest (lookout_rest_minutes) is superseded: George wants every delivery to be steer, queue or attach, with nothing held for the subscriber to rest, so the next commit makes every lookout note steer. This merge takes main as it is. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHC3i5tCSya5Hav3ZG
The lookout held task and source news until the subscriber rested, so a subscriber others kept busy never heard it: a 10-minute digest arrived 21 hours late (M12). Sonny delivers only by steer, queue or attach, steer first, so every note now goes as a steer once its news settles: it joins the running turn at its next round, or starts one. The person's words and what a `steer` pattern marks still go at once, past any digest. A note joining a running turn ends with a line saying to act where it changes the work and carry on; one that starts a turn ends as before. lead.md says the note joins the running turn or starts one. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHC3i5tCSya5Hav3ZG
The tool still said the rest of the news waits until the turn ends, and that a steer cuts into the running turn: every note now joins the running turn or starts one, and what `steer` matches goes at once, past any digest. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHC3i5tCSya5Hav3ZG
Summary
The lookout held task and source news until the subscriber rested. A subscriber that other agents kept busy never rested, so it never heard its news: a 10-minute digest arrived 21 hours late (M12).
George's rule (11-07) is that Sonny delivers only by steer, queue or attach, and prefers steer. The lookout's hold was a fourth, hidden mode. Now every lookout note, from tasks and from sources, goes as
--delivery steeronce its news settles (2 s, or up to 15 s while reads finish). It joins the running turn at its next round, or starts a turn if the agent is idle. The person's words, and what asteerpattern marks, still go at once and skip any digest. Digests remain the only way to slow news down.This replaces this PR's first approach, which capped the wait at the digest or 15 minutes and added
lookout_rest_minutes. That cap and its setting are gone.Changes
sonny/src/lookout/mod.rs:wake_duesends once news settles, whether the agent is busy or not, and every note's delivery issteer. A note that joins a running turn ends "This joins your turn as it runs: act on it where it changes what you or a task is doing, then carry on with your turn." (newSteer::News). The wording for the person's words and for rules is unchanged. Source notes also go as a steer once settled.sonny/src/lookout/sources.rs:notetakesjoins. When it joins a running turn, it ends "Act where something changes your work, then carry on with your turn." When it starts a turn, it ends as before.sonny/src/lookout/updates.rs:due_atis removed, andidleis now test-only.sonny/agents/lead.md: "It comes once your turn ends, except the person's words in a task which cut into your running turn." becomes "It joins your running turn, or starts one." This is 55 bytes shorter.sonny/src/served.rs, the subscriptions tool: "The person's own words cut into your running turn; the rest waits until your turn ends." becomes "Each note joins your running turn, or starts one." Forsteer, "it cuts into your running turn and waits for no digest" becomes "it goes at once and waits for no digest". The lead's declared tools get about 55 bytes smaller.docs/LOOKOUT.mdandsonny/README.mdare updated; the README still described the removed lookout judge.sonny/FEATURES.mdgets a row entry.tests/test_lookout.py: news steers a busy lead without waiting, and a steered note is told only once across a lookout restart.The bounce note stays
attach, because it is an FYI.lookout/goals.rsstaysqueue: each goal continuation must be a turn of its own, because the goal's check runs at that turn's end.Testing
cargo test -p sonnypasses.cargo clippy -p sonny --all-targets -D warningsandcargo fmtare clean.python -m unittest tests.test_lookoutpasses (10 tests) against release binaries.🤖 Generated with Claude Code