Skip to content

fix(ci): restore release validation gates - #129761

Closed
vincentkoc wants to merge 1 commit into
mainfrom
fix-ci-release-validation-github-client
Closed

vincentkoc wants to merge 1 commit into
mainfrom
fix-ci-release-validation-github-client

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

Related: #129743

Supersedes: #129733

What Problem This Solves

Fixes the remaining release-validation declaration weakness exposed by two current-main CI regressions that formed a hard exact-head dependency cycle:

  • The release-validation campaign declaration failed check-lint because its GitHub client parameter used explicit any.
  • Two QA Lab cleanup fixtures failed check-test-types because they still used Crabline's retired smoke-artifact shape.

The prior lint-only head failed on the QA fixtures in https://github.com/openclaw/openclaw/actions/runs/32920876010/job/98034237450. Conversely, #129743's exact head fixed those fixtures but failed on current-main's release-validation lint error in https://github.com/openclaw/openclaw/actions/runs/32919562454/job/98030450577. Neither isolated PR could produce a green merge-ref CI result.

Why This Change Was Made

The first amended head combined both independently reviewed canonical repairs. During the required rebase, main commit 637da87a5da10cf079224fcd102725bce1c5ee57 landed the byte-identical #129743 QA fixture repair and a broader declaration based on Record<string, unknown> and untyped pagination.

This PR now keeps only the remaining strict delta:

  • Model the exact issue operations, request payloads, pagination contract, and consumed response shape used by the publisher.
  • Make the test harness follow Octokit's success-or-throw issue lookup contract instead of returning an impossible successful undefined response.

The QA fixtures from #129743 are already present in the current base, so they are not duplicated as no-op changes. This supersedes #129733 because that uneditable branch mixed the broader declaration shape with overlapping QA commits.

User Impact

No product behavior changes. Maintainers retain green release-validation lint and QA Lab typecheck gates with a closed GitHub API contract rather than a type-laundering boundary.

Evidence

  • Baseline lint reproduction: release-validation-campaign.d.mts:31:11 no-explicit-any.
  • Prior exact-head QA type failures: missing providerReadinessArtifactPath in both cleanup fixtures.
  • Focused script oxlint: passed.
  • pnpm tsgo:scripts: passed.
  • pnpm tsgo:test:root: passed.
  • Release-validation campaign Vitest: 8/8 passed.
  • pnpm tsgo:extensions:test: passed on the rebased current-main QA repair.
  • pnpm test:extension qa-lab -- extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts extensions/qa-lab/src/suite-runtime-parity-runner.cleanup.test.ts: 2 files, 13/13 passed.
  • node scripts/check-changed.mjs -- scripts/github/release-validation-campaign.d.mts test/scripts/release-validation-campaign.test.ts: passed.
  • Test audit: clean; the existing harness now matches the dependency contract and adds no test-only production seam.
  • Codex/Sol autoreview: no accepted/actionable findings.
  • Production LOC: +0/-0; tooling declarations: +83/-20; tests: +7/-3.

Co-authored contribution preserved from Dallin Romney's public commit in #129733.

AI-assisted; implementation and final diff were reviewed locally.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc vincentkoc self-assigned this Aug 26, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 26, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 26, 2026 01:56
@vincentkoc
vincentkoc force-pushed the fix-ci-release-validation-github-client branch from 6d69617 to 320ac3e Compare August 26, 2026 02:14
@vincentkoc vincentkoc changed the title fix(ci): type release validation GitHub client fix(ci): restore release validation gates Aug 26, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head is now 320ac3ea6033bf0637795ebb1e9f60e3de5fafb0. The amended four-file scope combines the two independently reviewed fixes required to break the current-main lint/typecheck dependency cycle. Local focused gates, combined changed-file gates, test audit, and Codex/Sol autoreview are clean.

@clawsweeper

clawsweeper Bot commented Aug 26, 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 fix-ci-release-validation-github-client branch from 320ac3e to 7031952 Compare August 26, 2026 02:17
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head is now 70319520c0e868ebd0f9eed8346578f080463275 after rebasing onto 637da87a5da10cf079224fcd102725bce1c5ee57. Current main already contains the byte-identical #129743 QA fixture repair; this PR now replaces the broad Record<string, unknown> declaration with the independently reviewed closed request/response contract and keeps the success-or-throw harness correction. Focused script and QA gates, changed-file gates, test audit, and Codex/Sol autoreview are clean.

@clawsweeper

clawsweeper Bot commented Aug 26, 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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 10:22 PM ET / August 26, 2026, 02:22 UTC.

ClawSweeper review

What this changes

The PR replaces a loose release-validation GitHub client declaration with concrete request and response shapes and makes the test harness throw for an absent issue.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness finding: the declaration now mirrors the publisher’s concrete GitHub Issues calls, and the harness no longer returns an impossible successful missing-issue response. This maintainer-authored PR remains necessary until exact-head CI completes.

Priority: P3
Reviewed head: 70319520c0e868ebd0f9eed8346578f080463275

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused patch has no identified correctness defect; pending exact-head automation remains the merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored CI declaration repair is exempt from the external-contributor proof gate; exact-head automation is the relevant after-change evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored CI declaration repair is exempt from the external-contributor proof gate; exact-head automation is the relevant after-change evidence.
Evidence reviewed 5 items Publisher operation map: The publisher paginates labeled issues, reads an optional selected issue, ensures labels, creates or updates an issue, reads it back, and closes older campaigns; the proposed declaration covers those operations and consumed fields.
Exact-head declaration delta: The branch replaces Record/unknown method declarations with request shapes matching the publisher calls and response fields it reads, without changing the workflow or runtime JavaScript.
Harness contract: The harness now throws before returning data for a missing issue, matching the publisher’s successful-read assumption.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run test/scripts/release-validation-campaign.test.ts

Result: FAIL (failed) — step 1 run node scripts/run-vitest.mjs run test/scripts/release-validation-campaign.test.ts: previous terminal command was still running after 30 seconds: "node scripts/run-vitest.mjs run test/scripts/release-validation-campaign.test.ts"

