Repository navigation
buzz-acp: post a Bench question's answer the agent wrote but never sent - #171
Merged
Merged
Conversation
#168 posts an owner-DM answer left as a turn's final text. A question Russell asks on a Bench card reaches Bench Assistant as a writer-signed notice in #bench, not in the DM, so the same silent drop would leave the card unanswered. bench_ask picks the last kind 9 in the batch that p-tags this agent and carries a ["df-ask", ...] tag. post_reply_if_silent now answers either the owner-DM question (unchanged, all of #168's gates) or that notice, which needs no owner and no DM. The desktop adds df-ask only on notices it routes to a question answerer, never on the Factory Steward's, so the steward stays silent. The reply goes where the notice points: root and parent are the card, a layer-1 reply in its thread. For a Bench ask the "did it post" relay check is narrowed to that thread (#e = root), so a post elsewhere in #bench cannot hide this card's missing answer; the DM check stays channel-wide. #bench is the owner's private channel and the Bench asked for an answer there; trust rests on the agent's inbound author gate, as for any notice. The base prompt line now names the Bench case. Claude-Account: russelledeming@gmail.com Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The base prompt promised the silent-turn fallback "when a Bench question notice asks you to answer in its card thread". Today's Bench reply notice (render_route_reply) already says "answer them there" with no df-ask tag, and bench_ask posts nothing for it, so the prompt invited the very drop it describes. The line now names what the code checks and the agent can see in each event's Tags line: a notice tagged `df-ask`. bench_ask's doc now states the rule the desktop must keep: tag only a #bench notice for a question from one of the owner's keys. buzz-acp cannot tell #bench from a project channel and does not check, so post_reply_if_silent's doc no longer reads as if it did. Claude-Account: russelledeming@gmail.com Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bench_ask counted any kind-9 df-ask notice that p-tagged the agent, so the owner, a same-owner sibling agent, or anyone (if respond_to were "anyone") could make the agent publish final text it never sent. Now the notice must be signed by a key on the agent's explicit respond_to allowlist (for Bench Assistant, the Bench writer key), plumbed into PromptContext as bench_ask_signers. An empty list (owner-only or anyone mode) means no Bench fallback. The owner-DM fallback is unchanged. Claude-Account: russelledeming@gmail.com Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
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.
Was stacked on #168, which merged in train #169 on 18 Nov; now based on main. It pairs with #170, the desktop side that adds the
df-asktag.Factory-Task: bench-steward-card-questions
Built-by: claude-code/claude-opus-5-5
Claude-Account: russelledeming@gmail.com
Undo: revert this PR. Only #170's question notices carry
df-ask, so without #170 this never fires.Why
#168 posts the answer an agent wrote as its final text but never sent, and only in the owner's one-on-one DM. #170 sends the owner's questions on steward cards to Bench Assistant, in the card's #bench thread. Bench Assistant forgot to send its answer three times on 17 Nov, so without this its answers there could still vanish silently.
What changes
post_reply_if_silentnow also fires for a Bench question notice. That is a kind-9 event that p-tags this agent, carries["df-ask", …], and is signed by a key on the agent's explicitrespond_toallowlist (bench_ask_signers, fromconfig.respond_to_allowlist).notice_thread_tags: root = parent = the card).#eto the card's thread, so a post elsewhere in #bench can't hide this card's missing answer. The DM branch is unchanged.df-asktag. The agent sees event tags, so it knows when its final text will be posted, and that it can end the turn with no text to stay silent.df-askonly to notices sent to a<writer>-questionstarget. It never adds it to the writer's own route, and a questions route that points at the writer's own route raises an alarm instead.Checked
cargo test -p buzz-acp: 1289 pass, 42 fail. The 42 failing names exactly match fix(buzz-acp): post an owner-DM answer the agent wrote but never sent #168's Windows environment baseline, so nothing new fails. The new test cases:df-ask, a different p-tag, or a non-9 kind → no;cargo fmt --all -- --checkandcargo clippy -p buzz-acp --all-targets -- -D warningsare clean.Not covered
No launch check: buzz-acp only.
🤖 Generated with Claude Code