# Variable StageResultSchema`Const`

StageResultSchema: ZodObject<
{
success: ZodBoolean;
outputArtifacts: ZodArray<
ZodObject<
{
id: ZodString;
type: ZodEnum<
{
code: "code";
plan: "plan";
analysis: "analysis";
review: "review";
test: "test";
spec: "spec";
report: "report";
vote: "vote";
},
>;
},
$strip,
>,
>;
metadata: ZodRecord<ZodString, ZodUnknown>;
error: ZodOptional<ZodString>;
},
$strip,
> = ...

Schema for stage execution results.

- Defined in packages/nexus-agents/src/pipeline/plugin-types.ts:50