Skip to content

Commit 463edfe

Browse files
authored
fix(review): scope Codex proof policy (#1093)
* fix(review): scope Codex proof policy * test(review): prove dependency gate boundaries * test(review): remove pinned prompt assertions
1 parent 50f90ea commit 463edfe

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎prompts/review-item.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,27 @@ issue/PR data extracted before the review, including explicit mentions, linked
3030
closing PRs, best-effort local title-search matches from existing ClawSweeper
3131
reports, optional gitcrawl cluster siblings, and optional GitHub issue-search
3232
matches.
33+
34+
Apply dependency-specific repository policy only when the reviewed change or
35+
its stated evidence actually depends on that dependency's contract. Treat the
36+
gate as applicable only when the reviewed material supplies at least one
37+
affirmative dependency signal: the patch directly imports, executes, generates
38+
from, or tests against the dependency's code, schema, harness, runtime, or
39+
protocol; the PR's behavior or proof claims require compatibility with that
40+
contract; or the target's current source or docs identify the dependency as the
41+
authoritative implementation or test oracle for the changed behavior. Cite the
42+
exact file, symbol, document, or PR claim that establishes the signal in
43+
`evidence`. If none can be cited, the dependency-specific gate does not apply.
44+
A shared name, similar tool surface, nearby implementation, optional
45+
integration, or unavailable sibling checkout is not an affirmative signal.
46+
47+
In particular, OpenClaw Code Mode and Codex Code Mode are separate
48+
implementations; an OpenClaw Code Mode change does not require sibling
49+
`../codex` inspection unless one of the affirmative signals above establishes
50+
that the patch or its claims depend on the Codex harness, runtime, or protocol.
51+
Confirm the implementation boundary from the target's current source and docs;
52+
do not infer it from naming or tool shape.
53+
3354
You may use
3455
unauthenticated `gh` only if it works; do not lower confidence just because
3556
authenticated `gh` is unavailable. Do not list `gh` auth, `GH_TOKEN`,
@@ -391,6 +412,15 @@ For PRs, include a dedicated security review pass in addition to the functional
391412

392413
For PRs, include a dedicated `realBehaviorProof` assessment before any pass, automerge, or repair verdict. External PRs must show that the contributor ran the changed behavior after the fix in a real setup, except when the PR changes only files under `docs/`; docs-only PRs should use `status: "not_applicable"` with `needsContributorAction: false`. Unit tests, mocks, snapshots, lint, typechecks, and CI are supplemental only; they are not real behavior proof by themselves. Treat screenshots, recordings, terminal screenshots, console output, copied live output, linked artifacts, and redacted runtime logs as valid proof, including for non-visual CLI, console, text, or error-message changes. Prefer asking for screenshots or videos when they can show the behavior, including terminal screenshots for text or console changes, while keeping logs and live output acceptable. Remind contributors to redact private information like IP addresses, API keys, phone numbers, non-public endpoints, and other private details before posting evidence. A plain app screenshot is sufficient only for behavior it directly shows. Do not mark screenshot-only proof sufficient for browser runtime, CSP, CORS, `connect-src`, auth callback, network, or security changes when the proof only says no console error, warning, or violation is visible; require console output, a network trace, terminal/live output, logs, a recording with diagnostics, or a linked artifact that actually shows the runtime path. Use your tools and best judgement: inspect the PR body, comments, links, screenshots, videos, logs, terminal output, and changed behavior context; you may download/open GitHub attachment links, generate stills or contact sheets from videos, inspect terminal screenshots and logs, and compare the proof against the PR diff. Use the provided scratch directory for downloaded artifacts and keep the target checkout read-only. Use `status: "sufficient"` only when the evidence convincingly shows after-fix real behavior and an observed improved result. Use `status: "missing"` when proof is absent, `status: "mock_only"` when proof is only tests/mocks/CI, `status: "insufficient"` when the evidence is unrelated, unviewable, too weak, or does not show the changed real behavior after the fix, `status: "override"` when the PR has `proof: override`, and `status: "not_applicable"` for non-PR items, maintainer/bot PRs where the gate does not apply, or PRs that change only files under `docs/`. When proof is missing, mock-only, or insufficient, set `needsContributorAction: true`, make the PR a human-only merge blocker, and do not request ClawSweeper repair markers because automation cannot prove the contributor's setup for them.
393414

415+
A reviewer-side environment limitation is not missing contributor proof. If a
416+
required dependency checkout, network path, credential, or inspection tool is
417+
unavailable to ClawSweeper, do not change otherwise sufficient evidence to
418+
`insufficient`, do not set `needsContributorAction: true`, and do not lower the
419+
proof or overall rating solely for that limitation. First decide whether the
420+
dependency-specific gate actually applies. If it does, preserve the evidence
421+
classification and describe the reviewer limitation as a maintainer-facing risk
422+
or decision; if it does not, omit the unrelated limitation entirely.
423+
394424
For internal retry, ordering, delivery, or network-reliability changes, the
395425
actual production owner and real transport client exercising an injected fault
396426
through the production boundary, with a recorded request/response trace showing

0 commit comments

Comments
 (0)