TITLE: Non-unique splittings of homotopy idempotents
QUESTION [15 upvotes]: By a homotopy idempotent I mean a map $f:X\to X$, where $X$ is a space, equipped with a homotopy $f\circ f \sim f$.  In contrast to the situation in stable homotopy theory (where $X$ would be a spectrum or a chain complex), not every homotopy idempotent splits; there is a counterexample in Warning 1.2.4.8 of Higher Algebra.
I'm interested in the dual question of uniqueness: supposing that a homotopy idempotent splits (up to homotopy), can it have multiple inequivalent splittings?  Put differently, can a space have multiple inequivalent retracts that induce the same homotopy idempotent?
The meaning of "equivalent" here is somewhat subtle.  A homotopy idempotent is, of course, in particular an ordinary idempotent in the homotopy category, and splittings of ordinary idempotents are unique (up to isomorphism).  Therefore, any two splittings of the same homotopy idempotent must be incoherently homotopy equivalent.  That is, if the first splitting consists of $s:A\to X$ and $r:X\to A$ such that $r\circ s \sim 1$ and $s\circ r \sim f$, and similarly the second consists of $A'$, $s'$, and $r'$, then we must have an equivalence $e:A\simeq A'$ such that $s' \circ e \sim s$ and $e \circ r \sim r'$.  However, these homotopies might not be coherently related to the given ones.
Note that Corollary 4.4.5.7 and Proposition 4.4.5.12 of Higher Topos Theory imply that to give a splitting of a homotopy idempotent is equivalent to extending it to a "fully coherent idempotent".  So the question could equivalently be phrased: can a given homotopy idempotent admit multiple inequivalent coherentifications?
One last note: I do mean, as I said, that a homotopy idempotent is equipped with a homotopy $f\circ f \sim f$.  If the homotopy is allowed to vary, then certainly the same underlying map $f$ can admit inequivalent splittings/coherentifications.  For instance, if $f$ is the identity on $S^1 = B\mathbb{Z}$, then in addition to the trivial homotopy $f\circ f \sim f$ there is a nontrivial one, which also admits a splitting, and any splitting or coherentification will remember the difference between these two homotopies.  But if we fix a given homotopy $f\circ f \sim f$, can it be split/coherentified in multiple ways?
I expect the answer is yes, but I would like to see an explicit example.

