Repository navigation
chore: align process lifecycle QA with explicit yields - #148149
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check could not safely complete for this revision. ClawSweeper will not retry this unchanged revision. Next step: No contributor action is requested. Maintainers should inspect the linked workflow run. |
9066e29 to
6767e4b
Compare
|
@clawsweeper review Exact-head proof for 6767e4bc2f0: the two real process E2E files pass 16/16 after rebasing onto current main. The previous ClawSweeper attempt ended in agent_input_scan deadline before producing a verdict; please perform one fresh exact-head review. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 10:01 AM ET / 14:01 UTC (Revision 2). ClawSweeper reviewWhat this changesUpdates process lifecycle tests to request an explicit message wait and expect successful manual cancellation while preserving its exit reason. Merge readiness✅ Ready for maintainer review The test corrections remain necessary on inspected main and match the existing runtime contracts. No actionable patch defects were found; this maintainer-authored PR should remain available for normal landing. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s process tools start, observe, and stop background commands; its yield tool pauses eligible agent turns. These QA tests exercise those owners and turn their results into lifecycle checks. flowchart TD
A[Lifecycle QA scenarios] --> B[Background process tools]
B --> C[Real child process]
C --> D[Terminal result and cleanup]
D --> E[Result collection]
E --> F[Explicit message wait]
F --> G[Yield assertion]
D --> H[Cancellation assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep QA aligned with the explicit yield and requested-stop contracts while retaining collection, finalizer-failure, child-exit, and cleanup assertions. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: main’s two expectations contradict the yield callback and terminal process-result mapping. No tests were executed in this read-only review. Is this the best way to solve the issue? Yes. Adjusting these existing scenarios is the narrow repair, and the surrounding assertions continue to verify collection and actual process cleanup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 36a725a599bc. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
6767e4b to
4f61682
Compare
|
Exact-head proof after rebase onto current main: process lifecycle E2E passed 16/16 at 4f61682. @clawsweeper review |
|
Exact-head refresh: hosted CI is green at 4f61682, but the durable ClawSweeper marker still targets the pre-rebase 6767e4bc2f0 head. @clawsweeper re-review |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* commit '3c08384584f57787a26da9998488233fc15ccf7e': (122 commits) fix(agents): keep tool result summaries when middleware details exceed shape limits (#147805) test: make full-suite fixtures portable across runtimes (#148247) refactor(qa): share unknown confidence results (#148200) chore(android): remove unused test dependencies and duplicate Wear settings (#148231) test: reuse compiled preflight in startup fixtures (#148330) test(wizard): route recovery integration through database forks (#148337) refactor(plugins): simplify provider auth patch recursion (#147933) fix(cli): drain failed web capability output (#148234) refactor(android): remove unused production helpers (#148233) fix(plugins): scope feed integrity to hosted ClawHub (#148220) test(qa): compare Telegram entities semantically (#148219) test(qa): recognize native Slack exec progress rows (#148217) test(cron): distinguish repeated delivery incidents (#148151) test(qa): preserve restart command ownership (#148218) test(qa): isolate bundled skill CLI gateway state (#148150) test(qa): align process lifecycle contracts (#148149) improve(media): reduce metadata fetched during orphan cleanup (#148244) fix(matrix): retain sync state runtime for deferred persistence (#148152) test: deduplicate gateway watch exit fixtures (#148237) refactor(cli): derive daemon status contract from gatherer (#148108) ...
What Problem This Solves
Resolves maturity QA failures where process lifecycle checks still used the old implicit yield call and classified an explicitly cancelled terminal process as failed.
Why This Change Was Made
The tests now request the explicit message wait required by the yield contract and assert the current completed lifecycle status while retaining the
manual-cancelexit reason.User Impact
The process lifecycle scorecard now verifies the shipped runtime contract instead of reporting false regressions for explicit yields and manual cancellation.
Evidence
node scripts/run-vitest.mjs src/agents/bash-tools.process.e2e.test.ts test/e2e/qa-lab/runtime/openclaw-exec-process-lifecycle.e2e.test.ts: 16/16 passed.pnpm check:changed: passed.