Skip to content

Mark 0.2.108 in the changelog and validate submit_result with arktype - #604

Merged
TheGreatAxios merged 2 commits into
mainfrom
changelog-0-2-108
Aug 24, 2026
Merged

Mark 0.2.108 in the changelog and validate submit_result with arktype#604
TheGreatAxios merged 2 commits into
mainfrom
changelog-0-2-108

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Two changes, both prerequisites for cutting 0.2.108.

1. Changelog. Renames ## [Unreleased] to ## [0.2.108] - 2026-08-24; the release script requires a clean working tree.

2. Drops the ajv dependency #602 added. arktype is already this repo's validator. It was not a drop-in for #602's design because arktype/@ark/schema only exposes toJsonSchema — the export direction — with no fromJsonSchema, so it cannot validate against a JSON Schema document. The fix is to declare the contract as an arktype type rather than as JSON Schema data:

  • ReportContract.outputSchema (JSON Schema object) → outputType?: OutputType (arktype Type)
  • RunSubAgentParams.reportSchemareportType
  • submit-result.ts validates via input.outputType(input.result) and instanceof ArkErrors, using .summary for the correction message

Upsides beyond removing a dependency: compile-time types for declared contracts, and better correction text for the worker — verdict must be \"fail\" or \"pass\" (was \"maybe\"), one line per violation, versus ajv.errorsText. Constraints are also terser: score: "0<=number<=10" replaces separate minimum/maximum keys.

No director package had declared an outputSchema yet, so this changes no contract anyone had adopted. bun install reports 1 package removed.

0.2.108 contents, all already merged

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.
@TheGreatAxios TheGreatAxios changed the title Mark 0.2.108 in the changelog Mark 0.2.108 in the changelog and validate submit_result with arktype Aug 24, 2026
@TheGreatAxios
TheGreatAxios enabled auto-merge (squash) August 24, 2026 06:09
@TheGreatAxios
TheGreatAxios merged commit 3cf2278 into main Aug 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant