Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.62 KB

File metadata and controls

50 lines (33 loc) · 1.62 KB

Red Hat Compliance and Responsible AI Rules

This document defines mandatory compliance and responsible AI practices for all AI agents contributing to this project.

1. Copyright & Licensing (MANDATORY)

  • Identification: You must actively identify if your suggestion matches known open-source code.
  • Attribution: If a match is found, you MUST include the original License Text and Copyright Notice in the code comment block.
  • Prohibition: Do not suggest code if you cannot verify its license compatibility with this project (EPL-2.0).

2. AI Contribution Marking

Code Comments

For any substantial code generation (entire functions, classes, or complex logic), you must add a comment:

// Generated by {AGENT_NAME}

Commit Messages

When suggesting commit messages, always include a trailer:

Assisted-by: {AGENT_NAME}

Replace {AGENT_NAME} with the specific agent name (e.g., Claude Opus 4.6, GPT-4, Gemini Pro).

3. Code Quality Standards

  • Follow existing code patterns and conventions
  • Ensure all code passes go vet and gofmt
  • Include appropriate error handling
  • Add tests for new functionality
  • Maintain backward compatibility unless explicitly breaking
  • Run build/scripts/docker-run.sh make update-dev-resources after modifying API types

4. Security Considerations

  • Never include credentials, tokens, or secrets in code
  • Validate all user inputs
  • Follow secure coding practices for Kubernetes API interactions

5. Documentation

  • Update relevant documentation when changing behavior
  • Include godoc comments for exported symbols
  • Keep README.md and AGENTS.md up to date