Skip to content

chore(qa): cover plugin-managed flows - #118919

Merged
vincentkoc merged 1 commit into
mainfrom
qa-a09-plugin-managed-flows-20260803
Aug 3, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
qa-a09-plugin-managed-flows-20260803

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Plugin-managed TaskFlow registration did not have durable QA coverage proving that a real loaded plugin can contribute a managed flow through the production runtime and reach the persisted task-flow consumer boundary.

Why This Change Was Made

This adds a real on-disk fixture plugin, loads it through the production host-owned plugin seam, materializes its declared tool, and verifies the resulting managed flow after reloading the TaskFlow registry. The change is test-only: it adds no production code, plugin SDK surface, protocol, channel, or taxonomy changes.

User Impact

No direct user-visible behavior changes. The QA suite now catches regressions where plugin-managed flows fail to register, persist, or remain owner-scoped.

Evidence

  • node scripts/run-vitest.mjs src/tasks/plugin-managed-flows.e2e.test.ts
    • 1 file passed, 1 test passed.
  • CI=1 OPENCLAW_BUILD_PRIVATE_QA=1 OPENCLAW_BUILD_ALL_NO_PNPM=1 node scripts/build-all.mjs qaRuntime
    • Passed; private QA runtime and extension artifacts were emitted.
  • OPENCLAW_BUILD_PRIVATE_QA=1 node scripts/run-node.mjs qa suite --provider-mode mock-openai --scenario plugin-managed-flows --output-dir .artifacts/qa-e2e/plugin-managed-flows-a02ea5e
    • 1 passed, 0 failed, 0 skipped.
    • Full evidence ref: a02ea5e8c14e3b826d75be78b4b8e34eacd7a6ac.
    • Claims only automation.plugin-managedflows as primary coverage.
  • Targeted oxfmt --check, git diff --check, exact-scope, privacy, lockfile, and zero-production-LOC checks passed.
  • Autoreview reported no accepted or actionable findings.
  • Hosted exact-head CI is the heavy validation gate; local proof used the trusted-source fallback without dependency reconciliation.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 19:55
@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, 4:23 PM ET / 20:23 UTC.

ClawSweeper review

What this changes

This PR adds a QA scenario and an end-to-end test that loads an on-disk plugin, invokes its managed TaskFlow tool, reloads persisted flow state, and verifies owner-scoped reads.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this member-authored, maintainer-labeled PR open for normal maintainer review. The added test follows the production plugin-load and tool-resolution path, persists a managed TaskFlow, reloads the registry, and verifies owner isolation; no blocking patch defect was found, but exact-head CI was still running in the supplied check state.

Priority: P3
Reviewed head: 66582ed591c014d732f90aa4cde5435bddf523ac
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test-only patch with source-aligned runtime coverage and credible targeted evidence; it awaits the remaining exact-head CI and maintainer merge decision.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: Real-behavior proof is not a contributor gate for this member-authored PR; the body nevertheless records a passing private-QA build and mock-provider QA-suite run for the changed scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real-behavior proof is not a contributor gate for this member-authored PR; the body nevertheless records a passing private-QA build and mock-provider QA-suite run for the changed scenario.
Evidence reviewed 6 items Production runtime boundary: Current main binds managed TaskFlows from the resolved tool context's session key and delivery context, which is the boundary exercised by the new fixture tool.
Persistence and isolation behavior: Current main reloads the TaskFlow registry from the canonical store, while owner-access helpers return a flow only when its stored owner key matches the caller.
QA scenario discovery: The QA catalog recursively loads non-index YAML files under qa/scenarios, so the added plugin scenario is discoverable without a separate subtree index.
Findings None None.
Security None None.

How this fits together

OpenClaw loads configured plugins, turns their declared tools into session-bound runtime tools, and lets those tools create durable managed TaskFlows. The TaskFlow registry persists those records and exposes them only through owner-scoped consumers.

flowchart LR
  A[On-disk plugin fixture] --> B[Plugin load context]
  B --> C[Production plugin loader]
  C --> D[Session-bound plugin tool]
  D --> E[Managed TaskFlow store]
  E --> F[Registry reload]
  F --> G[Owner-scoped flow reads]
Loading

Decision needed

Question Recommendation
After the remaining exact-head checks finish, should this focused QA coverage be merged as the production-seam regression for plugin-managed TaskFlows? Merge after green CI: Accept the focused production-seam regression test once all required exact-head checks are terminal and green.

Why: The PR is authored by a repository member and carries the protected maintainer label, so the final merge decision requires explicit maintainer judgment even though no patch defect was found.

Before merge

  • Resolve merge risk (P1) - The supplied exact-head check state still lists build, lint, type, QA-smoke, and compact-check jobs as in progress; merge should wait for the required jobs to become terminal and green.
Agent review details

Security

None.

PR surface

Tests +200, Other +28. Total +228 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 200 0 +200
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 28 0 +28
Total 2 228 0 +228

Review metrics

Metric Value Why it matters
Production vs. test LOC production +0, tests/scenario +228 The patch changes no runtime behavior; review value depends on whether the new boundary coverage is realistic and non-duplicative.

Stored data model

Persistent data-model change detected: serialized state: qa/scenarios/plugins/plugin-managed-flows.yaml, serialized state: src/tasks/plugin-managed-flows.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep this one boundary-level regression test and merge it after exact-head CI is green, preserving the existing focused unit tests for TaskFlow mutation and owner access rather than adding parallel runtime paths.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep this one boundary-level regression test and merge it after exact-head CI is green, preserving the existing focused unit tests for TaskFlow mutation and owner access rather than adding parallel runtime paths.

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

Not applicable: this PR adds preventive coverage rather than repairing a separately reported runtime failure. Its stated runtime path is source-backed and the contributor supplied a passing QA-suite run.

Is this the best way to solve the issue?

Yes. The test uses the existing production plugin load context, loader, tool resolution, persistence reload, and owner-access seams instead of duplicating unit-only behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a narrowly scoped, test-only QA coverage improvement with no direct user-facing behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real-behavior proof is not a contributor gate for this member-authored PR; the body nevertheless records a passing private-QA build and mock-provider QA-suite run for the changed scenario.

Evidence

What I checked:

  • Production runtime boundary: Current main binds managed TaskFlows from the resolved tool context's session key and delivery context, which is the boundary exercised by the new fixture tool. (src/plugins/runtime/runtime-tasks.ts:197, f73a7809a5e6)
  • Persistence and isolation behavior: Current main reloads the TaskFlow registry from the canonical store, while owner-access helpers return a flow only when its stored owner key matches the caller. (src/tasks/task-flow-owner-access.ts:11, f73a7809a5e6)
  • QA scenario discovery: The QA catalog recursively loads non-index YAML files under qa/scenarios, so the added plugin scenario is discoverable without a separate subtree index. (extensions/qa-lab/src/scenario-catalog.ts:523, f73a7809a5e6)
  • Focused patch shape: The PR adds only a scenario declaration and one end-to-end test; git diff --check reported no whitespace errors. (src/tasks/plugin-managed-flows.e2e.test.ts:29, 66582ed591c0)
  • Feature-history provenance: Blame ties the current managed-flow tool-context binding, registry reload, and owner-access lines to the available source-history commit by Peter Steinberger; the local history is shallow, so earlier attribution is not provable from this checkout. (src/plugins/runtime/runtime-tasks.ts:197, 830ab164ef86)
  • After-fix behavior evidence: The PR body reports a passing focused Vitest test, private-QA build, and mock-provider QA-suite scenario run for the proposed head; the supplied CI state still has broader exact-head jobs in progress. (66582ed591c0)

Likely related people:

  • Peter Steinberger: Available blame attributes the current tool-context binding, TaskFlow reload, and owner-access boundaries to the same source-history commit; the shallow checkout prevents stronger earlier-history attribution. (role: recent source contributor; confidence: medium; commits: 830ab164ef86; files: src/plugins/runtime/runtime-tasks.ts, src/tasks/task-flow-registry.ts, src/tasks/task-flow-owner-access.ts)

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 (2 earlier review cycles)
  • reviewed 2026-08-03T20:01:19.401Z sha 5cf9d5ecdb62ae1e1f38580c1d6386d2dcc2e256 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T20:11:55.828Z sha 5e6cd1437cda81befa04174eca6b46df6ef6d182 :: needs maintainer review before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper Rank-up move disposition for exact head 5cf9d5ecdb62ae1e1f38580c1d6386d2dcc2e256:

  • security-fast: inspected. It reports new fast-uri and undici advisories from the unchanged production lockfile. This PR has no dependency or lockfile diff, so no A09 change is warranted.
  • checks-node-compact-small-4: inspected and reproduced on exact base 02885d6d16237ce093d1046af313ba7e38066a43 with node scripts/run-vitest.mjs test/scripts/test-extension.test.ts; the same four hardcoded Matrix chunk-count assertions fail.
  • checks-node-compact-small-2: inspected and reproduced on the same exact base with node scripts/run-vitest.mjs test/scripts/test-projects.test.ts; the same four hardcoded Matrix chunk-count assertions fail.

These are baseline failures outside the approved two-file, zero-production-LOC scope. The A09 focused Vitest, private-QA build, QA suite evidence, formatting, privacy, scope, lockfile, autoreview, ClawSweeper, and all completed affected exact-head checks are green.

