Repository navigation
Lookout keeps news past 64 and says what it could not keep; burst gets a per-ask ledger - #653
Conversation
…keep; the burst gets a per-ask ledger
George chose a durable backlog for the lookout's overflow (11-02, on the
external reliability review): "nothing fell through" needs every ask
kept, and a script source has no history to recover a dropped one from.
- Up to `sonny.lookout_waiting` events (1024; 0 for no limit) wait for a
subscriber, on disk with the rest of what it is to be told, as before.
Past that a newer event is not kept; one that steers takes the place of
the newest waiting one that does not. The next note says how many, from
which sources and when ("- 40 more events from chat and ci came between
9 minutes ago and 1 minute ago, and they were not kept: 1024 were
waiting for you already"); until that note lands the count is kept on
disk and told again. The log names each one with its source and ID;
`/status` shows what waits and what was not kept today; the note's row
shows "40 not kept". "N more in the next note" reads "N more waiting,
in the notes after this one".
- bench/burst_ledger.py: each burst run writes asks.md/asks.json, every
planted ask from release to note (reached), the lead's calls
(delegated, or edited itself), a code ask's change checked on main and
on every branch, a quick look's or the person's call's answer in what
the lead said, and how long it waited. The summary adds main's tests,
every agent's turns, failures and tokens recorded from the event stream
as the run goes (so deleted tasks count), the lookout's events not
kept, and the run's peak memory and CPU. `role_eval ledger` writes it
again for a finished run whose root is still there.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGDyPdHJg8z33aishEj
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: 113b81373b
ℹ️ 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".
…t; the ledger runs agents' code sandboxed From Codex's review of #653: - The lookout service reads sonny.lookout_waiting at start and with the rest of the settings every 15 s, and every lookout takes it; it was parsed and shown but never used. - What a note under way says was not kept is kept on disk apart, as unkept_sending, so the note sent again after a restart says it too. - The ledger runs the agents' code, and git in their repository, in `agent sandbox` (network off, writing only its own copy) with the run's HOME and no provider key. - A code ask the lead began itself counts as handled. - An ask not acted on waits until the run ended, kept in asks.json, so writing the ledger again later gives the same waits. - Memory and CPU count the lead's `sonny acp` and every process under the run's own. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGDyPdHJg8z33aishEj
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 00b8a26eb6
ℹ️ 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".
… of tests answers From Codex's review of 00b8a26: - Written again, the ledger keeps peak memory and CPU from the asks.json the run wrote, as it keeps the run's end: only the run could measure them. - The "how many tests" quick look counts as answered by any count: an earlier ask adds two tests, so three is not the only right answer. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGDyPdHJg8z33aishEj
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b483a3be5d
ℹ️ 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".
… ends fails From Codex's review of b483a3b: - The expired-test ask counts as done when some test of the session code fails once is_expired never says yes, however the test asserts it. - A code check or the suite that runs past its timeout counts as failed, and the rest of the ledger is still written. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGDyPdHJg8z33aishEj
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGFQFsMWT3ryazYxU9H
From the external reliability and progress reviews (through 5e3016e and 4a15966). No daemon code changes.
Lookout: durable backlog, then say so
George chose this on 11-02. Before this change, past
HEARD = 64waiting events the lookout dropped the oldest one with no word to anyone. A script source has no history, so an ask dropped there could not be recovered.sonny.lookout_waitingevents wait for a subscriber. The default is 1024, and 0 means no limit. They are kept on disk in the held JSON alongside the rest of what the subscriber is still to be told, the same as before.{"source", "id", "skipped": "more waiting than sonny.lookout_waiting"}./statusshows " · N from sources waiting" and " · N from sources not kept". The note's transcript row shows "40 not kept".Where it lands:
sonny/src/lookout/mod.rs: the newUnkeptstruct,heard_from,wake_sources, the Sourced/reconnectedhandling,kept/restore, andstatus()sonny/src/lookout/sources.rs:notesonny/src/transcript.rs:sourcedclient/src/config.rsandsonny/src/config.rs: the new settingBurst: per-ask ledger
bench/burst_ledger.pywritesasks.mdandasks.jsonfor each burst run. For each of the 20 planted asks it records:The summary adds:
agent follow --allwhile the run goes, so a task deleted before the end still counts;python3 -m bench.role_eval ledger --day burstwrites the ledger again for a finished run whose root is still in~/.role-eval. docs/ROLE_EVAL.md describes the ledger, and its burst Results caveat now says the 8b0b429 runs came before this change.Checks run
cargo fmt --all --checkandcargo clippy --locked --workspace --all-targets -- -D warningscargo test -p sonny --bin sonny lookout: 140 passed. The full sonny suite passed before the rebase (995).cargo test -p agent-client config: 14 passedpython3 -m unittest tests.test_role_eval: OK. This covers every ask having a ledger entry, no code check passing on the starting repo while a done change does pass, and an end-to-end ledger run.