import { describe, expect, it } from 'vitest';
import { modelOperationsPlanSchema } from '../schema';
describe('model operations plan schema', () => {
    it('rejects an automatic promotion mode', () => {
        const result = modelOperationsPlanSchema.safeParse({
            algorithmStatus: 'RESEARCH_CANDIDATE_NOT_PRODUCTION',
            orderCapability: 'AUTOMATIC_ORDER_AND_KIS_SUBMISSION_OFF',
            modelMutationBoundary: 'EVALUATION_AND_PROPOSAL_ONLY_HUMAN_APPROVAL_REQUIRED',
            operations: [{
                    operationCode: 'J22',
                    name: 'PromotionEvidenceReviewBuild',
                    cadence: 'MONTHLY',
                    automationMode: 'AUTO_PROMOTE',
                    queue: 'q-control',
                    primaryOwner: 'Risk',
                    secondaryOwner: 'Compliance',
                    requiredEvidence: 'all evidence',
                    output: 'review packet',
                    gate: 'G4'
                }]
        });
        expect(result.success).toBe(false);
    });
});
