# Variable OutcomeTaskSchema`Const`

OutcomeTaskSchema: ZodObject<
{
id: ZodString;
cli: ZodEnum<
{
claude: "claude";
gemini: "gemini";
codex: "codex";
opencode: "opencode";
},
>;
category: ZodEnum<
{
planning: "planning";
code_generation: "code_generation";
code_review: "code_review";
research: "research";
architecture: "architecture";
security_review: "security_review";
documentation: "documentation";
testing: "testing";
devops: "devops";
exploration: "exploration";
},
>;
model: ZodString;
success: ZodBoolean;
durationMs: ZodNumber;
timestamp: ZodString;
qualitySignals: ZodOptional<ZodArray<ZodString>>;
failureCategory: ZodOptional<
ZodEnum<
{
unknown: "unknown";
timeout: "timeout";
parse: "parse";
connection: "connection";
execution: "execution";
rate_limit: "rate_limit";
validation: "validation";
authentication: "authentication";
generic: "generic";
crash: "crash";
adapter_unavailable: "adapter_unavailable";
},
>,
>;
errorMessage: ZodOptional<ZodString>;
source: ZodEnum<
{ delegate: "delegate"; consensus: "consensus"; manual: "manual" },
>;
wasRetried: ZodOptional<ZodBoolean>;
triageAction: ZodOptional<ZodString>;
routingStage: ZodOptional<ZodString>;
retryCount: ZodOptional<ZodNumber>;
vendor: ZodOptional<ZodString>;
family: ZodOptional<ZodString>;
voterRole: ZodOptional<ZodString>;
baselineId: ZodOptional<ZodString>;
},
$strip,
> = ...

Schema for a single recorded task outcome.

- Defined in packages/nexus-agents/src/orchestration/outcomes/outcome-types.ts:43