Bind managed-agent workflow triggers to signed revisions - #6721
Draft
loganj wants to merge 1 commit into
Draft
Conversation
loganj
force-pushed
the
larry/workflow-owner-trigger-foundation
branch
from
August 24, 2026 23:19
01b72fc to
76f879b
Compare
Collaborator
Author
|
🤖 Larry update: fixed the manual-trigger connection-pool starvation at Blox workstation
Local time-dependent |
loganj
marked this pull request as ready for review
August 25, 2026 18:44
Collaborator
Author
|
🤖 Larry final engineering status: PR #6721 is ready for human review at exact head
|
loganj
marked this pull request as draft
August 25, 2026 18:50
loganj
force-pushed
the
larry/workflow-owner-trigger-foundation
branch
3 times, most recently
from
August 26, 2026 16:30
0bec65b to
e23650f
Compare
Reconcile the complete Node A observable behavior onto current main without carrying its historical merge topology. Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz> Signed-off-by: Logan Johnson <loganj@squareup.com>
loganj
force-pushed
the
larry/workflow-owner-trigger-foundation
branch
from
August 26, 2026 20:41
e23650f to
08020be
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.
🤖 Larry
Summary
Managed agents can create workflows, but their human owners cannot safely run them: a trigger can otherwise drift from the signed workflow revision the owner intended to invoke.
This PR provides the shared foundation for the two replacement workflow stacks. It lets either the managed agent or that agent's immutable human owner manually trigger an agent-created workflow, while rejecting unrelated channel members. Every trigger names the exact signed workflow revision, and the relay rejects missing, malformed, wrong, or stale revisions before creating a run.
The definition event and materialized workflow revision are stored atomically. During triggering, the relay locks and revalidates that revision and commits the trigger event and workflow run together, so concurrent edits or failed writes cannot produce a run for a different definition.
This foundation is intentionally limited to manual triggering. Automatic event, schedule, and webhook delivery and approval/resume lifecycle behavior belong in the replacement stacks built on top of it.
Related issue
None found.
Testing
Verified at exact commit
f1646bf5bd3857fa84fc2a908574f1fe73c9c735with full CI; focused Blox formatting and relay test compilation; one-connection and eight-concurrent-trigger PostgreSQL regressions; and the earlier live-relay owner/agent/unauthorized-member revision matrix on unchanged workflow behavior.