This is an automated email from the ASF dual-hosted git repository.

shuke987 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/doris-skills.git


The following commit(s) were added to refs/heads/main by this push:
     new ce3cc43  feat(doris-repo-review): allow Gemini 4 and GPT-6.2 runtimes 
(#18)
ce3cc43 is described below

commit ce3cc432ff21af5f1f33e1b1829a8cfa3a0b81c8
Author: 924060929 <[email protected]>
AuthorDate: Mon Nov 23 17:52:03 2026 +0800

    feat(doris-repo-review): allow Gemini 4 and GPT-6.2 runtimes (#18)
    
    Extend the `doris-repo-review` qualified reviewer runtime policy with 
GPT-6.2 Astra/Sol on Codex and Gemini 4 Carbon/Neon on Antigravity:
    
    - **Codex**: add `gpt-6.2-astra` and `gpt-6.2-sol` at `xhigh`, `max`, or 
host-exposed and actually used `ultra`. Retain `gpt-6-astra`, `gpt-6.1-sol`, 
and `gpt-6-sol`, keeping `gpt-6-astra` (`xhigh`) as the preferred Codex model 
and `gpt-6.1-sol` (`xhigh`) as its documented fallback.
    - **Antigravity**: add `gemini-4-carbon` at `high` (its highest published 
reasoning tier; no `xhigh` tier exists) and `gemini-4-neon` at `xhigh` (`Extra` 
in the Antigravity UI), preferring `gemini-4-carbon` (`high`) with 
`gemini-4-neon` (`xhigh`) as fallback. Require splitting combined CLI/`swarm` 
identifiers (`gemini-4-carbon-high`, `gemini-4-neon-xhigh`) into canonical 
`model` and `effort` receipt fields, disallow `Orchestrator` sessions 
(`gemini-pro-orchestrator*`) that delegate ex [...]
    - **Claude Code**: preserve all existing `claude-fable-5-1`, 
`claude-opus-5-5`, and `claude-fable-5` model/effort rules unchanged.
    
    Validation:
    - `./verify/repo-review/run.sh`: all 77 checks passed (9 runtime policy, 15 
runtime attestation, 35 review documents, 18 mocked posting).
    - `bash -n skills/doris-repo-review/scripts/*.sh verify/repo-review/*.sh` 
and `git diff --check` passed.
    - 352 model/effort combinations agree between this sender policy, the 
companion Doris receiver, and the expected policy (29 combinations allowed, 
adding only the 8 intended GPT-6.2 and Gemini 4 combinations over the 
21-combination baseline).
    - Companion receiver's 27 validator unit tests passed, and a mocked 
`gemini-4-carbon` (`high`) PASS receipt rendered by `post-pass-comment.sh 
--dry-run` passes `validate_review_pass_comment.py validate`.
    
    Companion receiver PR: https://github.com/apache/doris/pull/70881
    
    Rollout: merge 
[apache/doris#70881](https://github.com/apache/doris/pull/70881) before merging 
this sender update so newly posted local review receipts satisfy the 
`code-review` status check immediately.
---
 skills/doris-repo-review/SKILL.md                  |  2 +-
 .../references/pr-comment-format.md                |  2 +-
 .../references/qualified-runtime.md                | 38 ++++++++++++++++----
 .../scripts/review-runtime-policy.sh               | 18 ++++++++--
 verify/repo-review/post-comment.sh                 |  7 +++-
 verify/repo-review/runtime-attestation.sh          | 29 +++++++++++++++
 verify/repo-review/runtime-policy.sh               | 41 ++++++++++++++++++----
 7 files changed, 118 insertions(+), 19 deletions(-)

diff --git a/skills/doris-repo-review/SKILL.md 
b/skills/doris-repo-review/SKILL.md
index a33ff36..d6ce07f 100644
--- a/skills/doris-repo-review/SKILL.md
+++ b/skills/doris-repo-review/SKILL.md
@@ -1,6 +1,6 @@
 ---
 name: doris-repo-review
-description: Review an Apache Doris PR from a local clone with the same 
multi-agent, shared-ledger convergence workflow as the CI Code Review Runner. 
Use when the user supplies a PR to `/doris-repo-review`, asks to review a Doris 
PR locally, or asks for the CI-style review flow. Safely align only the current 
worktree to the exact PR head, refuse to disturb tracked local changes, write 
equivalent English and Chinese review documents with verified path-line 
anchors, and never build, test,  [...]
+description: Review an Apache Doris PR from a local clone with the same 
multi-agent, shared-ledger convergence workflow as the CI Code Review Runner. 
Use when the user supplies a PR to `/doris-repo-review`, asks to review a Doris 
PR locally, or asks for the CI-style review flow. Safely align only the current 
worktree to the exact PR head, refuse to disturb tracked local changes, write 
equivalent English and Chinese review documents with verified path-line 
anchors, and never build, test,  [...]
 ---
 
 # Local pipeline-style Doris code review
diff --git a/skills/doris-repo-review/references/pr-comment-format.md 
b/skills/doris-repo-review/references/pr-comment-format.md
index 2f710e0..f6c1354 100644
--- a/skills/doris-repo-review/references/pr-comment-format.md
+++ b/skills/doris-repo-review/references/pr-comment-format.md
@@ -62,7 +62,7 @@ receipt for the matching commit; it is not a human Apache 
approval.</sub>
 | `reviewed_at` | ISO-8601, minute precision, with offset | when the comment 
was rendered |
 | `reviewer` | GitHub login | `gh api user`, falling back to GraphQL `viewer` 
and `gh auth status` |
 | `model` | exact eligible model id | `review-runtime.json`, recorded before 
source review |
-| `effort` | model-supported qualified effort: `xhigh` or `max`, plus `ultra` 
for Codex | `review-runtime.json` |
+| `effort` | model-supported qualified effort: `xhigh` or `max`, plus `ultra` 
for Codex and `high` for `gemini-4-carbon` | `review-runtime.json` |
 | `findings` | inline map | `verify-review-docs.py`; `blocker` and `major` are 
always 0 in a PASS |
 | `rounds` | int | `verify-review-docs.py` (1-3) |
 | `converged` | bool | `verify-review-docs.py`; only `true` is posted |
diff --git a/skills/doris-repo-review/references/qualified-runtime.md 
b/skills/doris-repo-review/references/qualified-runtime.md
index c69bb92..8802052 100644
--- a/skills/doris-repo-review/references/qualified-runtime.md
+++ b/skills/doris-repo-review/references/qualified-runtime.md
@@ -4,19 +4,28 @@ Establish the reviewer runtime before reading source. A 
pipeline-equivalent revi
 
 | Host | Models | Effort |
 |---|---|---|
-| Codex | `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6-sol` | `xhigh`, `max`, or 
`ultra` |
+| Codex | `gpt-6-astra`, `gpt-6.2-astra`, `gpt-6.2-sol`, `gpt-6.1-sol`, 
`gpt-6-sol` | `xhigh`, `max`, or `ultra` |
 | Claude Code | `claude-fable-5-1`, `claude-fable-5-1[1m]`, `claude-opus-5-5`, 
`claude-opus-5-5[1m]`, `claude-fable-5`, or `claude-fable-5[1m]` | `xhigh` or 
`max` |
+| Antigravity | `gemini-4-carbon`, `gemini-4-neon` | `high` (`gemini-4-carbon` 
only) or `xhigh` (`gemini-4-neon` only) |
 
-Prefer `gpt-6-astra` on Codex and Fable 5.1 on Claude Code, with `xhigh` as 
the default
-qualified effort. Use another allowlisted model only when explicitly requested 
by the user or
-when the preferred model is unavailable.
+Prefer `gpt-6-astra` on Codex (default effort `xhigh`), Fable 5.1 on Claude 
Code (default effort
+`xhigh`), and `gemini-4-carbon` (`high`) on Antigravity. Use another 
allowlisted model only when
+explicitly requested by the user or when the preferred model is unavailable.
 
 `gpt-5.6-sol`, `claude-opus-5`, and `claude-opus-5[1m]` are no longer eligible.
 The same policy applies to the lead and every substantive coverage reviewer.
 
 `ultra` is accepted only when the Codex host explicitly exposes and actually 
uses that setting.
-The GPT-6.1 Sol and GPT-6 Sol APIs support effort only through `max`; do not 
relabel an API
-`max` run as `ultra`.
+The GPT-6.2, GPT-6.1 Sol, and GPT-6 Sol APIs support effort only through 
`max`; do not relabel an
+API `max` run as `ultra`.
+
+On Antigravity, CLI and `swarm` identifiers append the effort suffix 
(`gemini-4-carbon-high`,
+`gemini-4-neon-xhigh`), and the UI labels `xhigh` on Neon as `Extra`. Always 
split them into the
+canonical receipt fields (`--model gemini-4-carbon --effort high` or
+`--model gemini-4-neon --effort xhigh`): `gemini-4-carbon` publishes no 
`xhigh` tier, and
+`gemini-4-neon` at `high` or lower is ineligible. Never treat an 
`Orchestrator` session
+(`gemini-pro-orchestrator*`) as qualified, because Orchestrator hands 
execution steps to
+`gemini-4-hydrogen`.
 
 Validate the exact values with:
 
@@ -47,11 +56,26 @@ Pass the original request, current working directory, and 
absolute path to this
 lead to execute the whole skill. Wait for it and relay its result; do not read 
source or repeat the
 review in the parent. A full-history fork cannot apply model or effort 
overrides.
 
+## Antigravity delegation
+
+`invoke_subagent` exposes only coarse tiers (`inherit`, `flash`, `pro`) and 
cannot upgrade an
+unqualified parent to `gemini-4-carbon-high` or `gemini-4-neon-xhigh`. Retain 
the current task
+(and spawn coverage reviewers via `invoke_subagent` with `TypeName: "self"`, 
`Model: "inherit"`)
+only when the host explicitly confirms standalone `Gemini 4 Carbon (High)` or 
(when requested or
+when Carbon is unavailable) `Gemini 4 Neon (Extra)` / `gemini-4-neon-xhigh`.
+
+Otherwise, delegate the lead and substantive coverage reviewers with `swarm` 
(`action: "add"`)
+pinned to `model: "gemini-4-carbon-high"`, falling back to `model: 
"gemini-4-neon-xhigh"` if
+Carbon is unavailable, or to the user's explicitly requested allowlisted 
runtime. Record the
+actual delegated reviewer's canonical model and effort in 
`record-review-runtime.sh`.
+
 ## Coverage reviewers
 
 Use the same qualified model and effort for every substantive coverage 
reviewer. On Codex, use
 `fork_turns: "none"` with explicit overrides and include all required paths, 
SHAs, focus points,
-prompt text, and ledger destinations in each message.
+prompt text, and ledger destinations in each message. On Antigravity, either 
inherit from an
+explicitly confirmed standalone qualified parent (`TypeName: "self"`, `Model: 
"inherit"`) or pin
+each worker via `swarm` to the exact qualified model-effort variant.
 
 Runtime identity is an auditable local attestation, not a cryptographic proof. 
If the host cannot
 guarantee these settings, complete the local documents but do not post a 
pipeline-equivalent PASS.
diff --git a/skills/doris-repo-review/scripts/review-runtime-policy.sh 
b/skills/doris-repo-review/scripts/review-runtime-policy.sh
index c5aff9e..84a1a2e 100755
--- a/skills/doris-repo-review/scripts/review-runtime-policy.sh
+++ b/skills/doris-repo-review/scripts/review-runtime-policy.sh
@@ -3,7 +3,7 @@
 
 is_eligible_review_model() {
     case "$1" in
-        
claude-opus-5-5|claude-opus-5-5\[1m\]|claude-fable-5|claude-fable-5\[1m\]|claude-fable-5-1|claude-fable-5-1\[1m\]|gpt-6.1-sol|gpt-6-sol|gpt-6-astra)
 return 0 ;;
+        
claude-opus-5-5|claude-opus-5-5\[1m\]|claude-fable-5|claude-fable-5\[1m\]|claude-fable-5-1|claude-fable-5-1\[1m\]|gpt-6.2-sol|gpt-6.2-astra|gpt-6.1-sol|gpt-6-sol|gpt-6-astra|gemini-4-carbon|gemini-4-neon)
 return 0 ;;
         *) return 1 ;;
     esac
 }
@@ -18,12 +18,24 @@ is_eligible_review_effort() {
                 *) return 1 ;;
             esac
             ;;
-        gpt-6.1-sol|gpt-6-sol|gpt-6-astra)
+        gpt-6.2-sol|gpt-6.2-astra|gpt-6.1-sol|gpt-6-sol|gpt-6-astra)
             case "$effort" in
                 xhigh|max|ultra) return 0 ;;
                 *) return 1 ;;
             esac
             ;;
+        gemini-4-carbon)
+            case "$effort" in
+                high) return 0 ;;
+                *) return 1 ;;
+            esac
+            ;;
+        gemini-4-neon)
+            case "$effort" in
+                xhigh) return 0 ;;
+                *) return 1 ;;
+            esac
+            ;;
         *) return 1 ;;
     esac
 }
@@ -37,7 +49,7 @@ check_review_runtime() {
     }
     is_eligible_review_effort "$model" "$effort" || {
         echo "ERROR: effort '$effort' is not eligible for model '$model'." >&2
-        echo "       Claude Code supports xhigh or max; Codex also supports 
ultra." >&2
+        echo "       Claude Code supports xhigh or max; Codex supports xhigh, 
max, or ultra; Antigravity supports high for gemini-4-carbon and xhigh for 
gemini-4-neon." >&2
         return 1
     }
 }
diff --git a/verify/repo-review/post-comment.sh 
b/verify/repo-review/post-comment.sh
index eda6a9d..793133f 100755
--- a/verify/repo-review/post-comment.sh
+++ b/verify/repo-review/post-comment.sh
@@ -131,11 +131,16 @@ grep -Fq "findings: {blocker: 0, major: 0, minor: 1, nit: 
0}" "$CTX/pr-comment.m
 [ -z "${RECEIPT_OUTPUT:-}" ] || cp "$CTX/pr-comment.md" "$RECEIPT_OUTPUT"
 pass "verified dry run renders a pipeline-compatible receipt"
 
-for model in gpt-6.1-sol gpt-6-sol claude-opus-5-5 'claude-opus-5-5[1m]'; do
+for model in gpt-6.2-astra gpt-6.2-sol gpt-6.1-sol gpt-6-sol claude-opus-5-5 
'claude-opus-5-5[1m]' gemini-4-neon; do
     "$S/record-review-runtime.sh" --ctx "$CTX" --model "$model" --effort xhigh 
>/dev/null
     "$S/post-pass-comment.sh" --ctx "$CTX" --dry-run > "$TMP_ROOT/dry-run"
     grep -Fxq "model: $model" "$CTX/pr-comment.md" || fail "new model receipt 
is wrong: $model"
+    grep -Fxq "effort: xhigh" "$CTX/pr-comment.md" || fail "new model effort 
receipt is wrong: $model"
 done
+"$S/record-review-runtime.sh" --ctx "$CTX" --model gemini-4-carbon --effort 
high >/dev/null
+"$S/post-pass-comment.sh" --ctx "$CTX" --dry-run > "$TMP_ROOT/dry-run"
+grep -Fxq "model: gemini-4-carbon" "$CTX/pr-comment.md" || fail 
"gemini-4-carbon receipt model is wrong"
+grep -Fxq "effort: high" "$CTX/pr-comment.md" || fail "gemini-4-carbon receipt 
effort is wrong"
 pass "new models render their exact identity in PASS receipts"
 
 # A runtime recorded before the policy change must not bypass the current 
allowlist.
diff --git a/verify/repo-review/runtime-attestation.sh 
b/verify/repo-review/runtime-attestation.sh
index 5ae0af6..cb00dda 100755
--- a/verify/repo-review/runtime-attestation.sh
+++ b/verify/repo-review/runtime-attestation.sh
@@ -48,6 +48,35 @@ jq -e --arg head "$HEAD_SHA" \
     "$CTX/review-runtime.json" >/dev/null || fail "supported Claude runtime 
was not recorded"
 pass "supported Claude effort is recorded"
 