REPLY [4 votes]: The question "can a given homotopy idempotent admit multiple inequivalent coherentifications" ought to be approachable by the standard spectral sequence machinery, so let me try to do that.  I'll more or less follow the Dwyer-Kan approach. 
Let $M=\langle f\,|\, f^2=f \rangle = \{1,f\}$, the walking idempotent as a monoid.  Let $\mathcal{S}=$ the simplicially enriched category of CW-complexes, and $h\mathcal{S}$ its homotopy category.
Clearly, a "homotopy idempotent" gives rise to a functor $M\to h\mathcal{S}$. (But not quite conversely, as you've built a choice of homotopy into the definition.) A "coherentification" of it should amount to a commutative diagram
$$
\begin{array}{ccc}
{\widetilde{M}} & \to & \mathcal{S} \\ \downarrow &&\downarrow \\ M & \to & h\mathcal{S},
\end{array}
$$ 
where $\widetilde{M}\to M$ is a cofibrant approximation to $M$ in simplicial monoids.  
Let's fix a space $X$ and $f\colon X\to X$ such that $ff=f$, thus determining a functor $\gamma\colon \widetilde{M}\to M\to \mathcal{S}$. We want to compute something about a full subspace of 
$$\newcommand{\Map}{\mathrm{Map}}
\Map_{s\text{Monoids}}( \widetilde{M}, \Map(X,X) )
$$ 
whose points are $\phi\colon \widetilde{M}\to \Map(X,X)$ such that $h(\phi)\colon \pi_0\widetilde{M}\to \pi_0\Map(X,X)$ coincides with our chosen $\gamma$.
There's a spectral sequence for this:
$$
E_2^{s,t}= H_Q^s(M, A_t) \Longrightarrow \pi_{t-s}\Map_{s\text{Monoids}}(\widetilde{M},\Map(X,X))_{\gamma}.
$$
The corner $E_2^{0,0}$ is anomalous.  It is not given by cohomology; rather, it corresponds to a choice of $\gamma\colon M\to \pi_0\Map(X,X)$, which we have fixed here.  We are going to be interested in the groups $E^{t,t}_2=H_Q^t(M,A_t)$ for $t\geq 1$, which potentially contribute to $\pi_0$.  
The cohomology is "Quillen cohomology" of the monoid $M$.  The coefficients are in an abelian group object in $\text{Monoids}_{/M}$.  Such an abelian group object amounts to:

For each $x\in M$, an abelian group $A(x)$.
For each $x,y\in M$, group homomorphisms $x\cdot A(y)\to A(xy)$ and $\cdot y\colon A(x)\to A(xy)$ which are natural (e.g., $x\cdot(y\cdot a)=(xy)\cdot a$ and $1\cdot a=a$, and similarly on the right), and which commute: $(x\cdot a)\cdot y= x\cdot (a\cdot y)$.

From this you can build the monoid $A := \coprod A(x)$ with product defined by 
$$
a\cdot b := (a\cdot y)+ (x\cdot b) \qquad\text{for $a\in A(x), b\in A(y)$.}
$$
For a monoid $M$ acting on a space $X$, we use the coefficient systems defined by 
$$
A_t(f) := \pi_t \Map(X,X)_f \qquad \text{for $f\in M$.}
$$
The "$M$-actions" are defined by pointwise pre-or-post composition of a map $a\colon S^t\to \Map(X,X)$ with the constant map $S^t\to *\xrightarrow{f} M\to \Map(X,X)$ where $f\in M$.
Quillen cohomology is in principle hard to compute, because you need to choose a cofibrant resolution of $M$.  However, there is a theorem:
$$
H^t_Q(M;A) \approx H^{t+1}_{HM}(M,\{1\}; A),
$$
where the other side is (relative) "Hochschild-Mitchell" cohomology.  Basically, Hochschild-Mitchell cohomology is a Quillen cohomology of $M$, regarded as an object in the category of spaces equipped with a two-sided action by $M$.  There is a nice bar complex for computing this.  
Anyway, when I work through all this for $M=\{1,f\}$, I think I get the following.  The Quillen cohomology $H_Q^t(M,A)$ for $t\geq0$ is equal to the cohomology of a complex:
$$
B \to B \to B \to B \to \cdots.
$$
The group $B=A(f)$.  The first differential is $a\mapsto f\cdot a + a\cdot f - a$.  The second differential is $a\mapsto f\cdot a-a\cdot f$.  Then they alternate.  
The two actions $f\cdot, \cdot f$ are commuting idempotents on the abelian group $B$.  Thus, you can write elements of $B$ as $2\times 2$-matrices, so that the actions by $f$ amount to left and right multiplication by $\begin{bmatrix} 1&0\\0&0 \end{bmatrix}$.  It is then easy to show that 
$$
H^t_Q(M, A) =0 \qquad \text{if $t\geq 1$.} 
$$
Note that $H^0_Q(M,A)$ is not generally $0$.  Thus we ought to conclude that the space $\Map_{s\text{Monoid}}(\widetilde{M}, \Map(X,X))_\gamma$ is connected, with higher homotopy groups $\pi_t= H^0_Q(M,A_t)$.
Of course, this is not exactly right: the coefficient system $A_1$ is a group object, but may not be an  abelian group object.  So I need to contemplate the non-abelian cohomology 
$$
E_2^{1,1} = H^1_Q(M, A_1),\qquad A_1(f) = \pi_1\Map(X,X)_f.
$$
That's more than I want to do right now.  In any case, it seems to me the answer to your question comes down to this single group.  [Roughly, this group seems to have something to do with "adjusting" a choice of homotopy $\alpha\colon f\sim ff=f$ by a choice of homotopy $\beta\colon f\sim f$; it's something like the orbits of the action $\alpha\mapsto (\beta\beta)\alpha(\beta^{-1})$ on the set $\{\alpha\,|\,\alpha\cdot f=f\cdot \alpha\}$.]
(It's possible, of course, that I've misinterpreted what you mean by "inequivalent" coherentifications.  The approach I described presupposes one particular notion of equivalence, but there are others.)
(Or I may have screwed up some other way.)