Skip to content

Lookout: every note steers once its news settles (M12) - #768

Merged
lydakis merged 8 commits into
mainfrom
claude/project-thread-y8hnke
Nov 7, 2026
Merged

lydakis merged 8 commits into
mainfrom
claude/project-thread-y8hnke

Conversation

@lydakis

@lydakis lydakis commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

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 steer once 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 a steer pattern 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_due sends once news settles, whether the agent is busy or not, and every note's delivery is steer. 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." (new Steer::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: note takes joins. 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_at is removed, and idle is 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." For steer, "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.md and sonny/README.md are updated; the README still described the removed lookout judge. sonny/FEATURES.md gets 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.rs stays queue: 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 sonny passes. cargo clippy -p sonny --all-targets -D warnings and cargo fmt are clean.
  • python -m unittest tests.test_lookout passes (10 tests) against release binaries.

🤖 Generated with Claude Code

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
@lydakis lydakis self-assigned this Nov 7, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T04:22:25.882507Z 896ac0a New commits
🔒 Security Review ✅ Completed 2026-11-07T03:10:46.590479Z 1e4a4ae PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread sonny/src/lookout/mod.rs Resolved
Comment thread sonny/src/lookout/mod.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread sonny/src/lookout/updates.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread sonny/src/lookout/mod.rs Resolved
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
@lydakis lydakis changed the title Lookout: news a busy subscriber never rests for cuts in once late Lookout: every note steers once its news settles (M12) Nov 7, 2026
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
@lydakis
lydakis merged commit a9c7042 into main Nov 7, 2026
5 checks passed
@lydakis
lydakis deleted the claude/project-thread-y8hnke branch November 7, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants