Skip to main content

check

Function check 

Source
pub fn check(registry: &QueryRegistry, catalog: &Catalog) -> CheckReport
Expand description

Validate a loaded registry against the live schema.

Pure over (registry, catalog) — takes an already-parsed registry and a catalog, so it is callable both at server boot (with the engine’s catalog()) and offline from the CLI (omnigraph queries check), without coupling to server config or an open engine connection.

Every query is type-checked via the same typecheck_query_decl the engine runs for inline queries — no parallel implementation. Failures are collected, not fail-fast, so an operator sees every broken query in one pass.

Advisory lint (warn, never block): an mcp.expose: true query that declares a Vector(N) parameter. An LLM cannot supply a raw embedding vector; such a query should take a String parameter and let the engine embed it server-side at query time. Service-to-service callers may legitimately pass vectors, so this warns rather than rejects.