mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
agent_spawn's input schema limited `model` to five aliases, so a client that validates against the schema could not pass an exact model id such as claude-opus-5-5 or openrouter/anthropic/claude-sonnet-5.5, although the handler already passes non-alias strings through as modelId (#2962). The enum is now a bounded string (1-256 chars) with an anchored pattern: letters, digits and . _ : / @ + -, starting with a letter or digit. The handler applies the same check to `model` and to `config.model` (the `agent spawn -m` path, which the schema never sees), so whitespace and shell metacharacters are refused before the agent is stored. Aliases route as before; exact ids are reported back as modelId. Co-Authored-By: RuFlo <ruv@ruv.net>