Metakit / Prune SSR payloads and gate queries

Shrink SSR resume payloads (Graph.pruneStatic)

A resumable page is one the browser continues from the Model the server sent, so every Model field a view reads has to be in that payload. At server-render time, pass the values you already know (feature flags, tenant settings, fixed constants) to Graph.pruneStatic. Bindings that fold completely to a literal move into staticValues (a known null counts: it is a value, unlike a field you left out, which stays unknown). liveBindings are the others, and resumePaths is the minimal list of Model paths they still read, wrapped in an Option that is None when a binding reads something no path names (an Expr.opaque term with no declared reads).

ts
const pruned = Graph.pruneStatic(bindings, { promoEnabled: false })
// pruned.staticValues -> { promoBonus: 0 }
// Object.keys(pruned.liveBindings) -> ['available', 'statusLabel', 'accountId']
// Option.map(pruned.resumePaths, ps => ps.map(Path.format))
//   -> Some(['balance', 'reserved', 'status', 'id'])