ADR-0025: agent-platform 申报入图 + bootstrap 豁免登记 + Python 语言准入 - #78
Conversation
|
Warning Review limit reached
Next review available in: 30 minutes Limit details: You’ve used all 3 included reviews currently available. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Comment |
PR Summary by Qodo登记 agent-platform 并准入受限 Python 运行时集成
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. PY-1 未检查格式
|
| - {id: TS-2, lang: typescript, rule: "禁 any(eslint)", enforcement: gate} | ||
| - {id: TS-3, lang: typescript, rule: "跨模块仅 import 入口 index.ts(depcruise)", enforcement: gate} | ||
| - {id: BAML-1, lang: baml, rule: "prompt 变更必须过 golden test", enforcement: gate} | ||
| - {id: PY-1, lang: python, rule: "ruff check 通过(lint+format 零 diff)", enforcement: gate} |
There was a problem hiding this comment.
1. Py-1 未检查格式 🐞 Bug ≡ Correctness
PY-1 将 ruff check 描述为同时保证 lint 和 format 零差异,但该命令只运行 Ruff linter,未格式化的 Python 代码仍可满足这条规则。格式门禁必须另外执行 ruff format --check。
Agent Prompt
## Issue description
PY-1 声称执行 lint 和 format 门禁,但只指定了 lint-only 的 `ruff check`。
## Issue Context
Ruff 的格式检查使用独立命令 `ruff format --check`;应让政策明确要求两条命令,避免下游 CI 仅实现 lint。
## Fix Focus Areas
- governance/policy/languages.yaml[41-41]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
#370) §15:ref→main 改版(ADR-0083)后钉点仍走 tag 解引用——refs/tags/main 恒 404,每日 drift 误报"解引用/校验失败";且 ref_commit 字段已删,jq 裸取 得字符串 "null"。改为 sha/branch/tag 三形态:分支先解 heads(移动指针无 commit 绑定可比,只验可达性),tag 保留 ref_commit 移动检测;并补"审判源 文件存在性后验"(expected-state.workflows[] 每个文件在钉点 ref 上真实存 在——文件被删=required workflow 静默失效,即时检出不等 §12 采样兜底)。 §12:adversary 08-24 才上线,旧分类器只对 org-gate 做生效时刻区分—— 生效前完结 CI 的 PR head 缺 adversary 被误报 (b) 裸奔。泛化为 CHECK_EFFECTIVE 锚点表(org-gate/adversary 各带时戳),锚点后无 PR 活动=(a)待接入; (b) 检出灵敏度不变(test-ir0002 5/5)。 连带消一项真漂移:agent-registry PR#88 auto-merge 54h 卡死(退役归档仓 死信,ADR-0085)——已解档关闭 #88/#78 后复档。 Co-authored-by: randypanding <randypanding@users.noreply.github.com>
变更
依据:agent-registry PR #37(ADR-0025)