diff --git a/.agents/skills/review-pr/SKILL.md b/.agents/skills/review-pr/SKILL.md index 9b3eb2d7e..7a37c8407 100644 --- a/.agents/skills/review-pr/SKILL.md +++ b/.agents/skills/review-pr/SKILL.md @@ -39,6 +39,21 @@ Use the [review rules](../../../docs/agent-collaboration.md#pr-review-and-merge) evidence and optional follow-ups. Link or propose out-of-scope suggestions as follow-up work. Record what was checked and what remains unverified. +### Campaign claims + +For a campaign claim, follow the governing acceptance Issue and the +[canonical evidence rules](../../../docs/contributing.md#evidence-and-claims). +Match the frozen gates, source revisions, workload and device scope to the +plan and validator. Trace the claim to the trial index and measured outputs. +Check that failed and interrupted attempts are retained and that quality +evidence comes from the measured workload or its frozen quality protocol. + +Use `python tools/validate_evidence.py` to check committed bundle structure and +available hashes. For a service claim, inspect the required end-to-end results +and the frozen quality checks. Apply the campaign's `INCONCLUSIVE` rule for +required evidence gaps and issue the PR review verdict against the PR's own +accepted scope. + ## Give one clear conclusion - **PASS** means the reviewed change satisfies the applicable requirements and @@ -50,6 +65,8 @@ Use the [review rules](../../../docs/agent-collaboration.md#pr-review-and-merge) Give the verdict in the conversation by default. Start that summary with **PR review verdict — PASS** or **PR review verdict — DO NOT PASS**, followed by the reviewed base and head and the supporting evidence. +When a score is requested, add the [advisory score](references/review-score.md) +after the review findings. ### Formal GitHub review diff --git a/.agents/skills/review-pr/references/review-score.md b/.agents/skills/review-pr/references/review-score.md new file mode 100644 index 000000000..041b49fff --- /dev/null +++ b/.agents/skills/review-pr/references/review-score.md @@ -0,0 +1,67 @@ +# Advisory PR Review Score + +Use this score on request after assessing the reviewed revision. Base each +rating on the pinned diff and evidence. Apply the existing PR review verdict +and campaign verdict rules independently of the score. + +| Dimension | Weight | What to assess | +| --- | ---: | --- | +| Scope and intent | 15 | Governing Issue, accepted scope, hypothesis or requested behavior, and the fit between the diff and the delivery slice. | +| Correctness and safety | 25 | Architecture ownership, public contracts, failure handling, cleanup, and the correctness of any changed evaluator or validator. | +| Validation | 20 | Focused tests, relevant CI, and replay or verification of the affected artifacts. | +| Claim evidence | 30 | Frozen gates, source and environment pins, trial index, measured outputs, and a verdict supported by the bundle. Use the [evidence rules](../../../../docs/contributing.md#evidence-and-claims). | +| Simplicity | 10 | Focused changes, reuse of the owning API and validator, and avoidable duplication or state. | + +## Hard scoring requirements + +- **Claim evidence is 0/3** if any [required model artifact](#required-model-artifacts) + is missing or inaccessible. Apply the zero even when the run has hashes, + summary metrics, or a recorded campaign verdict. +- **Simplicity is 0/3** if the diff adds or rewrites any explanatory code + comment in maintained source, tests, scripts, or config. License headers, + shebangs, tool directives, and required docstrings are exempt. Treat + byte-preserved historical evidence as data. Express behavior through code, + tests, or relevant docs. + +## Required model artifacts + +For each claimed model result, provide the actual outputs and applicable raw +benchmark records from the pinned run. Provide both sets of outputs for a +comparison and apply each relevant requirement for multimodal results. + +- **Text output** requires the returned text or response payload. +- **TTS** requires generated audio and the exact synthesis text. +- **Multimodal Omni** requires the returned text, generated audio, and the + actual files for each additional claimed output modality. +- **Image generation or editing** requires decodable image files. +- **Video generation** requires playable video files and, for audio-video + results, the generated audio track. +- **Music or sound generation** requires the generated audio files. + +Use attachments or stable links the reviewer can open. Match each file to +its revision, input, and frozen quality protocol. Hashes and metrics supplement +the actual files. The [campaign evidence rules](../../../../docs/contributing.md#evidence-and-claims) +govern the campaign verdict. + +## Rating and delivery + +Apply the hard scoring requirements first. For each remaining applicable +dimension, choose the highest rating supported by the evidence. + +- **3** — the applicable checks are supported by matching evidence. +- **2** — the main checks are supported, with a bounded gap. +- **1** — some checks are supported, with a material gap or inconsistency. +- **0** — the dimension lacks usable evidence or a material contract violation + is confirmed. + +Use `N/A` when a dimension is outside the change's scope. For example, claim +evidence can be `N/A` for a scaffold-only change without a campaign claim. +Count each gap in its primary dimension. Identify the source of each rating, +including the difference between recorded experiment results and checks you ran. + +The formula is `100 * sum(weight * rating) / (3 * sum(applicable weights))`. +Round to the nearest integer, with halves up. Withhold the total +if the snapshot is stale or a material portion of the diff could not be +reviewed. Report the base and head, total, dimension ratings with evidence, +and the highest-priority remaining action. Use the existing conversation and +formal review rules for delivery.