Skip to content

Daemon: a follow can name the event kinds it wants; the lookout leaves streamed text out - #407

Merged
lydakis merged 6 commits into
mainfrom
claude/project-thread-faied7
Oct 30, 2026
Merged

lydakis merged 6 commits into
mainfrom
claude/project-thread-faied7

Conversation

@lydakis

@lydakis lydakis commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Fix 5 from the lookout scale work, which George agreed to. A client that follows * gets every event of every bot, and most of those are text deltas. The lookout reads none of them, yet they fill its session's queue. Past about 1,000 streaming bots, that queue was what got the lookout dropped.

What changes

Numbers

bench/lookout_scale.py, 100 projects × 10 tasks (1,100 bots), 10 deltas/s per streaming task, 30 s load, 4-core container:

#398 alone with kinds
task endings told 0 of 6,000 (daemon dropped the lookout) 6,000 of 6,000
note delay p50 / p95 n/a 2.6 s / 3.0 s
lookout CPU 4% 3.2%
lookout reconnects constant none

With kinds, the daemon's per-session queue of 64 packets no longer needs to grow for the lookout. I raised that separately with George.

Tests

  • server::hub::tests::a_follow_that_names_kinds_gets_only_those
  • tests/test_daemon.py::test_a_follow_that_names_kinds_gets_only_those: replay and live, plus the refusal
  • Workspace fmt, clippy -D warnings and cargo test pass. tests.test_lookout, tests.test_daemon and the served lookout, goal and resolve tests pass against release builds.

…s streamed text out

`follow` takes an optional `kinds` list. The follow then receives only
events of those kinds, in replay and live; `follow_live` and `pruned`
still come, and an empty list or a bad name is `invalid_follow_kinds`.
What it passes by still counts as seen, so no replay sends it later.

The lookout follows only the kinds it reads, so the text models stream,
most of all events, never reaches its session's queue. A quiet task is
told from its model calls' `usage` instead of its deltas. PROTOCOL 24.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEHSaQA9KQfmqTB4MM
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T03:15:53.959812Z 30987ce New commits
🔒 Security Review ✅ Completed 2026-10-30T03:16:45.002673Z 30987ce New commits
ℹ️ 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: 039b82866d

ℹ️ 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 src/server/hub.rs Resolved

lydakis commented Oct 30, 2026

Copy link
Copy Markdown
Owner Author

The rust job failed on math::tests::display_math_draws_when_node_is_here: "LaTeX took longer than 5s". This PR doesn't touch sonny/src/math.rs or the Node renderer. The test passes in 0.45 s on this head locally, so it looks like the 5 s Node timeout ran out on a busy runner. I'll re-run the failed job once the other jobs finish. If re-running isn't open to this session, I'll leave that call with the merge.


Generated by Claude Code

@lydakis
lydakis merged commit 1b99ede into main Oct 30, 2026
4 of 5 checks passed
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