Skip to content
Back to skills

1015 Agent Payload Field Lengths Fix 12f44af0

ASecurity

- **Fix Title:** Agent payload field length validation - **Issue Description:** Agent payload validation did not enforce length limits, allowing oversized values into storage. - **Root Cause Analysis:** Length checks existed but were never invoked in `sanitize_agent_payload`, and no limits covered Azure-specific fields. - **Fixed/Implemented in version:** **0.237.009** - **Config Version Updated:** `config.py` VERSION set to **0.237.009**

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
testingazuretestingapi

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 1015-agent_payload_field_lengths_fix_12f44af0 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1015 Agent Payload Field Lengths Fix 12f44af0?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1015 Agent Payload Field Lengths Fix 12f44af0
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1015-agent-payload-field-lengths-fix-12f44af0/badge)](https://www.skillsdirectory.com/skills/tools-only-1015-agent-payload-field-lengths-fix-12f44af0)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Agent Payload Field Lengths Fix (Version v0.237.001)

## Header Information
- **Fix Title:** Agent payload field length validation
- **Issue Description:** Agent payload validation did not enforce length limits, allowing oversized values into storage.
- **Root Cause Analysis:** Length checks existed but were never invoked in `sanitize_agent_payload`, and no limits covered Azure-specific fields.
- **Fixed/Implemented in version:** **0.237.009**
- **Config Version Updated:** `config.py` VERSION set to **0.237.009**

## Technical Details
- **Files Modified:**
  - application/single_app/functions_agent_payload.py
  - application/single_app/config.py
- **Code Changes Summary:**
  - Added max length recommendations for Azure OpenAI and APIM fields.
  - Validated field lengths in `sanitize_agent_payload` and for Foundry settings.
  - Bumped application version in config.py.
- **Testing Approach:**
  - Added a functional test to confirm validation wiring and limits are present.

## Validation
- **Test Results:** functional_tests/test_agent_payload_field_lengths.py
- **Before/After Comparison:**
  - Before: Oversized agent fields could pass validation.
  - After: Oversized fields raise `AgentPayloadError` with a clear message.
- **User Experience Improvements:**
  - Prevents invalid payloads and provides consistent validation feedback.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.