Repository navigation
fix: bind ClawHub publication source to the authorized commit - #135368
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review The previous review generation failed before publishing findings. The two-file publisher fix and head remain unchanged; please retry the review. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review the unchanged two-file fix at 4d43fa7. The previous generation exited before producing a review; retrying that exact job returned |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 1:33 PM ET / 17:33 UTC. ClawSweeper reviewWhat this changesThe PR makes ClawHub publication metadata use the sealed candidate commit in both source fields and adds a regression test for that workflow contract. Merge readinessNo introduced correctness defect was found, but this protected maintainer PR should remain open until the pinned ClawHub reusable-workflow contract is independently rechecked; the review host could not retrieve that external source. Priority: P2 Review scores
Verification
How this fits togetherOfficial plugin releases seal an approved candidate commit before sending packaged plugins to ClawHub. The release workflow passes source metadata to ClawHub’s reusable publisher, which validates it against the authorization token. flowchart LR
A[Release candidate] --> B[Package artifacts]
B --> C[Transaction sealing]
C --> D[Authorized candidate SHA]
D --> E[Reusable publish workflow]
E --> F[ClawHub validation]
F --> G[Published plugin]
Decision needed
Why: The proposed value is correct only if the external reusable workflow compares source_ref as the PR states, and that authoritative source could not be retrieved here. Before merge
Agent review detailsSecurityNone. PR surfaceTests +22, Config +1. Total +23 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the existing artifact and token flow while passing the sealed candidate SHA through both publication source fields, after confirming the pinned reusable workflow accepts that contract. Do we have a high-confidence way to reproduce the issue? Unclear for an independent current-main run: source shows the two fields diverge and the PR supplies a release failure, but the pinned external validator could not be exercised or retrieved here. Is this the best way to solve the issue? Unclear: binding both publisher inputs to the sealed candidate is the narrowest owner-boundary repair if the pinned ClawHub contract compares them as stated; that dependency contract remains independently unverified. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bf9a04e6125d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
The ClawHub publisher rejected the sealed 2026.8.2 candidate because this workflow sent a tag in The regression check failed with the old tag expression and passed with the repaired mapping; all 11 focused checks passed. The server contract and pinned reusable publisher were inspected directly. Exact-head CI and native prepare passed at The change is one workflow input plus its explanatory comment (+2/-1) and 22 test lines; no product runtime, package bytes, release identity, permissions, or persistent state changed. The current release's manual publication recovery remains separate from this repair. ClawSweeper's external-contract question is resolved by direct inspection of the pinned validator and reusable publisher. The validator explicitly requires both source fields to match A nonpublishing probe executed that exact pinned validator function after stripping TypeScript types: the release candidate SHA was accepted and returned in both fields; the release tag and tooling SHA were each rejected. This is direct source-contract proof, not a claim of a new OIDC publication. The original automated release failure exercised the same rejection in production: https://github.com/openclaw/openclaw/actions/runs/33530355103. Authenticated manual recovery has separately verified 88 public packages from the sealed artifacts; it is not presented as OIDC evidence. These checks address the review's rank-up request without republishing completed versions. |
|
Separate ClawHub upload follow-up observed during the completed 2026.8.2 release: CLI 0.23.3 selects staged upload only above 18 MiB, but the sealed 5,517,809-byte Matrix archive received HTTP 413 through the public multipart route. Selecting the existing staged-upload path preserved the exact archive and completed binary storage successfully. The final publication request then exceeded the CLI's 120-second request deadline. An isolated manual request with a longer deadline still hit Undici's independent 300-second headers limit. The server subsequently completed publication, and public The owning server path stores all 1,843 archive entries sequentially before creating the publication attempt ( |
What Problem This Solves
Fixes official plugin publication to ClawHub failing after package sealing and approval. The 2026.8.2 release reached the trusted publisher, then every package was rejected because its source ref named a release tag instead of the authorized candidate commit.
Why This Change Was Made
ClawHub validates both
source.commitandsource.refagainst the candidate SHA bound into the publish token. The caller already supplied that SHA assource_commitand as the transaction seal'sTARGET_SHA, but supplied a tag or workflow ref assource_ref. Both source fields now use the same resolved candidate SHA. This preserves the existing authorization, package inventory, approval receipts, and independent tooling identity.The parsed-workflow regression compares both publication source fields with the candidate used by transaction sealing. It protects the cross-workflow contract without introducing a runtime helper or duplicating the ClawHub validator.
User Impact
Approved official plugin artifacts can finish trusted ClawHub publication with correct immutable source attribution. This is a release-tooling repair; it does not change plugin runtime behavior or the published release candidate.
Evidence
Trusted publish source ref must match the authorized candidate SHA.Runtime production delta is zero. Workflow delta is +2/-1, including the contract comment; tests are +22/-0. No configuration, dependency, or persistent-state changes.