Repository navigation
fix(release): preserve canonical candidate requests - #132293
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 10:59 PM ET / August 29, 2026, 02:59 UTC. ClawSweeper reviewWhat this changesThis PR makes release-candidate discovery validate and hash the canonical request it receives, rather than rebuilding it as raw CLI input, with regression coverage for survivor-policy arrays. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open. The pinned PR removes a source-proven digest mismatch at the canonical-request consumer boundary and adds focused regression coverage; it is member-authored and maintainer-labeled, so normal human review and exact-head CI should gate landing. Priority: P1 Review scores
Verification
How this fits togetherFull Release Validation builds a canonical candidate request, then candidate discovery hashes it to find a matching trusted artifact before release-validation lanes run. The discovery result feeds either artifact reuse or candidate preparation. flowchart LR
A[Release validation inputs] --> B[Canonical request builder]
B --> C[Canonical request JSON and digest]
C --> D[Candidate discovery]
D --> E[Digest-qualified artifact lookup]
E --> F[Reuse or candidate preparation]
F --> G[Release validation lanes]
Decision needed
Why: The code path is source-proven and has focused coverage, but the maintainer label requires explicit human handling before landing. Before merge
Agent review detailsSecurityNone. PR surfaceTests +89, Other -3. Total +86 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep raw-input normalization at the request producer and canonical validation plus hashing at discovery, then land once exact-head checks are green. Do we have a high-confidence way to reproduce the issue? Yes, source reproducibly establishes the failure: canonical survivor arrays reach a raw-input builder that discards them before digest comparison. The supplied workflow-run link reports the same failure, though GitHub DNS was unavailable for independent inspection. Is this the best way to solve the issue? Yes. The workflow contract supplies canonical JSON, so validating and hashing it directly at discovery preserves identity; adding reverse coercion at this consumer would be the wrong boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5d8ef653cd71. LabelsLabel 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)
|
eac2f68 to
314fd94
Compare
|
Merged via squash.
|
What Problem This Solves
Full Release Validation passed a canonical candidate request into candidate discovery. Discovery rebuilt that canonical object as raw CLI input, dropping array-valued survivor policy and changing the request digest before acquisition could start.
Run https://github.com/openclaw/openclaw/actions/runs/33228807189 reproduced the failure in
Acquire full release candidate / Find trusted release candidate.Why This Change Was Made
Discovery now validates and digests the canonical request directly. It no longer routes canonical JSON through the raw-input builder.
The subprocess regression generates canonical JSON with nonempty baseline and scenario arrays through the real contract CLI, passes its exact digest into discovery, and verifies the unchanged request identity plus the digest-qualified artifact lookup.
User Impact
Fresh Full Release Validation runs can acquire or prepare the exact requested candidate instead of failing before selected-lane execution with a false digest mismatch.
Scope
Evidence
full release candidate request digest does not match the expected request digest.git diff --check: passed.pakodeclaration baseline inui/vite.config.ts.