export declare const PERFORMANCE_GOAL_ROOT = ".omx/goals/performance"; export declare const PERFORMANCE_GOAL_STATE = "state.json"; export declare const PERFORMANCE_GOAL_LEDGER = "ledger.jsonl"; export declare const PERFORMANCE_GOAL_EVALUATOR = "evaluator.md"; export type PerformanceGoalStatus = 'created' | 'in_progress' | 'validation_passed' | 'validation_failed' | 'blocked' | 'complete'; export type PerformanceValidationStatus = 'pass' | 'fail' | 'blocked'; export interface PerformanceEvaluatorContract { command: string; contract: string; } export interface PerformanceValidationRecord { status: PerformanceValidationStatus; evidence: string; recordedAt: string; } export interface PerformanceGoalState { version: 1; workflow: 'performance-goal'; slug: string; objective: string; status: PerformanceGoalStatus; createdAt: string; updatedAt: string; startedAt?: string; completedAt?: string; evaluator: PerformanceEvaluatorContract; lastValidation?: PerformanceValidationRecord; artifactPaths: { state: string; ledger: string; evaluator: string; }; } export interface CreatePerformanceGoalOptions { objective: string; evaluatorCommand: string; evaluatorContract: string; slug?: string; force?: boolean; now?: Date; } export interface CheckpointPerformanceGoalOptions { slug: string; status: PerformanceValidationStatus; evidence: string; now?: Date; } export interface CompletePerformanceGoalOptions { slug: string; evidence?: string; codexGoal?: unknown; now?: Date; } export interface PerformanceGoalLedgerEntry { ts: string; event: 'workflow_created' | 'goal_handoff_emitted' | 'validation_passed' | 'validation_failed' | 'validation_blocked' | 'goal_completed'; status?: PerformanceGoalStatus; validationStatus?: PerformanceValidationStatus; evidence?: string; message?: string; } export declare class PerformanceGoalError extends Error { } export declare function performanceGoalStatePath(cwd: string, slug: string): string; export declare function performanceGoalLedgerPath(cwd: string, slug: string): string; export declare function performanceGoalEvaluatorPath(cwd: string, slug: string): string; export declare function createPerformanceGoal(cwd: string, options: CreatePerformanceGoalOptions): Promise; export declare function readPerformanceGoal(cwd: string, slug: string): Promise; export declare function startPerformanceGoal(cwd: string, slug: string, nowDate?: Date): Promise<{ state: PerformanceGoalState; instruction: string; }>; export declare function checkpointPerformanceGoal(cwd: string, options: CheckpointPerformanceGoalOptions): Promise; export declare function completePerformanceGoal(cwd: string, options: CompletePerformanceGoalOptions): Promise; export declare function buildPerformanceGoalInstruction(state: PerformanceGoalState): string; //# sourceMappingURL=artifacts.d.ts.map