Loading...
Loading...
Compare original and translation side by side
| Mode | The request looks like | Budget and output |
|---|---|---|
| judging a change that already exists as commits: a branch, an open change request, "review since | every gated axis → verify each finding → severity-ordered, for a reader who did not write the code |
| work not yet committed: "check this before I commit", a dirty or staged tree | every gated axis, most reshapable first → re-verify after each code move → blocking-first actions |
| another task surfaced one review risk and nobody asked for a review | 1 rule → no status → findings plus the axes left uninspected |
focused| 模式 | 需求特征 | 预算与输出 |
|---|---|---|
| 评审已提交为commit的变更:分支、已开启的变更请求、“评审自 | 检查所有 gated 维度 → 验证每个问题 → 按严重程度排序,面向未编写代码的阅读者 |
| 未提交的工作内容:“提交前帮我检查”、未提交或已暂存的代码 | 检查所有 gated 维度,优先处理可重构内容 → 每次代码调整后重新验证 → 优先列出阻塞性操作 |
| 其他任务暴露了一个评审风险,但无人要求完整评审 | 仅检查1条规则 → 不输出整体状态 → 报告问题及未检查的维度 |
focused<point>...<tip>pre-commitrules/execution-and-pipeline.md<point>...<tip>pre-commitrules/execution-and-pipeline.mdfocused| If you see... | Read |
|---|---|
| the request is "before I commit" / "check this first"; nothing pushed, tree dirty or staged | |
| authentication, a permission or role check, user input reaching a query, path, command or template, a file upload, an ownership check, a secret-shaped literal, or a new outbound call | |
| any hunk changing a condition, a bound, an assignment, or an error path; lines deleted or replaced | |
| the range is pushed or open as a change request, the repository declares a workflow, build, or deploy, or the request named execution, a run, or a pipeline | |
| the diff adds a capability nobody asked for in the request, issue, or spec | |
| one diff both restructures and adds behaviour; unrelated files, or ~1000 changed lines in one change | |
| new code deviating from a written convention, in this repository or one the organisation documents elsewhere | |
| a quoted requirement with no matching code, code no requirement mentions, or a changed behaviour whose only proof is that a test did not throw | |
| a changed exported signature, route, schema, event payload, config key, or a removed field | |
| a README, doc page, example, comment, or repository-local instruction file still describing behaviour this diff changed | |
| callers of that changed contract living outside this package who must act, or feature-specific logic landing in a shared module | |
| a security, network, data-handling, or cost question this repository never answers; a surface another team documents or consumes elsewhere | |
file:linefocused| 若你发现... | 阅读对应规则 |
|---|---|
| 需求为“提交前帮我检查”/“先检查这个”;代码未推送、工作区未提交或已暂存 | |
| 身份验证、权限或角色检查、用户输入传入查询/路径/命令/模板、文件上传、所有权检查、类似密钥的字面量、或新的外部调用 | |
| 任何代码块修改了条件、边界、赋值或错误路径;存在代码删除或替换 | |
| 变更范围已推送或作为变更请求开启,仓库声明了工作流、构建或部署流程,或需求提到了执行、运行或流水线 | |
| diff添加了需求、工单或规格中未提及的功能 | |
| 单次diff同时重构代码并添加新行为;涉及无关文件,或单次变更修改了约1000行代码 | |
| 新代码偏离了书面约定(本仓库或组织其他文档中记录的约定) | |
| 引用的需求无对应代码实现,代码实现无对应需求描述,或变更行为仅通过测试未报错来证明 | |
| 已导出的签名、路由、 schema、事件 payload、配置项被修改,或字段被移除 | |
| README、文档页面、示例、注释或仓库本地说明文件仍描述着已被diff修改的行为 | |
| 被修改契约的调用方位于当前包外且必须做出调整,或特定功能逻辑被加入共享模块 | |
| 本仓库未明确的安全、网络、数据处理或成本问题;涉及其他团队维护或使用的接口 | |
file:lineconfirmed-with-code-pathplausible-mechanismnot-reproducedinsufficient-detailplausible-mechanismnot-reproducedinsufficient-detailconfirmed-with-code-pathplausible-mechanismnot-reproducedinsufficient-detailplausible-mechanismnot-reproducedinsufficient-detailfile:lineanyfile:lineanyrules/contracts-and-consumers.mdrules/external-sources.mdfile:linerules/contracts-and-consumers.mdrules/external-sources.mdfile:linePASSISSUES_FOUNDINCOMPLETEPASSISSUES_FOUNDfocusedPASSISSUES_FOUNDINCOMPLETEPASSISSUES_FOUNDfocusedreview Scope: base…tip, file count, commit summary
Axes: reviewed | not-applicable + the absent signal | evidence-unavailable
Findings: severity · file:line · impact path · fix
Gaps: each stating the next observation that would close it
Teams to notify: who and why, identified, not notified
Sound: what was checked and found sound
pre-commit Actions: blocking first, each with file:line
Draft description: claim · source of the requirement · alternative rejected · what is out of scope
focused Risk inspected, findings, and the axes left out: no verdict
review Scope: base…tip, file count, commit summary
Axes: reviewed | not-applicable + the absent signal | evidence-unavailable
Findings: severity · file:line · impact path · fix
Gaps: each stating the next observation that would close it
Teams to notify: who and why, identified, not notified
Sound: what was checked and found sound
pre-commit Actions: blocking first, each with file:line
Draft description: claim · source of the requirement · alternative rejected · what is out of scope
focused Risk inspected, findings, and the axes left out: no verdict
hard-gatehard-gate