I'm learning about fibrations and I read that the functor $dom: C^{\rightarrow} \rightarrow C$ is one for arbitrary category $C$. I can't see it.
I need to show that any morphism in $C^{\rightarrow}$ is (for now just weakly) cartesian wrt $dom$. According to Zhang, it should follow merely from the fact that morphisms in $C^{\rightarrow}$ are commutative squares.
Letting $s \in C^{\rightarrow}[b, a]$ be such a morphism with $dom(s) = f$. I need to show that if $s' \in C^{\rightarrow}[b', a]$ is another such morphism with $dom(s') = f$, then there is a unique morphism $t \in C^{\rightarrow}[b', b]$ with $dom(t) = 1$ and $s' = s \circ t$. Where does the arrow $cod(t)$ in $C$ come from?

Partial answer. EDIT: the definitions used in the paper seem to be a bit weird, conflicting problematically with the definition given by nLab. When I have time I’ll update this to match the definitions on nLab.
$\newcommand{\C}{\mathsf{C}}\newcommand{\D}{\mathsf{D}}\newcommand{\dom}{\operatorname{dom}}\require{AMScd}$Copying definitions from the paper:
Ok, so we consider $p=\dom:\C^{\to}\to\C$. This is a partial answer because I can confirm the lifting property of $p$ but I'm unsure about the composition property.
Let's first classify what the $p$-Grothendieck cartesian arrows are in $\C^{\to}$; they'll be commutative squares: $$\begin{CD}a@>f_1>>b\\@V\alpha VV@VV\beta V\\a'@>>f_2>b'\end{CD}$$Where for every commutative square: $$\begin{CD}c@>f'_1>>b\\@V\gamma VV@VV\beta V\\c'@>>f'_2>b'\end{CD}$$Satisfying $p((f'_1,f'_2))=p((f_1,f_2))$ i.e. satisfying $f'_1=f_1$ so that $c=a$, there is a unique: $$\begin{CD}a@>g_1>>a\\@VV\gamma V@VV\alpha V\\c'@>>g_2>a'\end{CD}$$With $f_1\circ g_1=f'_1=f_1$, $f_2\circ g_2=f'_2$ and $g_1=p((g_1,g_2))=1$.
Let's check the lifting criterion first. Say we have some $\beta:b\to b'$ an object in $\C^{\to}$ and an arrow $\sigma:a\to p(\beta)=b$ in $\C$. One way to construct a lift is $\overline{\sigma}=(\sigma,1)$: $$\begin{CD}a@>\sigma>>b\\@V\beta\sigma VV@VV\beta V\\b'@>>1>b'\end{CD}$$It remains to check this arrow is $p$-Grothendieck cartesian.
So, suppose there is a square: $$\begin{CD}a@>\sigma>>b\\@V\gamma VV@VV\beta V\\c@>>f'>b'\end{CD}$$
We need to find a unique $g=(g_1,g_2)$ in: $$\begin{CD}a@>g_1>>a\\@V\gamma VV@VV\beta\sigma V\\c@>>g_2>b'\end{CD}$$
That also satisfies:
The bullet points force $g_1=1,g_2=f'$ to be chosen. So, we have uniqueness, if it works. However, it's obvious that $g_1=1$ and $g_2=f'$ does work, so we are done.
We also should check the composite of $p$-Grothendieck cartesian arrows is again $p$-Grothendieck cartesian. I confess that I am not sure about this yet.
This edit from the OP seems to depend on a different definition than the one used by the author.
OP edit:
to see this condition suppose (below) that $f, f'$ are cartesian, then we want $f \circ f'$ cartesian. So for another square $g$, we want the square $h$ pictured to the left below. Applying first cartesianness of $f$ (middle) then of $f'$ (right) we get the required components $h_1, h_2$