Skip to content

fix(release): bind reusable evidence verifier source - #123115

Merged
vincentkoc merged 1 commit into
mainfrom
fix/release-verifier-source
Aug 13, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/release-verifier-source

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where Full Release Validation evidence reuse would reject valid prior runs when the trusted workflow SHA differed from the validator checkout, forcing an unnecessary full validation instead of selecting the next reusable candidate.

Observed during the 2026.8.1-beta.2 release qualification in Full Release Validation run https://github.com/openclaw/openclaw/actions/runs/31688521670.

Why This Change Was Made

The evidence-reuse resolver now binds release-ci-summary.mjs to the trusted workflow SHA and the exact validator source file through its existing verifier-source contract. Validator failures retain fail-open candidate scanning, but surface the production JSON error as a single bounded diagnostic; malformed output keeps the generic fallback.

No release refs, workflows, package versions, or publish behavior are changed.

User Impact

Release operators can reuse valid exact-SHA or changelog-only validation evidence without silently falling back to long full validation because the verifier source identity was implicit.

Production LOC: +19/-1 (net +18) | Tests: +49/-9

The production growth establishes the verifier-source ownership boundary and preserves bounded, actionable failure diagnostics.

Evidence

  • node scripts/run-vitest.mjs test/scripts/find-reusable-release-validation.test.ts
    • 45 passed
    • proves verifier source arguments are mandatory
    • proves a structured validator rejection is flattened, bounded, surfaced, and the next candidate is selected
    • proves malformed validator output uses the generic diagnostic and still selects the next candidate
  • bash -n scripts/github/find-reusable-release-validation.sh
  • node scripts/run-oxlint.mjs --tsconfig test/tsconfig/tsconfig.test.root.json test/scripts/find-reusable-release-validation.test.ts
  • pnpm format:check --no-error-on-unmatched-pattern -- scripts/github/find-reusable-release-validation.sh test/scripts/find-reusable-release-validation.test.ts
  • git diff --check

No changelog entry: release-tooling-only blocker repair with no shipped product behavior change.

@clawsweeper

clawsweeper Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc

vincentkoc commented Aug 13, 2026 •

Copy link
Copy Markdown
Member Author

@clawsweeper review

@vincentkoc vincentkoc self-assigned this Aug 13, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Aug 13, 2026
@clawsweeper

clawsweeper Bot commented Aug 13, 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:

@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 13, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 13, 2026 10:08
@clawsweeper

clawsweeper Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 6:14 AM ET / 10:14 UTC.

ClawSweeper review

What this changes

This PR passes the trusted workflow SHA and the invoked validator file to reusable release-evidence validation, while reporting bounded structured rejection details before trying the next candidate.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open. The patch is the narrow resolver-side repair for an existing verifier-source contract, with no blocking correctness finding; maintainer ownership and the protected label require normal exact-head CI and the planned frozen-SHA release gate rather than automated closure.

Priority: P2
Reviewed head: ff146963c5e104af6f625680c01ad1eb3bc33468

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch cleanly matches the existing verifier contract and has focused boundary coverage; final runtime observation belongs to the planned release gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored release-tooling repair has an explicitly planned immediate post-merge frozen-SHA validation gate; the reported focused tests are supplemental.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored release-tooling repair has an explicitly planned immediate post-merge frozen-SHA validation gate; the reported focused tests are supplemental.
Evidence reviewed 7 items Current resolver omits the verifier-source pair: Current main invokes the validator with the trusted workflow ref and JSON mode but not the source SHA/file pair, although it later requires the returned verifier source SHA to equal the workflow SHA.
Verifier contract supports the proposed arguments: The validator reads an explicit verifier source file and rejects it when its bytes differ from the supplied source SHA; this is the ownership boundary the resolver now supplies.
Workflow supplies the trusted SHA: The Full Release Validation workflow checks out the trusted workflow helper at github.sha and passes that SHA as --workflow-sha to the resolver.
Findings None None.
Security None None.

How this fits together

Full Release Validation can reuse a prior successful run when strict evidence proves it covers the current release target. The resolver scans prior runs, asks the trusted validator to verify them, then either selects reusable evidence or falls back to a full validation.

flowchart LR
  A[Prior validation runs] --> B[Evidence reuse resolver]
  B --> C[Trusted validator]
  C --> D{Evidence valid?}
  D -->|Yes| E[Reuse prior evidence]
  D -->|No| F[Bounded diagnostic]
  F --> B
  B --> G[Full validation fallback]
Loading

Before merge

  • Resolve merge risk (P1) - The production change is net +18 lines in release automation; focused fake-validator coverage cannot itself observe the frozen trusted-workflow boundary that will run after merge.
  • Complete next step (P2) - No repair lane is needed; this maintainer-owned protected PR needs normal exact-head CI and release-owner handling.
Agent review details

Security

None.

PR surface

Tests +40, Other +18. Total +58 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 49 9 +40
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 19 1 +18
Total 2 68 10 +58

Review metrics

Metric Value Why it matters
Production versus test delta production +19/-1 (net +18); tests +49/-9 (net +40) The added source-binding and bounded diagnostic path is justified by the existing verifier contract, but it changes release-evidence selection.

Stored data model

Persistent data-model change detected: serialized state: test/scripts/find-reusable-release-validation.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Use the planned frozen-SHA gate (recommended)
    Land only after exact-head CI is green, then require the planned Full Release Validation run to verify evidence reuse before publishing.

Technical review

Best possible solution:

Retain one resolver invocation that supplies the trusted SHA and the exact validator file, then use the frozen-SHA Full Release Validation gate before any publish decision.

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

No high-confidence live reproduction was inspected: source and focused fixtures establish the omitted contract arguments, while the cited release run could not be read because GitHub network access was unavailable.

Is this the best way to solve the issue?

Yes. The resolver owns validator invocation, and the existing validator already defines the SHA-plus-file contract, so forwarding that pair is cleaner than adding a parallel validation path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2278ca6952ea.

Labels

Label changes:

  • add P2: This affects release-operator validation efficiency and evidence selection, without changing shipped runtime behavior.
  • add merge-risk: 🚨 automation: The patch changes the release-validation automation path that decides whether prior evidence can be reused.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored release-tooling repair has an explicitly planned immediate post-merge frozen-SHA validation gate; the reported focused tests are supplemental.

Label justifications:

  • P2: This affects release-operator validation efficiency and evidence selection, without changing shipped runtime behavior.
  • merge-risk: 🚨 automation: The patch changes the release-validation automation path that decides whether prior evidence can be reused.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored release-tooling repair has an explicitly planned immediate post-merge frozen-SHA validation gate; the reported focused tests are supplemental.

Evidence

What I checked:

Likely related people:

  • joshavant: Current blame attributes both the resolver invocation and verifier-source identity logic to the initial reusable-evidence implementation. (role: initial release-evidence implementation author; confidence: high; commits: 0901efe3ddf6; files: scripts/github/find-reusable-release-validation.sh, scripts/release-ci-summary.mjs, scripts/validate-full-release-validation-evidence.mjs)

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 (1 earlier review cycle)
  • reviewed 2026-08-13T10:08:50.183Z sha ff14696 :: needs maintainer review before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper checklist disposition:

  • Release-owner review is complete: independent exact-head review found no findings and judged this the best fix at ff146963c5e104af6f625680c01ad1eb3bc33468.
  • The requested real evidence-reuse trace is intentionally the immediate post-merge release gate. The trusted workflow SHA must contain this fix; Full Release Validation will run against the frozen release SHA before any publish. A failed reuse or validation run remains a hard stop.

No ClawSweeper code repair or non-optional rank-up move remains.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 13, 2026
@vincentkoc
vincentkoc merged commit 9794a4a into main Aug 13, 2026
156 checks passed
@vincentkoc
vincentkoc deleted the fix/release-verifier-source branch August 13, 2026 10:19
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
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. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant