Repository navigation
fix(release): bind reusable evidence verifier source - #123115
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 13, 2026, 6:14 AM ET / 10:14 UTC. ClawSweeper reviewWhat this changesThis PR passes the trusted workflow SHA and the invoked validator file to reusable release-evidence validation, while reporting bounded structured rejection details before trying the next candidate. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. The patch is the narrow resolver-side repair for an existing verifier-source contract, with no blocking correctness finding; maintainer ownership and the protected label require normal exact-head CI and the planned frozen-SHA release gate rather than automated closure. Priority: P2 Review scores
Verification
How this fits togetherFull Release Validation can reuse a prior successful run when strict evidence proves it covers the current release target. The resolver scans prior runs, asks the trusted validator to verify them, then either selects reusable evidence or falls back to a full validation. flowchart LR
A[Prior validation runs] --> B[Evidence reuse resolver]
B --> C[Trusted validator]
C --> D{Evidence valid?}
D -->|Yes| E[Reuse prior evidence]
D -->|No| F[Bounded diagnostic]
F --> B
B --> G[Full validation fallback]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +40, Other +18. Total +58 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one resolver invocation that supplies the trusted SHA and the exact validator file, then use the frozen-SHA Full Release Validation gate before any publish decision. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction was inspected: source and focused fixtures establish the omitted contract arguments, while the cited release run could not be read because GitHub network access was unavailable. Is this the best way to solve the issue? Yes. The resolver owns validator invocation, and the existing validator already defines the SHA-plus-file contract, so forwarding that pair is cleaner than adding a parallel validation path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2278ca6952ea. 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)
|
|
ClawSweeper checklist disposition:
No ClawSweeper code repair or non-optional rank-up move remains. |
What Problem This Solves
Fixes an issue where Full Release Validation evidence reuse would reject valid prior runs when the trusted workflow SHA differed from the validator checkout, forcing an unnecessary full validation instead of selecting the next reusable candidate.
Observed during the
2026.8.1-beta.2release qualification in Full Release Validation run https://github.com/openclaw/openclaw/actions/runs/31688521670.Why This Change Was Made
The evidence-reuse resolver now binds
release-ci-summary.mjsto the trusted workflow SHA and the exact validator source file through its existing verifier-source contract. Validator failures retain fail-open candidate scanning, but surface the production JSON error as a single bounded diagnostic; malformed output keeps the generic fallback.No release refs, workflows, package versions, or publish behavior are changed.
User Impact
Release operators can reuse valid exact-SHA or changelog-only validation evidence without silently falling back to long full validation because the verifier source identity was implicit.
Production LOC: +19/-1 (net +18) | Tests: +49/-9
The production growth establishes the verifier-source ownership boundary and preserves bounded, actionable failure diagnostics.
Evidence
node scripts/run-vitest.mjs test/scripts/find-reusable-release-validation.test.tsbash -n scripts/github/find-reusable-release-validation.shnode scripts/run-oxlint.mjs --tsconfig test/tsconfig/tsconfig.test.root.json test/scripts/find-reusable-release-validation.test.tspnpm format:check --no-error-on-unmatched-pattern -- scripts/github/find-reusable-release-validation.sh test/scripts/find-reusable-release-validation.test.tsgit diff --checkNo changelog entry: release-tooling-only blocker repair with no shipped product behavior change.