{"uid":"cap_Ma7dHQz7eHZ-bJ82Dbf7X","slug":"workflow-exclusive-join-deadlock-detector-b499926e","name":"Workflow Exclusive Join Deadlock Detector","description":"An agent that imports a workflow needs all-of joins requiring members from distinct arms of an explicit exclusive fork detected.","url":"https://detect.halowerk.com/v1/workflow/workflow-exclusive-join-deadlock?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["exclusive_forks","joins"],"properties":{"joins":{"type":"array","items":{"type":"object","required":["requires"],"properties":{"requires":{"type":"array","items":{"type":"string","maxLength":128,"minLength":1},"maxItems":128,"minItems":1}},"additionalProperties":false},"maxItems":128,"minItems":1},"exclusive_forks":{"type":"array","items":{"type":"object","required":["arms"],"properties":{"arms":{"type":"array","items":{"type":"array","items":{"type":"string","maxLength":128,"minLength":1},"maxItems":128,"minItems":1},"maxItems":32,"minItems":2}},"additionalProperties":false},"maxItems":64,"minItems":1}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hF6aSixs2cQC8GscqbnF8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects potential deadlocks in workflow designs where all-of joins require members from mutually exclusive arms of an exclusive fork.","exampleAgentPrompt":"Can you check my workflow for exclusive join deadlocks? It has two exclusive forks — the first with arms [['taskA','taskB'],['taskC']] and the second with arms [['taskD'],['taskE','taskF']] — and joins that require [['taskA','taskC']] and [['taskD','taskF']].","exampleUseCases":[{"title":"Validate BPMN exclusive gateway workflow","prompt":"I'm designing a process with exclusive gateways and all-of synchronization joins. Can you check whether any of my joins require tokens from different exclusive arms that can never both fire? Forks: [{arms:[['approveA','reviewA'],['rejectA']]},{arms:[['approveB'],['rejectB','escalateB']]}], joins requiring: [['approveA','rejectA'],['approveB','escalateB']]."},{"title":"Pre-deployment workflow correctness check","prompt":"Before I deploy this workflow engine configuration, I need to verify it won't deadlock. It has exclusive forks with arms [['sendEmail','logEvent'],['skipNotification']] and [['chargeCard'],['issueRefund']] and a join requiring ['sendEmail','chargeCard','issueRefund'] — can you tell me if that join is reachable or will it block forever?"},{"title":"Debug stuck workflow automation","prompt":"My workflow automation keeps hanging and I think it's because of a bad join condition. Can you analyze these exclusive forks: [{arms:[['pathX'],['pathY','pathZ']]}] and joins: [{requires:['pathX','pathY']}] to tell me whether the join is waiting on members from mutually exclusive branches?"}],"resultDescription":"A structured analysis result indicating whether any deadlock conditions were detected, specifying which joins require tokens from distinct arms of the same exclusive fork (making those tokens mutually exclusive and the join unreachable), along with the specific conflicting fork-join pairings.","failureModes":["Invalid artifact schema — missing required 'exclusive_forks' or 'joins' fields returns a 400 error","Exclusive fork has fewer than 2 arms — rejected as invalid fork definition","Join 'requires' list is empty or contains unrecognized branch identifiers not referenced in any fork arm","Input arrays exceed maximum sizes (64 forks, 128 joins, 32 arms per fork) causing rejection","Branch identifier strings exceeding 128 characters or empty strings cause validation errors"],"whenToPreferThis":"Use this endpoint when statically analyzing a workflow definition that uses exclusive (XOR) fork semantics combined with all-of (AND) join synchronization, specifically to catch deadlocks before runtime. It is purpose-built for the fork-join deadlock pattern and handles multi-fork, multi-join workflow graphs. Prefer this over general workflow linters when you need precise identification of which join/fork pairs create the deadlock, not just a pass/fail result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:38:09.900Z","isFirstParty":false,"canonicalSlug":"workflow-exclusive-join-deadlock-detector-b499926e"}