Variable runStateSchemaConst
runStateSchema: ZodPipe<
ZodObject<
{
branch: ZodString;
budget: ZodPipe<
ZodOptional<
ZodNullable<
ZodObject<
{
cost_limit_usd: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
cost_spent_usd: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
},
$loose,
>,
>,
>,
ZodTransform<
| null
| {
cost_limit_usd: null
| number;
cost_spent_usd: null | number;
[key: string]: unknown;
},
| undefined
| null
| {
cost_limit_usd: null
| number;
cost_spent_usd: null | number;
[key: string]: unknown;
},
>,
>;
closure: ZodPipe<
ZodOptional<
ZodNullable<
ZodObject<
{
as: ZodEnum<
{
abandoned: "abandoned";
"already-delivered": "already-delivered";
obsolete: "obsolete";
superseded: "superseded";
},
>;
at: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
by: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
reason: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
},
$loose,
>,
>,
>,
ZodTransform<
| null
| {
as: "already-delivered"
| "superseded"
| "obsolete"
| "abandoned";
at: null | string;
by: null | string;
reason: null | string;
[key: string]: unknown;
},
| undefined
| null
| {
as: "already-delivered"
| "superseded"
| "obsolete"
| "abandoned";
at: null | string;
by: null | string;
reason: null | string;
[key: string]: unknown;
},
>,
>;
escalations: ZodPipe<
ZodOptional<
ZodNullable<
ZodArray<
ZodObject<
{
at: ZodPipe<ZodOptional<(...)>, ZodTransform<(...), (...)>>;
disposition: ZodPipe<
ZodOptional<(...)>,
ZodTransform<(...), (...)>,
>;
from_role: ZodPipe<ZodOptional<(...)>, ZodTransform<(...), (...)>>;
reason: ZodString;
resolution: ZodPipe<ZodOptional<(...)>, ZodTransform<(...), (...)>>;
resolved: ZodBoolean;
resolved_at: ZodPipe<
ZodOptional<(...)>,
ZodTransform<(...), (...)>,
>;
resolved_by: ZodPipe<
ZodOptional<(...)>,
ZodTransform<(...), (...)>,
>;
},
$loose,
>,
>,
>,
>,
ZodTransform<
{
at: null
| string;
disposition: null | "re-review" | "return-to-implement" | "re-plan";
from_role: null | string;
reason: string;
resolution: null | string;
resolved: boolean;
resolved_at: null | string;
resolved_by: null | string;
[key: string]: unknown;
}[],
| undefined
| null
| {
at: null
| string;
disposition: null | "re-review" | "return-to-implement" | "re-plan";
from_role: null | string;
reason: string;
resolution: null | string;
resolved: boolean;
resolved_at: null | string;
resolved_by: null | string;
[key: string]: unknown;
}[],
>,
>;
gates: ZodObject<
{
G0: ZodOptional<
ZodObject<
{
approved: ZodBoolean;
at: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
burden: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<
(...)
| (...)
| (...)
| (...),
(...) | (...) | (...) | (...) | (...),
>,
>;
by: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
notes: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
},
$loose,
>,
>;
G1: ZodObject<
{
approved: ZodBoolean;
at: ZodPipe<
ZodOptional<ZodNullable<ZodPipe<(...), (...)>>>,
ZodTransform<null | string, undefined | null | string>,
>;
burden: ZodPipe<
ZodOptional<ZodNullable<ZodEnum<(...)>>>,
ZodTransform<
null
| "confirmation"
| "light-correction"
| "heavy-correction",
| undefined
| null
| "confirmation"
| "light-correction"
| "heavy-correction",
>,
>;
by: ZodPipe<
ZodOptional<ZodNullable<ZodPipe<(...), (...)>>>,
ZodTransform<null | string, undefined | null | string>,
>;
notes: ZodPipe<
ZodOptional<ZodNullable<ZodPipe<(...), (...)>>>,
ZodTransform<null | string, undefined | null | string>,
>;
},
$loose,
>;
G2: ZodObject<
{
approved: ZodBoolean;
at: ZodPipe<
ZodOptional<ZodNullable<ZodPipe<(...), (...)>>>,
ZodTransform<null | string, undefined | null | string>,
>;
burden: ZodPipe<
ZodOptional<ZodNullable<ZodEnum<(...)>>>,
ZodTransform<
null
| "confirmation"
| "light-correction"
| "heavy-correction",
| undefined
| null
| "confirmation"
| "light-correction"
| "heavy-correction",
>,
>;
by: ZodPipe<
ZodOptional<ZodNullable<ZodPipe<(...), (...)>>>,
ZodTransform<null | string, undefined | null | string>,
>;
notes: ZodPipe<
ZodOptional<ZodNullable<ZodPipe<(...), (...)>>>,
ZodTransform<null | string, undefined | null | string>,
>;
},
$loose,
>;
G3: ZodOptional<
ZodObject<
{
approved: ZodBoolean;
at: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
burden: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<
(...)
| (...)
| (...)
| (...),
(...) | (...) | (...) | (...) | (...),
>,
>;
by: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
notes: ZodPipe<
ZodOptional<ZodNullable<(...)>>,
ZodTransform<(...) | (...), (...) | (...) | (...)>,
>;
},
$loose,
>,
>;
},
$strip,
>;
paused_reason: ZodPipe<
ZodOptional<ZodNullable<ZodString>>,
ZodTransform<null | string, undefined | null | string>,
>;
phase: ZodEnum<
{
closed: "closed";
done: "done";
implement: "implement";
integrate: "integrate";
paused: "paused";
plan: "plan";
release: "release";
spec: "spec";
},
>;
profile: ZodPipe<
ZodOptional<
ZodNullable<
ZodEnum<{ full: "full"; patch: "patch"; standard: "standard" }>,
>,
>,
ZodTransform<
"patch"
| "standard"
| "full",
undefined | null | "patch" | "standard" | "full",
>,
>;
run: ZodString;
tasks: ZodPipe<
ZodOptional<
ZodNullable<
ZodArray<
ZodObject<
{
id: ZodString;
review_rounds: ZodPipe<
ZodOptional<(...)>,
ZodTransform<(...), (...)>,
>;
status: ZodString;
},
$loose,
>,
>,
>,
>,
ZodTransform<
{
id: string;
review_rounds: number;
status: string;
[key: string]: unknown;
}[],
| undefined
| null
| {
id: string;
review_rounds: number;
status: string;
[key: string]: unknown;
}[],
>,
>;
},
$loose,
>,
ZodTransform<
{
branch: string;
budget: | null
| {
cost_limit_usd: null
| number;
cost_spent_usd: null | number;
[key: string]: unknown;
};
closure: | null
| {
as: "already-delivered"
| "superseded"
| "obsolete"
| "abandoned";
at: null | string;
by: null | string;
reason: null | string;
[key: string]: unknown;
};
escalations: {
at: null
| string;
disposition: null | "re-review" | "return-to-implement" | "re-plan";
from_role: null | string;
reason: string;
resolution: null | string;
resolved: boolean;
resolved_at: null | string;
resolved_by: null | string;
[key: string]: unknown;
}[];
gates: {
G0: {
approved: boolean;
at: null
| string;
burden: null | "confirmation" | "light-correction" | "heavy-correction";
by: null | string;
notes: null | string;
[key: string]: unknown;
};
G1: {
approved: boolean;
at: null
| string;
burden: null | "confirmation" | "light-correction" | "heavy-correction";
by: null | string;
notes: null | string;
[key: string]: unknown;
};
G2: {
approved: boolean;
at: null
| string;
burden: null | "confirmation" | "light-correction" | "heavy-correction";
by: null | string;
notes: null | string;
[key: string]: unknown;
};
G3: {
approved: boolean;
at: null
| string;
burden: null | "confirmation" | "light-correction" | "heavy-correction";
by: null | string;
notes: null | string;
[key: string]: unknown;
};
};
paused_reason: null
| string;
phase:
| "spec"
| "plan"
| "implement"
| "integrate"
| "release"
| "done"
| "paused"
| "closed";
profile: "patch"
| "standard"
| "full";
run: string;
tasks: {
id: string;
review_rounds: number;
status: string;
[key: string]: unknown;
}[];
},
{
branch: string;
budget: | null
| {
cost_limit_usd: null
| number;
cost_spent_usd: null | number;
[key: string]: unknown;
};
closure: | null
| {
as: "already-delivered"
| "superseded"
| "obsolete"
| "abandoned";
at: null | string;
by: null | string;
reason: null | string;
[key: string]: unknown;
};
escalations: {
at: null
| string;
disposition: null | "re-review" | "return-to-implement" | "re-plan";
from_role: null | string;
reason: string;
resolution: null | string;
resolved: boolean;
resolved_at: null | string;
resolved_by: null | string;
[key: string]: unknown;
}[];
gates: {
G0?: {
approved: boolean;
at: null
| string;
burden: null | "confirmation" | "light-correction" | "heavy-correction";
by: null | string;
notes: null | string;
[key: string]: unknown;
};
G1: {
approved: boolean;
at: null
| string;
burden: null | "confirmation" | "light-correction" | "heavy-correction";
by: null | string;
notes: null | string;
[key: string]: unknown;
};
G2: {
approved: boolean;
at: null
| string;
burden: null | "confirmation" | "light-correction" | "heavy-correction";
by: null | string;
notes: null | string;
[key: string]: unknown;
};
G3?: {
approved: boolean;
at: null
| string;
burden: null | "confirmation" | "light-correction" | "heavy-correction";
by: null | string;
notes: null | string;
[key: string]: unknown;
};
};
paused_reason: null
| string;
phase:
| "spec"
| "plan"
| "implement"
| "integrate"
| "release"
| "done"
| "paused"
| "closed";
profile: "patch"
| "standard"
| "full";
run: string;
tasks: {
id: string;
review_rounds: number;
status: string;
[key: string]: unknown;
}[];
[key: string]: unknown;
},
>,
> = ...