@vincentkoc
vincentkoc force-pushed the qa-a09-plugin-managed-flows-20260803 branch from 5cf9d5e to 5e6cd14 Compare August 3, 2026 20:06
@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:

@vincentkoc

Copy link
Copy Markdown
Member Author

Final exact-head CI disposition for 5e6cd1437cda81befa04174eca6b46df6ef6d182:

  • security-fast: inspected. It reports new fast-uri and undici advisories from the unchanged production lockfile. This PR has no dependency or lockfile diff, so no A09 change is warranted.
  • checks-node-compact-small-4: inspected and reproduced on exact base 02885d6d16237ce093d1046af313ba7e38066a43 with node scripts/run-vitest.mjs test/scripts/test-extension.test.ts; the same four hardcoded Matrix chunk-count assertions fail.
  • checks-node-compact-small-2: inspected and reproduced on the same exact base with node scripts/run-vitest.mjs test/scripts/test-projects.test.ts; the same four hardcoded Matrix chunk-count assertions fail.

The refreshed workflow completed with 53 successful jobs. These three underlying failures, plus the aggregate openclaw/ci-gate, are baseline failures outside the approved two-file, zero-production-LOC scope. The A09 focused Vitest, private-QA build, QA suite evidence, formatting, privacy, scope, lockfile, autoreview, fresh ClawSweeper, and all affected exact-head checks are green.

@vincentkoc
vincentkoc force-pushed the qa-a09-plugin-managed-flows-20260803 branch from 5e6cd14 to 66582ed Compare August 3, 2026 20:18
@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:

@vincentkoc

Copy link
Copy Markdown
Member Author

Rank-up move disposition for exact head 66582ed591c014d732f90aa4cde5435bddf523ac:

The ClawSweeper move to wait for terminal exact-head CI is complete. Its green-CI condition cannot be satisfied inside this test-only slice without violating the approved scope; repository-native scripts/pr prepare-run will make the final landing decision.

@vincentkoc
vincentkoc force-pushed the qa-a09-plugin-managed-flows-20260803 branch from 66582ed to a02ea5e Compare August 3, 2026 20:31
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc

Copy link
Copy Markdown
Member Author

Fresh ClawSweeper disposition for exact head a02ea5e8c14e3b826d75be78b4b8e34eacd7a6ac:

The unavailable fresh ClawSweeper publication is explicitly dispositioned as an external bot quota failure. No Rank-up move is being skipped.

@vincentkoc
vincentkoc merged commit d29b9ad into main Aug 3, 2026
122 of 126 checks passed
@vincentkoc
vincentkoc deleted the qa-a09-plugin-managed-flows-20260803 branch August 3, 2026 20:51
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main:
  test(ui): add shell and PWA primary QA proof (#118788)
  test(qa): cover CLI distribution workflows (#118948)
  chore(i18n): refresh native locales (#118883)
  test(qa): prove plugin tool ownership in gateway flow (#118958)
  docs: correct onboarding risk flags and Google Chat credential shapes (#118936)
  fix(imessage): honor explicitly enabled accounts during startup (#118944)
  test(gateway): cover client transport defaults (#118798)
  fix(signal): normalize accounts during noninteractive setup (#118932)
  fix(msteams): enable channels for federated environment credentials (#118931)
  fix(openai): enforce final transcript bounds before callback delivery (#118928)
  test(tasks): cover plugin-managed flows (#118919)

# Conflicts:
#	qa/scenarios/runtime/docker-package-install.yaml
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…-worker-update-20260803

* origin/main: (48 commits)
  test(ui): add shell and PWA primary QA proof (#118788)
  test(qa): cover CLI distribution workflows (#118948)
  chore(i18n): refresh native locales (#118883)
  test(qa): prove plugin tool ownership in gateway flow (#118958)
  docs: correct onboarding risk flags and Google Chat credential shapes (#118936)
  fix(imessage): honor explicitly enabled accounts during startup (#118944)
  test(gateway): cover client transport defaults (#118798)
  fix(signal): normalize accounts during noninteractive setup (#118932)
  fix(msteams): enable channels for federated environment credentials (#118931)
  fix(openai): enforce final transcript bounds before callback delivery (#118928)
  test(tasks): cover plugin-managed flows (#118919)
  test(agents): prove process control roundtrip (#118843)
  test(qa): add memory redaction boundary coverage (#118916)
  fix(kilocode): model discovery overstates the usable context window (#118868)
  fix(media): isolate generated-provider text from delivery directives (#118780)
  test(gateway): add node control-plane QA coverage (#118784)
  fix(config): reject unsupported diagnostics otel grpc (#93087)
  fix(providers): recognize configured media credentials across provider boundaries (#118761)
  refactor: delete dead post-landing plugin/hooks scaffolding (#118920)
  fix(cron): deliver child results after heartbeat-only parent responses (#118743)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
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: 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