Skip to content

Bench: questions on steward cards go to Bench Assistant, which answers with sources - #170

Merged
QuicksilverSlick merged 3 commits into
mainfrom
feat/bench-questions-to-assistant
Nov 19, 2026
Merged

QuicksilverSlick merged 3 commits into
mainfrom
feat/bench-questions-to-assistant

Conversation

@QuicksilverSlick

@QuicksilverSlick QuicksilverSlick commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Factory-Task: bench-steward-card-questions
Built-by: claude-code/claude-opus-5-5
Claude-Account: russelledeming@gmail.com
Undo: revert this PR. Removing the <writer>-questions keys from ~/.dreamforge/bench/routes.json also turns it off without a build: with no such key, the Bench behaves exactly as before.

Why

On Tue 17 Nov Russell tapped Ship it on Reset block#923's steward hold card. He then asked in the card's thread, "What was the actual reason for PR 923?" Nobody answered:

  • A thread reply goes to the card writer's route. For steward cards that is the Factory Steward agent.
  • The steward's prompt tells it to ignore Bench notices, and the steward tick reads only the Why? box.

On Wed 18 Nov he approved sending those questions to Bench Assistant "as long as the bench assistant can communicate with me about where things came from and there's a source", and asked that every worker know why it received something.

What changes

  • Questions go to a questions route. When routes.json has a <writer>-questions key (e.g. steward-questions → Bench Assistant), the owner's free-text question on a #bench card goes there as a Bench question notice.
  • Nothing else moves. These still go to the writer's own route, as today:
    • taps, answer notices and owner-signed approvals;
    • Why? lines;
    • replies from anyone other than the owner;
    • cards outside #bench.
  • The notice says why the agent got the question. It lists sources to start from: the card's links and the card id in state.json. It asks for an answer in the thread that links every source used (the PR, its Factory-Task, Built-by and Claude-Account lines, and what triggered it).
  • It forbids touching the card: no tap, label, rerun, merge, close, re-drop or clear. Its header is new ("Bench question", not "Bench reply"), so Bench Assistant's standing "Bench reply → close the card" steps don't apply. Re-dropping a steward hold card would close it for good.
  • It carries ["df-ask", <reply id>]. buzz-acp: post a Bench question's answer the agent wrote but never sent #171 (buzz-acp, stacked on fix(buzz-acp): post an owner-DM answer the agent wrote but never sent #168) uses that tag to post an answer the agent wrote but didn't send.
  • No silent fallbacks. Suppose a questions route exists but can't take the owner's question, because it isn't joined to #bench, is an answerer on the card, or is the same agent as the writer's route. Then <writer>-questions: <reason> goes on the Bench's unroutable list, and the question falls back to the writer's route.
  • Why? lines are marked. Reply gets a why flag from the Why? box's signed bench:why marker. mod.rs now builds Reply through Reply::of, so it shrinks from 1499 to 1492 lines (the limit is 1500).
  • The card text is untouched (render_card, OR_REPLY, TAP), so the kit's byte-for-byte card rebuild still matches.

Sample, for a steward hold card on a Reset PR after the owner tapped Ship it and then asked:

Bench question · steward/hold-reset-870
Card: reset PR 870 waits for you: Ask members to sign in
The owner asked a question in this thread at 09:12. Their message is event {reply id}. The card's current answer is 1. Ship it.
Why you: the owner's routes.json sends questions on steward cards to you (steward-questions) instead of the steward route, so nobody else will answer.
Sources to start from: Pull request 870 https://github.com/QuicksilverSlick/Metabolic-reset/pull/870 (a PR link names its repo), and this card, steward/hold-reset-870: grep state.json in the Bench folder for that id, as the file is large.
Answer in this thread: say what this card is, where it came from and why, and link every source you used (the PR, its Factory-Task, Built-by and Claude-Account lines, what triggered it). Mention the owner so he sees it.
Answer only. Never tap, label, rerun, merge, close, re-drop or clear this card, even when the question asks for an action: point to the card's buttons instead. If the card says a reply does something (for example, stops a line), tell the owner it did. If the message is not a question (a thanks, say), end the turn with no text.
Open thread: buzz://message?channel=…&id=…

