Skip to content

refactor(plugin-sdk): remove unused private QA helpers - #119437

Merged
steipete merged 1 commit into
mainfrom
codex/loc-0804-sdk-luem8u
Aug 5, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/loc-0804-sdk-luem8u

Conversation

@steipete

@steipete steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Private, unpublished QA and facade SDK modules retained unused output tee and duplicate helpers, while synchronous/asynchronous status adapters repeated projections. This is part of a maintainer-requested project-wide production LOC reduction campaign.

Why This Change Was Made

Remove unreachable private helpers and their obsolete test coverage, and share the existing status projection while preserving every public Plugin SDK export and printed declaration.

User Impact

Published Plugin SDK behavior and public types are unchanged; removes 121 production lines and 23 obsolete test lines.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 5, 2026
@steipete
steipete marked this pull request as ready for review August 5, 2026 02:50
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 4, 2026, 11:04 PM ET / August 5, 2026, 03:04 UTC.

ClawSweeper review

What this changes

The PR removes unused private QA and facade helpers and shares the identical status-snapshot projection used by synchronous and asynchronous Plugin SDK adapters.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

No actionable defect found: the branch removes private, unreferenced helpers and preserves status-adapter behavior. Keep it open for protected maintainer-label handling and completion of the exact-head build-artifact check.

Priority: P3
Reviewed head: 00f1ce2d757b7d81cfb517ff83e563cbab5ddfd4
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A well-scoped cleanup with no code finding and strong focused validation; completion of the remaining exact-head check is still needed before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labeled internal cleanup has no directly observable user flow; focused SDK checks and the successful named proof check are the relevant evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labeled internal cleanup has no directly observable user flow; focused SDK checks and the successful named proof check are the relevant evidence.
Evidence reviewed 6 items Private QA surface: QA runtime is explicitly classified as a private local-only subpath and excluded from packaged runtime and declarations, so deleting its unused exports does not remove a published Plugin SDK contract.
Live QA ownership: The remaining live artifact formatting is already owned by the QA Lab plugin and called by its Telegram QA CLI, rather than by the deleted SDK helpers.
Behavior-preserving adapter refactor: The new private helper retains the prior flattened snapshot and then supplies the same runtime and probe fields for both sync and async adapters.
Findings None None.
Security None None.

How this fits together

The Plugin SDK is the boundary through which plugins call OpenClaw. Channel plugins use its status adapters to turn account, runtime, and probe inputs into status output, while QA helpers support internal test-only workflows.

flowchart LR
A[Channel plugin] --> B[Status adapter]
B --> C[Shared snapshot projection]
C --> D[Channel status output]
E[Private QA workflow] --> F[QA runtime helpers]
F --> G[QA execution]
Loading

Decision needed

Question Recommendation
Should this protected maintainer cleanup be accepted once the remaining exact-head build-artifacts check completes? Accept the cleanup: Merge after the remaining exact-head check succeeds because the removed helpers are private and unreferenced.

Why: The protected maintainer label requires an explicit human acceptance even though source review found no correctness or SDK-contract issue.

Before merge

  • Add real behavior proof - Not applicable: This maintainer-labeled internal cleanup has no directly observable user flow; focused SDK checks and the successful named proof check are the relevant evidence.
  • Resolve merge risk (P1) - The supplied check state still had the exact-head build-artifacts job in progress, so this is not yet a merge-ready verdict.
  • Complete next step (P2) - No repair is needed; protected-label policy leaves final acceptance to a maintainer after the exact-head build-artifact check completes.
Agent review details

Security

None.

PR surface

Source -121, Tests -23. Total -144 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 22 143 -121
Tests 1 0 23 -23
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 22 166 -144

Review metrics

Metric Value Why it matters
Production vs test LOC production +22/-143 (net -121); tests +0/-23 (net -23) The production delta is a net reduction; the small added private helper replaces duplicated synchronous and asynchronous projection logic.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Merge the focused deletion after protected maintainer review confirms the remaining exact-head check is green; retain the unchanged public status-helper subpath and QA Lab-owned live helpers.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Merge the focused deletion after protected maintainer review confirms the remaining exact-head check is green; retain the unchanged public status-helper subpath and QA Lab-owned live helpers.

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

Not applicable: this is a behavior-neutral cleanup, so source/caller analysis and focused SDK validation are the relevant verification path.

Is this the best way to solve the issue?

Yes: removing unreferenced private helpers and centralizing the identical status projection is the narrowest maintainable solution without expanding the public SDK.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 22de30f99821.

Labels

Label changes:

  • add P3: This is a low-risk internal cleanup with no demonstrated user-facing impact.
  • 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-labeled internal cleanup has no directly observable user flow; focused SDK checks and the successful named proof check are the relevant evidence.

Label justifications:

  • P3: This is a low-risk internal cleanup with no demonstrated user-facing impact.
  • 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-labeled internal cleanup has no directly observable user flow; focused SDK checks and the successful named proof check are the relevant evidence.

Evidence

What I checked:

Likely related people:

  • steipete: Recent blame attributes the affected implementation to Peter Steinberger, who also authored this cleanup; history shows the strongest concentration of work in these SDK files. (role: recent Plugin SDK and QA area contributor; confidence: high; commits: 7a0a4c5f2a3b, 00f1ce2d757b; files: src/plugin-sdk/status-helpers.ts, src/plugin-sdk/qa-runtime.ts, src/plugin-sdk/facade-runtime.ts)

Rank-up moves

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

  • Confirm the in-progress exact-head build-artifacts check completes successfully.
  • Read the latest ClawSweeper comment and apply or explicitly address any Rank-up moves before landing.

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.

@steipete
steipete merged commit a8caab5 into main Aug 5, 2026
188 of 193 checks passed
@steipete
steipete deleted the codex/loc-0804-sdk-luem8u branch August 5, 2026 03:16
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 5, 2026
* origin/main:
  refactor(plugin-sdk): remove unused private QA helpers (#119437)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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