Repository navigation
Sonny: date the person's words by when each was written, not by its turn - #497
Merged
Merged
Conversation
…policy, test races - Goals (#355): a turn that completes while its goal's check runs is held and checked once that check settles, unless the agent goes on in a newer turn, as a work queue processes an item re-added during processing again. After a restart that replays two finished goal turns, the second is no longer dropped. A replayed continuation whose prompt changed (idempotency_conflict) counts as going on, not as a failure. - Goals (#355): every ending is noted in STORE.lookout/goals/ended/BOT.json (was met/, success only) before the goal file goes, so a lookout that restarts before the lead heard still tells how the goal ended. - Triggers (#404): `--start` agents are made through the same `made()` as `sonny --new`: auto gate, workspace-write sandbox, fallback. Agents an older trigger made with no sandbox and no gate are confined at their next fire. - Sonny reconcile reads every page of a project's bots (#150). - Tests: node scripts get 60 s under test (#418); test_served's /proc wait tolerates the process going between looks; the soak names why its events connection closed and keeps the daemon's stderr. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHQFvDYzqCcbhWmojA
…ts never drop Codex review on #476: an idempotency_conflict names the turn the request started, so it counts as the turn the agent goes on in, and the newer-turn rule holds with changed check output. The settlement channel is unbounded, holding a few per agent with a goal at most, since a goal's turn waits on its one settlement and a full channel dropped it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHQFvDYzqCcbhWmojA
…counts idle turns from before the check it reruns Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHQFvDYzqCcbhWmojA
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a follow-up to #477, which records
written_mson every history node.said(what the nightly cleanup reads, and what~/.agent/memory said SINCE_MSprints) used to date the person's messages by their turn. Every line sent into a turn that ran pastsince_mscounted as recent, even a steer written hours before. So a long turn could make the person look active when they weren't.written_msnow counts only when it was written at or aftersince_ms.written_msand keep the old turn dating, so nothing in an existing store is lost.since_msholds nothing newer, so it is still skipped.Tests
a_message_the_daemon_dated_counts_by_when_it_was_written. It sets up a long turn started before the cutoff, with a line and a reaction each before and after the cutoff. Only the later two count. The test fails on main.cargo test -p sonny(669 passed), clippy and fmt pass. Runtimetests.test_servedpasses (23 OK).docs/SONNY.mdandsonny/FEATURES.mdare updated.