A declined node routes a structured verdict out its error port
A decline is a real outcome an author can handle, delivered where every other node failure is delivered. It is deliberately not a pair of branch ports that appear and disappear with a configuration flag.
The rule
- A declined node that was scheduled in the graph MUST NOT be executed.
- The decline MUST become an error output on the node's reserved error port, carrying the code
CONFIRMATION_DECLINEDand details naming the interrupt type, the reason, who declined, when, and the interrupt's identifier. - Those details MUST be forwarded as the error edge payload's optional details.
- Where an error edge is wired, the decline MUST be a handled failure (ERR-7); otherwise the run's default failure behaviour MUST apply (ERR-8).
- A decline MUST NOT be surfaced as branch ports that exist only when confirmation is configured: a port surface that depends on a configuration flag breaks the canvas contract.
- An author who wants first-class branching on a human decision uses an explicit confirmation node.
What it means
A decline is not a second set of branch ports appearing on the node because confirmation happens to be turned on for it. It is the same error port every other failure on that node would use, carrying a verdict shaped like any other structured error. An author who wants a decision a workflow can branch on wires an explicit confirmation node instead; a gate is not that node.
Example
A node the operator declines never runs; what its reserved error port
carries instead. code is the decline's code; details.type is the type of the
interrupt that was declined, a value from the interrupt type vocabulary (still
open, see DEFERRED.md), not a code.
{
"code": "CONFIRMATION_DECLINED",
"details": { "type": "confirmation_declined", "reason": "DECLINED" }
}