# Variable SourceCitationSchema`Const`

SourceCitationSchema: ZodDiscriminatedUnion<
[
ZodObject<
{
type: ZodLiteral<"repoFile">;
path: ZodString;
line: ZodOptional<ZodNumber>;
commit: ZodOptional<ZodString>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"issueComment">;
issueNumber: ZodNumber;
commentId: ZodNumber;
author: ZodString;
authorTrustTier: ZodEnum<{ "1": "1"; "2": "2"; "3": "3"; "4": "4" }>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"ciResult">;
runId: ZodNumber;
status: ZodEnum<{ pass: "pass"; fail: "fail" }>;
job: ZodString;
},
$strip,
>,
ZodObject<
{ type: ZodLiteral<"policyDoc">; path: ZodString; section: ZodString },
$strip,
>,
ZodObject<
{
type: ZodLiteral<"maintainerCommand">;
username: ZodString;
commentId: ZodNumber;
},
$strip,
>,
],
"type",
> = ...

Discriminated union of all valid source citation types. Every decision-making action MUST cite at least one source.

- Defined in packages/nexus-agents/src/security/action-schema.ts:77