Skip to content

Validate nested invoke argument schemas - #141

Merged
hexuria merged 4 commits into
mainfrom
feat/gpui-agent-invoke-json-schema
Nov 30, 2026
Merged

hexuria merged 4 commits into
mainfrom
feat/gpui-agent-invoke-json-schema

Conversation

@hexuria

@hexuria hexuria commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • let invoke argument metadata carry an optional standard JSON Schema end-to-end over the invoke table, schema conversion, and schema files
  • validate embedded object/array contents with jsonschema after recipe params are bound; compile invalid embedded schemas as recipe_invalid_schema
  • fail closed for unknown argument-spec keys and unknown type names, documenting the validation tightening
  • keep the live host pre-dispatch gate shallow and document nested-placeholder coercion limits

Refs #116.

Test plan

  • gpui-agent lib: 235 passed
  • gpui-agent-recipe test targets: 245 passed
  • schema parity: pass
  • wire compatibility: 14 passed
  • clippy/fmt clean on touched crates
  • dependency cost measured: normal CLI dependency count 79 → 134 (+55), documented; Kani not applicable to this serde/jsonschema integration

Generated with Devin

Let invoke argument metadata carry standard JSON Schema so recipe
validation can reject malformed object and array contents before a plan
runs. Keep the live host gate shallow, close silent schema-file type and
key handling, and document the dependency/deep-placeholder trade-offs.

Refs #116.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@hexuria
hexuria merged commit 336617c into main Nov 30, 2026
9 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