Skip to content

feat: switch automatic PR code reviews to GPT-5.5 for model diversity #36131

Description

@sfreudenthaler

Summary

Currently both automatic PR code reviews and `@claude` interactive sessions use Anthropic Claude models via AWS Bedrock. Since the team writes code with Claude's assistance, using the same model family for review can perpetuate training/weighting biases. This issue tracks switching the automatic PR review job to OpenAI GPT-5.5 via AWS Bedrock Mantle, while keeping `@claude` interactive sessions on Anthropic Claude.

Motivation

  • Model diversity: A code reviewer from a different model family provides independent coverage and catches blind spots that Claude may share with the code it helped write
  • Infrastructure already in place: `dotCMS/ai-workflows@v3.1.0` ships a `codex-executor` for GPT-5.5/5.4 via Bedrock Mantle; IAM policy (`IaC Dependency problem: Unable to delete contents when you have multi language version #7842`) is already applied with the `openai.*` model scope
  • GPT-5.5 is entitled in us-east-1: The existing `BEDROCK_ROLE_ARN` org variable already covers the required IAM permissions — no additional credential changes needed

Proposed Changes

  • `ai_claude-orchestrator.yml` — `claude-automatic-review` job:
    • Switch `model_id` from `${{ vars.BEDROCK_MODEL_ID }}` to `openai.gpt-5.5`
    • Pin to `ai-workflows@v3.1.0` (required for the GPT-5.x path fix, PR Structure, Field, ContentletAPI Unit Tests #36)
    • Update the auto-review prompt with dotCMS-specific context and structured output format
  • `ai_claude-backend-reviewer.yml` — stays on Claude (uses the `Agent` tool for multi-agent sub-agents, which is Claude-specific), but update tag to `v3.1.0` and fix the Java version reference (Java 25, not Java 11)

Out of Scope

  • `@claude` interactive mentions remain on `${{ vars.BEDROCK_MODEL_ID }}` (Anthropic Claude)
  • `ai_claude-rollback-safety.yml` remains on Claude (label-posting logic uses Claude's tools)
  • No new IAM or secrets changes needed

Acceptance Criteria

  • Opening a PR triggers an automatic code review comment posted by GPT-5.5 (not Claude)
  • `@claude` interactive sessions still use Anthropic Claude (verified by sticky comment header)
  • Prompt in the auto-review reflects dotCMS conventions (Config, Logger, APILocator, DotConnect, WrapInTransaction)

Metadata

Metadata

Fields

No fields configured for Feature.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions