Skip to content

feat(recipe): enforce parameter limits (max 32 params, 200 select options, 128 KiB) - #12259

Open
Abhijay007 wants to merge 1 commit into
aaif-goose:mainfrom
Abhijay007:fix/recipe-parameter-limits
Open

Abhijay007 wants to merge 1 commit into
aaif-goose:mainfrom
Abhijay007:fix/recipe-parameter-limits

Conversation

@Abhijay007

Copy link
Copy Markdown
Collaborator

Fixes: #11746

Summary

Adds hard limits to recipe parameter validation, enforced at both the CLI and scheduler entry points:

  • Max 32 parameters per recipe
  • Max 200 select options total across all parameters
  • Max 128 KiB serialized parameters array

Each limit returns a clear error message and is validated before any further processing.

Testing

  • rejects_too_many_parameters — 33 params → error containing "maximum is 32"
  • accepts_exactly_max_parameters — 32 params → ok
  • rejects_too_many_total_select_options — 201 options → error containing "maximum is 200"
  • rejects_oversized_serialized_parameters — 128 KiB+ description → error containing "128 KiB"
  • scheduling_rejects_too_many_parameters — same limit via scheduler path
  • scheduling_rejects_too_many_total_select_options — same limit via scheduler path

@Abhijay007
Abhijay007 requested a review from a team as a code owner September 20, 2026 04:56
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.

Define recipe parameter limits and graceful oversized-recipe behavior

1 participant