fix(skills): accept policy.products in plugin-creator skill validation by argszero · Pull Request #3 · argszero/codex · GitHub
Skip to content

fix(skills): accept policy.products in plugin-creator skill validation - #3

Open
argszero wants to merge 1 commit into
mainfrom
fix/plugin-policy-products
Open

fix(skills): accept policy.products in plugin-creator skill validation#3
argszero wants to merge 1 commit into
mainfrom
fix/plugin-policy-products

Conversation

@argszero

@argszero argszero commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

The bundled plugin-creator validator rejected policy.products in a skill's agents/openai.yaml as an unsupported field, even though the skill metadata model (ext/skills Policy.products: Vec<Product>) supports product-specific invocation restrictions.

This change allows products on the skill-agent policy block and validates it is an array of non-empty strings, continuing to reject malformed values.

Related Issue

Closes openai#42570

Tests

  • Existing plugin-creator tests pass (19/19 via python3 -B -m unittest discover -s codex-rs/skills/tests -p 'test_*.py')
  • New regression tests added for valid policy.products and malformed (non-list / non-string) values

The bundled plugin-creator validator rejected `policy.products` in a skill's
`agents/openai.yaml` as an unsupported field, even though the skill metadata
model (ext/skills Policy.products: Vec<Product>) supports product-specific
invocation restrictions.

Allow `products` on the skill-agent policy block and validate it is an array
of non-empty strings, continuing to reject malformed values.

Fixes openai#42570.
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.

plugin-creator validator rejects policy.products in skill agent metadata

1 participant