Defines Zod schemas for validating watcher risk classes and agent continuation evaluations. Use this to enforce data integrity in automated agent workflows.
// Source: https://github.com/BradGroux/veritas-kanban | License: MIT | Copyright 2026 Digital Meld
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from 'zod';
export const watcherRiskClassSchema = z.enum([
'destructive_command',
'credential_reference',
'recent_test_failure',
'provider_error',
'policy_violation',
]);
export const watcherContinuationEvaluationSchema = z
.object({
runId: z.string().min(1).max(200).optional(),
taskId: z.string().min(1).max(200).optional(),
project: z.string().min(1).max(160).optional(),
agent: z.string().min(1).max(120).optional(),
prompt: z.string().max(20000).optional(),
command: z.string().max(4000).optional(),
toolName: z.string().max(160).optional(),
continuationCount: z.number()
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key