import type { ComplianceResult, ManifestValidationResult } from '../types.js'; /** * Validate one entry in an explicitly selected historical JSONL file synchronously. * @remarks Bare calls cannot validate the authoritative current store and return * an unavailable-current-source issue. Use validateCurrentSubagentOutput for that store. * @param researchId - Exact historical entry identity. * @param cwd - Root used for relative historical paths and output files. * @param historicalManifestPath - Explicit historical file; never inferred from cwd. * @returns Synchronous compliance result with all historical read/parse issues. * @example * ```ts * const result = validateSubagentOutput('entry', '/project', 'history.jsonl'); * ``` */ export declare function validateSubagentOutput(researchId: string, cwd?: string, historicalManifestPath?: string): { passed: boolean; issues: string[]; checkedRules: string[]; }; /** * Validate an explicitly selected historical manifest synchronously. * @remarks This preserves the synchronous return shape without equating a retired * or missing JSONL file with a valid current database. Every malformed row fails. * @param cwd - Root for relative historical and output paths. * @param historicalManifestPath - Explicit historical JSONL file. * @returns Historical validation result; absent explicit source fails. * @example * ```ts * const result = validateManifestIntegrity('/project', 'history.jsonl'); * ``` */ export declare function validateManifestIntegrity(cwd?: string, historicalManifestPath?: string): ManifestValidationResult; /** * Check exact task linkage and output validity in explicitly selected history. * @remarks Entry names and follow-up requests do not establish task evidence. * Bare synchronous calls fail with current-store async guidance. * @param previousTaskId - Exact task whose evidence is required. * @param researchId - Optional exact historical entry identity. * @param cwd - Root for relative historical and output paths. * @param historicalManifestPath - Explicit historical JSONL file. * @returns Synchronous compliance result, never successful after read/parse failure. * @example * ```ts * const result = verifyCompliance('T1', undefined, '/project', 'history.jsonl'); * ``` */ export declare function verifyCompliance(previousTaskId: string, researchId?: string, cwd?: string, historicalManifestPath?: string): ComplianceResult; /** * Validate an exact entry from canonical modern and retained historical rows. * @remarks Captures project ownership before awaiting and verifies real output * availability through the same canonical resolver as manifest show. * @param researchId - Exact canonical entry identity. * @param cwd - Optional explicit project root. * @returns Field and output validation result. * @throws If canonical storage, history, metadata or output resolution fails. * @example * ```ts * const result = await validateCurrentSubagentOutput('entry', '/project'); * ``` */ export declare function validateCurrentSubagentOutput(researchId: string, cwd?: string): Promise>; /** * Validate eligible canonical manifest rows and their actual output availability. * @remarks The existing totalLines counter denotes records for the database * source. Empty evidence fails; archived rows remain outside current eligibility. * @param cwd - Optional explicit project root. * @returns Integrity result for current eligible evidence. * @throws If canonical reads, history comparison or output resolution fail. * @example * ```ts * const result = await validateCurrentManifestIntegrity('/project'); * ``` */ export declare function validateCurrentManifestIntegrity(cwd?: string): Promise; /** * Check current canonical evidence for an exact task before another spawn. * @remarks Requires explicit task linkage and valid fields/output; identifier * substrings and follow-up requests cannot authorize the next action. * @param previousTaskId - Exact task whose evidence is required. * @param researchId - Optional exact canonical entry identity. * @param cwd - Optional explicit project root. * @returns Compliance result with current canonical evidence checks. * @throws If canonical reads, history comparison or output resolution fail. * @example * ```ts * const result = await verifyCurrentCompliance('T1', undefined, '/project'); * ``` */ export declare function verifyCurrentCompliance(previousTaskId: string, researchId?: string, cwd?: string): Promise; /** * Validate orchestrator compliance (post-hoc behavioral checks). * @remarks Uses canonical manifest evidence and propagates failed task reads. * @param epicId - Optional epic for dependency completion-order checks. * @param cwd - Optional explicit project root. * @returns Compliance result and observed protocol violations. * @throws If canonical evidence or task storage reads fail. * @example * ```ts * const result = await validateOrchestratorCompliance('T0', '/project'); * ``` */ export declare function validateOrchestratorCompliance(epicId?: string, cwd?: string): Promise<{ compliant: boolean; violations: string[]; warnings: string[]; }>; //# sourceMappingURL=validator.d.ts.map