Checked

  • cargo test --lib bench::: 237 pass. Full cargo test --lib: 3538 pass (Windows).
  • Mutation check: each guard (channel, owner, Why?, joined, answerer, same as the writer's route) has a test that fails without it.
  • rustfmt is clean, and the desktop file-size check passes.
  • Two independent reviews (routing correctness, and authority and provenance), plus a verification pass after the fixes.

Not covered (follow-ups)

  • Turning it on is owner config, after this ships. Add "steward-questions" and "factory-questions" → Bench Assistant to ~/.dreamforge/bench/routes.json. Until then nothing changes.
  • No live end-to-end run yet. The Bench service doesn't run in a debug build. Planned on a test card after the release.
  • Bench Assistant's standing prompt still says to close a card after a "Bench reply". A one-line addition ("on steward and factory cards, answer only") is Russell's step in the Dreamforge UI. Until then, the notice's own header and rules are the guard.
  • No hint on the card itself. The phone shows only the signed card text, so there is no "questions go to Bench Assistant" line on the card yet. The notice posted under his question says where it went. Changing the card text needs a kit port first.
  • Pre-existing: a Why? line and a later thread question share one outbox reply file, and the newer one wins (approved.mjs logs plain: true).
  • Upgrade edge: a Why? line that the old build picked but had not yet passed on when the update landed may go to the questions route once. That is a window of about 2 s.

Launch check needed (desktop/): it starts, signs in and opens a channel. The Bench routing itself is covered by the unit tests above.

🤖 Generated with Claude Code

QuicksilverSlick and others added 3 commits November 18, 2026 09:06
A free-text reply on a card now goes to the agent at
routes.json["<writer>-questions"] when the owner set one, it is joined
to the card's channel, and it is not a stamped answerer on the card.
The notice, headed "Bench question" (not "Bench reply", which tells the
target to close the card by re-dropping it), says who asked, why this
agent got it, where to start (the card's links and its Bench state),
and to answer only: never tap, label, rerun, merge, re-drop or clear
the card. It carries a df-ask tag with the reply's event id beside the
df-answer tag.

Taps, owner-signed approvals and Why? lines stay with the writer's
route. A Why? line is a reply signed with the desktop's bench:why
marker, now kept on item::Reply as `why` (Reply::of builds it, so
mod.rs gets shorter). With no questions route, or one that cannot be
used, every reply goes to the writer's route exactly as before. The
client marker bench:route:{id}@r<16 hex> is unchanged.

Owner decision, Wed 18 Nov 2026: whoever gets a Bench question should
be able to say where the card came from and why, with sources.

Claude-Account: russelledeming@gmail.com
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The questions route ("<writer>-questions") now takes a reply only when
it is the owner's own question on a #bench card, not a Why? line, and
the target is joined to #bench, is not a stamped answerer and is not the
writer's own route target. df-ask rides only on those notices, so
buzz-acp never posts the Factory Steward's final text. Anything else
keeps today's notice to the writer's route target.

A questions route that cannot take an owner question is an alarm in
unroutable ("<writer>-questions: <reason>") while it stands, deduped per
tick, and the question falls back to the writer's route. repliesTold
matches "<writer>: ", so it does not read the alarm as the writer's
route refused.

The question notice now names the owner as the asker, says why this
agent got it for any writer, points at grep for state.json, and adds
close and the no-text rule for a non-question.

Claude-Account: russelledeming@gmail.com
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…key tapped

The owner can tap on the phone key and type on the desktop's, so naming
the choice only when the same key did both dropped it from the notice.

Claude-Account: russelledeming@gmail.com
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@QuicksilverSlick QuicksilverSlick added lane:ready Builder is done: green, agent-reviewed, exercised. The steward puts it in the next train. lane:hold Needs the owner's read before any train (paid path, auth, migrations, or asked for). labels Nov 18, 2026
@QuicksilverSlick
QuicksilverSlick merged commit a8d3f69 into main Nov 19, 2026
123 of 126 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lane:hold Needs the owner's read before any train (paid path, auth, migrations, or asked for). 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