[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-129761-W1risN/target

 ✓  tooling  test/scripts/release-validation-campaign.test.ts (8 tests) 12ms

 Test Files  1 passed (1)
      Tests  8 passed (8)
   Start at  02:23:37
   Duration  415ms (transform 201ms, setup 50ms, import 18ms, tests 12ms, environment 0ms)

[test] passed 1 Vitest shard in 6.61s

Assertions:

  • FAIL expect_output: release-validation-campaign.test.ts

How this fits together

The release-validation workflow validates a generated campaign artifact, then publishes it as GitHub campaign issues. The declaration and harness define the typed boundary used by that publisher and its tests.

flowchart LR
  A[Release artifact] --> B[Artifact validation]
  B --> C[Campaign publisher]
  C --> D[GitHub Issues client]
  D --> E[Campaign issue state]
  F[Test harness] --> C
Loading

Before merge

  • Resolve merge risk (P1) - The narrowed local contract is coupled to the pinned actions/github-script GitHub client, so the pending exact-head automation gates should complete before merge.
  • Complete next step (P2) - The existing PR already owns the focused implementation; wait for exact-head checks rather than creating a separate repair lane.
Agent review details

Security

None.

PR surface

Tests +4, Other +63. Total +67 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 3 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 83 20 +63
Total 2 90 23 +67

Review metrics

Metric Value Why it matters
Production versus test delta tooling declaration +83/-20; tests +7/-3; runtime JavaScript 0 The declaration growth replaces a broad client boundary with the publisher’s explicit operations and consumed responses.

Merge-risk options

Maintainer options:

  1. Verify the exact head (recommended)
    Merge after the pending release-validation lint, type, and focused test gates pass on commit 7031952.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Require pending exact-head check-lint, check-test-types, and release-validation campaign test gates to pass.

Technical review

Best possible solution:

Retain the closed local declaration and merge after exact-head script lint, type, and focused campaign checks pass.

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

Yes, in source: current main’s loose declaration and the publisher’s concrete call sites establish the focused type boundary; this read-only review did not execute tests.

Is this the best way to solve the issue?

Yes: typing the existing publisher operations at its declaration boundary is narrower and more maintainable than weakening lint or changing runtime behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 637da87a5da1.

Labels

Label changes:

  • add P3: This is a narrowly scoped CI contract repair with no changed end-user runtime behavior.
  • add merge-risk: 🚨 automation: The changed declaration defines the GitHub client boundary for release-validation publishing automation.
  • 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 MEMBER-authored CI declaration repair is exempt from the external-contributor proof gate; exact-head automation is the relevant after-change evidence.

Label justifications:

  • P3: This is a narrowly scoped CI contract repair with no changed end-user runtime behavior.
  • merge-risk: 🚨 automation: The changed declaration defines the GitHub client boundary for release-validation publishing automation.
  • 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 MEMBER-authored CI declaration repair is exempt from the external-contributor proof gate; exact-head automation is the relevant after-change evidence.

Evidence

What I checked:

Likely related people:

  • Patrick Erichsen: Commit 004b06b introduced the campaign workflow, publisher, declaration, and focused tests together. (role: feature introducer; confidence: high; commits: 004b06b6a02f; files: scripts/github/release-validation-campaign.mjs, scripts/github/release-validation-campaign.d.mts, test/scripts/release-validation-campaign.test.ts)

Rank-up moves

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

  • Let the exact-head release-validation lint, type, and focused test gates finish green.

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.

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper automerge

Special instructions:
Require exact-head openclaw/ci-gate success for 70319520c0e868ebd0f9eed8346578f080463275, a fresh no-findings ClawSweeper review on that head, and a successful clownfish/exact-merge check on GitHub's current matching test merge before squash merge. Do not rebase solely because main advanced.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper automerge is enabled.

  • Head: 70319520c0e8
  • Label: clawsweeper:automerge
  • Action: exact-head review queued (workflow sweep.yml, event repository_dispatch).
  • Flow: review this head, repair/rebase only if needed, then re-review the exact repaired head before merge.

Draft PRs stay fix-only until GitHub marks them ready for review. Pause with /clawsweeper stop.

Automerge progress:

  • 2026-08-26 02:43:20 UTC review queued 70319520c0e8 (queued)

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge label Aug 26, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

/clownfish automerge

@openclaw-clownfish openclaw-clownfish Bot added the clownfish:automerge Maintainer opted this Clownfish PR into bounded ClawSweeper-reviewed automerge label Aug 26, 2026
@openclaw-clownfish

Copy link
Copy Markdown
Contributor

Clownfish is on the reef for this PR. 🐠

I tagged clownfish:automerge and sent ClawSweeper over this exact head. If the sweep finds rough coral, failing checks, or needs-human, I will take another bounded repair lap and ask for a fresh review.

A maintainer can call /clownfish stop any time and I will drift this back to human review.

@vincentkoc

Copy link
Copy Markdown
Member Author

/clownfish stop

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper stop

@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞✅
Got it. ClawSweeper will leave this item for human review.

I added clawsweeper:human-review, removed clawsweeper:automerge, and paused the automation trail until a maintainer asks again.

@openclaw-clownfish openclaw-clownfish Bot added the clownfish Tracked by Clownfish automation label Aug 26, 2026
@openclaw-clownfish

Copy link
Copy Markdown
Contributor

Got it. Clownfish is floating this back to human review. 🐠

I kept the regular clownfish label on it and paused the automation current until a maintainer calls me back in.

@clawsweeper clawsweeper Bot added clawsweeper:human-review Needs maintainer review before ClawSweeper can continue and removed clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge labels Aug 26, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Superseded by #129783, landed as 5e81a34. It carries the same two-file release-validation contract and missing-issue harness repair, with Dallin Romney's co-author credit preserved, so no unique release-gate fix remains here.

@vincentkoc vincentkoc closed this Aug 26, 2026
@RomneyDa
RomneyDa deleted the fix-ci-release-validation-github-client branch October 22, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:human-review Needs maintainer review before ClawSweeper can continue clownfish:automerge Maintainer opted this Clownfish PR into bounded ClawSweeper-reviewed automerge clownfish Tracked by Clownfish automation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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