Skip to content

Commit b29b393

Browse files
committed
feat: implement robust subtask validation system
- Add SubtaskValidator class for parallel validation of subtask results - Implement validation types and interfaces - Add validation configuration to global settings - Create proof-of-concept integration with newTaskTool - Add comprehensive tests for validation logic This implements the "parallel universe" validation system proposed in issue #6970, allowing the orchestrator to validate subtask results in a separate context before accepting them, reducing propagated errors and improving overall reliability.
1 parent 5f3c67f commit b29b393

File tree

6 files changed

+1001
-0
lines changed

6 files changed

+1001
-0
lines changed

packages/types/src/global-settings.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ export const globalSettingsSchema = z.object({
155155
hasOpenedModeSelector: z.boolean().optional(),
156156
lastModeExportPath: z.string().optional(),
157157
lastModeImportPath: z.string().optional(),
158+
159+
// Subtask validation configuration
160+
subtaskValidationEnabled: z.boolean().optional(),
161+
subtaskValidationApiConfigId: z.string().optional(),
162+
subtaskValidationMaxRetries: z.number().optional(),
163+
subtaskValidationAutoRevert: z.boolean().optional(),
164+
subtaskValidationIncludeFullContext: z.boolean().optional(),
165+
subtaskValidationCustomPrompt: z.string().optional(),
158166
})
159167

160168
export type GlobalSettings = z.infer<typeof globalSettingsSchema>

0 commit comments

Comments
 (0)