Skip to content

chore: align process lifecycle QA with explicit yields - #148149

Merged
RomneyDa merged 1 commit into
mainfrom
fix/maturity-348158-process-contracts
Sep 14, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/maturity-348158-process-contracts

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

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-cancel exit 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

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated 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.

View the workflow run.

@RomneyDa
RomneyDa marked this pull request as ready for review September 14, 2026 09:47
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Sep 14, 2026
@RomneyDa
RomneyDa force-pushed the fix/maturity-348158-process-contracts branch from 9066e29 to 6767e4b Compare September 14, 2026 10:49
@RomneyDa

Copy link
Copy Markdown
Member Author

@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.

@clawsweeper

clawsweeper Bot commented Sep 14, 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 exact_review_queue).
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 10:01 AM ET / 14:01 UTC (Revision 2).

ClawSweeper review

What this changes

Updates 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
Reviewed head: 4f6168278e9748c587932b1772db544bcd9162b8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported QA correction with reported current-head validation and no actionable defects.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test correction; the reported 16/16 run covers real process lifecycle scenarios, including terminal polling and child disappearance.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test correction; the reported 16/16 run covers real process lifecycle scenarios, including terminal polling and child disappearance.
Evidence reviewed 7 items Verified introduced changes: The merge-base-to-head diff contains only the explicit wait argument and cancellation-status expectation. Host-verified test-merge evidence also confines the merged result to those two test files.
Explicit yield contract: The requester callback rejects yielding while background results remain uncollected and subsequently requires explicit message intent when no completion claim exists. The tool reference documents this requirement.
Cancellation result contract: Finished polling reports completed when cancellation was requested, the exit reason is manual-cancel, and finalization did not fail. Existing sibling coverage separately verifies that finalizer failures still report failed.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2. Total +2 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 4 2 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 4 2 +2

Review metrics

None.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a focused QA correction 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 external-contributor proof gate does not apply to this MEMBER-authored test correction; the reported 16/16 run covers real process lifecycle scenarios, including terminal polling and child disappearance.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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-09-14T11:04:38.416Z sha 6767e4bc2f022ea6821af6140ef13cd35f7c959d :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/maturity-348158-process-contracts branch from 6767e4b to 4f61682 Compare September 14, 2026 11:12
@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head proof after rebase onto current main: process lifecycle E2E passed 16/16 at 4f61682. @clawsweeper review

@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head refresh: hosted CI is green at 4f61682, but the durable ClawSweeper marker still targets the pre-rebase 6767e4bc2f0 head. @clawsweeper re-review

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa merged commit 98d9902 into main Sep 14, 2026
146 checks passed
@RomneyDa
RomneyDa deleted the fix/maturity-348158-process-contracts branch September 14, 2026 15:52
vincentkoc added a commit that referenced this pull request Sep 14, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling 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: XS 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