Skip to content

fix(cli): emit recipe-run envelope for schema rejections - #2502

Merged
chubes4 merged 1 commit into
mainfrom
fix/recipe-schema-failure-envelope
Sep 11, 2026
Merged

fix(cli): emit recipe-run envelope for schema rejections#2502
chubes4 merged 1 commit into
mainfrom
fix/recipe-schema-failure-envelope

Conversation

@chubes4

@chubes4 chubes4 commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • recipe-run JSON schema validation threw before a wp-codebox/recipe-run/v1 envelope existed, so consumers saw wp-codebox/cli-failure/v1 and lost structured failure evidence.
  • Additional-property errors now include the rejected key in the issue path.
  • Schema validation failures now return wp-codebox/recipe-run/v1 with error.code = recipe-json-schema-validation-failed and the rejected keys.

Test plan

  • npx tsx tests/recipe-json-schema-validation.test.ts
  • npx tsx tests/runtime-services.test.ts

AI assistance: GPT-6 Astra via OpenCode diagnosed the blocker; Grok 4.6 via opencode run established the owning layer, implemented the fix, and ran the suites.

JSON schema validation failed before recipe-run could emit
wp-codebox/recipe-run/v1, so consumers saw cli-failure/v1 instead.
Name additionalProperties in issue paths and return a recipe-run
envelope that includes the rejected keys.
@chubes4
chubes4 merged commit 8a2d006 into main Sep 11, 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