Repository navigation
history reads another agent's turns, so tasks can see their siblings - #256
Merged
Merged
Conversation
A tool declared with `answered_by: TAG` takes no fixed result. A call that
fits its parameters waits for the answer of whichever client serves that
tag. The client finds it by following the bot (`tool_started` carries
`answered_by` and `expires_ms`) or with `tool_calls {tag}`, and answers with
`tool_result {output | error{code,detail}}`. The turn holds live for up to
250 ms, then parks like `wait` and survives restart. A call nobody answers by
`expire_ms` (default 60 s) ends as a typed `tool_unserved` result, and the
turn goes on.
Gates may now name declared tools, so a client's tool can need approval
before it is asked. Protocol 20, schema 55 (`answers` table).
The approval_overhead bench gains declared, answered and answered_parked
arms. Measurements are in DAEMON_MEASUREMENTS.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGErsjQZRay4MEvYNpr
…r gate, gate what configure declares, refuse late answers Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGErsjQZRay4MEvYNpr
# Conflicts: # docs/RUST_PROTOTYPE.md # src/tools.rs # tests/store_contract.rs
…eads one The history tool takes an optional `bot`. With a bot and no turn, it lists that agent's newest 20 turns, newest first: each one's number along its lineage, its handle, its status and the start of its prompt. With a turn, it reads that turn as it stands, a running one included, paged as before. A bot's own turns are still read by number only. Agents no longer have to read the store to see what a sibling is doing. Sonny's task rule names the tool and says to message another agent only when work depends on it. The lead's rule says tasks can read each other. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGErsjQZRay4MEvYNpr
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. |
lydakis
pushed a commit
that referenced
this pull request
Oct 28, 2026
This was referenced Oct 28, 2026
Merged
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.
George asked whether Sonny's tasks can see what their sibling tasks are doing, the way threads in a project can. Agents were reading the SQLite store directly to find out. Under the rule adopted tonight, an action only agents take is a tool, so this extends the daemon's
historytool instead of adding a CLI command. That choice is waiting on George's pick; the alternative is anagent historycommand.What changes
history {bot?, turn?, offset?, limit?}:botand noturn: lists that agent's newest 20 turns, newest first. Each entry gives the turn's number along the agent's lineage, its handle (turn:BOT/N), its status and the first 200 characters of its prompt. The listing walks back only as far as the 20th turn start.botandturn: reads that turn as it stands, a running turn included, paged exactly as the agent's own history is.bot: works as before. An agent's own turns are read by number only, since they're in its context.bot_not_found.task.md) names the tool and says to message another agent only when one's work depends on the other's.docs/RUST_PROTOTYPE.md, under thehistorytool.Tests
tests/test_siblings.pycovers listing, reading a turn, an unknown bot, and an own-history call with no turn.cargo test --workspacepasses, except two sandfs tests insonny/tests/task.rs. Those fail in this container withoutfusermount3, and CI installs it.There is no visible UI change, so there are no screenshots.