feat: 可配置报告语言(默认 zh-CN) #3

Merged
layue13 merged 3 commits from cursor/report-language-zh-165a into main 2026-10-27 09:00:42 +00:00
Owner

Add language in providers.yaml + Action input. Defaults zh-CN for this repo. Prompts + published comments honor it. Prefer cohere/nvidia in first-3; soften 429 fail-closed messaging.

Add `language` in providers.yaml + Action input. Defaults zh-CN for this repo. Prompts + published comments honor it. Prefer cohere/nvidia in first-3; soften 429 fail-closed messaging.
layue13 added 1 commit 2026-10-27 08:29:56 +00:00
feat: configurable report language (default zh-CN)
Gatekeep evals / eval-floor (push) Successful in 2s
Gatekeep evals / eval-floor (pull_request) Successful in 2s
gatekeep / security PR 风险 medium — 无未关闭安全阻断
Gatekeep / gatekeep (pull_request) Successful in 10m1s
ef13f8806a
Add providers.yaml `language` / Action input `language`; prompts and
published summary/inline honor it. Soften fail-closed messaging when
models 429; prefer cohere/nvidia in the first-3 parallel set for dogfood.
layue13 added 1 commit 2026-10-27 08:35:53 +00:00
fix: harden partial 429 success, fallbacks, zh errors
Gatekeep evals / eval-floor (push) Successful in 3s
Gatekeep evals / eval-floor (pull_request) Successful in 15s
Gatekeep / gatekeep (pull_request) Failing after 1m46s
c6c2d071fb
Retry HTTP 429 with backoff; keep models beyond first 3 as
fallbacks; degrade agreement when some models fail; force-high
risk only if zero usable responses. Clearer zh-CN errors/docs for
dogfood uses: ./ rebase + workflow_dispatch re-run.

Gatekeep 审查

多模型并行审查结果如下。先看严重级别,Critical → Low 几秒扫完。

降级说明: 4 个模型调用失败(常见免费档限流 429;已重试/尝试备用模型)。全部失败 → 风险档失败关闭为 high,不等于代码一定有问题。

PR 风险档 high
策略底线 high
一致门槛 一致门槛 ≥2 个模型
一致 / 分歧 0 / 0
Critical / High(一致) 0 / 0

需要 2 名人工批准。Bot 不能顶替。

模型(并行)

模型 其 PR 档 结论数
model-1-openrouter_cohere_north-mini-code_free.json high 0 (err: http)
openrouter:nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free high 0 (err: Expecting property name enclosed in double quotes: line 1 column 2 (char 1))
model-3-openrouter_google_gemma-4-31b-it_free.json high 0 (err: http)
model-fb1-fb_openrouter_google_gemma-4-26b-a4b-it_free.json high 0 (err: SyntaxError: Unexpected number in JSON at position 89 (line 1 column 90))

一致结论

按严重级别排序。每条都写清 严重级别、位置、为什么重要。
修复,或回复 dismissed: <原因> 后 resolve 讨论串。Gatekeep 没有聊天 / @ 命令入口。

模型之间没有达成一致的结论 — 可能很好,也可能该看分歧。

分歧(仅摘要,不上 inline)

只有部分模型看到。有参考价值,本身不挡合并。

没有值得单独列出的分歧。

确定性安全扫描

  • CI workflow tampering surface: .github/workflows/gatekeep-pr.yml

策略底线信号

  • high-path .github/workflows/gatekeep-pr.yml ~ .github/workflows/**
  • file count 12 > low cap
  • diff lines 674 > low cap

仍需人工

  • 品味、架构、计费/CI/鉴权、读证据

漏了真问题?开 gatekeep-incident issue — 这样才能变成 eval。
仅在模型一致时发 inline。PR 档失败关闭。结论以严重级别 + 位置 + 原因为先。

<!-- gatekeep-review --> ## Gatekeep 审查 多模型并行审查结果如下。**先看严重级别**,Critical → Low 几秒扫完。 > **降级说明:** 4 个模型调用失败(常见免费档限流 429;已重试/尝试备用模型)。全部失败 → 风险档**失败关闭为 high**,**不等于**代码一定有问题。 | | | | --- | --- | | **PR 风险档** | `high` | | 策略底线 | `high` | | 一致门槛 | 一致门槛 ≥2 个模型 | | 一致 / 分歧 | 0 / 0 | | Critical / High(一致) | 0 / 0 | 需要 **2 名人工**批准。Bot 不能顶替。 ### 模型(并行) | 模型 | 其 PR 档 | 结论数 | | --- | --- | --- | | `model-1-openrouter_cohere_north-mini-code_free.json` | `high` | 0 (err: http) | | `openrouter:nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free` | `high` | 0 (err: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)) | | `model-3-openrouter_google_gemma-4-31b-it_free.json` | `high` | 0 (err: http) | | `model-fb1-fb_openrouter_google_gemma-4-26b-a4b-it_free.json` | `high` | 0 (err: SyntaxError: Unexpected number in JSON at position 89 (line 1 column 90)) | ### 一致结论 按严重级别排序。每条都写清 **严重级别**、**位置**、**为什么重要**。 修复,或回复 `dismissed: <原因>` 后 resolve 讨论串。Gatekeep **没有**聊天 / @ 命令入口。 _模型之间没有达成一致的结论 — 可能很好,也可能该看分歧。_ ### 分歧(仅摘要,不上 inline) 只有部分模型看到。有参考价值,本身不挡合并。 _没有值得单独列出的分歧。_ ### 确定性安全扫描 - CI workflow tampering surface: .github/workflows/gatekeep-pr.yml ### 策略底线信号 - high-path .github/workflows/gatekeep-pr.yml ~ .github/workflows/** - file count 12 > low cap - diff lines 674 > low cap ### 仍需人工 - 品味、架构、计费/CI/鉴权、读证据 --- 漏了真问题?开 **gatekeep-incident** issue — 这样才能变成 eval。 _仅在模型一致时发 inline。PR 档失败关闭。结论以严重级别 + 位置 + 原因为先。_
layue13 added 1 commit 2026-10-27 08:47:13 +00:00
fix: soft-fail model discovery timeouts with retries
Gatekeep evals / eval-floor (push) Successful in 18s
Gatekeep evals / eval-floor (pull_request) Successful in 4s
gatekeep / security 存在未关闭的安全 / Critical 结论 — 合并阻断
Gatekeep / gatekeep (pull_request) Failing after 11m10s
f3b62481b0
OpenRouter /models list timed out and aborted the whole review.
Retry discovery, and if it still fails skip name validation so
parallel review can proceed.
layue13 merged commit 8993ebf841 into main 2026-10-27 09:00:42 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: layue13/gatekeep#3