Skip to content

False positive: Content filtering blocking legitimate documentation creation #16159

@gabrielmaialva33

Description

@gabrielmaialva33

Description

While using Claude Code to create standard open source documentation files (LICENSE, CODE_OF_CONDUCT.md, CONTRIBUTING.md, SECURITY.md) for my project, the API repeatedly returned:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Output blocked by content filtering policy"},"request_id":null}

Context

  • I was asking Claude Code to create standard legal/community documents
  • The project is an IPTV streaming application (Streamix)
  • Claude Code successfully created the files on retry, but the initial attempts were blocked

Steps to Reproduce

  1. Have a project related to media/streaming
  2. Ask Claude Code to create CODE_OF_CONDUCT.md or CONTRIBUTING.md
  3. Content filtering may block the output

Expected Behavior

Standard documentation files (CODE_OF_CONDUCT, CONTRIBUTING, SECURITY, LICENSE) should not trigger content filtering as they are legitimate and common open source files.

Actual Behavior

Multiple attempts blocked with "Output blocked by content filtering policy" error.

Environment

  • Claude Code CLI
  • macOS
  • Project type: Elixir/Phoenix application

Additional Notes

This appears to be a false positive. The content being generated was:

  • Contributor Covenant (standard code of conduct)
  • Contributing guidelines
  • Security disclosure policy
  • Proprietary license

None of these contain harmful content.


🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions