Skip to content

feat(sanitize): implement empty-block and payload preflight sanitizer #1

@sonwr

Description

@sonwr

Goal

Implement first production sanitizer for agent payload safety.

Scope

  • Remove empty/whitespace-only text blocks
  • Normalize message content arrays
  • Add provider-aware preflight guard hooks

Acceptance Criteria

  • Unit tests for empty-block stripping and normalization
  • No behavior change for valid payloads
  • Public API documented in package README

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions