Skip to content

fix(ci): narrow release validation GitHub contract - #129783

Merged
steipete merged 1 commit into
mainfrom
fix/release-validation-exact-contract
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/release-validation-exact-contract

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Supersedes #129733.

What Problem This Solves

Fixes a static-analysis ownership issue where the release-validation publisher's injected GitHub client is declared with Record<string, unknown> request bags and unknown responses. That makes lint green but discards the exact API contract at the boundary.

Why This Change Was Made

Defines only the GitHub Issues methods the publisher calls, with exact request and response shapes for list, get, label, comment, create, update, and pagination. The test harness now rejects an impossible missing issues.get response rather than returning undefined under a non-optional contract.

This is the focused replacement requested by ClawSweeper after current main absorbed the separate QA fixture repair. It preserves Dallin Romney's original contribution through the commit trailer.

This PR is AI-assisted and manually reviewed.

User Impact

No user-visible runtime behavior changes. CI and future maintenance now get a real typed GitHub boundary instead of a checker-only broad type that permits invalid request shapes to compile.

Evidence

  • Current main directly inspected: ReleaseValidationCampaignGitHubClient uses broad Record<string, unknown> request types and unknown responses.
  • node scripts/run-vitest.mjs test/scripts/release-validation-campaign.test.ts — 8/8 passed.
  • node scripts/check-changed.mjs -- scripts/github/release-validation-campaign.d.mts test/scripts/release-validation-campaign.test.ts — passed formatting, script/test typechecks, lint, and policy guards.
  • git diff --check — passed.
  • Final branch autoreview — no accepted/actionable P0/P1 findings.
  • Production runtime LOC: 0. Tooling declaration: +46/-11. Tests: +7/-3.

No QA Lab fixture edits remain in this branch; those are already on main.

Replace the checker-only broad Octokit shape with exact issue request and response contracts, and make the test harness reject impossible missing issue responses.

Co-authored-by: Dallin Romney <[email protected]>
@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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 26, 2026
@steipete
steipete marked this pull request as ready for review August 26, 2026 02:29
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready on exact head 5b86e6b05403b7747f6db943c6e4016ba082085c.

  • Exact-head CI: run 32922915349 — green.
  • node scripts/run-vitest.mjs test/scripts/release-validation-campaign.test.ts — 8/8 passed.
  • Targeted node scripts/check-changed.mjs — passed formatting, script/test typechecks, lint, and policy guards.
  • git diff --check — passed.
  • Final branch autoreview — no accepted/actionable P0/P1 findings.
  • Native review artifacts — READY FOR /prepare-pr, findings 0.
  • Production runtime LOC: 0; tooling +46/-11; tests +7/-3.
  • Contributor credit: Dallin Romney is preserved in the commit trailer.
  • Known proof gaps: none for this declaration/test-harness repair.

Current main's broad Record<string, unknown> boundary is directly replaced by exact per-method request/response contracts; no QA fixture scope remains.

@steipete
steipete merged commit 5e81a34 into main Aug 26, 2026
170 checks passed
@steipete
steipete deleted the fix/release-validation-exact-contract branch August 26, 2026 02:48
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
Replace the checker-only broad Octokit shape with exact issue request and response contracts, and make the test harness reject impossible missing issue responses.

Co-authored-by: Dallin Romney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant