Repository navigation
feat(review): evaluate authority delivery chains - #1223
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 7:04 PM ET / 23:04 UTC. ClawSweeper reviewWhat this changesThis PR adds a narrowly triggered authority-chain review pass and enforces its scoped final-effect proof requirement for trusted-author pull requests. Merge readinessThe current head consistently carries the scoped authority marker through parsing and merge gating, with focused coverage for trusted-author exemptions, authority proof, and overrides. Landing changes merge-policy behavior for trusted authors, so it needs an explicit maintainer policy decision. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherClawSweeper converts Codex review output into report sections, labels, and merge-readiness markers. The change carries an authority-sensitive proof signal from the review prompt through report parsing into the final readiness gate. flowchart LR
A[Pull request diff] --> B[Review prompt]
B --> C[Structured review report]
C --> D[Proof parser]
D --> E[Readiness gate]
E --> F[Labels and merge markers]
Decision needed
Why: This is a deliberate merge-policy change, not a mechanical correctness repair; maintainers must choose the acceptable false-positive and review-latency tradeoff. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the scoped authority-proof rule only if maintainers want this additional guardrail, retaining the exact marker, proof override, and narrow trigger to avoid expanding ordinary proof requirements. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a review-automation feature, and the PR supplies a current-head terminal trace for its controlled parser and gate scenarios. Is this the best way to solve the issue? Yes, conditionally: the marker-based parser and existing proof gate are the narrowest implementation path, but adopting the trusted-author exception requires maintainer policy approval. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against eb8e2caabeb2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Summary
No new review section or schema is introduced. The earlier Worker hydration, predecessor-assessment ingestion, semantic-cache, prior-risk carry-forward, and unrelated runtime-budget changes have been removed from the final diff.
Real-behavior proof contract
Claim: Ordinary trusted-author proof exemptions continue to pass. When the narrowed authority condition applies and the review emits
Authority-chain proof required:, missing authority final-effect evidence blocks OWNER, MEMBER, COLLABORATOR, and bot-authored PRs. Authority-only sufficient evidence satisfies that scoped gate, andproof: overrideremains effective. External-contributor proof behavior is unchanged except that applicable authority evidence must also be satisfied.Exercised surface: generated review prompt, report proof parsing, and final automation-marker gate.
Scenario/fixture: deterministic report fixtures cover ordinary and authority-marked OWNER, MEMBER, COLLABORATOR, and bot reports; sufficient authority-only evidence;
proof: override; and an external contributor with missing ordinary proof. Prompt assertions cover the material-authority trigger and explicit non-trigger language for ordinary identifiers, routes, defaults, retries, fallbacks, recovery, and refactors.Command/environment: macOS, Node 26.5.0 (repository requirement is Node 24+), head
97403595b78568b8f1becb4aee884e80bf8d7213:Observed result:
{ "promptContract": "narrow authority trigger with authority-only trusted-author exception", "trustedOrdinaryProof": "exempt", "trustedAuthorityProofMissing": "needs-human", "trustedAuthorityProofSufficient": "pass", "proofOverride": "pass", "externalOrdinaryProofMissing": "needs-human" }Artifact/trace: terminal trace from the command above. The local harness is ignored at
.artifacts/authority-chain-proof.mjsand exercises the built production parser/gate.Limits: controlled local proof with deterministic report fixtures; it does not claim model compliance for every future diff, a live GitHub Actions runner, or a merge mutation. Prompt calibration remains model-evaluated, while the emitted marker and final gate are deterministic.
Validation
pnpm run buildpnpm run build:allpnpm run formatpnpm run codex:local:checkgit diff --check origin/mainorigin/mainbehavior unchangedorigin/main: no review findings, security cleared, proof sufficient, A/A/Apnpm run checkcompleted static checks, formatting, builds, lint, and the changed-surface tests successfully. Its full-suite run had one host-only live-proof environment failure: local tmux lost window0beforecapture-pane; this test and surface are unchanged by the six-file PR diff. Repository CI remains authoritative for that environment-sensitive test.Rank-up moves
proof: overridepasses.OpenClaw Bay
No Bay change is needed. The final diff changes review evaluation and an existing proof gate only; it does not alter Bay's observer-only data contract, links, status projection, or mutation boundary.