You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate submit_result with arktype instead of adding ajv
The repo already validates with arktype; ajv was added only because
arktype cannot consume a JSON Schema document (it exports toJsonSchema
but has no fromJsonSchema). Declaring the contract as an arktype type
instead removes the need for a second validator, gives compile-time
types for free, and produces better correction text for the worker.
No director package had declared an outputSchema yet, so no adopted
contract changes.
/** Declared output schema, if the director's report contract has one. */
31
-
schema?: JsonSchema;
29
+
/** Declared output shape, if the director's report contract has one. */
30
+
outputType?: OutputType;
32
31
state: SubmitResultState;
33
32
maxCorrections?: number;
34
33
}
@@ -52,16 +51,15 @@ export function evaluateSubmitResult(input: SubmitResultInput): {
52
51
message: `Error: submit_result correction cap (${cap}) reached for this turn. No further attempts accepted — finish with the markdown report envelope instead.`,
0 commit comments