Repository navigation
fix(qa): preserve denial warnings during A2A finalization - #150556
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 12:17 PM ET / 16:17 UTC (Revision 5). ClawSweeper reviewWhat this changesQA Lab keeps agent-to-agent test scenarios active through finalization so Gateway denial warnings survive, and separates their regression tests into a dedicated file with shared helpers. Merge readiness✅ Ready for maintainer review The previous filename finding is resolved, with no remaining actionable findings. Current main still needs this QA correction, and the unchanged production code preserves the relevance of the recorded H3 behavior proof. Priority: P2 Review scores
Verification
How this fits togetherQA Lab’s mock model receives scenario prompts and tool results from an isolated Gateway. Its responses let QA scenarios verify denied sends, successful target runs, and exactly-once message delivery. flowchart TD
A[QA scenario prompt] --> B[Gateway tool execution]
B --> C[Tool result and finalization request]
C --> D[Mock scenario selector]
D --> E[Continue active scenario]
D --> F[Stop at a new user request]
E --> G[Gateway warning or delivery result]
F --> H[Reply to current request]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +9, Tests +155. Total +164 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep fixture lifetime in the existing mock-input owner while leaving authorization decisions and denial warnings with the Gateway. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the trigger: a denied A2A tool call followed by the settled-tool continuation loses the fixture on current main. The focused HTTP regressions exercise that sequence; this review did not execute it locally. Is this the best way to solve the issue? Yes. Reusing the continuation-aware selector repairs fixture lifetime without duplicating Gateway warning logic, and the helper rename resolves the earlier guard failure without weakening it. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b73277191cf5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…49090-prep * 'main' of https://github.com/openclaw/openclaw: (1719 commits) test: remove redundant catalog benchmark gate (#151892) improve(ai): speed up Unicode message preparation (#151950) improve(logging): reduce filesystem work when polling logs (#151961) fix(cron): preserve scheduled work after creator turns end (#151919) improve(telegram): avoid rescanning expired rich-text spans (#151965) refactor(testing): share plugin assertion file scanner (#151960) fix: publish acknowledged managed task receipts (#151590) fix(qa): preserve denial warnings during A2A finalization (#150556) fix(subagents): clear expired blocks after successful delivery (#151949) test: share fresh CLI output fixtures (#151954) refactor: reuse channel status preparation (#151906) fix(plugins): avoid duplicate initialization and mixed registrations (#151927) fix: updates fail for plugins selected from local load paths (#151851) fix(msteams): reactions target the current inbound message (#151382) fix(state): keep the meeting transcript migration result when stage cleanup fails (#151370) improve(gateway): reduce allocations when selecting sessions by store (#151940) fix: finish Crabbox wrapper cancellation cleanup (#151862) fix(discord): preserve text when replying to bot messages (#151821) perf(fleet): run registry operations in SQLite workers (#148290) fix: keep I/O responsive across busy agent databases (#151909) ...
…50556) * fix(qa): preserve A2A denial finalization fixtures * refactor(qa): separate A2A mock coverage and input selection * test(qa): classify mock HTTP helpers as test harness
What Problem This Solves
Fixes A2A QA scenarios losing the expected denial warning when a tool-free finalization request makes the mock provider forget its original fixture.
User Impact
Internal QA-only change: disabled and allowlist-denied cross-agent sends retain the Gateway-owned warning instead of receiving an unrelated mock reply. There is no shipped Gateway, configuration, or protocol change.
Why This Change Was Made
Reuse the continuation-aware scenario selector in the mock input owner. Keep the source fixture active through finalization, stop at a new user or target turn, and prevent projected history from reviving an older fixture. The Gateway remains the owner of denial warnings.
The focused A2A regression family has its own test file and shared request helpers with per-file cleanup. This fixes the PR-only line-cap failure without dropping assertions, compressing code, or changing cap baselines. Relative to the integrated main base, production is +48/-39 lines (net +9); tests/helpers are +365/-210 (net +155). Production growth preserves the fixture-lifetime boundary and centralizes the existing selector.
The latest checkpoint renames the byte-identical helper to
server.test-harness.tsand updates its two test imports. This follows the existing test-only naming contract; the raw-fetch guard, allowlist, runtime code, cleanup, and assertions are unchanged.Evidence
Candidate head:
46ad9d0d27955cc871fd1c3234c63bd3c8a30555(H4), based on7048f8ce4d06d2df5809060f114e3d0e8a72718c(H3), which integrates frozen main22d4773dd12481c746b84eda85e7907ca76281b6.H4 checks: native formatting and signed commit hooks passed. Fresh native autoreview of the exact H3-to-H4 rename, with complete affected source and guard/test-discovery context, completed three passes with no actionable findings.
The following H4 execution gates remain required, not waived or claimed passed:
node --import ./scripts/tsx.mjs scripts/check-no-raw-channel-fetch.mts.node scripts/run-vitest.mjs extensions/qa-lab/src/providers/mock-openai/server.a2a.test.ts extensions/qa-lab/src/providers/mock-openai/server.test.ts.H3 CI 35361264989 ended with 33 successful and 17 skipped jobs. Its only originating failure was the helper filename exposing test-only fetch calls to the runtime guard; the aggregate CI gate also failed. The H3 review identified the same repair and requested the guard and both test files. H4 uses the equally recognized
.test-harness.tssuffix.Historical H3 behavior proof, not H4 execution: native run 35357431145 passed on exact H3:
OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build, including SDK export checks and Control UI hard budgets.a2a-allowlist-denied-cross-agent-senda2a-default-cross-agent-senda2a-disabled-cross-agent-senda2a-message-tool-mirror-dedupeFour distinct Bun 1.4.2 Gateway processes were verified in eight before/after observations. The controller and mock provider ran on Node 24.19.0. This is isolated QA-channel proof, not authenticated external-channel or live-model proof. Independent verification checked schema-3 evidence, all 29 archive members, and the full source/install/build/runtime receipt chain. All recorded Lab, Gateway process/group/listener, native command, and lease cleanup completed; driver/native exit and close were 0, final resource/source checks passed, and the outer proof passed.
H4 changes no production bytes, so that H3 behavior evidence remains relevant historical evidence; no H4 build or Bun rerun is claimed. The review proxy could not access detailed linked logs; independent verification used the retained complete receipts. A stopped one-shot lease is not the ordinary PR CI verdict. Older H0 proof and its disclosed disk-reserve failure remain separate history.
Non-blocking follow-ups: H3 composition emitted Vite
optimizeDeps.includeresolution warnings formdast-util-from-markdown,mdast-util-gfm-table, andmicromark-extension-gfm-table. Its build separately emittednode:pathbrowser-externalization warnings in media-core, an unresolved optionalsharpimport in Baileys, third-party direct-eval warnings, and a startup-CSS advisory below its hard ceiling. These surfaces were not repaired or independently qualified by this A2A change.