TITLE: How much of a variety can be reconstructed from codimension-zero data?
QUESTION [14 upvotes]: This is an improved version of this question. Maybe it should be an edit -- I'm not sure what the MO convention is.
I'm curious, more or less, how much information one can get out of the derived category of coherent sheaves on a variety which are trivialized outside a finite set. Specifically, suppose $X$ is a smooth, proper variety of finite type over $\mathbb{C}$. Consider the category $\mathcal{C}=\text{Coh}(X)_{\text{codim }0}$ of coherent sheaves which are trivial (in the sense of being isomorphic to a power of the constant sheaf) outside a finite set of $\mathbb{C}$-points of $X$. This is a symmetric monoidal category with inner Homs. Suppose we do not know $X$, but know the category $\mathcal{C}$, together with derived data (the derived category of complexes whose cohomology is in $\mathcal{C}$, together with derived tensor products, Homs and most importantly global sections). Suppose in addition we are given the set of points of $X$ together with their formal neighborhoods, and know for every sheaf in $\mathcal{C}$ how it can be patched out of a globally trivial sheaf together with patching data at some finite set of formal neighborhoods. 
How much information about $X$ does the category $\mathcal{C}$ contain? In particular can $X$ be recovered from $\mathcal{C}$?

REPLY [7 votes]: Let $F$ be a sheaf which is trivial on $X - S$. This means that $j^*F = O_{X-S}^{\oplus n}$ for some $n$, where $j$ is the embedding of $X - S$ into $X$. Note that by Hartogs theorem one has $j_*O_{X-S} = O_X$, so by adjunction one has a morphism $F \to j_*j^*F = O_X^{\oplus n}$ which is an isomorphism on $X - S$. So, this means that such $F$ is a modification of the trivial bundle in the finite number of points. In other words, $Coh(X)_{codim 0}$ is the extenion closed abelian subcategory of $Coh(X)$ generated by $O_X$ and all structure sheaves of points.
EDIT. Let us see what the information we have in this category. First, we have the cohomology of $O_X$. Second, we have a bunch of structure sheaves of points, and this part of the category depends only on the dimension of the variety. Finally, we have multiplication maps
$$
Ext^\bullet(O_X,O_S)\otimes Ext^\bullet(O_S,O_X) \to Ext^\bullet(O_X,O_X)
$$
and
$$
Ext^\bullet(O_X,O_S)\otimes Ext^\bullet(O_S,O_X) \to Ext^\bullet(O_S,O_S).
$$
Since $S$ is $0$ dimensional the first factor lives in degree $0$ and the second in degree $n = \dim X$, so the only thing we have are the maps 
$$
Hom(O_X,O_S)\otimes Ext^n(O_S,O_X) \to Ext^n(O_X,O_X)
$$
and
$$
Hom(O_X,O_S)\otimes Ext^n(O_S,O_X) \to Ext^n(O_S,O_S).
$$
Now let $S= x$ be a point. By Serre duality these maps correspond to the maps
$$
Hom(O_X,O_x)\otimes Hom(O_X,\omega_X) \to Ext^n(O_X,\omega_X\otimes O_x)
$$
and
$$
Hom(O_X,O_x)\otimes Hom(O_x,O_x) \to Hom(O_X,O_x).
$$
So, the second map contains no information, while the first gives the canonical morphism 
$$
X \to P(H^0(\omega_X)^*) = P(H^n(O_X)).
$$
So, on one hand, if $H^n(O_X) = 0$ you cannot reconstruct anything. On the other hand, if the canonical class is very ample, by reconstrcting the anticanonical image you reconstruct all $X$. I am not quite sure what goes on in the intermediate cases.