A new schema tracks artifact publish/share state, with a routine that trims it down when it grows too large
A new, large data schema now tracks artifact publishing and sharing state, covering things like mode, watch status, capabilities, and live document paths, organized by slug, path, and session. Alongside it, a new truncation routine trims this data when it exceeds size limits, by dropping capabilities, slicing arrays, and halving maps, and marks the result truncated: true whenever it had to cut anything.
This keeps artifact sharing state within size limits automatically, while still marking when data was cut so consumers know the state they received is incomplete.