Set up: Suppose that $\mathcal{X}$ is a derived stack (I'm using the conventions of Yaylali's "Notes on derived algebraic geometry," but I'd be happy to work with other conventions of the same flavor, e.g. Antieau-Gepner).
The $\infty$-category of quasi-coherent sheaves on $\mathcal{X}$ is defined to be limit $$\mathcal{D}_{\textrm{qc}}(\mathcal{X}) = \lim_{\operatorname{Spec}A\to\mathcal{X}}\mathcal{D}_{\textrm{qc}}(A),$$ where $\mathcal{D}_{\textrm{qc}}(A)$ denotes the $\infty$-category of $A$-modules for an animated ring $A.$
More General/Vague Question: Heuristically, it is often stated that an object of $\mathcal{D}_{\textrm{qc}}(\mathcal{X})$ is a "compatible family of modules $(\mathcal{F}_A)_A$ for every $\operatorname{Spec}A\to\mathcal{X},$" but in practice, how do we construct and check this compatibility?
Example: As an example, lemma 3.67 in Yaylali's notes states that if $f : X\to Y$ is a morphism of derived schemes, then $f$ admits a cotangent complex $\mathbf{L}_f.$ The proof constructs a candidate for $\mathbf{L}_f$ by first showing that $\mathbf{L}_X$ exists, and then checking that it satisfies the defining properties of a cotangent complex. In the construction, we consider a composition/triangle $\operatorname{Spec}B \to\operatorname{Spec}A \to X,$ where $\operatorname{Spec}A$ and $\operatorname{Spec}B$ are affine opens in $X$ (since in this case, the limit defining $\mathcal{D}_{\textrm{qc}}(X)$ may be taken over open immersions to $X$ from affines). Then we observe that $\operatorname{Spec}A$ admits a cotangent complex $\mathbf{L}_A,$ and that these are compatible with pullbacks in the sense that $\mathbf{L}_A\otimes_A B\simeq\mathbf{L}_B.$
At this point, Yaylali states that this defines an object $\mathbf{L}_X$ in the limit $\mathcal{D}_{\textrm{qc}}(X),$ observing that the relative cotangent complexes of monomorphisms were already shown to exist and be equivalent to $0.$
Specific Question 1: (Why) is it necessary and sufficient to check that the cotangent complex of a monomorphism is $0$ to verify compatibility?
Motivation: One construction I would like to make is a sheafy version of Hochschild homology for a morphism $\mathcal{X}\to\operatorname{Spec}k$ of derived schemes/stacks (which I will denote $\mathcal{HH}(\mathcal{X}/k)\in\mathcal{D}_{\textrm{qc}}(\mathcal{X})$). The "absolute variant," (denoted $\mathrm{HH}(\mathcal{X}/k)\in\mathcal{D}_{\textrm{qc}}(k)$), is defined as a Kan extension of $\mathrm{HH}(-/k),$ so there is no issue there.
However, if we want to view $\mathcal{HH}(\mathcal{X}/k)$ as living on $\mathcal{X}$ itself, this would be like taking a Kan extension of a "functor" where the target category depends on the input (if there's a way of doing this, I'd love to hear about it). However, I know several "compatibility" results which I suspect can be used to construct $\mathcal{HH}(\mathcal{X}/k).$ Namely:
- Given a morphism from $(k\to A)$ to $(k'\to A')$ in $\operatorname{Fun}(\Delta^1,\mathsf{aRing})$ (i.e., a "commutative square" of animated rings), there is a canonical base change morphism of animated rings $\mathcal{HH}(A/k)\otimes_A A'\to\mathcal{HH}(A'/k'),$ which is moreover an equivalence if the square is coCartesian.
- If $k\to A\to B$ is a composition of morphisms of animated rings with $A\to B$ etale, then the base change morphism $\mathcal{HH}(A/k)\otimes_A B\to\mathcal{HH}(B/k)$ is an equivalence.
- If $\operatorname{Spec}A\to\operatorname{Spec}k$ is a monomorphism of derived affine schemes, then $\mathcal{HH}(A/k)\simeq A.$
Specific Question 2: Are the above facts are enough to establish the desired compatibility to form $\mathcal{HH}(\mathcal{X}/k)$ as the object of the limit corresponding to the family "$(\operatorname{Spec}A\to\mathcal{X},\mathcal{HH}(A/k))$"? If so, how do we make this precise, and if not, what is missing (or what fails)?