Skip to content

fix(release): authorize focused beta evidence - #128371

Merged
vincentkoc merged 1 commit into
validation/target-eed27fdb-focused-1787519272from
release/beta3-authorized-focused-eed27fdb
Aug 23, 2026
Merged

vincentkoc merged 1 commit into
validation/target-eed27fdb-focused-1787519272from
release/beta3-authorized-focused-eed27fdb

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 23, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a beta.3 release blocker where the canonical publisher only accepts a successful all-group Full Release Validation manifest, even though the frozen candidate changed only reviewed Slack tests and the two failed historical leaves were rerun successfully.

Related: #128290

Why This Change Was Made

Adds a release-specific, fail-closed authorized-beta-focused-v1 credential instead of weakening or synthesizing the normal Full Release Validation manifest.

The fixed declaration binds:

The new producer emits an attested artifact from an exact protected tooling tag. The parent publisher and core npm publisher independently verify its attestation, protected-tag identity, live GitHub evidence, candidate ancestry/tree/diff, and fixed inventory policy. The eligibility digest is recomputed by the exact frozen release-plan producer, checked against the fixed policy, and only the computed digest is emitted. The existing successful-FRV validator and publication route remain intact under the default full-release-validation mode.

User Impact

Maintainers can complete this one frozen beta.3 publication without another all-group FRV or accepting caller-supplied allowlists. No product bytes, candidate refs, registry state, or normal release policy are changed by this PR.

Evidence

  • Exact reviewed head: e9a46d2185043c2d86e6b06943ed6fc9725141a7 (sole parent eed27fdb88c0c60cb79c5b159a0284bd519271c2, signed)
  • test/scripts/authorized-beta-focused-evidence.test.ts: 8/8 passed
  • The two affected test/scripts/package-acceptance-workflow.test.ts cases passed individually
  • Verify-mode execution passed in both exact consumer layouts with only the validator, fixed policy, and shared record helper; no package install or node_modules closure is required
  • Full local actionlint passed after keeping the embedded publish script below its 64 KiB ShellCheck boundary; a focused size regression assertion now guards that limit
  • Canonical frozen publish-plan probe returned sha256:e05226cfd77716b262882b3e2525037a506cd8b6af2affa0a876499074b1671b
  • Targeted type-aware oxlint passed for the validator and focused test
  • pnpm check:script-erasability passed
  • oxfmt --check and git diff --check passed
  • The prior hosted check-test-types errors at the optional changed path and workflow input were fixed; exact-head hosted proof is pending
  • Local script/root type lanes report only the checkout's unrelated terminal-core, UI config, Android fixture, and QA Convex fixture diagnostics; no changed-file diagnostic remains
  • GitHub REST job evidence was checked directly; the exact job endpoints expose the bound run_id and head_sha

The exact-head audit fixes also bind both target-log jobs before reading logs, pin attestation source and signer digests to the protected tooling SHA in all three consumers, and render the focused validation run in release proof instead of an empty FRV URL.

Production/tooling delta is intentionally positive: this adds a distinct attested security credential, fixed release policy, and two independent publication enforcement boundaries. Product runtime delta is zero.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 23, 2026
@vincentkoc vincentkoc self-assigned this Aug 23, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Aug 23, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 23, 2026 21:08
@vincentkoc
vincentkoc requested a review from a team as a code owner August 23, 2026 21:08
@vincentkoc
vincentkoc force-pushed the release/beta3-authorized-focused-eed27fdb branch 2 times, most recently from 401b508 to a441e68 Compare August 23, 2026 21:19
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 23, 2026, 6:11 PM ET / 22:11 UTC.

ClawSweeper review

What this changes

Adds an attested, beta.3-only focused-validation evidence mode to the release and npm publication workflows while retaining the normal full-release-validation mode.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 6 items remain

Keep open for release-owner security review: the exact-head code narrows the exception well, but its allowed and nearest-forbidden publication effects remain unproven before merge.

Priority: P1
Reviewed head: e9a46d2185043c2d86e6b06943ed6fc9725141a7
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is carefully bounded, but missing final-effect authority proof remains a merge gate.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: provide a redacted protected-tag no-write trace showing the fixed credential reaches the publisher guards and the nearest-invalid credential fails before publication I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: provide a redacted protected-tag no-write trace showing the fixed credential reaches the publisher guards and the nearest-invalid credential fails before publication I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Fixed-policy producer: The added producer accepts no workflow inputs, requires a SHA-bound release-publish tag, builds evidence for the fixed candidate, and attests that artifact.
Independent publication gates: The parent release workflow verifies the artifact before and after approval, and the npm publisher repeats attestation and candidate verification before its publish step.
Attestation contract: The installed GitHub CLI documents that signer workflow, signer digest, source digest, source ref, and self-hosted-runner rejection are verification constraints; the PR supplies those flags at both consumers.
Findings None None.
Security Needs attention Prove rejection at the publication boundary: The focused credential is verified before parent and npm publication paths, but the available evidence does not show a nearest-invalid credential being rejected before registry I/O.

How this fits together

Release workflows collect validation evidence before authorizing package publication. The new focused-validation workflow attests a fixed beta candidate, then both the parent release workflow and the npm publisher verify it before publication steps.

flowchart LR
A[Frozen beta candidate] --> B[Focused validation workflow]
B --> C[Attested evidence artifact]
C --> D[Release publisher verification]
C --> E[npm publisher verification]
D --> F[Publication authorization]
E --> F
Loading

Decision needed

Question Recommendation
Should release managers accept this beta.3-only publication exception with its final-effect proof deferred to a pre-write gate, or require a protected-tag allowed-and-denied trace before merging? Require a protected-tag trace before merge: Run a no-write producer-to-consumer trace that shows the fixed credential reaches the guarded publisher and a nearest-invalid credential fails before publication I/O.

Why: The patch changes which evidence can authorize registry publication, and the supplied discussion explicitly defers the decisive authorization trace; only release owners can accept that residual boundary risk.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: provide a redacted protected-tag no-write trace showing the fixed credential reaches the publisher guards and the nearest-invalid credential fails before publication I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Prove rejection at the publication boundary - The focused credential is verified before parent and npm publication paths, but the available evidence does not show a nearest-invalid credential being rejected before registry I/O.
  • Resolve merge risk (P1) - This new credential gates registry publication, yet no inspectable trace proves an allowed credential reaches the guarded path and a nearest-invalid credential is rejected before publication I/O.
  • Resolve merge risk (P1) - The exception adds net production/tooling code for one frozen beta; release managers should explicitly accept its bounded lifetime and post-release removal plan.
  • Complete next step (P2) - Release managers must decide whether deferred final-effect authority proof is acceptable for this one-time publication credential.

Findings

  • [medium] Prove rejection at the publication boundary — .github/workflows/openclaw-npm-release.yml:1206
Agent review details

Security

Needs attention: The patch has layered attestation checks, but its new publication authority lacks final-effect permitted-and-denied evidence.

PR surface

Tests +386, Config +370, Other +1071. Total +1827 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 388 2 +386
Docs 0 0 0 0
Config 3 421 51 +370
Generated 0 0 0 0
Other 3 1071 0 +1071
Total 8 1880 53 +1827

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling +1,492/-51; tests +388/-2 The positive workflow and validator growth is justified only if the one-time authorization boundary and its retirement plan are accepted.
Publication evidence inputs 3 inputs added to each of 2 publication workflows The new mode plus run ID and attempt form an operator-facing authorization contract at both publication boundaries.

Merge-risk options

Maintainer options:

  1. Prove the pre-write authorization boundary (recommended)
    Capture a protected-tag no-write run proving the authorized artifact reaches each publication guard and the nearest unauthorized artifact is rejected before I/O.
  2. Accept the deferred release gate
    Release managers may accept the one-time beta exception only if the pre-write allowed-and-denied trace is recorded before registry publication.

Technical review

Best possible solution:

Keep the normal validation mode as default, authorize this fixed beta exception only with a protected-tag allowed/denied pre-write trace, then remove the one-time mode after the beta is published.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a privileged release-workflow authorization path, not a user-facing bug; the required proof is a protected-tag, no-write publication-boundary trace.

Is this the best way to solve the issue?

Unclear: the fixed attested credential is safer than weakening the normal manifest, but the final publication effect and nearest-forbidden rejection still need direct proof.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 977bbe266772.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P1: This alters authorization for an active beta publication workflow.
  • merge-risk: 🚨 automation: The patch changes release and npm GitHub Actions dispatch and verification paths.
  • merge-risk: 🚨 security-boundary: A new attested credential can authorize publication when the normal full-validation evidence is absent.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: provide a redacted protected-tag no-write trace showing the fixed credential reaches the publisher guards and the nearest-invalid credential fails before publication I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Prove rejection at the publication boundary — .github/workflows/openclaw-npm-release.yml:1206
    The focused credential is verified before parent and npm publication paths, but the available evidence does not show a nearest-invalid credential being rejected before registry I/O.
    Confidence: 0.9

What I checked:

Likely related people:

  • vincentkoc: Authored the reviewed head and the immediately preceding release-evidence commit in this workflow lineage. (role: release-workflow contributor; confidence: high; commits: e9a46d218504, eed27fdb88c0; files: .github/workflows/openclaw-release-publish.yml, .github/workflows/openclaw-npm-release.yml, scripts/validate-authorized-beta-focused-evidence.mts)
  • Peter Steinberger: Recent history on the release publication workflow includes work adjacent to this authorization surface. (role: recent adjacent contributor; confidence: low; commits: bca206d794bd; files: .github/workflows/openclaw-release-publish.yml)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add redacted allowed and nearest-forbidden no-write traces from the protected-tag publication path before any registry write.
  • State the post-beta removal owner and trigger for this one-time evidence mode.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-23T21:26:32.038Z sha a441e68caec7e2031a53af9a3ce22b96c7bcbbf8 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-23T21:52:21.196Z sha 577718eff585bfc5968f7544deb59647f091d4f1 :: needs real behavior proof before merge. :: none

@vincentkoc
vincentkoc force-pushed the release/beta3-authorized-focused-eed27fdb branch from a441e68 to ef71d04 Compare August 23, 2026 21:27
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact signed head: ef71d04e7ab2a7c4c80219bb2b90170f43f19e49.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc force-pushed the release/beta3-authorized-focused-eed27fdb branch from ef71d04 to 577718e Compare August 23, 2026 21:44
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact signed head: 577718eff585bfc5968f7544deb59647f091d4f1.

Verify mode now executes dependency-free in both publication consumer layouts; release-plan and plugin-trust modules are dynamically loaded only by the attested create path. The staged-layout regression tests cover the downloaded parent verifier and npm sparse scripts checkout.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@vincentkoc

Copy link
Copy Markdown
Member Author

Release-owner decision and rank-up disposition for exact head 577718eff585bfc5968f7544deb59647f091d4f1:

  • Approved: the bounded v2026.8.1-beta.3-only authorization exception is explicitly accepted.
  • Verified: the SHA-bound protected release tag ruleset was independently checked.
  • Covered before landing: negative candidate/artifact/inventory checks and the exact staged parent-download and npm sparse-checkout verifier layouts prove the dependency-free verifier fails closed before publisher logic.
  • Deferred until the workflow exists on the protected ref: a live allowed producer-to-publisher trace cannot exist before this workflow lands. Before any registry write, release execution must record the protected-tag focused attestation and a no-write npm preflight, including the nearest-forbidden rejection.

This handles the owner-approval rank-up move now and intentionally defers the live final-effect trace to the mandatory post-land, pre-write gate. No publication workflow or tag is being dispatched or created by this merge.

@vincentkoc
vincentkoc force-pushed the release/beta3-authorized-focused-eed27fdb branch from 577718e to e9a46d2 Compare August 23, 2026 22:06
@vincentkoc

Copy link
Copy Markdown
Member Author

The release-owner approval and rank-up disposition recorded above applies unchanged to exact signed head e9a46d2185043c2d86e6b06943ed6fc9725141a7.

The head change is limited to a behavior-equivalent consolidation of the same focused/full evidence tuple comparison plus a regression guard for actionlint's 64 KiB embedded-script boundary. No authorization policy, candidate binding, attestation check, publication behavior, tag, or registry state changed.

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact signed head: e9a46d2185043c2d86e6b06943ed6fc9725141a7.

This head only refactors duplicated focused/full evidence tuple validation and local names to keep the embedded publish script below actionlint's 64 KiB ShellCheck boundary. The exact run/attempt/target-SHA checks are preserved, full local actionlint passes, and a focused size regression assertion was added.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 23, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Release-owner rank-up disposition for exact head e9a46d2185043c2d86e6b06943ed6fc9725141a7:

  • Live allowed and nearest-forbidden protected-tag traces are mandatory after default-branch workflow registration and before any registry write.
  • Removal owner: release tooling maintainers.
  • Removal trigger: immediately after v2026.8.1-beta.3 postpublish verification completes.

This is the authorized proof order for the one-time beta.3 route; it does not authorize a tag, workflow dispatch, or registry mutation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant