AppendOutcome
How an append ended. Every expected result is a value; only a defect is an exception.
Cases may be added in a minor release, so a when over it keeps an else branch. The else reads a case as Unknown: whether the stream committed is not known, and reading it back tells.
Inheritors
Types
A stream with the same tenant and request id is already committed: existing.
The stream is committed at position.
Another stream already holds the version; the aggregate is at currentVersion.
The backend refuses the stream as it is, for good, and nothing was committed: a value it cannot store (a decimal MongoDB cannot keep exactly, a \u0000 PostgreSQL's jsonb does not take), an identifier too long for its index. Appending it again is refused the same way, so it is neither retried nor read back; cause says why. In a group (EventLog.appendAll) it fails that stream alone.
Whether the append committed is unknown, for example after a timeout. The version slot decides it: read the stream at the appended version before deciding again.