Skip to content

improve(qa): cover image generation lifecycle - #118915

Merged
vincentkoc merged 1 commit into
mainfrom
qa-media-image-lifecycle-20260803
Aug 3, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
qa-media-image-lifecycle-20260803

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Generated-image task lifecycle behavior lacked primary QA ownership across duplicate suppression, task status, wakeup, persistence, and visible completion.

Why This Change Was Made

Adds one QA scenario through the production image-generation tool inventory and QA-channel boundary, covering:

  • production registration and invocation of image_generate
  • deterministic pending and completed task status
  • duplicate-status suppression
  • completion wakeup and task cleanup
  • persisted nonempty image media
  • exactly one visible completion delivery
  • failure-safe reverse-order fixture cleanup

The product test imports QA fixtures only through the public QA Lab API barrel.

Primary coverage:

  • media.generated-image-task-lifecycle

User Impact

No product runtime behavior changes. Regressions in generated-image task state, duplicate status, cleanup, or visible completion now fail as owned QA coverage.

Evidence

  • Exact head: d90c4fdf18d19f073df689171aece6e2c836ec6f.
  • Exact tree: a05703129fc08705c808e684e44b6c6fcca31fed.
  • Focused boundary test: 1/1 passed.
  • Full QA suite: 1/1 passed in full evidence mode.
  • Evidence: .artifacts/qa-e2e/image-generation-lifecycle-exact-d90c4fd-20260803/qa-evidence.json.
  • git diff --check: passed.
  • Review: no findings; best bounded implementation.
  • Product runtime LOC delta: 0; private QA API exports: +6 lines.

Heavy-gate status

  • Hosted exact-head statusCheckRollup: SUCCESS at d90c4fdf18d19f073df689171aece6e2c836ec6f.
  • Fresh ClawSweeper reviewed exact head d90c4fdf18d19f073df689171aece6e2c836ec6f with no findings.
  • ClawSweeper's only before-merge items were hosted checks and ordinary maintainer acceptance; both are satisfied.
  • Blacksmith Testbox local auth remained unavailable, but hosted exact-head CI superseded that local proof route.
  • The local linked changed gate was not counted because its Node 24.13/shared generated dependency state was invalid; hosted exact-head CI is authoritative.
  • A frozen normal checkout at base 554a6f3bbf6d8173efc2f1c92e30139f88dc26d6 passed pnpm tsgo:all.
{
  "scenario": "image-generation-lifecycle",
  "ref": "d90c4fdf18d19f073df689171aece6e2c836ec6f",
  "tree": "a05703129fc08705c808e684e44b6c6fcca31fed",
  "primaryCoverage": [
    "media.generated-image-task-lifecycle"
  ],
  "focusedPassed": 1,
  "fullSuiteStatus": "pass",
  "fullSuitePassed": 1,
  "hostedCiStatus": "success",
  "statusCheckRollup": "SUCCESS",
  "clawSweeperStatus": "no_findings_exact_head"
}

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@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:20 PM ET / 22:20 UTC.

ClawSweeper review

What this changes

The PR adds a QA Lab scenario and end-to-end test for image-generation task admission, duplicate suppression, completion delivery, and recently completed requests.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness finding. This member-authored, maintainer-labeled PR remains necessary because current main has the image task lifecycle but not this QA-channel regression coverage.

Priority: P3
Reviewed head: d90c4fdf18d19f073df689171aece6e2c836ec6f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused, well-targeted integration regression test with no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository member; the PR body nevertheless provides exact-head mock-provider, ephemeral-gateway, and QA-channel evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository member; the PR body nevertheless provides exact-head mock-provider, ephemeral-gateway, and QA-channel evidence.
Evidence reviewed 5 items Current lifecycle owner: Current main creates the detached image task, records the recent-request guard, and schedules completion from the production tool path.
Coverage exercises the missing boundary: The proposed test holds the image provider, verifies one running task and duplicate suppression, releases it, then verifies one PNG delivery and recent-success suppression.
Existing scenarios are adjacent, not duplicates: Current native image coverage verifies saved media and a single delivery, while the new taxonomy-backed scenario adds running and recent-success duplicate lifecycle coverage.
Findings None None.
Security None None.

How this fits together

QA Lab sends a controlled request through the production image tool, task ledger, and QA-channel transport. The scenario observes provider invocation, persisted task state, and the final image delivery.

flowchart LR
  A[QA scenario] --> B[QA channel request]
  B --> C[Image generation tool]
  C --> D[Task admission and duplicate guard]
  D --> E[Background generation]
  E --> F[Completion delivery]
  F --> G[QA channel image outcome]
Loading

Before merge

  • Resolve merge risk (P1) - Hosted exact-head checks were still in progress at review time.
  • Complete next step (P2) - No narrow repair is needed; this protected maintainer PR needs normal maintainer acceptance after its exact-head checks finish.
Agent review details

Security

None.

PR surface

Source +6, Tests +332, Other +26. Total +364 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 6 0 +6
Tests 1 332 0 +332
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 26 0 +26
Total 3 364 0 +364

Review metrics

Metric Value Why it matters
Product runtime versus QA coverage LOC product runtime +0, QA scenario/test/support +364 The change adds regression coverage and private QA-barrel exports without altering user runtime behavior.

Stored data model

Persistent data-model change detected: serialized state: test/e2e/qa-lab/media/image-generation-lifecycle.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep this as focused QA ownership for the image task lifecycle and merge after the exact-head checks complete cleanly.
  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 as focused QA ownership for the image task lifecycle and merge after the exact-head checks complete cleanly.

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

Not applicable: this PR adds coverage rather than repairing a reported user failure; the described current-main lifecycle is directly traceable in source.

Is this the best way to solve the issue?

Yes. The test uses the production tool, task lifecycle, controlled provider, and QA-channel boundary, which is stronger than duplicating image-tool unit assertions.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is focused QA regression coverage with no production behavior change.
  • 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 author is a repository member; the PR body nevertheless provides exact-head mock-provider, ephemeral-gateway, and QA-channel evidence.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Current-main blame attributes the central task admission and completion path to the merged task coverage commit; this PR adds the corresponding QA boundary coverage. (role: recent lifecycle and QA contributor; confidence: high; commits: d29b9ad083d1, d90c4fdf18d1; files: src/agents/tools/image-generate-tool.ts, src/agents/tools/media-generate-background-shared.ts, extensions/qa-lab/api.ts)
  • Peter Steinberger: Recent history includes the shared generated-media delivery refactor that remains on the task completion path. (role: historical shared-media lifecycle contributor; confidence: medium; commits: fdcb321bfaaa; files: src/agents/tools/media-generate-background-shared.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-03T21:06:38.833Z sha 2f2be21 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T21:17:09.215Z sha f865e2f :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the qa-media-image-lifecycle-20260803 branch from 2f2be21 to f865e2f Compare August 3, 2026 21:11
@vincentkoc
vincentkoc force-pushed the qa-media-image-lifecycle-20260803 branch from f865e2f to d90c4fd Compare August 3, 2026 22:08
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 22:13
@vincentkoc
vincentkoc merged commit c27fb94 into main Aug 3, 2026
181 checks passed
@vincentkoc
vincentkoc deleted the qa-media-image-lifecycle-20260803 branch August 3, 2026 22:43
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
…ansports-20260803

* origin/main: (120 commits)
  test(ui): add service-worker update primary QA proof (#118805)
  test(qa): cover CLI onboarding and plugin install sources (#118882)
  test(qa): cover remote logging boundaries (#118951)
  fix(sms): retry transient MMS failures before durable adoption (#118994)
  test(qa): cover video generation invocation (#118864)
  test(qa): cover media reference intake (#118858)
  test(qa): cover image generation task lifecycle (#118915)
  feat(sms): track Twilio delivery status (#118665)
  test(tasks): cover TaskFlow registry lifecycle (#118983)
  test(gateway): verify SSH tunnel fallback (#118818)
  fix(security): harden network tool output at canonical owner boundaries (#118984)
  fix(googlechat): align doctor policy ownership with canonical account configuration (#118972)
  test(tui): prove editor input through PTY (#118982)
  fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987)
  test(qa): cover health monitor and cache boundaries (#118961)
  fix(macos): restore dashboard frame double-click zoom (#118976)
  fix(googlechat): recover durable lanes after oversized attachments (#118986)
  test(qa): cover runtime telemetry evidence (#118950)
  fix(gateway): resolve SQLite usage details (#118918)
  test(cron): cover durable scheduler state (#118981)
  ...
vincentkoc added a commit to clawSean/openclaw that referenced this pull request Aug 3, 2026
* origin/main: (1301 commits)
  fix(sms): align MMS retries with network timeouts (openclaw#119002)
  test(qa): cover composed tool result consumption (openclaw#118991)
  test(cron): cover delivery outcomes (openclaw#118993)
  test(qa): cover guarded media fetch boundaries (openclaw#118857)
  test(qa): cover music generation controls (openclaw#118901)
  test(qa): cover core vision routing (openclaw#118861)
  test(qa): cover Gateway usage and memory APIs (openclaw#118995)
  fix(docker): use authenticated gateway health command (openclaw#118996)
  test(plugins): align tool fixtures with owner policy (openclaw#118959)
  test(qa): cover managed gateway service lifecycle (openclaw#118855)
  test(qa): cover audio proxy and limit handling (openclaw#118863)
  test(qa): cover PDF extraction dispatch (openclaw#118860)
  test(ui): add service-worker update primary QA proof (openclaw#118805)
  test(qa): cover CLI onboarding and plugin install sources (openclaw#118882)
  test(qa): cover remote logging boundaries (openclaw#118951)
  fix(sms): retry transient MMS failures before durable adoption (openclaw#118994)
  test(qa): cover video generation invocation (openclaw#118864)
  test(qa): cover media reference intake (openclaw#118858)
  test(qa): cover image generation task lifecycle (openclaw#118915)
  feat(sms): track Twilio delivery status (openclaw#118665)
  ...
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