@ai-dev-orchestrator/schemas 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +51 -0
- package/dist/artifacts/agreement-artifacts.d.ts +311 -0
- package/dist/artifacts/agreement-artifacts.js +48 -0
- package/dist/artifacts/artifact-dependency-graph.d.ts +775 -0
- package/dist/artifacts/artifact-dependency-graph.js +57 -0
- package/dist/artifacts/artifact-system.d.ts +657 -0
- package/dist/artifacts/artifact-system.js +124 -0
- package/dist/artifacts/index.d.ts +3 -0
- package/dist/artifacts/index.js +3 -0
- package/dist/config/configuration.d.ts +324 -0
- package/dist/config/configuration.js +93 -0
- package/dist/config/event-bus-config.d.ts +153 -0
- package/dist/config/event-bus-config.js +27 -0
- package/dist/config/event-payloads.d.ts +919 -0
- package/dist/config/event-payloads.js +304 -0
- package/dist/config/event-system.d.ts +3231 -0
- package/dist/config/event-system.js +428 -0
- package/dist/config/event-types.d.ts +62 -0
- package/dist/config/event-types.js +66 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.js +5 -0
- package/dist/dashboard/dashboard-api.d.ts +149 -0
- package/dist/dashboard/dashboard-api.js +80 -0
- package/dist/dashboard/dashboard-domain.d.ts +1076 -0
- package/dist/dashboard/dashboard-domain.js +305 -0
- package/dist/dashboard/index.d.ts +3 -0
- package/dist/dashboard/index.js +3 -0
- package/dist/dashboard/run-creation-params.d.ts +111 -0
- package/dist/dashboard/run-creation-params.js +14 -0
- package/dist/governance/governance.d.ts +1119 -0
- package/dist/governance/governance.js +111 -0
- package/dist/governance/index.d.ts +3 -0
- package/dist/governance/index.js +3 -0
- package/dist/governance/policy-engine.d.ts +634 -0
- package/dist/governance/policy-engine.js +214 -0
- package/dist/governance/review-resolution.d.ts +1053 -0
- package/dist/governance/review-resolution.js +67 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/observability/diagnostics.d.ts +185 -0
- package/dist/observability/diagnostics.js +63 -0
- package/dist/observability/index.d.ts +2 -0
- package/dist/observability/index.js +2 -0
- package/dist/observability/metrics.d.ts +187 -0
- package/dist/observability/metrics.js +67 -0
- package/dist/persistence/execution-analytics.d.ts +173 -0
- package/dist/persistence/execution-analytics.js +71 -0
- package/dist/persistence/index.d.ts +5 -0
- package/dist/persistence/index.js +5 -0
- package/dist/persistence/project-context.d.ts +164 -0
- package/dist/persistence/project-context.js +88 -0
- package/dist/persistence/repository-model.d.ts +27 -0
- package/dist/persistence/repository-model.js +16 -0
- package/dist/persistence/run-manifest.d.ts +422 -0
- package/dist/persistence/run-manifest.js +118 -0
- package/dist/persistence/state-persistence.d.ts +276 -0
- package/dist/persistence/state-persistence.js +83 -0
- package/dist/runner/built-in-runner-ids.d.ts +8 -0
- package/dist/runner/built-in-runner-ids.js +11 -0
- package/dist/runner/collaboration-model.d.ts +100 -0
- package/dist/runner/collaboration-model.js +19 -0
- package/dist/runner/confidence.d.ts +17 -0
- package/dist/runner/confidence.js +11 -0
- package/dist/runner/index.d.ts +8 -0
- package/dist/runner/index.js +8 -0
- package/dist/runner/permission-approval.d.ts +38 -0
- package/dist/runner/permission-approval.js +14 -0
- package/dist/runner/prompt-engine.d.ts +1467 -0
- package/dist/runner/prompt-engine.js +193 -0
- package/dist/runner/role-system.d.ts +458 -0
- package/dist/runner/role-system.js +94 -0
- package/dist/runner/runner-system.d.ts +1721 -0
- package/dist/runner/runner-system.js +268 -0
- package/dist/runner/task-brief.d.ts +18 -0
- package/dist/runner/task-brief.js +12 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.js +3 -0
- package/dist/shared/shared.d.ts +30 -0
- package/dist/shared/shared.js +27 -0
- package/dist/shared/string-enums.d.ts +59 -0
- package/dist/shared/string-enums.js +24 -0
- package/dist/shared/utils.d.ts +25 -0
- package/dist/shared/utils.js +22 -0
- package/dist/specification/canonical-specification.d.ts +475 -0
- package/dist/specification/canonical-specification.js +151 -0
- package/dist/specification/index.d.ts +3 -0
- package/dist/specification/index.js +3 -0
- package/dist/specification/intake.d.ts +419 -0
- package/dist/specification/intake.js +70 -0
- package/dist/specification/iteration-contracts.d.ts +421 -0
- package/dist/specification/iteration-contracts.js +61 -0
- package/dist/workflow/index.d.ts +4 -0
- package/dist/workflow/index.js +4 -0
- package/dist/workflow/workflow-dsl.d.ts +81 -0
- package/dist/workflow/workflow-dsl.js +38 -0
- package/dist/workflow/workflow-engine.d.ts +5788 -0
- package/dist/workflow/workflow-engine.js +414 -0
- package/dist/workflow/workflow-file.d.ts +331 -0
- package/dist/workflow/workflow-file.js +41 -0
- package/dist/workflow/workflow-journal.d.ts +520 -0
- package/dist/workflow/workflow-journal.js +151 -0
- package/package.json +39 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { artifactRefSchema, artifactTypeSchema } from '../artifacts/artifact-system';
|
|
3
|
+
import { outputFormatSchema } from '../shared/string-enums';
|
|
4
|
+
import { roleContractSchema } from './role-system';
|
|
5
|
+
import { resolvedArtifactSchema, workerConstraintsSchema } from './runner-system';
|
|
6
|
+
export const variableTypeSchema = z.enum(['artifact', 'system', 'computed', 'literal']);
|
|
7
|
+
export const variableDeclarationSchema = z.object({
|
|
8
|
+
name: z.string(),
|
|
9
|
+
type: variableTypeSchema,
|
|
10
|
+
required: z.boolean(),
|
|
11
|
+
description: z.string().optional(),
|
|
12
|
+
default: z.string().optional(),
|
|
13
|
+
artifactType: artifactTypeSchema.optional(),
|
|
14
|
+
computedFrom: z.string().optional(),
|
|
15
|
+
});
|
|
16
|
+
export const outputContractSchema = z.object({
|
|
17
|
+
role: z.string(),
|
|
18
|
+
artifactType: artifactTypeSchema,
|
|
19
|
+
schema: z.record(z.string(), z.unknown()),
|
|
20
|
+
format: outputFormatSchema,
|
|
21
|
+
required: z.boolean(),
|
|
22
|
+
repairEnabled: z.boolean(),
|
|
23
|
+
maxRepairAttempts: z.number(),
|
|
24
|
+
});
|
|
25
|
+
export const promptTemplateFrontmatterSchema = z.object({
|
|
26
|
+
role: z.string(),
|
|
27
|
+
version: z.string(),
|
|
28
|
+
description: z.string(),
|
|
29
|
+
variables: z.array(variableDeclarationSchema).readonly(),
|
|
30
|
+
outputContract: outputContractSchema,
|
|
31
|
+
partials: z.array(z.string()).readonly().optional(),
|
|
32
|
+
tags: z.array(z.string()).readonly().optional(),
|
|
33
|
+
compatibleModels: z.array(z.string()).readonly().optional(),
|
|
34
|
+
});
|
|
35
|
+
export const promptTemplateSchema = z.object({
|
|
36
|
+
frontmatter: promptTemplateFrontmatterSchema,
|
|
37
|
+
body: z.string(),
|
|
38
|
+
source: z.string(),
|
|
39
|
+
});
|
|
40
|
+
export const promptTemplateRefSchema = z.object({
|
|
41
|
+
role: z.string(),
|
|
42
|
+
version: z.string(),
|
|
43
|
+
source: z.literal('built-in'),
|
|
44
|
+
});
|
|
45
|
+
export const validationErrorSchema = z.object({
|
|
46
|
+
path: z.string(),
|
|
47
|
+
message: z.string(),
|
|
48
|
+
expected: z.string(),
|
|
49
|
+
actual: z.string(),
|
|
50
|
+
});
|
|
51
|
+
export const outputValidationResultSchema = z.object({
|
|
52
|
+
valid: z.boolean(),
|
|
53
|
+
errors: z.array(validationErrorSchema).readonly(),
|
|
54
|
+
parsedContent: z.record(z.string(), z.unknown()).optional(),
|
|
55
|
+
});
|
|
56
|
+
export const repairContextSchema = z.object({
|
|
57
|
+
originalPrompt: z.string(),
|
|
58
|
+
invalidOutput: z.string(),
|
|
59
|
+
validationErrors: z.array(validationErrorSchema).readonly(),
|
|
60
|
+
outputContract: outputContractSchema,
|
|
61
|
+
attemptNumber: z.number(),
|
|
62
|
+
maxAttempts: z.number(),
|
|
63
|
+
});
|
|
64
|
+
export const roleContextBlockSchema = z.object({
|
|
65
|
+
name: z.string(),
|
|
66
|
+
description: z.string(),
|
|
67
|
+
ownedArtifacts: z.array(z.string()).readonly(),
|
|
68
|
+
readableArtifacts: z.array(z.string()).readonly(),
|
|
69
|
+
forbiddenArtifacts: z.array(z.string()).readonly(),
|
|
70
|
+
});
|
|
71
|
+
export const artifactContextBlockSchema = z.object({
|
|
72
|
+
ref: artifactRefSchema,
|
|
73
|
+
content: z.string(),
|
|
74
|
+
tokenEstimate: z.number(),
|
|
75
|
+
});
|
|
76
|
+
export const taskContextBlockSchema = z.object({
|
|
77
|
+
requiredOutputType: z.string(),
|
|
78
|
+
constraints: z.string(),
|
|
79
|
+
});
|
|
80
|
+
export const rulesContextBlockSchema = z.object({
|
|
81
|
+
rules: z.array(z.string()).readonly(),
|
|
82
|
+
});
|
|
83
|
+
export const outputFormatBlockSchema = z.object({
|
|
84
|
+
format: z.string(),
|
|
85
|
+
schema: z.record(z.string(), z.unknown()).optional(),
|
|
86
|
+
});
|
|
87
|
+
export const systemInfoBlockSchema = z.object({
|
|
88
|
+
runId: z.string(),
|
|
89
|
+
currentState: z.string(),
|
|
90
|
+
iterationCount: z.number(),
|
|
91
|
+
timestamp: z.string(),
|
|
92
|
+
});
|
|
93
|
+
export const promptContextSchema = z.object({
|
|
94
|
+
role: roleContextBlockSchema,
|
|
95
|
+
artifacts: z.array(artifactContextBlockSchema).readonly(),
|
|
96
|
+
task: taskContextBlockSchema,
|
|
97
|
+
rules: rulesContextBlockSchema,
|
|
98
|
+
outputFormat: outputFormatBlockSchema,
|
|
99
|
+
systemInfo: systemInfoBlockSchema,
|
|
100
|
+
totalTokenEstimate: z.number(),
|
|
101
|
+
});
|
|
102
|
+
export const truncationStrategySchema = z.enum(['tail', 'summary', 'omit']);
|
|
103
|
+
export const artifactPrioritySchema = z.object({
|
|
104
|
+
artifactType: artifactTypeSchema,
|
|
105
|
+
priority: z.number(),
|
|
106
|
+
truncationStrategy: truncationStrategySchema,
|
|
107
|
+
});
|
|
108
|
+
export const tokenBudgetSchema = z.object({
|
|
109
|
+
maxInputTokens: z.number(),
|
|
110
|
+
reservedOutputTokens: z.number(),
|
|
111
|
+
artifactPriority: z.array(artifactPrioritySchema).readonly(),
|
|
112
|
+
});
|
|
113
|
+
export const truncationRecordSchema = z.object({
|
|
114
|
+
artifactType: artifactTypeSchema,
|
|
115
|
+
originalTokens: z.number(),
|
|
116
|
+
truncatedTokens: z.number(),
|
|
117
|
+
strategy: truncationStrategySchema,
|
|
118
|
+
});
|
|
119
|
+
export const findingTemplateVarSchema = z.object({
|
|
120
|
+
id: z.string(),
|
|
121
|
+
severity: z.string(),
|
|
122
|
+
category: z.string(),
|
|
123
|
+
title: z.string(),
|
|
124
|
+
status: z.string(),
|
|
125
|
+
});
|
|
126
|
+
export const systemContextSchema = z.object({
|
|
127
|
+
runId: z.string(),
|
|
128
|
+
currentState: z.string(),
|
|
129
|
+
iterationCount: z.number(),
|
|
130
|
+
previousFindings: z.array(findingTemplateVarSchema).readonly().optional(),
|
|
131
|
+
previousReviewContent: z.string().optional(),
|
|
132
|
+
humanFeedback: z.string().optional(),
|
|
133
|
+
workflowVariant: z.string().optional(),
|
|
134
|
+
});
|
|
135
|
+
export const promptOverridesSchema = z.object({
|
|
136
|
+
variableOverrides: z.record(z.string(), z.string()).optional(),
|
|
137
|
+
});
|
|
138
|
+
export const renderRequestSchema = z.object({
|
|
139
|
+
role: z.string(),
|
|
140
|
+
inputArtifacts: z.array(resolvedArtifactSchema).readonly(),
|
|
141
|
+
constraints: workerConstraintsSchema,
|
|
142
|
+
systemContext: systemContextSchema,
|
|
143
|
+
overrides: promptOverridesSchema.optional(),
|
|
144
|
+
});
|
|
145
|
+
export const promptMetadataSchema = z.object({
|
|
146
|
+
templateVersion: z.string(),
|
|
147
|
+
resolvedFrom: z.string(),
|
|
148
|
+
renderedAt: z.string(),
|
|
149
|
+
inputArtifactRefs: z.array(artifactRefSchema).readonly(),
|
|
150
|
+
variablesUsed: z.array(z.string()).readonly(),
|
|
151
|
+
partialsIncluded: z.array(z.string()).readonly(),
|
|
152
|
+
});
|
|
153
|
+
export const renderedPromptSchema = z.object({
|
|
154
|
+
text: z.string(),
|
|
155
|
+
templateRef: promptTemplateRefSchema,
|
|
156
|
+
tokenEstimate: z.number(),
|
|
157
|
+
truncations: z.array(truncationRecordSchema).readonly(),
|
|
158
|
+
outputContract: outputContractSchema,
|
|
159
|
+
metadata: promptMetadataSchema,
|
|
160
|
+
});
|
|
161
|
+
export const assemblyRequestSchema = z.object({
|
|
162
|
+
role: roleContractSchema,
|
|
163
|
+
inputArtifacts: z.array(resolvedArtifactSchema).readonly(),
|
|
164
|
+
constraints: workerConstraintsSchema,
|
|
165
|
+
systemContext: systemContextSchema,
|
|
166
|
+
tokenBudget: tokenBudgetSchema,
|
|
167
|
+
});
|
|
168
|
+
export const systemVariablesSchema = z.object({
|
|
169
|
+
role: z.object({
|
|
170
|
+
name: z.string(),
|
|
171
|
+
description: z.string(),
|
|
172
|
+
ownedArtifacts: z.array(z.string()).readonly(),
|
|
173
|
+
readableArtifacts: z.array(z.string()).readonly(),
|
|
174
|
+
forbiddenArtifacts: z.array(z.string()).readonly(),
|
|
175
|
+
}),
|
|
176
|
+
run: z.object({
|
|
177
|
+
id: z.string(),
|
|
178
|
+
currentState: z.string(),
|
|
179
|
+
iterationCount: z.number(),
|
|
180
|
+
transitionCount: z.number(),
|
|
181
|
+
workflowVariant: z.string(),
|
|
182
|
+
}),
|
|
183
|
+
constraints: z.object({
|
|
184
|
+
requiredOutputType: z.string(),
|
|
185
|
+
maxOutputTokens: z.number(),
|
|
186
|
+
timeout: z.number(),
|
|
187
|
+
}),
|
|
188
|
+
timestamp: z.string(),
|
|
189
|
+
});
|
|
190
|
+
export const templateValidationResultSchema = z.object({
|
|
191
|
+
valid: z.boolean(),
|
|
192
|
+
errors: z.array(validationErrorSchema).readonly(),
|
|
193
|
+
});
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const ROLE_IDS: readonly ["requirements_analyst", "context_analyst", "codebase_analyst", "planner", "plan_reviewer", "implementer", "test_engineer", "static_reviewer", "security_reviewer", "performance_reviewer", "adversarial_reviewer", "design_reviewer", "docs_reviewer", "ux_reviewer", "report_synthesizer", "remediation_triage", "judge", "verifier", "summary_writer", "review_findings_writer", "acceptance_validator", "breakdown_analyst", "decomposer", "decomposition_reviewer", "task_spec_writer"];
|
|
3
|
+
export declare const roleIdSchema: z.ZodEnum<{
|
|
4
|
+
judge: "judge";
|
|
5
|
+
requirements_analyst: "requirements_analyst";
|
|
6
|
+
context_analyst: "context_analyst";
|
|
7
|
+
codebase_analyst: "codebase_analyst";
|
|
8
|
+
planner: "planner";
|
|
9
|
+
plan_reviewer: "plan_reviewer";
|
|
10
|
+
implementer: "implementer";
|
|
11
|
+
test_engineer: "test_engineer";
|
|
12
|
+
static_reviewer: "static_reviewer";
|
|
13
|
+
security_reviewer: "security_reviewer";
|
|
14
|
+
performance_reviewer: "performance_reviewer";
|
|
15
|
+
adversarial_reviewer: "adversarial_reviewer";
|
|
16
|
+
design_reviewer: "design_reviewer";
|
|
17
|
+
docs_reviewer: "docs_reviewer";
|
|
18
|
+
ux_reviewer: "ux_reviewer";
|
|
19
|
+
report_synthesizer: "report_synthesizer";
|
|
20
|
+
remediation_triage: "remediation_triage";
|
|
21
|
+
verifier: "verifier";
|
|
22
|
+
summary_writer: "summary_writer";
|
|
23
|
+
review_findings_writer: "review_findings_writer";
|
|
24
|
+
acceptance_validator: "acceptance_validator";
|
|
25
|
+
breakdown_analyst: "breakdown_analyst";
|
|
26
|
+
decomposer: "decomposer";
|
|
27
|
+
decomposition_reviewer: "decomposition_reviewer";
|
|
28
|
+
task_spec_writer: "task_spec_writer";
|
|
29
|
+
}>;
|
|
30
|
+
export type RoleId = z.infer<typeof roleIdSchema>;
|
|
31
|
+
export declare const modelCapabilitySchema: z.ZodEnum<{
|
|
32
|
+
code_generation: "code_generation";
|
|
33
|
+
code_review: "code_review";
|
|
34
|
+
reasoning: "reasoning";
|
|
35
|
+
long_context: "long_context";
|
|
36
|
+
structured_output: "structured_output";
|
|
37
|
+
vision: "vision";
|
|
38
|
+
external_data_fetch: "external_data_fetch";
|
|
39
|
+
}>;
|
|
40
|
+
export type ModelCapability = z.infer<typeof modelCapabilitySchema>;
|
|
41
|
+
export declare const agentConfigSchema: z.ZodObject<{
|
|
42
|
+
model: z.ZodOptional<z.ZodString>;
|
|
43
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
45
|
+
command: z.ZodOptional<z.ZodString>;
|
|
46
|
+
args: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
47
|
+
handshakeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
liveRequestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
50
|
+
authHeader: z.ZodOptional<z.ZodString>;
|
|
51
|
+
pollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type AgentConfig = z.infer<typeof agentConfigSchema>;
|
|
55
|
+
export declare const agreementParticipationSchema: z.ZodObject<{
|
|
56
|
+
agreementType: z.ZodString;
|
|
57
|
+
action: z.ZodEnum<{
|
|
58
|
+
approved: "approved";
|
|
59
|
+
produced: "produced";
|
|
60
|
+
reviewed: "reviewed";
|
|
61
|
+
}>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type AgreementParticipation = z.infer<typeof agreementParticipationSchema>;
|
|
64
|
+
export declare const DISPATCH_TYPES: readonly ["agent"];
|
|
65
|
+
export declare const dispatchTypeSchema: z.ZodEnum<{
|
|
66
|
+
agent: "agent";
|
|
67
|
+
}>;
|
|
68
|
+
export type DispatchType = z.infer<typeof dispatchTypeSchema>;
|
|
69
|
+
export declare const roleContractSchema: z.ZodObject<{
|
|
70
|
+
id: z.ZodEnum<{
|
|
71
|
+
judge: "judge";
|
|
72
|
+
requirements_analyst: "requirements_analyst";
|
|
73
|
+
context_analyst: "context_analyst";
|
|
74
|
+
codebase_analyst: "codebase_analyst";
|
|
75
|
+
planner: "planner";
|
|
76
|
+
plan_reviewer: "plan_reviewer";
|
|
77
|
+
implementer: "implementer";
|
|
78
|
+
test_engineer: "test_engineer";
|
|
79
|
+
static_reviewer: "static_reviewer";
|
|
80
|
+
security_reviewer: "security_reviewer";
|
|
81
|
+
performance_reviewer: "performance_reviewer";
|
|
82
|
+
adversarial_reviewer: "adversarial_reviewer";
|
|
83
|
+
design_reviewer: "design_reviewer";
|
|
84
|
+
docs_reviewer: "docs_reviewer";
|
|
85
|
+
ux_reviewer: "ux_reviewer";
|
|
86
|
+
report_synthesizer: "report_synthesizer";
|
|
87
|
+
remediation_triage: "remediation_triage";
|
|
88
|
+
verifier: "verifier";
|
|
89
|
+
summary_writer: "summary_writer";
|
|
90
|
+
review_findings_writer: "review_findings_writer";
|
|
91
|
+
acceptance_validator: "acceptance_validator";
|
|
92
|
+
breakdown_analyst: "breakdown_analyst";
|
|
93
|
+
decomposer: "decomposer";
|
|
94
|
+
decomposition_reviewer: "decomposition_reviewer";
|
|
95
|
+
task_spec_writer: "task_spec_writer";
|
|
96
|
+
}>;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
description: z.ZodString;
|
|
99
|
+
ownedArtifacts: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
100
|
+
intake_requirements: "intake_requirements";
|
|
101
|
+
canonical_specification: "canonical_specification";
|
|
102
|
+
clarification_questions: "clarification_questions";
|
|
103
|
+
clarification_answers: "clarification_answers";
|
|
104
|
+
plan: "plan";
|
|
105
|
+
plan_review: "plan_review";
|
|
106
|
+
test_plan: "test_plan";
|
|
107
|
+
implementation: "implementation";
|
|
108
|
+
static_review: "static_review";
|
|
109
|
+
security_review: "security_review";
|
|
110
|
+
performance_review: "performance_review";
|
|
111
|
+
adversarial_review: "adversarial_review";
|
|
112
|
+
design_review: "design_review";
|
|
113
|
+
docs_review: "docs_review";
|
|
114
|
+
ux_review: "ux_review";
|
|
115
|
+
review_report: "review_report";
|
|
116
|
+
remediation_plan: "remediation_plan";
|
|
117
|
+
verification: "verification";
|
|
118
|
+
judge_decision: "judge_decision";
|
|
119
|
+
planning_agreement: "planning_agreement";
|
|
120
|
+
implementation_agreement: "implementation_agreement";
|
|
121
|
+
verification_agreement: "verification_agreement";
|
|
122
|
+
release_summary: "release_summary";
|
|
123
|
+
release_agreement: "release_agreement";
|
|
124
|
+
escalation_context: "escalation_context";
|
|
125
|
+
run_manifest: "run_manifest";
|
|
126
|
+
codebase_context: "codebase_context";
|
|
127
|
+
test_suite: "test_suite";
|
|
128
|
+
acceptance_validation: "acceptance_validation";
|
|
129
|
+
review_findings: "review_findings";
|
|
130
|
+
task_breakdown: "task_breakdown";
|
|
131
|
+
decomposition_review: "decomposition_review";
|
|
132
|
+
task_specifications: "task_specifications";
|
|
133
|
+
pr_diff_context: "pr_diff_context";
|
|
134
|
+
}>>>;
|
|
135
|
+
readableArtifacts: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
136
|
+
intake_requirements: "intake_requirements";
|
|
137
|
+
canonical_specification: "canonical_specification";
|
|
138
|
+
clarification_questions: "clarification_questions";
|
|
139
|
+
clarification_answers: "clarification_answers";
|
|
140
|
+
plan: "plan";
|
|
141
|
+
plan_review: "plan_review";
|
|
142
|
+
test_plan: "test_plan";
|
|
143
|
+
implementation: "implementation";
|
|
144
|
+
static_review: "static_review";
|
|
145
|
+
security_review: "security_review";
|
|
146
|
+
performance_review: "performance_review";
|
|
147
|
+
adversarial_review: "adversarial_review";
|
|
148
|
+
design_review: "design_review";
|
|
149
|
+
docs_review: "docs_review";
|
|
150
|
+
ux_review: "ux_review";
|
|
151
|
+
review_report: "review_report";
|
|
152
|
+
remediation_plan: "remediation_plan";
|
|
153
|
+
verification: "verification";
|
|
154
|
+
judge_decision: "judge_decision";
|
|
155
|
+
planning_agreement: "planning_agreement";
|
|
156
|
+
implementation_agreement: "implementation_agreement";
|
|
157
|
+
verification_agreement: "verification_agreement";
|
|
158
|
+
release_summary: "release_summary";
|
|
159
|
+
release_agreement: "release_agreement";
|
|
160
|
+
escalation_context: "escalation_context";
|
|
161
|
+
run_manifest: "run_manifest";
|
|
162
|
+
codebase_context: "codebase_context";
|
|
163
|
+
test_suite: "test_suite";
|
|
164
|
+
acceptance_validation: "acceptance_validation";
|
|
165
|
+
review_findings: "review_findings";
|
|
166
|
+
task_breakdown: "task_breakdown";
|
|
167
|
+
decomposition_review: "decomposition_review";
|
|
168
|
+
task_specifications: "task_specifications";
|
|
169
|
+
pr_diff_context: "pr_diff_context";
|
|
170
|
+
}>>>;
|
|
171
|
+
forbiddenArtifacts: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
172
|
+
intake_requirements: "intake_requirements";
|
|
173
|
+
canonical_specification: "canonical_specification";
|
|
174
|
+
clarification_questions: "clarification_questions";
|
|
175
|
+
clarification_answers: "clarification_answers";
|
|
176
|
+
plan: "plan";
|
|
177
|
+
plan_review: "plan_review";
|
|
178
|
+
test_plan: "test_plan";
|
|
179
|
+
implementation: "implementation";
|
|
180
|
+
static_review: "static_review";
|
|
181
|
+
security_review: "security_review";
|
|
182
|
+
performance_review: "performance_review";
|
|
183
|
+
adversarial_review: "adversarial_review";
|
|
184
|
+
design_review: "design_review";
|
|
185
|
+
docs_review: "docs_review";
|
|
186
|
+
ux_review: "ux_review";
|
|
187
|
+
review_report: "review_report";
|
|
188
|
+
remediation_plan: "remediation_plan";
|
|
189
|
+
verification: "verification";
|
|
190
|
+
judge_decision: "judge_decision";
|
|
191
|
+
planning_agreement: "planning_agreement";
|
|
192
|
+
implementation_agreement: "implementation_agreement";
|
|
193
|
+
verification_agreement: "verification_agreement";
|
|
194
|
+
release_summary: "release_summary";
|
|
195
|
+
release_agreement: "release_agreement";
|
|
196
|
+
escalation_context: "escalation_context";
|
|
197
|
+
run_manifest: "run_manifest";
|
|
198
|
+
codebase_context: "codebase_context";
|
|
199
|
+
test_suite: "test_suite";
|
|
200
|
+
acceptance_validation: "acceptance_validation";
|
|
201
|
+
review_findings: "review_findings";
|
|
202
|
+
task_breakdown: "task_breakdown";
|
|
203
|
+
decomposition_review: "decomposition_review";
|
|
204
|
+
task_specifications: "task_specifications";
|
|
205
|
+
pr_diff_context: "pr_diff_context";
|
|
206
|
+
}>>>;
|
|
207
|
+
reviewedBy: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
208
|
+
judge: "judge";
|
|
209
|
+
requirements_analyst: "requirements_analyst";
|
|
210
|
+
context_analyst: "context_analyst";
|
|
211
|
+
codebase_analyst: "codebase_analyst";
|
|
212
|
+
planner: "planner";
|
|
213
|
+
plan_reviewer: "plan_reviewer";
|
|
214
|
+
implementer: "implementer";
|
|
215
|
+
test_engineer: "test_engineer";
|
|
216
|
+
static_reviewer: "static_reviewer";
|
|
217
|
+
security_reviewer: "security_reviewer";
|
|
218
|
+
performance_reviewer: "performance_reviewer";
|
|
219
|
+
adversarial_reviewer: "adversarial_reviewer";
|
|
220
|
+
design_reviewer: "design_reviewer";
|
|
221
|
+
docs_reviewer: "docs_reviewer";
|
|
222
|
+
ux_reviewer: "ux_reviewer";
|
|
223
|
+
report_synthesizer: "report_synthesizer";
|
|
224
|
+
remediation_triage: "remediation_triage";
|
|
225
|
+
verifier: "verifier";
|
|
226
|
+
summary_writer: "summary_writer";
|
|
227
|
+
review_findings_writer: "review_findings_writer";
|
|
228
|
+
acceptance_validator: "acceptance_validator";
|
|
229
|
+
breakdown_analyst: "breakdown_analyst";
|
|
230
|
+
decomposer: "decomposer";
|
|
231
|
+
decomposition_reviewer: "decomposition_reviewer";
|
|
232
|
+
task_spec_writer: "task_spec_writer";
|
|
233
|
+
}>>>;
|
|
234
|
+
reviews: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
235
|
+
judge: "judge";
|
|
236
|
+
requirements_analyst: "requirements_analyst";
|
|
237
|
+
context_analyst: "context_analyst";
|
|
238
|
+
codebase_analyst: "codebase_analyst";
|
|
239
|
+
planner: "planner";
|
|
240
|
+
plan_reviewer: "plan_reviewer";
|
|
241
|
+
implementer: "implementer";
|
|
242
|
+
test_engineer: "test_engineer";
|
|
243
|
+
static_reviewer: "static_reviewer";
|
|
244
|
+
security_reviewer: "security_reviewer";
|
|
245
|
+
performance_reviewer: "performance_reviewer";
|
|
246
|
+
adversarial_reviewer: "adversarial_reviewer";
|
|
247
|
+
design_reviewer: "design_reviewer";
|
|
248
|
+
docs_reviewer: "docs_reviewer";
|
|
249
|
+
ux_reviewer: "ux_reviewer";
|
|
250
|
+
report_synthesizer: "report_synthesizer";
|
|
251
|
+
remediation_triage: "remediation_triage";
|
|
252
|
+
verifier: "verifier";
|
|
253
|
+
summary_writer: "summary_writer";
|
|
254
|
+
review_findings_writer: "review_findings_writer";
|
|
255
|
+
acceptance_validator: "acceptance_validator";
|
|
256
|
+
breakdown_analyst: "breakdown_analyst";
|
|
257
|
+
decomposer: "decomposer";
|
|
258
|
+
decomposition_reviewer: "decomposition_reviewer";
|
|
259
|
+
task_spec_writer: "task_spec_writer";
|
|
260
|
+
}>>>;
|
|
261
|
+
agreementParticipation: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
262
|
+
agreementType: z.ZodString;
|
|
263
|
+
action: z.ZodEnum<{
|
|
264
|
+
approved: "approved";
|
|
265
|
+
produced: "produced";
|
|
266
|
+
reviewed: "reviewed";
|
|
267
|
+
}>;
|
|
268
|
+
}, z.core.$strip>>>;
|
|
269
|
+
requiredCapabilities: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
270
|
+
code_generation: "code_generation";
|
|
271
|
+
code_review: "code_review";
|
|
272
|
+
reasoning: "reasoning";
|
|
273
|
+
long_context: "long_context";
|
|
274
|
+
structured_output: "structured_output";
|
|
275
|
+
vision: "vision";
|
|
276
|
+
external_data_fetch: "external_data_fetch";
|
|
277
|
+
}>>>;
|
|
278
|
+
dispatchType: z.ZodEnum<{
|
|
279
|
+
agent: "agent";
|
|
280
|
+
}>;
|
|
281
|
+
runner: z.ZodOptional<z.ZodString>;
|
|
282
|
+
agentConfig: z.ZodOptional<z.ZodObject<{
|
|
283
|
+
model: z.ZodOptional<z.ZodString>;
|
|
284
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
286
|
+
command: z.ZodOptional<z.ZodString>;
|
|
287
|
+
args: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
288
|
+
handshakeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
liveRequestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
291
|
+
authHeader: z.ZodOptional<z.ZodString>;
|
|
292
|
+
pollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
294
|
+
}, z.core.$strip>>;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
export type RoleContract = z.infer<typeof roleContractSchema>;
|
|
297
|
+
export declare const modelAssignmentSchema: z.ZodObject<{
|
|
298
|
+
roleId: z.ZodEnum<{
|
|
299
|
+
judge: "judge";
|
|
300
|
+
requirements_analyst: "requirements_analyst";
|
|
301
|
+
context_analyst: "context_analyst";
|
|
302
|
+
codebase_analyst: "codebase_analyst";
|
|
303
|
+
planner: "planner";
|
|
304
|
+
plan_reviewer: "plan_reviewer";
|
|
305
|
+
implementer: "implementer";
|
|
306
|
+
test_engineer: "test_engineer";
|
|
307
|
+
static_reviewer: "static_reviewer";
|
|
308
|
+
security_reviewer: "security_reviewer";
|
|
309
|
+
performance_reviewer: "performance_reviewer";
|
|
310
|
+
adversarial_reviewer: "adversarial_reviewer";
|
|
311
|
+
design_reviewer: "design_reviewer";
|
|
312
|
+
docs_reviewer: "docs_reviewer";
|
|
313
|
+
ux_reviewer: "ux_reviewer";
|
|
314
|
+
report_synthesizer: "report_synthesizer";
|
|
315
|
+
remediation_triage: "remediation_triage";
|
|
316
|
+
verifier: "verifier";
|
|
317
|
+
summary_writer: "summary_writer";
|
|
318
|
+
review_findings_writer: "review_findings_writer";
|
|
319
|
+
acceptance_validator: "acceptance_validator";
|
|
320
|
+
breakdown_analyst: "breakdown_analyst";
|
|
321
|
+
decomposer: "decomposer";
|
|
322
|
+
decomposition_reviewer: "decomposition_reviewer";
|
|
323
|
+
task_spec_writer: "task_spec_writer";
|
|
324
|
+
}>;
|
|
325
|
+
model: z.ZodString;
|
|
326
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
327
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
328
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
329
|
+
}, z.core.$strip>;
|
|
330
|
+
export type ModelAssignment = z.infer<typeof modelAssignmentSchema>;
|
|
331
|
+
export declare const roleValidationErrorSchema: z.ZodObject<{
|
|
332
|
+
roleId: z.ZodEnum<{
|
|
333
|
+
judge: "judge";
|
|
334
|
+
requirements_analyst: "requirements_analyst";
|
|
335
|
+
context_analyst: "context_analyst";
|
|
336
|
+
codebase_analyst: "codebase_analyst";
|
|
337
|
+
planner: "planner";
|
|
338
|
+
plan_reviewer: "plan_reviewer";
|
|
339
|
+
implementer: "implementer";
|
|
340
|
+
test_engineer: "test_engineer";
|
|
341
|
+
static_reviewer: "static_reviewer";
|
|
342
|
+
security_reviewer: "security_reviewer";
|
|
343
|
+
performance_reviewer: "performance_reviewer";
|
|
344
|
+
adversarial_reviewer: "adversarial_reviewer";
|
|
345
|
+
design_reviewer: "design_reviewer";
|
|
346
|
+
docs_reviewer: "docs_reviewer";
|
|
347
|
+
ux_reviewer: "ux_reviewer";
|
|
348
|
+
report_synthesizer: "report_synthesizer";
|
|
349
|
+
remediation_triage: "remediation_triage";
|
|
350
|
+
verifier: "verifier";
|
|
351
|
+
summary_writer: "summary_writer";
|
|
352
|
+
review_findings_writer: "review_findings_writer";
|
|
353
|
+
acceptance_validator: "acceptance_validator";
|
|
354
|
+
breakdown_analyst: "breakdown_analyst";
|
|
355
|
+
decomposer: "decomposer";
|
|
356
|
+
decomposition_reviewer: "decomposition_reviewer";
|
|
357
|
+
task_spec_writer: "task_spec_writer";
|
|
358
|
+
}>;
|
|
359
|
+
field: z.ZodString;
|
|
360
|
+
message: z.ZodString;
|
|
361
|
+
}, z.core.$strip>;
|
|
362
|
+
export type RoleValidationError = z.infer<typeof roleValidationErrorSchema>;
|
|
363
|
+
export declare const roleValidationWarningSchema: z.ZodObject<{
|
|
364
|
+
roleId: z.ZodEnum<{
|
|
365
|
+
judge: "judge";
|
|
366
|
+
requirements_analyst: "requirements_analyst";
|
|
367
|
+
context_analyst: "context_analyst";
|
|
368
|
+
codebase_analyst: "codebase_analyst";
|
|
369
|
+
planner: "planner";
|
|
370
|
+
plan_reviewer: "plan_reviewer";
|
|
371
|
+
implementer: "implementer";
|
|
372
|
+
test_engineer: "test_engineer";
|
|
373
|
+
static_reviewer: "static_reviewer";
|
|
374
|
+
security_reviewer: "security_reviewer";
|
|
375
|
+
performance_reviewer: "performance_reviewer";
|
|
376
|
+
adversarial_reviewer: "adversarial_reviewer";
|
|
377
|
+
design_reviewer: "design_reviewer";
|
|
378
|
+
docs_reviewer: "docs_reviewer";
|
|
379
|
+
ux_reviewer: "ux_reviewer";
|
|
380
|
+
report_synthesizer: "report_synthesizer";
|
|
381
|
+
remediation_triage: "remediation_triage";
|
|
382
|
+
verifier: "verifier";
|
|
383
|
+
summary_writer: "summary_writer";
|
|
384
|
+
review_findings_writer: "review_findings_writer";
|
|
385
|
+
acceptance_validator: "acceptance_validator";
|
|
386
|
+
breakdown_analyst: "breakdown_analyst";
|
|
387
|
+
decomposer: "decomposer";
|
|
388
|
+
decomposition_reviewer: "decomposition_reviewer";
|
|
389
|
+
task_spec_writer: "task_spec_writer";
|
|
390
|
+
}>;
|
|
391
|
+
message: z.ZodString;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
export type RoleValidationWarning = z.infer<typeof roleValidationWarningSchema>;
|
|
394
|
+
export declare const roleValidationResultSchema: z.ZodObject<{
|
|
395
|
+
valid: z.ZodBoolean;
|
|
396
|
+
errors: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
397
|
+
roleId: z.ZodEnum<{
|
|
398
|
+
judge: "judge";
|
|
399
|
+
requirements_analyst: "requirements_analyst";
|
|
400
|
+
context_analyst: "context_analyst";
|
|
401
|
+
codebase_analyst: "codebase_analyst";
|
|
402
|
+
planner: "planner";
|
|
403
|
+
plan_reviewer: "plan_reviewer";
|
|
404
|
+
implementer: "implementer";
|
|
405
|
+
test_engineer: "test_engineer";
|
|
406
|
+
static_reviewer: "static_reviewer";
|
|
407
|
+
security_reviewer: "security_reviewer";
|
|
408
|
+
performance_reviewer: "performance_reviewer";
|
|
409
|
+
adversarial_reviewer: "adversarial_reviewer";
|
|
410
|
+
design_reviewer: "design_reviewer";
|
|
411
|
+
docs_reviewer: "docs_reviewer";
|
|
412
|
+
ux_reviewer: "ux_reviewer";
|
|
413
|
+
report_synthesizer: "report_synthesizer";
|
|
414
|
+
remediation_triage: "remediation_triage";
|
|
415
|
+
verifier: "verifier";
|
|
416
|
+
summary_writer: "summary_writer";
|
|
417
|
+
review_findings_writer: "review_findings_writer";
|
|
418
|
+
acceptance_validator: "acceptance_validator";
|
|
419
|
+
breakdown_analyst: "breakdown_analyst";
|
|
420
|
+
decomposer: "decomposer";
|
|
421
|
+
decomposition_reviewer: "decomposition_reviewer";
|
|
422
|
+
task_spec_writer: "task_spec_writer";
|
|
423
|
+
}>;
|
|
424
|
+
field: z.ZodString;
|
|
425
|
+
message: z.ZodString;
|
|
426
|
+
}, z.core.$strip>>>;
|
|
427
|
+
warnings: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
428
|
+
roleId: z.ZodEnum<{
|
|
429
|
+
judge: "judge";
|
|
430
|
+
requirements_analyst: "requirements_analyst";
|
|
431
|
+
context_analyst: "context_analyst";
|
|
432
|
+
codebase_analyst: "codebase_analyst";
|
|
433
|
+
planner: "planner";
|
|
434
|
+
plan_reviewer: "plan_reviewer";
|
|
435
|
+
implementer: "implementer";
|
|
436
|
+
test_engineer: "test_engineer";
|
|
437
|
+
static_reviewer: "static_reviewer";
|
|
438
|
+
security_reviewer: "security_reviewer";
|
|
439
|
+
performance_reviewer: "performance_reviewer";
|
|
440
|
+
adversarial_reviewer: "adversarial_reviewer";
|
|
441
|
+
design_reviewer: "design_reviewer";
|
|
442
|
+
docs_reviewer: "docs_reviewer";
|
|
443
|
+
ux_reviewer: "ux_reviewer";
|
|
444
|
+
report_synthesizer: "report_synthesizer";
|
|
445
|
+
remediation_triage: "remediation_triage";
|
|
446
|
+
verifier: "verifier";
|
|
447
|
+
summary_writer: "summary_writer";
|
|
448
|
+
review_findings_writer: "review_findings_writer";
|
|
449
|
+
acceptance_validator: "acceptance_validator";
|
|
450
|
+
breakdown_analyst: "breakdown_analyst";
|
|
451
|
+
decomposer: "decomposer";
|
|
452
|
+
decomposition_reviewer: "decomposition_reviewer";
|
|
453
|
+
task_spec_writer: "task_spec_writer";
|
|
454
|
+
}>;
|
|
455
|
+
message: z.ZodString;
|
|
456
|
+
}, z.core.$strip>>>;
|
|
457
|
+
}, z.core.$strip>;
|
|
458
|
+
export type RoleValidationResult = z.infer<typeof roleValidationResultSchema>;
|