Repository navigation
feat(agents): remove workflow restriction flag, explain ignored mentions, warn on owner-only agent mentions - #3141
wpfleger96 wants to merge 8 commits into
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.
2f4ec1f to
bf74e9d
Compare
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>
bf74e9d to
27373c8
Compare
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 Runs; 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. 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 https://github.com/squareup/buzz-releases/pull/146. This stays a draft until block/buzz#9227 is deployed to bb-block production.