Let $S$ be a scheme and $f : X\to S$ be an $S$-scheme. This question asks for examples of maps of sets $X(S) \to X(S)$ that do not come from an $S$-scheme endomorphism of $X$, but that, roughly, specialize to maps $X_s(\kappa(s))\to X_s(\kappa(s))$ that do come from a $\kappa(s)$-scheme endomorphism of the fiber $X_s$ of $f$ at each closed point $s\in S$, with $\kappa(s)$ the residue field of $S$ at $s$.

More precisely, let $R$ be a strictly henselian complete discrete valuation ring and $s$ the closed (geometric) point in $S=\text{Spec}(R)$ and assume $f$ is proper and smooth.

Suppose there are:

- a set-theoretic self map $a : X(R)\to X(R)$
- a set-theoretic self map $a_0 : X_s(\kappa(s))\to X_s(\kappa(s))$
- an endomorphism of $\kappa(s)$-schemes $\alpha_0 : X_s\to X_s$ such that $a_0$ is induced by $\alpha_0$ on $\kappa(s)$-points
- calling $\pi$ the natural map $X(R) \to X_s(\kappa(s))$, $a$ and $a_0$ satisfy the condition $$a_0\circ\pi = \pi\circ a$$

Q1:Is there an endomorphism of $S$-schemes $\alpha : X\to X$ such that $a$ is induced by $\alpha$ on $S$-points and $\alpha_0 = \alpha\times_S\text{Spec}(\kappa(s))$?

To give a sense of what the question asks, for general $S$ this would mean whether and when we can interpolate scheme theoretic endomorphisms of the closed fibers of $f$ to an $S$-scheme endomorphism of $f$, and whether the condition that we can do so set-theoretically on $S$-points is enough.

I'd expect the answer to be **no**. I'm asking for a couple of concrete counterexamples, if any. In other words

Q2:Is there an explicit example of such an $f$ together with the data described beforeQ1and with no such $\alpha$?