Skip to content

test(qa): prove real yielded-child completion and channel delivery - #118707

Merged
steipete merged 1 commit into
mainfrom
codex/qa0803-completion-policy-qa-truth
Aug 3, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa0803-completion-policy-qa-truth

Conversation

@steipete

@steipete steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Eliminate false-positive passes from the existing live yielded-subagent completion-policy scenario.
  • Prove actual authenticated tool chronology, child delivery, requester continuation, visible final reply, and real QA-channel outbound delivery.

Root cause and canonical QA evidence ownership

The existing so-called live proof could pass because a completion phrase or exec marker appeared in its own initial prompt, logs, or tool stdout; neither a successful child, an actually yielded parent, a resumed final answer, nor a delivered outbound reply was required. Public Gateway history intentionally omits raw tool results, so visible-history timestamps cannot prove successful tool completion.

The existing QA transcript owner now exposes an optional bounded latest-64 list of authenticated successful tool-call identities/timestamps, matched to their actual assistant tool calls; existing summaries remain byte-compatible when timing evidence is unavailable. The scenario uses a child-only unpredictable token, exact current requester/task generation, authenticated spawn→yield→child completion→exec ordering, an immutable non-reading exec command, an actual projected non-mirror parent final, and a post-checkpoint real QA-channel outbound event for the correct account/conversation.

Adversarial proof

Genuine failing fixtures covered prompt/tool-output spoofing, attempted versus successful calls, premature parent execution, delayed child completion, reused task generations, unauthorized filesystem discovery, late parent yields, missing final replies, commentary-only replies, synthetic delivery mirrors, false rejection of legitimate provider mirror identities, stale outbound events, wrong accounts/conversations, and silently dropped channel delivery.

  • Final real YAML loading + actual SQLite transcript owner suites: 86/86 passing.
  • Exact hosted type-aware/type-check targeted test lint, formatting, and diff checks: clean.
  • Production delta +17 QA-only lines for bounded authenticated existing-owner evidence; no Gateway protocol, public API, config, or state schema changes.
  • Final fresh independent structured Sol/high review after all accepted adversarial findings: no actionable findings, confidence 0.86.

@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. P2 Normal backlog priority with limited blast radius. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 10:24 AM ET / 14:24 UTC.

ClawSweeper review

What this changes

The branch strengthens a live QA Lab scenario so yielded child-agent completion, parent continuation, final reply visibility, and QA-channel outbound delivery must be genuinely observed rather than inferred from prompt or log markers.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this maintainer-labeled PR open for normal maintainer review and the remaining exact-head CI. The patch replaces a QA scenario that could infer success from visible markers with transcript-authenticated tool chronology, child completion, a projected final reply, and QA-channel delivery checks; no discrete correctness defect was found in the proposed diff.

Priority: P2
Reviewed head: 8041cab944d4d0cef9671e008766bb5c05609791

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused owner-bound QA hardening change with broad adversarial coverage and no supported correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labeled PR is exempt from the external-contributor proof gate; the supplied snapshot also records a successful Real behavior proof check and the PR body reports live YAML and SQLite transcript-owner validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labeled PR is exempt from the external-contributor proof gate; the supplied snapshot also records a successful Real behavior proof check and the PR body reports live YAML and SQLite transcript-owner validation.
Evidence reviewed 6 items Prior false-positive surface: Current main's scenario accepted a proof file plus Gateway-log marker and only checked that an assistant called sessions_yield; it did not require authenticated child completion, a successful exec, a requester final reply, or a QA-channel outbound event.
Owner-bound implementation: The PR records only successful tool results whose call IDs match an earlier assistant tool call, retains finite timestamps, and bounds the QA-only evidence list to 64 entries.
Scenario verifies real owner facts: The revised scenario requires exactly the authenticated spawn/yield/exec chronology, a current requester-owned delivered child task, child transcript completion, a non-mirror projected final reply, and a post-checkpoint QA-channel outbound message for the expected account and conversation.
Findings None None.
Security None None.

How this fits together

QA Lab runs agent scenarios through an ephemeral Gateway and QA channel, then reads the persisted session transcript and transport events for proof. This change makes the yielded-child completion scenario consume those owner-bound facts before reporting a pass.

flowchart LR
  A[Live QA scenario] --> B[Requester agent]
  B --> C[Yielded child task]
  C --> D[Durable task record]
  B --> E[Persisted session transcript]
  E --> F[Authenticated tool chronology]
  B --> G[QA channel outbound]
  D --> H[Completion and delivery assertions]
  F --> H
  G --> H
Loading