+"$RECORDER" --ctx "$CTX" --model gpt-6.2-astra --effort xhigh >/dev/null
+jq -e --arg head "$HEAD_SHA" \
+    '.model == "gpt-6.2-astra" and .effort == "xhigh" and .commit == $head' \
+    "$CTX/review-runtime.json" >/dev/null || fail "supported GPT-6.2 Astra 
runtime was not recorded"
+"$RECORDER" --ctx "$CTX" --model gpt-6.2-sol --effort ultra >/dev/null
+jq -e --arg head "$HEAD_SHA" \
+    '.model == "gpt-6.2-sol" and .effort == "ultra" and .commit == $head' \
+    "$CTX/review-runtime.json" >/dev/null || fail "supported GPT-6.2 Sol 
runtime was not recorded"
+pass "supported GPT-6.2 runtimes are recorded"
+
+"$RECORDER" --ctx "$CTX" --model gemini-4-carbon --effort high >/dev/null
+jq -e --arg head "$HEAD_SHA" \
+    '.model == "gemini-4-carbon" and .effort == "high" and .commit == $head' \
+    "$CTX/review-runtime.json" >/dev/null || fail "supported Gemini 4 Carbon 
runtime was not recorded"
+expect_failure "Gemini 4 Carbon xhigh effort is rejected" "not eligible for 
model 'gemini-4-carbon'" \
+    "$RECORDER" --ctx "$CTX" --model gemini-4-carbon --effort xhigh
+[ ! -e "$CTX/review-runtime.json" ] || fail "failed Gemini Carbon replacement 
left an old runtime record"
+
+"$RECORDER" --ctx "$CTX" --model gemini-4-neon --effort xhigh >/dev/null
+jq -e --arg head "$HEAD_SHA" \
+    '.model == "gemini-4-neon" and .effort == "xhigh" and .commit == $head' \
+    "$CTX/review-runtime.json" >/dev/null || fail "supported Gemini 4 Neon 
runtime was not recorded"
+expect_failure "Gemini 4 Neon high effort is rejected" "not eligible for model 
'gemini-4-neon'" \
+    "$RECORDER" --ctx "$CTX" --model gemini-4-neon --effort high
+[ ! -e "$CTX/review-runtime.json" ] || fail "failed Gemini Neon replacement 
left an old runtime record"
+expect_failure "unsplit Antigravity CLI model ID is rejected" "is not 
eligible" \
+    "$RECORDER" --ctx "$CTX" --model gemini-4-neon-xhigh --effort xhigh
+pass "supported Gemini 4 runtimes and per-model effort gates are enforced"
+
 expect_failure "unlisted model is rejected" "is not eligible" \
     "$RECORDER" --ctx "$CTX" --model gpt-5.6-terra --effort xhigh
 
