fix(workflows): restore discovery and authorize agent wake#2737
Draft
loganj wants to merge 3 commits into
Draft
Conversation
added 3 commits
July 24, 2026 14:52
Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Resolve the Desktop workflow overview against the authenticated user's active channel memberships in PostgreSQL, with bounded keyset pagination. Remove the multi-channel request array and SQL pushdown path while preserving exact single-channel reads. Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
loganj
force-pushed
the
fix/workflows-discovery
branch
from
July 24, 2026 18:53
d1a1a6f to
3688eda
Compare
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.
🤖
Summary
#hfilter.Details
Desktop's global Workflows view can request workflows across multiple accessible channels. The relay previously applied those
#hvalues only after a limited database read, so newer unrelated events could consume the page and hide valid workflows. Multi-channel#hvalues are now intersected with the authenticated reader's channel access and pushed into SQL beforeLIMIT; explicit channel filters continue to exclude global events.Workflow
send_messageevents are relay-signed, so ACP previously evaluated them as authored by the relay and rejected them under normal owner-only policy. Relay output now carries a dedicatedworkflow-ownerauthority tag whileptags remain attribution and mention routing only. ACP accepts that delegated principal only when the kind-9 event is validly signed by the configured endpoint's NIP-11selfidentity and contains exactly one valid workflow marker and owner tag. Missing, malformed, ambiguous, or forged provenance falls back to ordinary signer authorization, and the derived owner still passes through existingrespond_toand DM restrictions.ARCHITECTURE.mddocuments both contracts. Regression coverage includes adversarial workflow provenance cases, access/requested-channel intersection, SQL-before-limit behavior, global exclusion, empty intersections, and emitted relay/owner provenance.