/** * Static invariants between data/model-registry.json and data/routing-table.json. * * Why this exists: the router dereferences model ids straight from the routing * table. If a routing rule points at a model id that isn't in the registry, * enhance-prompt will silently pass an unknown id to the rewriter and the * provider layer, and the failure mode is a surprising ProviderError at * generate-time rather than a clear "routing rule X is broken" at boot. * * We also check the inverse weakly: every registered model should be * reachable — either as a primary, a fallback, or present on `target_model` * overrides in a test. A model that's in the registry but NEVER routed to is * dead weight; flag it as a warning (not an error) so we can still ship * experimental entries without failing startup. * * Run this at server boot (src/server.ts) and via `p2a doctor --data`. */ export interface DataIntegrityReport { ok: boolean; errors: string[]; warnings: string[]; stats: { models_in_registry: number; routing_rules: number; models_referenced_by_rules: number; dangling_rule_refs: number; orphan_models: number; }; } export declare function checkDataIntegrity(): DataIntegrityReport; /** * Assert-style wrapper used at server boot. Logs warnings to stderr and * throws only on hard errors (dangling refs). Silent when the data is clean. */ export declare function assertDataIntegrityAtBoot(): void; //# sourceMappingURL=data-integrity.d.ts.map