/** * Inference Governance Integration * * Integrates chrono-warp-drive Dynamo governance endpoint for external * inference checking in governance decision-making. * * @since 2026-05-11 */ import { BaseIntegration } from '../base/index.js'; import type { GovernanceIntegrationConfig, GovernanceVoteResult, BatchGovernanceCheck } from './types.js'; import type { InferenceProposal } from '../../inference/inference-cycle.js'; /** * Main Governance Integration class * * Provides external governance checking for inference proposals via the * chrono-warp-drive Dynamo /governance endpoint. */ export declare class InferenceGovernanceIntegration extends BaseIntegration { private client; private configData; constructor(); /** * Perform integration-specific initialization */ protected performInitialization(): Promise; /** * Perform integration-specific shutdown */ protected performShutdown(): Promise; /** * Perform health check */ protected performHealthCheck(): Promise<{ healthy: boolean; message: string; details?: Record; }>; /** * Check if governance is enabled and available */ isAvailable(): boolean; /** * Start the Dynamo client when a caller required external governance * and boot skipped it because inference_governance.enabled is false. */ ensureDynamoClient(): Promise; /** * Check a single inference proposal via the appropriate governance tool * * Routes to govern_with_solar (strategic proposals) or evaluate_governance * (technical proposals) based on proposal type. */ checkProposal(proposal: InferenceProposal, agentReviews?: string[], historicalIds?: string[]): Promise; /** * Route: evaluate_governance — for purely technical proposals (fix, guard) */ private evaluateProposal; /** * Route: govern_with_solar — for strategic proposals (refactor, codify, automate) * * Brings real-time NOAA GOES solar context into the decision, adjusting * vote weight and adding warnings based on current solar activity. */ private governWithSolarProposal; /** * Check multiple proposals with external governance */ checkProposals(proposals: InferenceProposal[], agentReviews?: string[], historicalIds?: string[]): Promise; /** * Apply decision logic based on governance response */ private applyDecisionLogic; /** * Create fallback vote when governance is unavailable */ private createFallbackVote; /** * Load configuration from features.json */ private loadConfig; /** * Get governance-specific configuration */ getGovernanceConfig(): GovernanceIntegrationConfig; /** * Get client statistics */ getClientStats(): import("./types.js").GovernanceClientStats; } /** * Initialize the global governance integration */ export declare function initializeGovernanceIntegration(): Promise; /** * Get the global governance integration */ export declare function getGovernanceIntegration(): InferenceGovernanceIntegration | null; /** * Shutdown the global governance integration */ export declare function shutdownGovernanceIntegration(): Promise; export * from './types.js'; export * from './governance-client.js';