Skip to content

buzz-acp: post a Bench question's answer the agent wrote but never sent - #171

Merged
QuicksilverSlick merged 3 commits into
mainfrom
fix/bench-ask-silent-turn
Nov 18, 2026
Merged

QuicksilverSlick merged 3 commits into
mainfrom
fix/bench-ask-silent-turn

Conversation

@QuicksilverSlick

@QuicksilverSlick QuicksilverSlick commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

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-ask tag.

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_silent now 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 explicit respond_to allowlist (bench_ask_signers, from config.respond_to_allowlist).
    • For Bench Assistant, that list holds only the Bench writer key, the signer of Bench notices.
    • The owner, sibling agents and guests can't trigger it.
    • An agent in owner-only or anyone mode has an empty list, so the fallback is off for it.
  • The post is a layer-1 reply in the card's thread (notice_thread_tags: root = parent = the card).
  • For the Bench branch, the "did the agent post since the turn began" relay check is narrowed with #e to the card's thread, so a post elsewhere in #bench can't hide this card's missing answer. The DM branch is unchanged.
  • One line in base_prompt.md names the df-ask tag. 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.
  • The Factory Steward stays silent, because Bench: questions on steward cards go to Bench Assistant, which answers with sources #170 adds df-ask only to notices sent to a <writer>-questions target. 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:
    • an opted-in notice from an allowlisted signer → posts;
    • the same notice from the owner, from a sibling, or with an empty allowlist → no;
    • no df-ask, a different p-tag, or a non-9 kind → no;
    • the newest notice wins.
  • cargo fmt --all -- --check and cargo clippy -p buzz-acp --all-targets -- -D warnings are clean.
  • Two independent reviews (steward silence and trust). The automated security review flagged the original author-agnostic check, and the allowlist gate here fixes it.

Not covered

  • Answers outside the thread. If the agent answers outside the card thread (top level in #bench, or in a DM), the narrowed check misses that post, and its final text is also posted in the thread.
  • Relay errors. If the relay check errors or times out, nothing is posted, and only the log records it (as in fix(buzz-acp): post an owner-DM answer the agent wrote but never sent #168).
  • Notices with no card thread. A Bench notice whose card was deleted keeps the channel-wide check.

No launch check: buzz-acp only.

🤖 Generated with Claude Code

QuicksilverSlick and others added 3 commits November 18, 2026 09:03
#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>
@QuicksilverSlick

Copy link
Copy Markdown
Owner Author

Retargeting to main: #168 merged in train #169, so this no longer stacks. Closing and reopening only to start CI against main.

@QuicksilverSlick QuicksilverSlick added the lane:ready Builder is done: green, agent-reviewed, exercised. The steward puts it in the next train. label Nov 18, 2026
@QuicksilverSlick
QuicksilverSlick merged commit 233009b into main Nov 18, 2026
130 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lane:ready Builder is done: green, agent-reviewed, exercised. The steward puts it in the next train.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant