Files
Rohit Kushwaha 5ec460bf1f fix(chat,ripple): validate intent hint + add schema/prompt tests
Review follow-ups for #1141:

- agent_schemas: add a field_validator for `intent`. It still accepts
  any `skill:<name>` (open-ended for forward compat) but now rejects
  values that are neither `pocket_create` nor `skill:`-prefixed, so a
  client typo like `pocket-create` fails loudly with a 422 instead of
  silently falling through to the inline-ripple branch.
- agent_schemas: correct the `intent`/`skill_args` docstring — `skill:*`
  and `skill_args` are accepted but NOT yet consumed by the backend;
  marked reserved rather than implying they dispatch today.
- tests: cover intent acceptance/rejection + skill_args on the request
  schema, and assert INLINE_RIPPLE_SYSTEM_PROMPT composes the shared
  WIDGET_CATALOG / USE-THE-WIDGET RULE from _design (a content guard
  that catches a broken _design import at test time, not runtime).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 10:42:11 +05:30
..