Repository navigation
fix(review): scope Codex proof policy - #1093
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 5:25 AM ET / 09:25 UTC. ClawSweeper reviewWhat this changesThe PR adds a citeable affirmative-signal rule for dependency-specific review policy and prevents reviewer-environment limitations from being classified as missing contributor proof. Merge readinessKeep open for a maintainer policy decision: the narrow, prompt-only change is coherent and its prior pinned-text-test finding is resolved, but it deliberately changes the global boundary for dependency-specific review gates. Priority: P2 Review scores
Verification
How this fits togetherExact-item review consumes a pull request’s context, source, and proof, then produces a proof classification that drives the public review report, labels, and routing. This change adjusts how the review decides whether a dependency-specific policy applies before classifying proof. flowchart LR
A[Issue or PR context] --> B[Exact-item review]
B --> C[Dependency applicability]
C --> D[Proof classification]
D --> E[Review report]
E --> F[Labels and routing]
Decision needed
Why: This is a global trust and contributor-facing classification policy; source review can confirm the patch mechanics but cannot determine the intended permanent review boundary. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the evidence-cited boundary only if maintainers want reviewer-environment limitations to remain maintainer-facing while direct dependency contracts retain their existing proof gates. Do we have a high-confidence way to reproduce the issue? Yes, a concrete control path is documented: run the exact-item reviewer against the cited negative and positive PR revisions and inspect the resulting dependency applicability and proof fields. I did not rerun those external-item controls in this read-only review. Is this the best way to solve the issue? Unclear: the implementation is narrow and resolves the prior pinned-test concern, but the global affirmative-signal boundary requires explicit maintainer policy acceptance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2cc2c0df8d53. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
Problem
openclaw/openclaw#119874 was reviewed twice at the same head. One review correctly found sufficient proof and routed it to maintainer review; a later review treated OpenClaw Code Mode as Codex-related, could not inspect sibling
../codex, and downgraded the PR tostatus: needs proof.The target's own Code Mode documentation says the OpenClaw and Codex implementations are separate. The missing sibling checkout was a reviewer-environment limitation, not missing contributor proof. Because proof status drives the public status and rating labels, the classification error became a misleading contributor-facing gate.
Implementation
The exact-item review prompt now applies a dependency-specific gate only when the reviewed material supplies at least one affirmative signal:
The reviewer must cite the exact file, symbol, document, or PR claim in structured evidence. Without a citeable signal, the dependency gate does not apply. Shared names, similar tools, nearby implementations, optional integrations, and an unavailable sibling checkout are explicit negative controls.
OpenClaw Code Mode remains separate from Codex Code Mode unless one of those positive signals establishes a real Codex harness/runtime/protocol dependency.
The proof contract also says reviewer-side environment limitations must not:
insufficientneedsContributorAction: trueApplicable reviewer limitations remain maintainer-facing risks or decisions. Inapplicable limitations are omitted.
This does not change lifecycle leasing, durable comment rendering, label derivation, workflow routing, queues, or OpenClaw Bay. The deterministic path remains: review JSON supplies
realBehaviorProof.statusandneedsContributorAction; label policy and comment rendering expose that classification without reclassifying dependency applicability.No pinned-text test is added.
VISION.mdsays to prefer a review gate over literal prompt assertions, so the final branch is prompt-only and uses the exact-item control runs below as behavior evidence.Validation
pnpm run build:allnode --test test/review-prompt-policy.test.ts— 35/35 existing tests passedpnpm exec oxfmt --check prompts/review-item.md test/review-prompt-policy.test.tsgit diff --check origin/main...HEADprompts/review-item.md, +30 linescodex review --uncommitted— no actionable findingscodex review --base origin/main— no actionable findingspnpm run review -- --local-only --item-number 119874— negative control completed without GitHub mutationpnpm run review -- --local-only --item-number 120360— positive Codex-contract control completed without GitHub mutationpnpm run review -- --local-only --item-number 121009— positive Codex-contract control completed without GitHub mutationDocker-backed Crabbox validation used:
local-containermcr.microsoft.com/playwright:v1.60.0-noblecbx_aa253be16e167b1c74b1a7923710eb38053b87ac17b50657e70bdfcd2b1a0b44d504b8308b4ce6eeebb9537d3a84PROOF_COMPLETE; lease auto-stoppedThe no-sync run cloned the prior public PR head, applied only commit
7b1c74b1as a binary patch, and verified its resulting Git tree exactly before executing tests. This avoids the known Windows rsync transport failure without changing provider.Real Behavior Proof
Claim: dependency policy is deny-by-default without a citeable source/claim signal, while genuinely Codex-dependent changes remain gated.
Exercised surface: the built ClawSweeper exact-item review runner with the changed prompt.
Negative scenario: current openclaw/openclaw PR #119874 at
e072b5ff8630e02a7d85a945b7537f2a4b754c41.Observed result:
review_status: complete, high-confidencekeep_open560d172ae7e396cf51924fb88af860e92afa0e62sufficient;needsContributorAction: falseB/A/BPositive controls:
be371072739368b3f9876c3fe3fe99897ee6fba3: the PR body cites exact Codex commits and contract files; the review applies the Codex gate and records the unavailable historical objects as a maintainer dependency-proof decision.a089fa04534eed4f786313ed8bb0f2df47c09e27: the PR body explicitly claims compatibility with Codex JSONLitem.completedbehavior; the review applies the Codex gate and cites direct Codex event/processor source. Its separate live-channel proof gap remainsmock_onlywith contributor action required.Artifacts:
artifacts/local-review-119874/119874.mdartifacts/local-review-120360/120360.mdartifacts/local-review-121009/121009.mdAll three commands used
review --local-only; no GitHub comments, labels, queues, workflows, or apply actions were mutated. Their managed target checkouts remained clean. The later test-only commit removed literal prompt assertions and did not alter the exercised prompt.Limits: model output remains probabilistic. The prompt makes applicability evidence-auditable, but it does not replace model judgment with a static source parser.
Maintainer Policy Decision
This is an irreducible maintainer product/policy decision, not missing contributor proof.
Decision: Should exact-item review globally require a citeable affirmative dependency signal before applying dependency-specific repository policy?
Recommendation: Accept the scoped boundary. It preserves hard dependency gates for direct code/schema/harness use, explicit compatibility claims, and source-declared authoritative contracts while preventing shared naming or reviewer sandbox limitations from creating contributor proof failures.
Objective acceptance criteria:
Rollback: before merge, decline or close this PR. After landing, revert the landed PR commit and re-review affected items. There is no schema, stored-data, queue, or migration rollback; public labels/comments change only when a subsequent review republishes them.
Risks / Rollout
This is prompt-level policy, so unusual dependency-backed PRs still require reviewer judgment. The positive boundary is explicit and evidence-bearing: actual dependency use or a claimed contract still requires repository-mandated sibling-source inspection.
No changelog change: normal ClawSweeper fixes are release-note context only.