/** * Gate Validators for 4-Layer Operation Verification System * * Individual validator functions for each gate layer: * - Layer 1: Schema validation (JSON Schema, format constraints) * - Layer 2: Semantic validation (business rules, anti-hallucination) * - Layer 3: Referential validation (cross-entity integrity) * - Layer 4: Protocol validation (RCASD-IVTR+C lifecycle) * * Moved to core for proper layering (formerly in dispatch). * * @task T2936 * @task T3138 * @task T5707 * @epic T2908 */ import type { ProtocolEnforcer } from '../compliance/protocol-enforcement.js'; import { type GateViolation, type LayerResult, type OperationContext, type WorkflowGateTracker } from './operation-verification-gates.js'; /** * Layer 1: Schema Validation * * Validates operation parameters against JSON Schema definitions. * Checks required fields, data types, and format constraints. */ export declare function validateLayer1Schema(context: OperationContext): Promise; /** * Layer 2: Semantic Validation * * Validates business rules and logical constraints. */ export declare function validateLayer2Semantic(context: OperationContext): Promise; /** * Layer 3: Referential Validation * * Validates cross-entity references and relationships. */ export declare function validateLayer3Referential(context: OperationContext): Promise; /** * Layer 4: Protocol Validation * * Validates RCASD-IVTR+C lifecycle compliance and protocol requirements. */ export declare function validateLayer4Protocol(context: OperationContext, _enforcer: ProtocolEnforcer): Promise; /** * Validation rule definitions for reuse */ export declare const GATE_VALIDATION_RULES: { TASK_ID_PATTERN: RegExp; MANIFEST_ID_PATTERN: RegExp; DATE_FORMAT_PATTERN: RegExp; TITLE_MIN_LENGTH: number; TITLE_MAX_LENGTH: number; DESCRIPTION_MIN_LENGTH: number; DESCRIPTION_MAX_LENGTH: number; VALID_STATUSES: readonly ["pending", "active", "blocked", "done", "cancelled", "archived", "proposed"]; VALID_MANIFEST_STATUSES: readonly ["completed", "partial", "blocked", "archived"]; VALID_AGENT_TYPES: readonly ["research", "analysis", "specification", "implementation", "testing", "validation", "documentation", "release"]; VALID_PRIORITIES: readonly ["critical", "high", "medium", "low"]; PRIORITY_NUMERIC_MIN: number; PRIORITY_NUMERIC_MAX: number; MAX_DEPTH: number; MAX_SIBLINGS: number; KEY_FINDINGS_MIN: number; KEY_FINDINGS_MAX: number; }; /** * Helper to check if a field is required for an operation */ export declare function isFieldRequired(domain: string, operation: string, field: string): boolean; /** * Valid workflow gate agent names per Section 7.2 */ export declare const VALID_WORKFLOW_AGENTS: readonly ["coder", "testing", "qa", "cleanup", "security", "docs"]; /** * Valid workflow gate status values per Section 7.3 */ export declare const VALID_WORKFLOW_GATE_STATUSES: readonly [null, "passed", "failed", "blocked"]; /** * Validate a workflow gate name * * @task T3141 */ export declare function validateWorkflowGateName(name: string): boolean; /** * Validate a workflow gate status value per Section 7.3 * * @task T3141 */ export declare function validateWorkflowGateStatus(status: unknown): status is null | 'passed' | 'failed' | 'blocked'; /** * Validate a gate update operation. * * @task T3141 */ export declare function validateWorkflowGateUpdate(gateName: string, status: string, agent?: string, tracker?: WorkflowGateTracker): GateViolation[]; //# sourceMappingURL=operation-gate-validators.d.ts.map