From 4de756fd43c5e16e989a6d663071fe0db61bf2ef Mon Sep 17 00:00:00 2001 From: Ildar Nurislamov Date: Wed, 18 Nov 2026 01:23:10 +0400 Subject: [PATCH 1/4] ci: upgrade AI review to Codex 0.169.0 and GPT-6.2 Sol --- .github/workflows/ai-review.yml | 24 ++++++++++++------------ README.md | 8 ++++---- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index c6ca5ff..3e8575c 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -19,7 +19,7 @@ on: review_model: description: "Explicit model for analysis and optional native benchmark." type: string - default: "gpt-6-astra" + default: "gpt-6.2-sol" review_effort: description: "Reasoning effort: low, medium, high, xhigh, or max." type: string @@ -31,7 +31,7 @@ on: codex_version: description: "Pinned stable CLI version; candidate versions can be tested in dry runs." type: string - default: "0.163.0" + default: "0.169.0" incremental: description: "Review changes since the last compatible completed review." type: boolean @@ -75,7 +75,7 @@ on: review_model: description: "Explicit model for analysis and optional native benchmark." type: string - default: "gpt-6-astra" + default: "gpt-6.2-sol" review_effort: description: "Reasoning effort: low, medium, high, xhigh, or max." type: string @@ -87,7 +87,7 @@ on: codex_version: description: "Pinned stable CLI version; candidate versions can be tested in dry runs." type: string - default: "0.163.0" + default: "0.169.0" incremental: description: "Review changes since the last compatible completed review." type: boolean @@ -135,9 +135,9 @@ jobs: subject_url: ${{ steps.resolve-target.outputs.subject_url }} env: - REVIEW_MODEL: ${{ inputs.review_model || 'gpt-6-astra' }} + REVIEW_MODEL: ${{ inputs.review_model || 'gpt-6.2-sol' }} REVIEW_EFFORT: ${{ inputs.review_effort || 'high' }} - CODEX_VERSION: ${{ inputs.codex_version || '0.163.0' }} + CODEX_VERSION: ${{ inputs.codex_version || '0.169.0' }} REVIEW_BOT_LOGIN: ${{ inputs.review_bot_login || 'jitsu-code-review[bot]' }} steps: @@ -468,8 +468,7 @@ jobs: {"type": "object", "additionalProperties": false, "required": ["version", "reviewed_sha", "completion_status", "summary", "findings"], "properties": {"version": {"type": "integer", "enum": [1]}, "reviewed_sha": {"type": "string"}, "completion_status": {"type": "string", "enum": ["complete", "incomplete"]}, "summary": {"type": "string"}, "findings": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["priority", "title", "body", "path", "side", "start_line", "end_line"], "properties": {"priority": {"type": "string", "enum": ["P0", "P1", "P2"]}, "title": {"type": "string"}, "body": {"type": "string"}, "path": {"type": "string"}, "side": {"type": "string", "enum": ["LEFT", "RIGHT"]}, "start_line": {"type": "integer"}, "end_line": {"type": "integer"}}}}}} model: ${{ env.REVIEW_MODEL }} effort: ${{ env.REVIEW_EFFORT }} - # Keep the CLI pinned independently of the action. Version 0.163.0 - # exited cleanly with v1.11 in structured and native review benchmarks. + # Pin the CLI independently of the action. codex-version: ${{ env.CODEX_VERSION }} codex-home: .github/codex/home sandbox: danger-full-access @@ -499,6 +498,7 @@ jobs: # Order: uncached input, cached input, cache writes, output. PRICES = { 'gpt-6-astra': (D("10.00"), D("1.00"), D("12.50"), D("50.00")), + 'gpt-6.2-sol': (D("2.00"), D("0.10"), D("2.50"), D("10.00")), 'gpt-6.1-sol': (D("2.00"), D("0.10"), D("2.50"), D("10.00")), 'gpt-6-luna': (D("0.10"), D("0.01"), D("0.125"), D("0.50")), 'gpt-6-sol': (D("2.00"), D("0.20"), D("2.50"), D("10.00")), @@ -548,7 +548,7 @@ jobs: } # Above 272K input tokens, the full request costs 2x input/cache and 1.5x output. LONG_CONTEXT_MODELS = { - 'gpt-6-astra', 'gpt-6.1-sol', 'gpt-6-sol', 'gpt-6-luna', + 'gpt-6-astra', 'gpt-6.2-sol', 'gpt-6.1-sol', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.5-pro', 'gpt-5.4', 'gpt-5.4-pro', } @@ -556,7 +556,7 @@ jobs: model = os.environ['MODEL'] result = {'model': model, 'usage_found': 'false', 'estimated_cost_usd': '', 'price_source': 'https://developers.openai.com/api/docs/pricing' if model in PRICES else '', - 'price_verified_at': '2026-10-16' if model in PRICES else '', + 'price_verified_at': '2026-11-18' if model == 'gpt-6.2-sol' else '2026-10-16' if model in PRICES else '', 'pricing_basis': 'standard text tokens; excludes tools, regional and service-tier uplifts'} home = Path(os.environ['CODEX_HOME']) sessions = list(home.rglob('*.jsonl')) @@ -725,9 +725,9 @@ jobs: REVIEW_BASE: ${{ needs.ai-review.outputs.compare_base }} FULL_BASE: ${{ needs.ai-review.outputs.full_base }} REVIEW_PROFILE: ${{ needs.ai-review.outputs.review_profile }} - REVIEW_MODEL: ${{ inputs.review_model || 'gpt-6-astra' }} + REVIEW_MODEL: ${{ inputs.review_model || 'gpt-6.2-sol' }} REVIEW_EFFORT: ${{ inputs.review_effort || 'high' }} - CODEX_VERSION: ${{ inputs.codex_version || '0.163.0' }} + CODEX_VERSION: ${{ inputs.codex_version || '0.169.0' }} EXPECTED_BOT_LOGIN: ${{ inputs.review_bot_login || 'jitsu-code-review[bot]' }} REVIEW_REPO: ${{ github.workspace }}/reviewed-repo REVIEW_FILE: ${{ github.workspace }}/review-artifact/review.json diff --git a/README.md b/README.md index 04985d6..4f00a56 100644 --- a/README.md +++ b/README.md @@ -178,10 +178,10 @@ These inputs are available through `workflow_call` and manual dispatch: | Input | Default | Purpose | |-------|---------|---------| -| `review_model` | `gpt-6-astra` | Explicit model identifier | +| `review_model` | `gpt-6.2-sol` | Explicit model identifier | | `review_effort` | `high` | `low`, `medium`, `high`, `xhigh`, or `max`; model must support it | | `analysis_timeout_minutes` | `12` | Per-engine timeout; integer from 1 to 30 | -| `codex_version` | `0.163.0` | Pinned stable CLI version; floating versions are rejected | +| `codex_version` | `0.169.0` | Pinned stable CLI version; floating versions are rejected | | `incremental` | `true` | Set false to force a full comparison | | `review_bot_login` | `jitsu-code-review[bot]` | Trusted completion-marker author; must match the posting App | | `dry_run` | `false` | Validate/archive without posting or advancing coverage | @@ -205,8 +205,8 @@ gh workflow run ai-review.yml --repo jitsucom/github-workflows --ref Date: Wed, 18 Nov 2026 04:05:58 +0400 Subject: [PATCH 2/4] test: expect the upgraded AI review defaults --- tests/test_review_context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_review_context.py b/tests/test_review_context.py index fe1f9fc..7c412cb 100644 --- a/tests/test_review_context.py +++ b/tests/test_review_context.py @@ -115,8 +115,8 @@ def test_checkout_and_prompt_contract(self): self.assertIn('Intentional tradeoffs are context, not immunity', prompt) self.assertIn('Re-raise a dismissed finding only if new changes invalidate', prompt) self.assertNotIn('still prefer to post it', prompt) - self.assertIn("REVIEW_MODEL: ${{ inputs.review_model || 'gpt-6-astra' }}", text) - self.assertIn("CODEX_VERSION: ${{ inputs.codex_version || '0.163.0' }}", text) + self.assertIn("REVIEW_MODEL: ${{ inputs.review_model || 'gpt-6.2-sol' }}", text) + self.assertIn("CODEX_VERSION: ${{ inputs.codex_version || '0.169.0' }}", text) if __name__ == '__main__': From fba42042e96d58ea9832c5099f512e784a2ff856 Mon Sep 17 00:00:00 2001 From: Ildar Nurislamov Date: Wed, 18 Nov 2026 10:06:06 +0400 Subject: [PATCH 3/4] fix: preserve tool output budget for Sol 6.2 reviews --- .github/workflows/ai-review.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 3e8575c..613a7ee 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -468,6 +468,8 @@ jobs: {"type": "object", "additionalProperties": false, "required": ["version", "reviewed_sha", "completion_status", "summary", "findings"], "properties": {"version": {"type": "integer", "enum": [1]}, "reviewed_sha": {"type": "string"}, "completion_status": {"type": "string", "enum": ["complete", "incomplete"]}, "summary": {"type": "string"}, "findings": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["priority", "title", "body", "path", "side", "start_line", "end_line"], "properties": {"priority": {"type": "string", "enum": ["P0", "P1", "P2"]}, "title": {"type": "string"}, "body": {"type": "string"}, "path": {"type": "string"}, "side": {"type": "string", "enum": ["LEFT", "RIGHT"]}, "start_line": {"type": "integer"}, "end_line": {"type": "integer"}}}}}} model: ${{ env.REVIEW_MODEL }} effort: ${{ env.REVIEW_EFFORT }} + # 0.169.0 falls back to 10,000 bytes for Sol 6.2 behind the Responses proxy. + codex-args: ${{ env.REVIEW_MODEL == 'gpt-6.2-sol' && '--config tool_output_token_limit=10000' || '' }} # Pin the CLI independently of the action. codex-version: ${{ env.CODEX_VERSION }} codex-home: .github/codex/home @@ -640,8 +642,12 @@ jobs: git worktree add --detach "$RUNNER_TEMP/native-review" "$REVIEW_HEAD" ARGS=(--base "$REVIEW_BASE") [ "$REVIEW_MODE" = "commit" ] && ARGS=(--commit "$REVIEW_HEAD") + MODEL_ARGS=(--config "model_reasoning_effort=\"$REVIEW_EFFORT\"") + if [[ "$REVIEW_MODEL" == gpt-6.2-sol ]]; then + MODEL_ARGS+=(--config tool_output_token_limit=10000) + fi codex exec --cd "$RUNNER_TEMP/native-review" --model "$REVIEW_MODEL" \ - --config "model_reasoning_effort=\"$REVIEW_EFFORT\"" --sandbox read-only \ + "${MODEL_ARGS[@]}" --sandbox read-only \ --json --output-last-message "$GITHUB_WORKSPACE/.github/codex/output/native-review.md" \ review "${ARGS[@]}" > .github/codex/output/native-events.jsonl From 78efafc74adfb6756f84406e82eec8978c65931d Mon Sep 17 00:00:00 2001 From: Ildar Nurislamov Date: Wed, 18 Nov 2026 10:18:12 +0400 Subject: [PATCH 4/4] ci: use the bundled Sol 6.2 settings in Codex 0.170.0 --- .github/workflows/ai-review.yml | 16 +++++----------- README.md | 2 +- tests/test_review_context.py | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 613a7ee..d27f23d 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -31,7 +31,7 @@ on: codex_version: description: "Pinned stable CLI version; candidate versions can be tested in dry runs." type: string - default: "0.169.0" + default: "0.170.0" incremental: description: "Review changes since the last compatible completed review." type: boolean @@ -87,7 +87,7 @@ on: codex_version: description: "Pinned stable CLI version; candidate versions can be tested in dry runs." type: string - default: "0.169.0" + default: "0.170.0" incremental: description: "Review changes since the last compatible completed review." type: boolean @@ -137,7 +137,7 @@ jobs: env: REVIEW_MODEL: ${{ inputs.review_model || 'gpt-6.2-sol' }} REVIEW_EFFORT: ${{ inputs.review_effort || 'high' }} - CODEX_VERSION: ${{ inputs.codex_version || '0.169.0' }} + CODEX_VERSION: ${{ inputs.codex_version || '0.170.0' }} REVIEW_BOT_LOGIN: ${{ inputs.review_bot_login || 'jitsu-code-review[bot]' }} steps: @@ -468,8 +468,6 @@ jobs: {"type": "object", "additionalProperties": false, "required": ["version", "reviewed_sha", "completion_status", "summary", "findings"], "properties": {"version": {"type": "integer", "enum": [1]}, "reviewed_sha": {"type": "string"}, "completion_status": {"type": "string", "enum": ["complete", "incomplete"]}, "summary": {"type": "string"}, "findings": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["priority", "title", "body", "path", "side", "start_line", "end_line"], "properties": {"priority": {"type": "string", "enum": ["P0", "P1", "P2"]}, "title": {"type": "string"}, "body": {"type": "string"}, "path": {"type": "string"}, "side": {"type": "string", "enum": ["LEFT", "RIGHT"]}, "start_line": {"type": "integer"}, "end_line": {"type": "integer"}}}}}} model: ${{ env.REVIEW_MODEL }} effort: ${{ env.REVIEW_EFFORT }} - # 0.169.0 falls back to 10,000 bytes for Sol 6.2 behind the Responses proxy. - codex-args: ${{ env.REVIEW_MODEL == 'gpt-6.2-sol' && '--config tool_output_token_limit=10000' || '' }} # Pin the CLI independently of the action. codex-version: ${{ env.CODEX_VERSION }} codex-home: .github/codex/home @@ -642,12 +640,8 @@ jobs: git worktree add --detach "$RUNNER_TEMP/native-review" "$REVIEW_HEAD" ARGS=(--base "$REVIEW_BASE") [ "$REVIEW_MODE" = "commit" ] && ARGS=(--commit "$REVIEW_HEAD") - MODEL_ARGS=(--config "model_reasoning_effort=\"$REVIEW_EFFORT\"") - if [[ "$REVIEW_MODEL" == gpt-6.2-sol ]]; then - MODEL_ARGS+=(--config tool_output_token_limit=10000) - fi codex exec --cd "$RUNNER_TEMP/native-review" --model "$REVIEW_MODEL" \ - "${MODEL_ARGS[@]}" --sandbox read-only \ + --config "model_reasoning_effort=\"$REVIEW_EFFORT\"" --sandbox read-only \ --json --output-last-message "$GITHUB_WORKSPACE/.github/codex/output/native-review.md" \ review "${ARGS[@]}" > .github/codex/output/native-events.jsonl @@ -733,7 +727,7 @@ jobs: REVIEW_PROFILE: ${{ needs.ai-review.outputs.review_profile }} REVIEW_MODEL: ${{ inputs.review_model || 'gpt-6.2-sol' }} REVIEW_EFFORT: ${{ inputs.review_effort || 'high' }} - CODEX_VERSION: ${{ inputs.codex_version || '0.169.0' }} + CODEX_VERSION: ${{ inputs.codex_version || '0.170.0' }} EXPECTED_BOT_LOGIN: ${{ inputs.review_bot_login || 'jitsu-code-review[bot]' }} REVIEW_REPO: ${{ github.workspace }}/reviewed-repo REVIEW_FILE: ${{ github.workspace }}/review-artifact/review.json diff --git a/README.md b/README.md index 4f00a56..a89016e 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ These inputs are available through `workflow_call` and manual dispatch: | `review_model` | `gpt-6.2-sol` | Explicit model identifier | | `review_effort` | `high` | `low`, `medium`, `high`, `xhigh`, or `max`; model must support it | | `analysis_timeout_minutes` | `12` | Per-engine timeout; integer from 1 to 30 | -| `codex_version` | `0.169.0` | Pinned stable CLI version; floating versions are rejected | +| `codex_version` | `0.170.0` | Pinned stable CLI version; floating versions are rejected | | `incremental` | `true` | Set false to force a full comparison | | `review_bot_login` | `jitsu-code-review[bot]` | Trusted completion-marker author; must match the posting App | | `dry_run` | `false` | Validate/archive without posting or advancing coverage | diff --git a/tests/test_review_context.py b/tests/test_review_context.py index 7c412cb..c702ecf 100644 --- a/tests/test_review_context.py +++ b/tests/test_review_context.py @@ -116,7 +116,7 @@ def test_checkout_and_prompt_contract(self): self.assertIn('Re-raise a dismissed finding only if new changes invalidate', prompt) self.assertNotIn('still prefer to post it', prompt) self.assertIn("REVIEW_MODEL: ${{ inputs.review_model || 'gpt-6.2-sol' }}", text) - self.assertIn("CODEX_VERSION: ${{ inputs.codex_version || '0.169.0' }}", text) + self.assertIn("CODEX_VERSION: ${{ inputs.codex_version || '0.170.0' }}", text) if __name__ == '__main__':