3.11 Ending and Errors

End finishes a conversation. Error reports a protocol violation on one connection and does not finish the operation.

3.11.1 End #

The daemon broadcasts End with these fields:

FieldMeaning
seqFinal sequence number
outcomecomplete, cancelled, or failed
messageOptional explanatory text

complete reports success. cancelled reports abandonment by an action or daemon policy. failed reports that the operation cannot continue. The daemon SHOULD explain the result in preceding turns; the final message is a short conclusion.

After END, the identifier MUST NOT appear in listings. Attach is refused with unknown_kind. The daemon SHOULD close attached connections. A surface renders the outcome and finishes the conversation.

3.11.2 Error #

Error applies only to protocol violations. It does not represent staleness, validation failure, or an operation result. Its codes are:

CodeViolation
malformedInvalid body or field
unboundA message requires a binding, or a bound connection attempts another binding
unknown_refAn answer names an absent ref
bad_valueInvalid input encoding, an ineligible element value, or an action-rule violation
unexpected_typeA message is invalid for the peer or connection state

The sender MAY close the connection after Error. It MUST close it when further decoding is unsafe. Other connections and the conversation remain unaffected.

Edit this page