Skip to content

test(qa): prove packaged plugin lifecycle transitions - #118973

Merged
vincentkoc merged 1 commit into
mainfrom
test/qa-plugin-lifecycle-proof
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/qa-plugin-lifecycle-proof

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The packaged plugin lifecycle scenario did not prove runtime state after every lifecycle transition, and six plugin lifecycle coverage IDs had no primary owner.

Why This Change Was Made

The existing Docker matrix now inspects runtime state after install, disable, re-enable, upgrade, and downgrade. Update proof separately verifies successful command execution and the resulting SQLite install record, installed package version, canonical managed npm root, and loaded runtime state.

The scenario primarily covers:

  • plugins.activation-runtime
  • plugins.docker-lifecycle-suites
  • plugins.enable-and-disable-lifecycle
  • plugins.lifecycle-package-update
  • plugins.lifecycle-update-run
  • plugins.smoke-tests-lifecycle

CLI repair and setup coverage remains secondary. Failed-update rollback policy is intentionally out of scope.

User Impact

No production behavior changes. Maintainers get stronger packaged regression proof for plugin activation, enable/disable, update, downgrade, and uninstall behavior.

Evidence

  • node scripts/run-vitest.mjs test/e2e/qa-lab/plugins/plugin-lifecycle-probe.e2e.test.ts - 10/10 passed
  • OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build - passed on retained Blacksmith Testbox
  • OPENCLAW_QA_REF=db58fac4af7441201086ca089caf2a67b4b1b53d pnpm openclaw qa suite --scenario plugin-lifecycle-probe --output-dir .artifacts/qa-e2e/plugin-lifecycle-probe-exact-head - 1/1 passed; all six IDs recorded as primary
  • OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 pnpm check:changed - passed all lanes on the same retained Testbox
  • Sol/high branch autoreview - clean, no actionable findings; correctness 0.99
  • Production LOC delta: 0

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 21:25
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 3, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 3, 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 repository_dispatch).
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 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 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 6:11 PM ET / 22:11 UTC.

ClawSweeper review

What this changes

The PR expands the packaged plugin Docker lifecycle scenario to assert disabled/loaded runtime state and installed-version records after each lifecycle transition.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This maintainer-owned QA PR is still necessary: current main verifies runtime load only after install, while this branch verifies observed runtime state after disable, re-enable, upgrade, and downgrade. No blocking correctness or security finding was found; retain it for ordinary maintainer review and the exact-head merge gate.

Priority: P3
Reviewed head: db58fac4af7441201086ca089caf2a67b4b1b53d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused QA coverage with direct packaged-runtime evidence and no actionable review finding.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; its body nevertheless records a successful after-fix packaged Docker run.
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 PR is outside the external-contributor proof gate; its body nevertheless records a successful after-fix packaged Docker run.
Evidence reviewed 6 items Current-main gap: Current main runs runtime inspection only after the initial install; disable/enable then check persisted config, and update/downgrade check version and managed npm root without a fresh runtime assertion.
Runtime contract: The inspect command’s runtime mode loads the diagnostics registry for the target plugin and emits the resulting plugin record as JSON; disabled records are intentionally represented as enabled=false and status=disabled.
Changed lifecycle boundary: The branch factors runtime inspection into one helper and invokes it after disable, re-enable, upgrade, and downgrade; the assertions require the expected id, enabled flag, and runtime status.
Findings None None.
Security None None.

How this fits together

QA Lab routes this scenario through a shared Docker adapter into a packaged OpenClaw install. It drives plugin lifecycle commands, then compares persisted install/config state and fresh runtime inspection output before reporting the scenario result.

flowchart LR
  A[QA scenario] --> B[Shared Docker lane]
  B --> C[Packaged OpenClaw]
  C --> D[Plugin lifecycle commands]
  D --> E[Fresh runtime inspection]
  E --> F[Config and install record checks]
  F --> G[QA result]
Loading

Before merge

  • Resolve merge risk (P1) - This branch is behind main; landing should use the current clean merge result and required exact-head checks.
  • Complete next step (P2) - This protected maintainer PR has no mechanical repair to queue; it needs ordinary maintainer review and the exact-head merge gate.
Agent review details

Security

None.

PR surface

Tests +100, Other +7. Total +107 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 117 17 +100
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 11 4 +7
Total 3 128 21 +107

Review metrics

Metric Value Why it matters
Production versus QA LOC production +0; QA/tests +128/-21 The added lines strengthen packaged lifecycle proof without changing production behavior.

Stored data model

Persistent data-model change detected: migration/backfill/repair: qa/scenarios/plugins/plugin-lifecycle-probe.yaml, serialized state: test/e2e/qa-lab/plugins/plugin-lifecycle-probe.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused packaged-Docker regression coverage after the normal maintainer review confirms the current merge result.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the focused packaged-Docker regression coverage after the normal maintainer review confirms the current merge result.

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

Not applicable: this PR adds regression proof rather than reporting a user-facing failure; its body supplies an after-fix packaged Docker scenario result.

Is this the best way to solve the issue?

Yes. Extending the existing packaged Docker lifecycle lane is the right owner boundary because it observes fresh runtime loading rather than only persisted config or install records.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is focused test and QA metadata coverage with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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 PR is outside the external-contributor proof gate; its body nevertheless records a successful after-fix packaged Docker run.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Recent current-main lifecycle QA work and this focused follow-up both cover the packaged plugin lifecycle lane. (role: recent area contributor; confidence: high; commits: 7a97997b6158, db58fac4af74; files: qa/scenarios/plugins/plugin-lifecycle-probe.yaml, test/e2e/qa-lab/plugins/plugin-lifecycle-probe-runtime.ts, test/e2e/qa-lab/plugins/plugin-lifecycle-probe.e2e.test.ts)
  • Dallin Romney: History identifies the original QA Lab lifecycle fold, Docker migration, and coverage ownership work in this area. (role: original lifecycle QA contributor; confidence: medium; commits: 0a6736af09f6, ab9e233d02a8, 677c8ff8466d; files: qa/scenarios/plugins/plugin-lifecycle-probe.yaml, test/e2e/qa-lab/plugins/plugin-lifecycle-probe-runtime.ts, scripts/e2e/plugin-lifecycle-matrix-docker.sh)

Rank-up moves

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

  • Confirm the current merge result and required checks at the exact head 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-03T22:03:11.379Z sha db58fac :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc merged commit 2de8824 into main Aug 4, 2026
208 of 217 checks passed
@vincentkoc
vincentkoc deleted the test/qa-plugin-lifecycle-proof branch August 4, 2026 00:14
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab 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