Repository navigation
feat(agents): remove workflow restriction flag, explain ignored mentions, warn on owner-only agent mentions - #3141
Conversation
|
🤖 Security review of Removing the build restriction makes Please keep the existing restriction until every production pod runs |
3c814d5 to
2f4ec1f
Compare
kalvinnchau
left a comment
There was a problem hiding this comment.
🤖 One non-blocking regression-coverage gap; no current functional defect demonstrated.
bf74e9d to
27373c8
Compare
wesbillman
left a comment
There was a problem hiding this comment.
🤖 Star Lord: changes recommended at 27373c8; see inline findings. Core-team confirmation is needed for default message notes and replacing the per-build workflow restriction; keeping explanations in Workflows/Runs is the smaller-scope option. Source review only, with incomplete dedicated product coverage and unverified fleet rollout.
Delete the build flag that kept workflow messages from authorizing local agent requests in listed communities. Delegation is again decided only by the relay-signed buzz:workflow-mention check, as before #2518. The relay's secure workflows mode now withholds that tag for runs the owner or a timer did not start. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
…mentions A mention an agent refuses for who sent it now leaves a note under the message, on the owner's device only. The reason comes from mentionAuthority, next to fromOwner, which every bundled harness and the plugin harness kit report through Delivery.ignored. The workflow editor reads the community's NIP-11 workflow_agent_mentions and warns when agents mentioned in the workflow's messages won't act on some or all of its runs. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
…usal Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
Only the owner's own workflow message that doesn't direct the agent gets a note. Other ignored mentions stay silent, as before.
Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
Each runtime gives the workflow reason for its owner's workflow mention that doesn't name it, and the runner keeps it for the decline projection. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
cbd4c8f to
e325606
Compare
* origin/main: (37 commits) feat(activity): show an unread count on the sidebar Activity row (#3641) feat(solo): reorder workspaces like channel sections (#3524) update feedback community invite link (#3652) Keep the AppImage's bundle paths out of host processes (#3653) Keep custom status emoji inline in the profile preview and mark agents in the full profile (#3534) feat(solo): rename workspaces in settings (#3531) Compact superseded thread summaries before memory admission (#3583) Skip retained thread events before replay reconciliation (#3584) feat(messages): replace the forward-like thread icon (#2166) fix(mentions): draw people outside the channel as people in the mention picker (#3640) fix(tests): prevent onboarding tests from crashing on macOS (#2883) fix(threads): don't count your own nested reply as a new message (#2767) fix(notifications): let only confirmed mutes cancel message alerts (#2766) fix(channels): leave Option+Up/Down to text fields outside the composer (#2765) fix(settings): show full section names in the Settings sidebar (#2759) fix(messages): drop stable row activity for rows that left the timeline (#2738) feat(agents): remove workflow restriction flag, explain ignored mentions, warn on owner-only agent mentions (#3141) Let Solo chats reference anyone from the directory (#1585) chore(goose): bump bundled goose-acp to v1.59.2 (#3636) fix: match verified names throughout author search (#3506) ... # Conflicts: # src/features/messages/ForwardMessage.tsx
Brings #2632's current head, including its main merge, under #2479. No conflicts; Pi A's routing is unchanged. * commit 'bb26ce88a': (81 commits) Default the gateway launcher client to buzz fix(tests): prevent onboarding tests from crashing on macOS (#2883) fix(threads): don't count your own nested reply as a new message (#2767) fix(notifications): let only confirmed mutes cancel message alerts (#2766) fix(channels): leave Option+Up/Down to text fields outside the composer (#2765) fix(settings): show full section names in the Settings sidebar (#2759) fix(messages): drop stable row activity for rows that left the timeline (#2738) feat(agents): remove workflow restriction flag, explain ignored mentions, warn on owner-only agent mentions (#3141) Let Solo chats reference anyone from the directory (#1585) chore(goose): bump bundled goose-acp to v1.59.2 (#3636) fix: match verified names throughout author search (#3506) fix(profiles): report open-view room from profile limit (#3625) Keep a fullscreen Buzz Browser page visible (#3234) fix(federated-identity): tolerate a clock up to 120 s off (#3508) perf: stop repeating name lookup and members dialog work per render (#3570) perf(threads): overlap the reads that open a thread (#3582) perf: keep the sidebar from rendering on thread open and close (#3599) fix(messages): hide Quote while interactive overlays are open (#3591) fix(dialog): use one 12px heading-to-body gap (#3537) fix(builderlab): forward signInLink to community sign-in sessions (#3627) ... Co-authored-by: coder3 <248973805a0e284e54ffdfa66d1b2cc85befba57e7d640e984b61229ed6e5dc2@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Philip Azar <pazar@squareup.com>
Removes the
BUZZ_WORKFLOW_RESTRICTED_COMMUNITIESbuild flag added in #2518, shows owners a note when their agent ignores a message from their own workflow, and warns in the workflow editor when the relay uses owner-only agent mentions (block/buzz#9227).Removing the flag. This removes the
vite.config.tswiring, the gate inowner-attestation.tsand the harness call sites that passed the community, theAgentReads.originfield, the flag's tests, and its docs inconfiguration.md,workflows.mdandbuzz-help.md. The relay-signedbuzz:workflow-mentioncheck alone decides workflow delegation again.docs/workflows.mdanddocs/unread.mdsay that a relay using owner-only agent mentions may leave that tag off.A note when an agent ignores the owner's workflow.
mentionAuthority()sits next tofromOwner()and returnsworkflowwhen the owner's own workflow posted a mention without abuzz:workflow-mentionfor this agent. Every other refusal has no reason, including a direct mention from someone else and someone else's workflow, so those stay silent as on main.fromOwner()is nowmentionAuthority() === "owner". The Claude, Codex, Goose and Pi runtimes pass the reason toDelivery.ignored(refusal). The runner records it in local activity, andAgentDeclineNotesshows it under the message on the owner's device. On anownerrelay (read with the editor'suseWorkflowAgentMentions, only once a note exists) the note gives the community reason and points to the workflow's Runs tab for a reason when it lists one; elsewhere it says "‹Agent› didn't respond because this workflow message wasn't set up to direct agents." Nothing is published. Other rejections callignored()with no reason and store and show no note. Two behaviour details:workflowonly if that profile was already read.An editor warning.
useWorkflowAgentMentionsreads the active community's NIP-11workflow_agent_mentionsfield throughnativeRelayInfo, once per community: every note and the editor share one pending read and its result, and a failed read is retried on the next mount. A missing or unknown value counts asany. When the value isownerand asend_messagestep's text mentions an agent in the channel, the editor shows a warning while you edit:Block's build scripts drop the flag in squareup/buzz-releases#146. Merge after block/buzz#9227 is deployed to bb-block production.