Before merge

  • Add real behavior proof - Not applicable: This maintainer-labeled PR is exempt from the external-contributor proof gate; the supplied snapshot also records a successful Real behavior proof check and the PR body reports live YAML and SQLite transcript-owner validation.
  • Resolve merge risk (P1) - The supplied GitHub snapshot still had exact-head build, lint, type, and QA checks in progress; those should complete before merge.
  • Complete next step (P2) - Keep this maintainer-labeled PR open for ordinary maintainer review and completion of the remaining exact-head checks; no narrow mechanical repair is identified.
Agent review details

Security

None.

PR surface

Source +17, Tests +947, Other +117. Total +1081 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 17 0 +17
Tests 2 952 5 +947
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 137 20 +117
Total 4 1106 25 +1081

Review metrics

Metric Value Why it matters
Production vs QA coverage production +17/-0; tests and QA scenario +1,089/-25 A small QA-only transcript-summary addition supports substantially stronger adversarial proof without changing public configuration, protocol, or state-schema surfaces.

Stored data model

Persistent data-model change detected: serialized state: qa/scenarios/agents/issue-109025-completion-policy-live.yaml. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Preserve the bounded QA-only transcript evidence and land the scenario hardening after the remaining exact-head checks and maintainer review confirm the live-provider proof remains stable.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Preserve the bounded QA-only transcript evidence and land the scenario hardening after the remaining exact-head checks and maintainer review confirm the live-provider proof remains stable.

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

Yes. Current-main source shows the earlier scenario could pass with a proof-file/Gateway-log marker and a visible yield call; the branch’s focused fixtures reproduce those false-positive shapes and show the intended rejection conditions.

Is this the best way to solve the issue?

Yes. Recording authenticated result identity and timing at the persisted transcript owner is safer than deriving tool completion from public chat history, then combining it with durable task and transport evidence for the live scenario.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded QA reliability improvement that protects regression detection but is not an urgent user-facing runtime outage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labeled PR is exempt from the external-contributor proof gate; the supplied snapshot also records a successful Real behavior proof check and the PR body reports live YAML and SQLite transcript-owner validation.

Label justifications:

  • P2: This is a bounded QA reliability improvement that protects regression detection but is not an urgent user-facing runtime outage.
  • 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: This maintainer-labeled PR is exempt from the external-contributor proof gate; the supplied snapshot also records a successful Real behavior proof check and the PR body reports live YAML and SQLite transcript-owner validation.

Evidence

What I checked:

  • Prior false-positive surface: Current main's scenario accepted a proof file plus Gateway-log marker and only checked that an assistant called sessions_yield; it did not require authenticated child completion, a successful exec, a requester final reply, or a QA-channel outbound event. (qa/scenarios/agents/issue-109025-completion-policy-live.yaml:123, ffcca757eb3a)
  • Owner-bound implementation: The PR records only successful tool results whose call IDs match an earlier assistant tool call, retains finite timestamps, and bounds the QA-only evidence list to 64 entries. (extensions/qa-lab/src/suite-runtime-agent-session.ts:161, 8041cab944d4)
  • Scenario verifies real owner facts: The revised scenario requires exactly the authenticated spawn/yield/exec chronology, a current requester-owned delivered child task, child transcript completion, a non-mirror projected final reply, and a post-checkpoint QA-channel outbound message for the expected account and conversation. (qa/scenarios/agents/issue-109025-completion-policy-live.yaml:154, 8041cab944d4)
  • Adversarial regression coverage: The added flow fixtures cover spoofed markers, unsuccessful or misordered tool calls, stale task generations, synthetic mirrors, missing final replies, and wrong/stale outbound delivery while retaining valid same-millisecond chronology cases. (extensions/qa-lab/src/live-scenario-timeouts.test.ts:382, 8041cab944d4)
  • History and ownership signal: Current-main blame assigns the pre-existing completion scenario and QA transcript helper baseline to Peter Steinberger at the available graft boundary; the PR continues that same owner boundary. Deeper path history could not be loaded because this promisor checkout could not reach its remote. (extensions/qa-lab/src/suite-runtime-agent-session.ts:115, 188957a18af8)
  • Diff and supplied CI snapshot: The patch is clean under git diff --check; the supplied GitHub snapshot reports successful Real behavior proof, security, dependency, and boundary checks, while build, lint, type, and QA checks were still running. (extensions/qa-lab/src/suite-runtime-agent-session.ts:46, 8041cab944d4)

Likely related people:

  • steipete: The available current-main blame baseline for the completion scenario and transcript helper names Peter Steinberger, and this PR extends the same QA evidence boundary. (role: recent QA area contributor; confidence: medium; commits: 188957a18af8, 8041cab944d4; files: extensions/qa-lab/src/suite-runtime-agent-session.ts, qa/scenarios/agents/issue-109025-completion-policy-live.yaml, extensions/qa-lab/src/live-scenario-timeouts.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the remaining exact-head build, lint, type, and QA checks complete before merge.

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.

@steipete
steipete merged commit cae7431 into main Aug 3, 2026
128 of 134 checks passed
@steipete
steipete deleted the codex/qa0803-completion-policy-qa-truth branch August 3, 2026 14:36
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main:
  fix(onboard): keep referenced provider secrets out of plaintext (#118702)
  docs: show canonical agent roster configuration (#118722)
  fix(channels): generate catalog from package manifests (#118097)
  fix(zalouser): distinguish probe timeout from auth failure (#111336)
  improve(ui): cut E2E shard runtime by reusing the bundle (#118697)
  fix(cli): publish completion caches atomically (#118715)
  fix(whatsapp): honor disabled self-chat without widening group access (#118711)
  fix(voice-call): terminate carrier calls after realtime startup failures (#118699)
  fix(slack): isolate GovSlack media trust and delivery (#118695)
  fix(browser): wrap page-controlled action results (#118691)
  fix(security): sanitize JSON-escaped forged content boundaries (#118698)
  test(qa): prove real yielded-child completion and channel delivery (#118707)
  fix(doctor): honor explicit plugin-only migration authority (#118700)
  fix(security): detect child_process calls through aliases and computed members (#116304)
  test(gateway): avoid async facade mock race (#118708)
  fix(gateway): preserve final speech during transcription shutdown (#118693)
  fix(gateway): resume durable outbound delivery retries (#118694)
  fix(plugins): reject external public-artifact hardlinks (#118689)
vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main: (78 commits)
  fix(parallels): recover Windows poll transport failures (#118479)
  fix(channels): deny unauthorized Discord and Telegram binding access (#118704)
  fix(test): bound shared git inventory lookup (#111171)
  fix(onboard): keep referenced provider secrets out of plaintext (#118702)
  docs: show canonical agent roster configuration (#118722)
  fix(channels): generate catalog from package manifests (#118097)
  fix(zalouser): distinguish probe timeout from auth failure (#111336)
  improve(ui): cut E2E shard runtime by reusing the bundle (#118697)
  fix(cli): publish completion caches atomically (#118715)
  fix(whatsapp): honor disabled self-chat without widening group access (#118711)
  fix(voice-call): terminate carrier calls after realtime startup failures (#118699)
  fix(slack): isolate GovSlack media trust and delivery (#118695)
  fix(browser): wrap page-controlled action results (#118691)
  fix(security): sanitize JSON-escaped forged content boundaries (#118698)
  test(qa): prove real yielded-child completion and channel delivery (#118707)
  fix(doctor): honor explicit plugin-only migration authority (#118700)
  fix(security): detect child_process calls through aliases and computed members (#116304)
  test(gateway): avoid async facade mock race (#118708)
  fix(gateway): preserve final speech during transcription shutdown (#118693)
  fix(gateway): resume durable outbound delivery retries (#118694)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
* origin/main:
  fix(onboard): keep referenced provider secrets out of plaintext (openclaw#118702)
  docs: show canonical agent roster configuration (openclaw#118722)
  fix(channels): generate catalog from package manifests (openclaw#118097)
  fix(zalouser): distinguish probe timeout from auth failure (openclaw#111336)
  improve(ui): cut E2E shard runtime by reusing the bundle (openclaw#118697)
  fix(cli): publish completion caches atomically (openclaw#118715)
  fix(whatsapp): honor disabled self-chat without widening group access (openclaw#118711)
  fix(voice-call): terminate carrier calls after realtime startup failures (openclaw#118699)
  fix(slack): isolate GovSlack media trust and delivery (openclaw#118695)
  fix(browser): wrap page-controlled action results (openclaw#118691)
  fix(security): sanitize JSON-escaped forged content boundaries (openclaw#118698)
  test(qa): prove real yielded-child completion and channel delivery (openclaw#118707)
  fix(doctor): honor explicit plugin-only migration authority (openclaw#118700)
  fix(security): detect child_process calls through aliases and computed members (openclaw#116304)
  test(gateway): avoid async facade mock race (openclaw#118708)
  fix(gateway): preserve final speech during transcription shutdown (openclaw#118693)
  fix(gateway): resume durable outbound delivery retries (openclaw#118694)
  fix(plugins): reject external public-artifact hardlinks (openclaw#118689)
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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