Repository navigation
test(qa): assert the failed child status lands once in parent history - #204367
Merged
Merged
Conversation
- subagent-empty-completion-recovery now reads the parent transcript: exactly one hidden model-visible status entry for the failed child, no run-failed-before-reply row, no displayed subagent-* dump, unchanged after Gateway restart. Closes #204267 Co-authored-by: obviyus <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Collaborator
Author
|
Landed as b5263df. The scenario now checks the parent transcript, before and after the Gateway restart: exactly one hidden, model-visible status entry for the failed child, no |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 24, 2026
…openclaw#204367) ## What Problem This Solves Closes openclaw#204267. The QA smoke scenario `subagent-empty-completion-recovery` asserted the child delivery failure notice that openclaw#204178 removed. openclaw#204299 already replaced that notice assertion with "the parent's completion turn consumes the failed child outcome exactly once" (provider-request count). The scenario still did not check the new contract where it lives: the parent's history. ## Change (test only) The scenario now reads the parent transcript after the child fails, and again after the Gateway restart, and asserts: - exactly one entry carries the failed child's status (the `[Internal task completion event]` input or a `subagent-completion` entry), and it is hidden (`display: false`) but model-visible; - no `run-failed-before-reply` row and no displayed `subagent-*` row (the removed "System" dump of the child's raw result and the "delivery delayed" row); - the restart does not change any of this. The existing checks stay unchanged: failed terminal outcome, one real write, two tool-free finalizations, no fabricated result, one parent completion request, and no replay after the restart. Production-code line delta: 0 (scenario YAML only, +21 −2). ## Evidence - Head, same lane as CI (`OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build qaRuntime`, then `node openclaw.mjs qa run --qa-profile smoke-ci --scenario subagent-empty-completion-recovery`): `passed=1 failed=0`. - Parent transcript on head (synthetic run): the child status is one hidden `openclaw.runtime-context` entry carrying `[Internal task completion event]` with the child session key. There is no `subagent-completion` entry (the completion turn consumed it) and no `run-failed-before-reply` row. - Base (`main` after openclaw#204299): the old scenario passes too, so this PR does not repair a red; it adds the history assertions that openclaw#204299 left out. Co-authored-by: Ayaan Zaidi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Closes #204267. The QA smoke scenario
subagent-empty-completion-recoveryasserted the child delivery failure notice that #204178 removed. #204299 already replaced that notice assertion with "the parent's completion turn consumes the failed child outcome exactly once" (provider-request count). The scenario still did not check the new contract where it lives: the parent's history.Change (test only)
The scenario now reads the parent transcript after the child fails, and again after the Gateway restart, and asserts:
[Internal task completion event]input or asubagent-completionentry), and it is hidden (display: false) but model-visible;run-failed-before-replyrow and no displayedsubagent-*row (the removed "System" dump of the child's raw result and the "delivery delayed" row);The existing checks stay unchanged: failed terminal outcome, one real write, two tool-free finalizations, no fabricated result, one parent completion request, and no replay after the restart.
Production-code line delta: 0 (scenario YAML only, +21 −2).
Evidence
OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build qaRuntime, thennode openclaw.mjs qa run --qa-profile smoke-ci --scenario subagent-empty-completion-recovery):passed=1 failed=0.openclaw.runtime-contextentry carrying[Internal task completion event]with the child session key. There is nosubagent-completionentry (the completion turn consumed it) and norun-failed-before-replyrow.mainafter test(qa): expect empty child completions to settle as parent history #204299): the old scenario passes too, so this PR does not repair a red; it adds the history assertions that test(qa): expect empty child completions to settle as parent history #204299 left out.