Repository navigation
fix: verify ClawHub after release finalization retries - #165877
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 5, 2026, 8:31 PM ET / October 6, 2026, 00:31 UTC. ClawSweeper reviewWhat this changesThe ClawHub postpublication verifier recovers dispatch evidence from an earlier successful job retained by a release retry, preserves its original authorization attempt, and adds recovery and rejection coverage. Merge readiness✅ Ready for maintainer review The repair remains necessary: current main and v2026.9.8 still reject the retained dispatch artifact after a successful finalization retry. Actual GitHub job records corroborate the patch’s execution-matching assumptions, and no introduced blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s postpublication verifier consumes successful release completion events and authenticated GitHub artifacts. It checks the originally authorized package bytes against ClawHub and records verification results. flowchart TD
A[Successful release completion] --> B[Dispatch record selection]
C[Historical jobs and artifacts] --> B
B --> D[Original authorization checks]
D --> E[Child package artifacts]
E --> F[ClawHub byte verification]
F --> G[Verification evidence]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +192, Other +136. Total +328 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Preserve terminal release success separately from original dispatch provenance so verification can recover without republishing or weakening artifact checks. Do we have a high-confidence way to reproduce the issue? Yes, from current source and actual Actions records: a successful attempt-2 completion encounters an attempt-1-only dispatch inventory and fails the exact-name lookup. No executable reproduction was run during this read-only review. Is this the best way to solve the issue? Yes. Separating the terminal attempt from the authenticated original producer repairs the existing verifier while preserving exact child, authorization, and archive checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eb405f0d5c50. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Fixed: ClawHub postpublish verification now preserves the original dispatch evidence across release finalization retries. |
Verify ClawHub publication after release finalization retries using the retained successful dispatch producer and its immutable evidence. Fixes openclaw#165848.
What Problem This Solves
ClawHub postpublish verification fails when a release succeeds after retrying finalization while retaining its earlier successful dispatch job. The verifier looks for a dispatch record from the terminal attempt, although the original job produced the valid record during an earlier attempt.
Fixes #165848.
User Impact
Maintainers can verify a successfully retried release using the evidence produced by its actual dispatch job. This changes read-only verification; it does not publish packages, change release approvals, or alter package versions.
Why This Change Was Made
The normal exact-attempt path stays intact. When a terminal retry retains an earlier producer, the verifier examines a bounded set of historical records and identifies the unique successful execution retained in the terminal job inventory. It preserves the original parent attempt through dispatch and authorization checks while still requiring the terminal parent to have succeeded.
Repository, workflow, ref, SHA, producer-job, child-attempt, and immutable archive checks remain enforced. Different producer executions, ambiguous records, and substituted evidence are rejected before registry verification. Artifact creation time and recency do not establish authority.
Evidence
The historical release failure is linked in #165848. A focused remote regression reproduces the original
Missing exact parent release dispatch recorderror through the actual verifier and immutable archive fixture. The candidate also covers multiple historical attempts, normal and no-child outcomes, and invalid producer/evidence variants.Remote Linux validation passed formatting, type-aware lint, script types, the affected root-script test type partition, and all 65 verifier cases. The final owner suite took 2.09 seconds (Vitest: 1.22 seconds); the single-worker
pnpm test test/scripts/clawhub-postpublish.test.ts --maxWorkers=1measurement was 1.99 seconds. The added cases share the existing in-process fixture and add no service boots or timers.The plugin compatibility report, export scans, architecture checks, production dependency audit, and private-key scan passed. The full-tree unused-file scan retains the unrelated
src/infra/open-file-descriptors.test-support.tsfailure also observed on main. This patch leaves that helper and its discovery inputs unchanged.