Skip to content

fix(ci): skip SDK rendering for identical revisions - #147572

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-sdk-identical-ref-diff-20260914
Sep 14, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-sdk-identical-ref-diff-20260914

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

SDK API comparisons installed and rendered revisions even when different refs resolved to the same commit. That redundant work could fail an unchanged comparison.

User Impact

Identical revisions now produce the normal empty API diff without creating render worktrees or installing dependencies. Runtime and published plugin SDK behavior are unchanged.

Why This Change Was Made

Resolve and validate every ref first, then render only unequal comparisons. Both paths use the same ordered payload and digest constructor, preserving JSON, reports, release evidence, and acknowledgement handling.

Regression coverage checks aliases, dirty caller state, equal and mixed selectors, invalid inputs, and cancellation across distinct commits. Tooling and internal implementation: +18 net lines; tests: +127.

Evidence

The shortcut avoids the equal-revision renderer path. The separate renderer heap-exhaustion issue for mixed or distinct revisions remains outside this change.

Focused base-red / candidate-green proof

  • Blacksmith Testbox tbx_01m2f3eze3gdh1xr0hvw5g0dj7, run 34806929929, verified source f8de8e16ce8cd72b5e742c60e682b199e474f21b and tree c12eaa234581d9a68bace1ef400c06163ab802e0.
  • Base red: retained the candidate equal-alias regression test while restoring both production files from merge base d271a071a877d59f2f6377c3f3432e7fa0370472. The fake pnpm exited 97 and created PNPM_MARKER; the outer CLI exited 1, and stderr contained Plugin SDK revision install failed. The focused Vitest invocation failed exactly that one test with nine filtered. Output SHA-256: stdout d75c5ff97ac32ec72d661ed624d282dc2116100b804ce3a8c9ba7eb12fff0c9c; stderr 644741fc845ef40106e8774b09fe8f6a64376d00d8e69d6ec58b9ef7a2915436.
  • Candidate green: restored both exact candidate blobs and reran only the equal-alias test. Result: one passed, nine filtered, no install marker, clean candidate tree. Output SHA-256: stdout f2d27f1f3c252c33aa77c07636811dcbc81694fd8b37aad4355baf8bcb13d9e0; stderr 3587272319976adc514cfec76e1d4e69dd35c53904ff3f2ad6f211d811414a10.

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 23:58
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added 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 Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 8:28 PM ET / September 14, 2026, 00:28 UTC (Revision 2).

ClawSweeper review

What this changes

Skip dependency installation and SDK API rendering when comparison refs resolve to the same commit, while preserving reports, release evidence, and acknowledgement digests.

Merge readiness

✅ Ready for maintainer review

The PR remains useful and has no blocking findings. Current main and v2026.9.4 still render identical revisions; this focused fix preserves comparison outputs and release checks. Maintainer-authored work also remains protected from automatic closure.

Priority: P2
Reviewed head: f8de8e16ce8cd72b5e742c60e682b199e474f21b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with useful CLI regression coverage, successful reported validation, and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. CLI fixture tests exercise the changed scheduler and evidence outputs, and the cited CI run succeeded; neither is presented as a live release run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. CLI fixture tests exercise the changed scheduler and evidence outputs, and the cited CI run succeeded; neither is presented as a live release run.
Evidence reviewed 9 items Current main still needs the fix: The fetched main revision unconditionally includes headCommit in the rendering set, even when every predecessor resolves to that commit. The three touched files are unchanged between the pinned merge base and fetched main.
Latest release retains redundant rendering: The supplied latest release, v2026.9.4, also includes the head commit in the unconditional render set; this optimization is absent there.
Shortcut preserves validation and output ownership: Refs and release versions are validated before filtering render work. Identical comparisons use the shared digest constructor; unequal comparisons retain the existing renderer, comparison, reporting, and evidence paths.
Findings None None.
Security None None.

How this fits together

OpenClaw’s SDK comparison tool checks plugin-facing APIs between Git revisions for CI and release validation. It produces readable reports and machine-readable evidence used to acknowledge API changes before publication.

flowchart TD
  A[Git comparison refs] --> B[Resolve and validate commits]
  B --> C{Identical commits?}
  C -->|Yes| D[Empty API diff]
  C -->|No| E[Install and render unique revisions]
  E --> F[Compare API surfaces]
  D --> G[Reports and release evidence]
  F --> G
  G --> H[Acknowledge API changes]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +4, Tests +127, Other +14. Total +145 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 8 4 +4
Tests 1 174 47 +127
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 26 12 +14
Total 3 208 63 +145

Review metrics

None.

Technical review

Best possible solution:

Keep one comparison pipeline that derives empty diffs from validated commit equality and renders only genuinely different revisions.

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

Yes, from source: comparing HEAD with an alias of HEAD on current main still schedules installation and rendering, allowing either to fail an unchanged comparison. This review did not execute that path.

Is this the best way to solve the issue?

Yes. Validated commit equality provides a narrow shortcut, while the shared digest constructor and existing evidence validator preserve output compatibility.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1a48d3401a43.

Labels

Label justifications:

  • P2: This bounded tooling fix prevents unnecessary installation and rendering failures during unchanged SDK comparisons.
  • 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: The MEMBER-authored PR is exempt from the external-contributor proof gate. CLI fixture tests exercise the changed scheduler and evidence outputs, and the cited CI run succeeded; neither is presented as a live release run.

Evidence

What I checked:

  • Current main still needs the fix: The fetched main revision unconditionally includes headCommit in the rendering set, even when every predecessor resolves to that commit. The three touched files are unchanged between the pinned merge base and fetched main. (scripts/plugin-sdk-api-diff.mts:269, 1a48d3401a43)
  • Latest release retains redundant rendering: The supplied latest release, v2026.9.4, also includes the head commit in the unconditional render set; this optimization is absent there. (scripts/plugin-sdk-api-diff.mts:269, 3a9d69db306c)
  • Shortcut preserves validation and output ownership: Refs and release versions are validated before filtering render work. Identical comparisons use the shared digest constructor; unequal comparisons retain the existing renderer, comparison, reporting, and evidence paths. (scripts/plugin-sdk-api-diff.mts:248, f8de8e16ce8c)
  • Internal helper, unchanged published SDK: The new constructor has two internal production call sites. Reference and inventory searches found no public SDK subpath or plugin-facing re-export for api-diff; package exports and entrypoint inventories are unchanged. (src/plugin-sdk/api-diff.ts:65, f8de8e16ce8c)
  • Regression coverage exercises the CLI: The tests invoke the production CLI in temporary Git repositories, covering equal aliases, dirty caller preservation, invalid refs and versions, mixed selectors, and cancellation with distinct commits. Install commands are substituted, so these are supplemental fixture tests rather than a live release run. (test/scripts/plugin-sdk-api-diff.test.ts:78, f8de8e16ce8c)
  • Release contract remains intact: Release documentation requires acknowledgement only for API changes. The unchanged evidence validator recomputes the ordered payload digest and checks release, tooling, and selector identities; the shortcut supplies the same empty payload. Public docs: docs/reference/RELEASING.md. (docs/reference/RELEASING.md:352, f8de8e16ce8c)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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-09-14T00:07:00.965Z sha f8de8e1 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc merged commit 2b26414 into main Sep 14, 2026
272 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-sdk-identical-ref-diff-20260914 branch September 14, 2026 04:54
vincentkoc added a commit that referenced this pull request Sep 14, 2026
* commit 'e3d8d0078369b21223c70028c4502c89f1420897': (51 commits)
  fix: background requests delay opening chats (#147845)
  chore(i18n): refresh native locales (#147899)
  feat: start remote sessions without a repository (#147773)
  fix(slack): retire probe sockets after timeout (#147846)
  refactor(agents): share theme ANSI color encoding (#147838)
  improve(memory): bound vector recall decision counts (#147900)
  improve(browser): narrow dashboard lifetime rechecks (#147892)
  test(discord): compact lifecycle matrices (#147855)
  fix(agents): use exact model rows for harness support (#147849)
  test(agents): compact embedded lifecycle matrices (#147856)
  test(agents): compact embedded admission matrices (#147853)
  test(cli): compact node management matrices (#147854)
  feat(artifacts): select assistant-delivered files by run (#147682)
  improve: reduce event-loop work when recording prompts (#147876)
  fix: preserve readable generated image and video filenames (#147833)
  fix(ci): skip SDK rendering for identical revisions (#147572)
  fix: prevent false process failures and stalled background waits (#147871)
  fix(ui): restore live updates when retrying chat history (#147865)
  fix(ui): preserve text and image order in assistant replies (#147731)
  refactor(qa-lab): reuse approval result formatter (#147867)
  ...
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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