--- name: opendirector-review description: Review one OpenDirector pull request tip, verify evidence, and report PASS, WITHHOLD, or REQUEST CHANGES. Use to review or score an OpenDirector PR or to score a committed candidate before submission. --- # OpenDirector review Review one pull request tip and post a short verdict in the room or chat. The verdict is the review record. This repository has no signed-verdict bot, attestation file, or extra status check; do not invent one. Verify claims in the PR body, commit messages, and chat against the diff, remote check runs, and attached or linked evidence. ## Authority This skill does not authorize merge, force-push, or bypassing a red required check. A PASS means a Reviewer found the tip acceptable and required CI is green on that SHA. Ping the Coordinator to merge. Do not merge, enable auto-merge, dismiss failing checks, or push. Creating or editing this skill does not review an open pull request. Implementing a fix, closing an issue, or updating a PR requires a separate request. Do not close unrelated issues. Do not add `Fixes` unless the tip actually addresses that issue. ## Re-read guidance from the default branch Fetch `origin/main` and read these files from that tree before reviewing. A copy already in the conversation, the tip branch, or a stale checkout is not a substitute. - This skill: `.agents/skills/opendirector-review/SKILL.md` - [AGENTS.md](../../../AGENTS.md) - [CONTRIBUTING.md](../../../CONTRIBUTING.md) when the diff touches labels, submission requirements, or review process - [docs/development/lessons.md](../../../docs/development/lessons.md) for every lesson the diff can trigger When the diff touches checks or user-visible language, use the linked docs instead of restating them: [validation](../../../docs/development/validation.md), [CI failure patterns](../../../docs/development/ci-failures.md), [bilingual interface](../../../docs/development/i18n.md), and the architecture pages indexed from [docs/README.md](../../../docs/README.md). Review the tip against the fetched default branch. If the tip is itself the rule change, say so and review that change. ## Score an unpublished candidate For author-delegated pre-review, read the review guidance at the pinned target base. Review the committed diff between the supplied base and head, the draft PR body, any linked Issue, and the test and artifact evidence. Apply the issue-fit, architecture, test, and evidence criteria below. List applicable PR-triggered checks that have yet to run. Keep this review read-only. Return findings and the [advisory score](#advisory-score) to the author for the supplied SHAs. Withhold the total on a stale or materially incomplete snapshot. Use the live PR workflow and its verdicts below for formal PR review. ## Establish the tip Record these from the remote before reading the narrative: - Full tip SHA (PR head) and full base SHA (`origin/main` at review time) - PR number and URL - Linked issues, classified as `Fixes` or `Refs`. A bare mention, "related to", or `Fixes` on work that does not close the issue is a Refs-vs-Fixes finding. Missing auto-close intent is not a silent `Fixes`. - Author association: internal (`OWNER`, `MEMBER`) or external / first-time (`COLLABORATOR`, `CONTRIBUTOR`, `FIRST_TIME_CONTRIBUTOR`, `FIRST_TIMER`, `NONE`, and any cross-repository head) ```bash git fetch origin main gh pr view --repo ThinkFlowLab/OpenDirector --json \ number,url,title,body,author,authorAssociation,headRefOid,baseRefOid,\ baseRefName,isCrossRepository,maintainerCanModify,mergeable,mergeStateStatus ``` Check out or show that tip SHA. If local `HEAD` is not the tip, review the fetched SHA, not the worktree. Read `headRefOid` again before posting. If the tip moved, stop and use WITHHOLD. Do not finish against the old SHA. ## Inventory the diff List paths against the merge base and read that diff: ```bash git diff --name-status origin/main... git diff --stat origin/main... ``` Use three dots so the inventory is the pull request, not the unrelated history of main. Every changed path is in scope, including files the author says are untouched. ## Issue fit Read each linked issue, including its acceptance criteria and scope. PASS requires the tip to satisfy that scoped acceptance. Extra product behavior outside the issue is a finding. A docs or process change the user scoped with no issue is not automatically a defect; say that no issue is linked. ## Architecture and contracts When the diff touches creative capabilities, persistence, generation, adoption, adapters, or user-visible text, check the matching principle in AGENTS.md. Name the break and the section. Do not paste the principle. - Capability equivalence: a business operation in scope exists for the UI and for the agent, under the same rules. - The project is the source of truth: no second editable project in the browser, and no canvas-only business fact. - Generation intent, execution facts, and current adoption stay separate. - User-visible copy ships `zh-CN` and `en-US` together. - Domain and application services own the rule; HTTP, UI, and tool adapters translate and present it. Also apply lessons whose trigger matches the diff, and the CONTRIBUTING checklist items the diff can violate (one concern, a failing-before test for a behavior change, docs updated with the contract, no invented provider evidence, no credentials in the diff). ## CI honesty Required CI is the **Release checks** workflow (`.github/workflows/ci.yml`, reusable job in `.github/workflows/release-checks.yml`) plus any other required status on the repository. Attribute a run only when its head SHA is this tip. ```bash gh pr checks --repo ThinkFlowLab/OpenDirector ``` Confirm the check run's SHA in the Actions URL or check-run payload. A green run on an older head is not evidence for this tip. - Green required checks on this SHA, and a clean merge against current main: eligible for PASS when the rest of the review is clean. - Pending, queued, in progress, expected but missing, or otherwise unsettled: WITHHOLD. Unsettled Release checks are not PASS. - A failed required check is not PASS. REQUEST CHANGES when the log shows a defect in the tip. WITHHOLD when you cannot yet separate a flake from a regression; use the CI failure notes. Do not rerun or bypass red CI from this skill. - `mergeStateStatus` of `BEHIND`, `DIRTY`, or `UNKNOWN`, or `mergeable` of `CONFLICTING`: WITHHOLD, and say that a rebase onto current main is needed. Do not record that as PASS. - Nightly lanes do not stand in for Release checks unless the change claims that lane. ## Tests For a claimed fix, require a test that fails on the previous revision. Absence of that coverage is REQUEST CHANGES. Docs-only and skill-only diffs do not need unrelated model, media, or browser tests. `Ran:` lists commands and CI jobs actually observed on this tip SHA. `Not run:` lists relevant checks nobody ran. A passing local tree that is not this SHA does not count. Never invent a green run. Distinguish a model double from a real provider call; do not upgrade either. ## Required evidence Determine the required artifacts from the behavior in the diff. Include the canvas, timeline, assistant, provider settings, and generation, adoption, or export flows when affected. Apply both media requirements if the PR ships both a user-visible fix and a feature. | Change | Required evidence in the PR | | --- | --- | | User-visible bug fix | A screenshot from the actual reproduction path showing the corrected result. Include the steps and the previous failure for comparison. Add a playable recording when the fix depends on a transition the screenshot cannot show. | | User-visible feature or behavior extension | A playable video showing the affected workflow in OpenDirector, from its entry point through the visible result. Include the resulting project state and a reload or retry when the claim involves persistence or recovery. | | No user-visible change | Give a concrete reason that visual evidence is N/A. For a nonvisual runtime claim, provide a matching run or receipt. | For affected generation, editing, and export claims, list the cases and include the actual output for each claimed modality. Verify returned text or payload, decodable images, playable audio, and playable video as applicable. Include the exact synthesis text for TTS and audible output for a video that promises sound. For an adoption claim, show the adopted asset or project result. For any performance claim, include comparable before-and-after measurements and the workload. Use attachments or links reviewers can open. Identify the tested commit, the reproduction steps or run inputs, and the result each artifact shows. Label fixtures and model doubles. Verify real-provider claims against outputs and receipts from that provider and model. Require these artifacts alongside applicable tests and CI. The [PR template](../../../.github/pull_request_template.md) prompts authors for the evidence. ## External and fork tips Apply this in addition to the full review when the author is external or first-time, or `isCrossRepository` is true: - Secrets, credentials, private assets, or raw provider responses in the diff: REQUEST CHANGES. - `maintainerCanModify` false: note that maintainers cannot update the branch. That note alone is not a code defect. - Chinese-only PR title or body: REQUEST CHANGES, or record it as a language finding when the verdict is already WITHHOLD. PR titles, bodies, and review posts are English. Do not PASS over a Chinese-only PR body. Issue bodies published by `feat-issue` or `bug-issue` are Chinese by default. Do not treat that issue text as a PR-language defect. Product copy still needs both `zh-CN` and `en-US` in the same change. ## Choose one verdict - **PASS** — the tip matches the linked issue; no actionable defect for the scoped risk; Release checks and other required statuses are green on this tip SHA; the tip merges cleanly onto current main; and the [required evidence](#required-evidence) is available. - **WITHHOLD** — evidence is incomplete: CI is running or unsettled, the tip moved, the review is unfinished, the branch is conflicted or behind main, or required evidence is outstanding while the author is preparing the tip for review. - **REQUEST CHANGES** — an actionable defect: correctness, a break of an AGENTS.md contract, security, missing tests for a claimed fix, a dishonest claim, a language-policy break on user-facing copy or on PR text that must be English, or missing required evidence on a tip offered as ready. One verdict only. Do not soften REQUEST CHANGES into PASS because the rest looks fine. Do not soften WITHHOLD into PASS because the diff looks fine while CI is unsettled. ## Advisory score Score on request. Base the score on the pinned diff and evidence. Choose the review verdict independently using the criteria above. | Dimension | Weight | What to assess | | --- | ---: | --- | | Scope and intent | 15 | Fit to the issue or agreed scope, clear acceptance criteria, and a focused diff. | | Correctness and safety | 25 | Shared UI and agent capability contracts, authoritative project state, generation and adoption boundaries, permissions, recovery, and bilingual behavior as applicable. | | Validation | 20 | Focused tests, failing-before regression coverage, relevant CI on this tip, and exercised UI and agent paths where affected. | | Claim evidence | 30 | Reviewable [required artifacts](#required-evidence), matching inputs and outputs, and receipts or measurements for the claims made. | | Simplicity | 10 | Reuse of the owning service or capability, minimal state, and direct code and tests. | Apply these hard zeros before choosing the remaining ratings. - **Claim evidence is 0/3** if any required artifact is missing, inaccessible, or fails to substantiate the claim on the reviewed tip. A unit test or green CI can support Validation. A screenshot-only feature or a unit-test-only user-visible fix earns 0/3 for Claim evidence. - **Simplicity is 0/3** if the diff adds or rewrites an explanatory code comment in maintained source, tests, scripts, or config. License headers, shebangs, tool directives, and required docstrings are exempt. Score comment removals under the normal criteria. Express behavior through code, tests, or relevant docs. Use the highest rating the evidence supports for each applicable dimension. - **3** — matching evidence covers the applicable checks. - **2** — the main checks are supported, with a bounded gap. - **1** — partial support, with a material gap or inconsistency. - **0** — usable evidence is absent or a material contract violation is confirmed. Use `N/A` only for dimensions outside the reviewed scope. A skill-only change without a runtime claim can use `N/A` for Claim evidence. Attribute each gap to its primary dimension and cite the evidence behind each rating. Calculate `100 * sum(weight * rating) / (3 * sum(applicable weights))` and round to the nearest integer, with halves up. Exclude `N/A` from both sums. For example, if Claim evidence is `N/A` and the other ratings are 3, 3, 2, and 3 in table order, the score is **90/100**. If Claim evidence is 0/3 and every other dimension is 3/3, the score is **70/100**. Withhold the total if the snapshot is stale or a material part of the diff could not be reviewed. Report the full base and head SHAs, total, dimension ratings with evidence or N/A reasons, and the highest-priority remaining action when there is one. ## Output English. Short enough to post in the room or chat. First line is the verdict, the tip short SHA (at least 7 hex digits), and the `Fixes` / `Refs` numbers. Then findings, then `Ran:` and `Not run:`. If requested, append the advisory score after the test record. On PASS, the last line names the Coordinator. Use "no actionable findings" only on PASS. ```text PASS abc1234 Fixes #123 - no actionable findings Ran: Release checks green on abc1234 (full tip SHA) Not run: local pytest Coordinator: ping after this Reviewer PASS and green CI on this SHA. This skill does not merge. ``` ```text WITHHOLD abc1234 Refs #123 - Release checks still running on this tip SHA - behind main; rebase onto current main is required Ran: none on this SHA Not run: Release checks (unsettled) ``` ```text REQUEST CHANGES abc1234 Fixes #123 - claimed fix has no test that fails without the change - user-visible string added for en-US only Ran: Release checks green on abc1234 (full tip SHA) Not run: local browser lane ``` If asked to comment on the PR, paste the same text. That comment still does not merge and does not dismiss a failing check.