diff --git a/verify/repo-review/runtime-policy.sh 
b/verify/repo-review/runtime-policy.sh
index 8e8599c..8b7c65b 100755
--- a/verify/repo-review/runtime-policy.sh
+++ b/verify/repo-review/runtime-policy.sh
@@ -18,12 +18,12 @@ fail() {
 # shellcheck source=/dev/null
 . "$POLICY"
 
-for model in claude-opus-5-5 'claude-opus-5-5[1m]' claude-fable-5 
'claude-fable-5[1m]' claude-fable-5-1 'claude-fable-5-1[1m]' gpt-6.1-sol 
gpt-6-sol gpt-6-astra; do
+for model in claude-opus-5-5 'claude-opus-5-5[1m]' claude-fable-5 
'claude-fable-5[1m]' claude-fable-5-1 'claude-fable-5-1[1m]' gpt-6.2-sol 
gpt-6.2-astra gpt-6.1-sol gpt-6-sol gpt-6-astra gemini-4-carbon gemini-4-neon; 
do
     is_eligible_review_model "$model" || fail "eligible model rejected: $model"
 done
 pass "exact model allowlist is accepted"
 
-for model in claude-opus-4-8 'claude-opus-4-8[1m]' claude-opus-5.1 
claude-fable-4 gpt-5.6 gpt-5.6-terra gpt-5.6-luna gpt-5.7-sol gpt-6.1 
gpt-6.1-sol-preview gpt-6.1-sol[1m] gpt-6 unknown; do
+for model in claude-opus-4-8 'claude-opus-4-8[1m]' claude-opus-5.1 
claude-fable-4 gpt-5.6 gpt-5.6-terra gpt-5.6-luna gpt-5.7-sol gpt-6.1 
gpt-6.1-sol-preview 'gpt-6.1-sol[1m]' gpt-6.2 gpt-6.2-astra-preview 
'gpt-6.2-sol[1m]' gpt-6 gemini-4 gemini-4-carbon-high gemini-4-neon-xhigh 
gemini-4-argon gemini-4-hydrogen gemini-pro-orchestrator 
gemini-pro-orchestrator-neon unknown; do
     if is_eligible_review_model "$model"; then
         fail "unlisted model accepted: $model"
     fi
@@ -60,7 +60,7 @@ for model in claude-opus-5-5 'claude-opus-5-5[1m]' 
claude-fable-5 'claude-fable-
 done
 pass "Claude models reject unsupported ultra effort"
 
-for model in gpt-6.1-sol gpt-6-sol gpt-6-astra; do
+for model in gpt-6.2-sol gpt-6.2-astra gpt-6.1-sol gpt-6-sol gpt-6-astra; do
     for effort in xhigh max ultra; do
         is_eligible_review_effort "$model" "$effort" \
             || fail "eligible Codex runtime rejected: $model ($effort)"
@@ -68,18 +68,47 @@ for model in gpt-6.1-sol gpt-6-sol gpt-6-astra; do
 done
 pass "Codex accepts xhigh, max, and ultra"
 
-for model in claude-opus-5-5 'claude-opus-5-5[1m]' claude-fable-5 
'claude-fable-5[1m]' claude-fable-5-1 'claude-fable-5-1[1m]' gpt-6.1-sol 
gpt-6-sol gpt-6-astra; do
+is_eligible_review_effort gemini-4-carbon high \
+    || fail "eligible Gemini Carbon runtime rejected: gemini-4-carbon (high)"
+is_eligible_review_effort gemini-4-neon xhigh \
+    || fail "eligible Gemini Neon runtime rejected: gemini-4-neon (xhigh)"
+for effort in none minimal low medium xhigh max ultra unknown ''; do
+    if is_eligible_review_effort gemini-4-carbon "$effort"; then
+        fail "ineligible Gemini Carbon runtime accepted: gemini-4-carbon 
($effort)"
+    fi
+done
+for effort in max ultra; do
+    if is_eligible_review_effort gemini-4-neon "$effort"; then
+        fail "unsupported Gemini Neon effort accepted: gemini-4-neon ($effort)"
+    fi
+done
+pass "Antigravity Gemini 4 models enforce exact per-model efforts"
+
+for model in claude-opus-5-5 'claude-opus-5-5[1m]' claude-fable-5 
'claude-fable-5[1m]' claude-fable-5-1 'claude-fable-5-1[1m]' gpt-6.2-sol 
gpt-6.2-astra gpt-6.1-sol gpt-6-sol gpt-6-astra gemini-4-neon; do
     for effort in none minimal low medium high unknown ''; do
         if is_eligible_review_effort "$model" "$effort"; then
             fail "ineligible runtime accepted: $model ($effort)"
         fi
     done
 done
-pass "lower and unknown efforts are rejected for every host"
+pass "lower and unknown efforts are rejected for xhigh-minimum models"
 
+"$POLICY" check gpt-6.2-astra xhigh >/dev/null
+"$POLICY" check gpt-6.2-sol ultra >/dev/null
 "$POLICY" check gpt-6.1-sol xhigh >/dev/null
+"$POLICY" check gemini-4-carbon high >/dev/null
+"$POLICY" check gemini-4-neon xhigh >/dev/null
 if "$POLICY" check gpt-6.1-sol high >/dev/null 2>&1; then
-    fail "policy CLI accepted high effort"
+    fail "policy CLI accepted high effort for gpt-6.1-sol"
+fi
+if "$POLICY" check gpt-6.2-sol high >/dev/null 2>&1; then
+    fail "policy CLI accepted high effort for gpt-6.2-sol"
+fi
+if "$POLICY" check gemini-4-neon high >/dev/null 2>&1; then
+    fail "policy CLI accepted high effort for gemini-4-neon"
+fi
+if "$POLICY" check gemini-4-carbon xhigh >/dev/null 2>&1; then
+    fail "policy CLI accepted unsupported xhigh effort for gemini-4-carbon"
 fi
 if "$POLICY" check claude-opus-5-5 ultra >/dev/null 2>&1; then
     fail "policy CLI accepted unsupported Claude ultra effort"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to