Can we create a big list of interesting "almost"-categories in the sense that
- we have a collection of objects
- for every pair of objects we have a set of morphisms
- we can compose morphisms
but either
- there are no identity morphisms*
- or the associativity law does not hold
and
- the failure of these laws is not completely trivial, maybe even surprising
- the "almost"-category is not just a contrived example but instead actually appears in mathematical practice?
The last two items mean that I want to exclude boring examples such as "take a transitive relation $R$ which is not reflexive and take a unique morphism $x \to y$ whenever $(x,y) \in R$" or "take a non-associative magma $(X,\cdot)$ / ring / whatever and consider it as a one-object almost-category". These will not be considered as answers since they are not interesting. So I will require in particular that
- there is more than one object
- between two objects there can be more than one morphism
Also, something like "product of a category with a non-associative magma" is not what I am asking for, as this is a contrived example.
My question is related to Example of non-associative composition of morphisms but not identical to it. There, an interesting example was already mentioned: composing paths (indexed by $[0,1]$) in a topological space is not associative. It is only associative up to homotopy. I assume there are many more examples where associativity only holds up to homotopy or isomorphism, but I am curious if there are other interesting examples, i.e. that do not come from weak $2$-categories.
Another example of this type is the category of spans of, say, sets. Objects are sets, and morphisms from $X$ to $Y$ are diagrams of the form $X \leftarrow S \rightarrow Y$, called spans. The composition of two spans $X \leftarrow S \rightarrow Y \leftarrow T \rightarrow Z$ is $X \leftarrow S \times_Y T \rightarrow Z$. This is only associative up to isomorphism.
Background. I am working on some teaching material for category theory. I want to include some non-examples of categories as well, because generally speaking, I think it is a good way to explain a concept by adding also a counterexample. It is easy to give boring counterexamples, as mentioned, but I am interested in more interesting counterexamples, maybe even examples of "almost"-categories where you might first think that it is a category which however turns out to be wrong. I think this will provide an interesting choice for the teaching material since it highlights the importance of checking properties in detail. The example with the path "almost"-category qualifies as such an example, since when you only draw some paths you might forget the reindexing under the hood which then breaks associativity.
*Here my treatment of the identities is not consistent with the treatment of the composition of morphisms, because I regard them as a property instead of data, which is bad (even though you can sometimes find this definition of a category, similar to the - bad - definition of a group where the identity is regarded as a property). I should have said that every object has a specific morphism to itself, but it might not be an identity. But now it's too late to change this since a couple of answers now already refer to the original (inconsistent) requirements.
EDIT: All the answers that have been posted so far are interesting, but unfortunately most of them don't fit to the context that I have given above (but it's on my side to not make this more clear). Imagine you are a beginner and read the definition of a category, and the non-examples talk about monads, $(\infty,1)$-categories, pointed endofunctors, ... all of which already assumes a thorough understanding of category theory. Now it's of course too late to change the requirements what I am looking for. But I have added the education tag, and I hope that more elementary, but still interesting, examples will come in. But more advanced answers are appreciated as well!