Repository navigation
fix(release): publish ClawHub bootstrap artifacts immutably - #103809
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 10, 2026, 4:32 PM ET / 20:32 UTC. Summary PR surface: Source +73, Tests +4810, Docs +92, Config +1190, Other +4864. Total +11029 across 42 files. Reproducibility: yes. source-reproducible with high confidence. The old workflow executes target-local setup and publishing in the token job and then treats a successful artifact HEAD request as sufficient verification; this review did not perform a mutating live publication. Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Approve and land the single immutable-artifact design after the release-security owner confirms the main-only workflow-source transition, pinned dependency graph, and exact-head checks; retain exact artifact and publisher identity verification for both token bootstrap and OIDC publication. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible with high confidence. The old workflow executes target-local setup and publishing in the token job and then treats a successful artifact HEAD request as sufficient verification; this review did not perform a mutating live publication. Is this the best way to solve the issue? Yes. Secretless packing, immutable artifact binding, trusted credential use, and bounded exact-byte and publisher-identity readback form the narrowest maintainable fix and avoid a competing publication source of truth. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 99e1a6081bca. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +73, Tests +4810, Docs +92, Config +1190, Other +4864. Total +11029 across 42 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (3 earlier review cycles)
|
310adc2 to
f3aa54e
Compare
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
Security-sensitive changes notedThis PR includes security-sensitive file changes. The guard is informational because the PR author is a repository admin or a member of
Changed files:
Security review is still recommended before merge when the change is intentional. |
f3aa54e to
75fd05e
Compare
|
Merged via squash.
|
…#103809) * fix(release): harden ClawHub bootstrap * fix(release): centralize publication artifact verification * fix(release): harden publication artifact verification * fix(release): lock ClawHub bootstrap toolchain * test(release): assert locked ClawHub binary * fix(release): pack with trusted ClawHub harness * fix(release): bound beta verifier artifact reads * fix(release): bind target and tooling identities * fix(release): stabilize signed package ordering * fix(release): bind ClawHub pretag proof * fix(release): bind ClawHub OIDC readback * fix(release): bind ClawHub OIDC readback
Closes #103800
What Problem This Solves
Fixes an issue where first-publish ClawHub bootstrap jobs could execute target-controlled setup and packaging code while holding the ClawHub token, then treat an artifact URL response as sufficient proof without verifying the exact bytes stored by the registry.
Why This Change Was Made
The bootstrap path now packs plugins without credentials, uploads one immutable Actions artifact, and binds its producer run, attempt, artifact id/name/digest, target source, toolchain, package metadata, tarball SHA-256, and size. Trusted-main credential jobs publish that exact prebuilt tarball, while bounded verification downloads the registry artifact and requires exact bytes, metadata, tag, and GitHub Actions trusted-publisher identity before success.
The normal OIDC publication path uses the same bounded verifier and compares the published package to the exact package artifact produced earlier in the workflow. Validation-only and workflow-evidence changes remain on
main; no release branch code is included here.User Impact
Release operators can bootstrap a new official ClawHub package without exposing the publish token to target code, and successful verification proves ClawHub stored the exact reviewed package bytes. Existing packages continue through normal trusted-publisher OIDC publication.
Evidence
Exact reviewed head:
75fd05e171272aeab77c3591dc18774f939b3d9atbx_01kx6r16n4nytjz560em88wwyr: 60/60 focused artifact and registry-verifier tests passed.keeps beta release verification and ClawHub publish repair hooks wiredworkflow contract passed.[email protected]materialization passed from lock SHA-256f44f670d70f13a8cde566a174cae5be682ad98456ec7a85aafd497f7d8c71816.[email protected]on every touched script/test,actionlint, Node syntax checks, andgit diff --checkpassed.pull_requestgates and repo-native prepare are being rerun after this successor push.Nothing was published: no npm package, GitHub release, tag, Docker image, or ClawHub package was created or promoted by this PR validation.