Repository navigation
fix(qa): restore failed-tool recovery scenarios - #126971
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 4:21 AM ET / 08:21 UTC. ClawSweeper reviewWhat this changesThe PR updates a mock-provider gate, its unit test, cron and qa-channel scenarios, and an OTEL Gateway E2E assertion to use the canonical failed-tool recovery instruction. Merge readinessKeep this maintainer-owned draft open: current main’s production recovery instruction is canonical, while five QA consumers still assert retired wording; the branch synchronizes those consumers and introduces no actionable defect. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe embedded-agent runner appends an honesty instruction when a settled failed tool needs a user-visible final reply. QA Lab’s mock provider, channel/cron scenarios, and OTEL Gateway E2E test verify that recovery and delivery contract. flowchart LR
A[Failed tool result] --> B[Embedded-agent recovery]
B --> C[Failure-honesty instruction]
C --> D[Final user reply]
D --> E[QA channel and cron scenarios]
D --> F[OTEL Gateway E2E]
C --> G[Mock provider contract]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests 0, Other 0. Total 0 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the canonical production wording and merge the synchronized QA expectations once the owning maintainer takes this draft through the normal exact-head merge gate. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible with high confidence: current main emits the canonical instruction while the affected mock and scenario assertions still require the retired text. Is this the best way to solve the issue? Yes. Updating every located QA consumer to the production-owned canonical instruction is narrower and safer than changing the recovery behavior back to satisfy stale fixtures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0a0d343cf299. 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 |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Addressed the remaining OTEL rank-up finding on |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact-head focused proof for |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready evidence for immutable head
The broader channel pack's two existing diagnostic-classification failures were not selected by, and did not fail, any required exact-head gate. They remain follow-up work outside this wording-only repair. |
|
Merged via squash.
|
* fix(qa): sync cron failed-tool honesty fixture * fix(qa): sync channel failed-tool honesty fixture Amp-Thread-ID: https://ampcode.com/threads/T-01a02218-492f-73b8-8514-ef342917e129 * test(qa): sync OTEL failed-tool assertion --------- Co-authored-by: Amp <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
What Problem This Solves
Resolves a QA contract drift where cron, qa-channel, and OTEL failed-tool terminal-finalization coverage still required retired wording after the production recovery prompt adopted the canonical failure-honesty instruction.
Why This Change Was Made
Synchronizes every located consumer of the shared mock-provider gate with the canonical production instruction:
If a tool failed, say so; never claim completion or success.The cron and qa-channel scenarios exercise the same embedded-agent settled-tool recovery contract, and the OTEL assertion observes that contract through the real Gateway path.This is QA-only and does not change cron, channel, or Gateway behavior.
User Impact
No product behavior changes. Maintainers regain reliable coverage proving cron and direct qa-channel turns with a failed terminal tool send one honest final reply rather than claiming success, including the OTEL runtime boundary.
Exact-Head Evidence
Reviewed and exercised head:
d1f093e97bc6bd5bb3cc098699ffe79efcfe92f8.ENOENT ... calls=1 failed=1 finalizations=1.ENOENT ... calls=1 failed=1 finalizations=1.message-tool-stranded-final-retry-failureandprovider-http-503-visible-failurereceive their expected sanitized error replies, whichwaitForOutboundMessageclassifies as failures before their assertions.check-changedgate passed formatting, guards, plugin doctor (5/5), all core/UI/extensions/scripts/root typechecks, lint (0 warnings/errors), and import-cycle checks (0 cycles).The required repository autoreview was attempted on the exact branch diff. TruffleHog passed, but the official Codex CLI's available OpenAI credential returned HTTP 401. No local Codex result is claimed; the independent exact-head source review is retained instead.
No screenshot is attached because the patch changes QA expectations only. DOM/accessibility coverage remains represented by the passing 221-test Control UI unit suite and 19-test mocked-Gateway browser suite; no UI DOM changed in this patch.
Scope
Five QA/test files, each
+1/-1: total+5/-5, production LOC+0/-0.Known outside this explicitly authorized scope: the two channel diagnostic flows above need owner follow-up. They are not caused by this wording-only patch.