Skip to content

Validate description limits using UTF-8 bytes - #130

Open
mohgupta-ship-it wants to merge 1 commit into
mainfrom
codex/validate-description-utf8-bytes
Open

Validate description limits using UTF-8 bytes#130
mohgupta-ship-it wants to merge 1 commit into
mainfrom
codex/validate-description-utf8-bytes

Conversation

@mohgupta-ship-it

Copy link
Copy Markdown
Member

This pull request was prepared and posted by Codex at Mohit’s request.

Summary

  • Define the serialized description limit explicitly as 1,024 UTF-8 bytes.
  • Enforce the byte limit during skill frontmatter validation while retaining the existing character bound for schema compatibility.
  • Cover the exact 1,024-byte boundary and a 1,025-byte multibyte overflow.

Rationale

Character counts do not reliably enforce encoded storage or transport limits. Multibyte text can fit within a character limit while exceeding the serialized byte limit.

Validation

  • 37 focused schema tests passed
  • Ruff passed for all changed files
  • git diff --check passed

Signed-off-by: Mohit Gupta <mohgupta@nvidia.com>
@mohgupta-ship-it
mohgupta-ship-it force-pushed the codex/validate-description-utf8-bytes branch from 2e62f58 to 34d082c Compare September 1, 2026 08:25
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