# Variable ConsensusResultSchema`Const`

ConsensusResultSchema: ZodObject<
{
proposalId: ZodString;
proposal: ZodObject<
{
id: ZodOptional<ZodString>;
title: ZodString;
description: ZodString;
algorithm: ZodEnum<
{
simple_majority: "simple_majority";
supermajority: "supermajority";
unanimous: "unanimous";
proof_of_learning: "proof_of_learning";
opinion_wise: "opinion_wise";
higher_order: "higher_order";
},
>;
timeout: ZodOptional<ZodNumber>;
requiredVoters: ZodOptional<ZodArray<ZodString>>;
metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
createdAt: ZodOptional<ZodISODateTime>;
},
$strip,
>;
outcome: ZodEnum<
{
timeout: "timeout";
closed: "closed";
pending: "pending";
rejected: "rejected";
voting: "voting";
approved: "approved";
},
>;
votes: ZodMap<
ZodString,
ZodObject<
{
decision: ZodEnum<
{ approve: "approve"; reject: "reject"; abstain: "abstain" },
>;
reasoning: ZodString;
confidence: ZodNumber;
conditions: ZodOptional<ZodArray<ZodString>>;
rejectionCategories: ZodOptional<
ZodArray<
ZodEnum<
{
YAGNI: "YAGNI";
DRY_VIOLATION: "DRY_VIOLATION";
OVER_ENGINEERING: "OVER_ENGINEERING";
SCOPE_CREEP: "SCOPE_CREEP";
SECURITY_RISK: "SECURITY_RISK";
MISALIGNED: "MISALIGNED";
INSUFFICIENT_EVIDENCE: "INSUFFICIENT_EVIDENCE";
},
>,
>,
>;
findings: ZodOptional<
ZodArray<
ZodObject<
{
summary: ZodString;
location: ZodString;
severity: ZodDefault<ZodEnum<(...)>>;
gate: ZodObject<
{
reread_cited_line: ...;
traced_call_path: ...;
named_assertion: ...;
ruled_out_language_non_issue: ...;
},
$strip,
>;
claim: ZodString;
},
$strip,
>,
>,
>;
timestamp: ZodOptional<ZodISODateTime>;
},
$strip,
>,
>;
voteCounts: ZodObject<
{
approve: ZodNumber;
reject: ZodNumber;
abstain: ZodNumber;
total: ZodNumber;
},
$strip,
>;
weightedCounts: ZodOptional<
ZodObject<
{
approve: ZodNumber;
reject: ZodNumber;
abstain: ZodNumber;
totalWeight: ZodNumber;
},
$strip,
>,
>;
approvalPercentage: ZodNumber;
quorumReached: ZodBoolean;
startedAt: ZodISODateTime;
closedAt: ZodISODateTime;
durationMs: ZodNumber;
},
$strip,
> = ...

Consensus result schema for validation.

- Defined in packages/nexus-agents/src/consensus/types-core.ts:167