// The catalogue's state, brought to the shape this version needs (novox/hq ADR 0135). // // **The mesh runs this before the version that needs it, and does not start that version if it // fails** — and the refusal reaches this module and nothing else on the machine // (novox/hq ADR 0136). That is the whole difference from where this used to happen: at start, inside // the runtime, a schema that could not be brought up was a crash loop, the graph kept a gap, and // nothing anywhere said so. // // Nothing here connects to the broker. Preparation runs before the version that would use it, so // there is nothing yet to talk to; the runtime's `prepare` mode imports this and awaits it, and this // process exiting non-zero is how the host knows not to start the runtime. import { Graph } from "../store.js"; const graph = Graph.fromEnv(); await graph.migrate(); console.log("[mesh-catalog] the module graph's schema is what this version needs"); await graph.close();