Repository navigation
fix(qa): preserve Doctor health discovery in packaged fixtures - #134944
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 5:17 AM ET / 09:17 UTC. ClawSweeper reviewWhat this changesThe branch preserves packaged-fixture health discovery, retains both output streams in redacted child-command failures, and updates a live Codex MCP fixture to assert canonical runtime and tool-history names. Merge readinessNo introduced correctness or security defect was found. This PR remains open because its exact-head check and focused post-refresh integrations are still in progress. Priority: P2 Review scores
Verification
How this fits togetherQA Lab creates isolated Gateway fixtures to validate installed plugins, provider routing, and release scenarios. The child-command runner returns failures to the harness, while the live fixture performs an agent turn and reads Gateway chat history for its tool activity. flowchart LR
A[Packaged fixture] --> B[QA Gateway setup]
B --> C[Plugin discovery and activation]
C --> D[Live agent turn]
D --> E[MCP tool history]
B --> F[Child command runner]
F --> G[Redacted failure diagnostic]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +10. Total +10 across 11 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Complete current-head validation, then land the existing canonical fixture repair without restoring a separate discovery-suppression path. Do we have a high-confidence way to reproduce the issue? Yes, from source and supplied evidence: a nonzero child emitting both stderr and stdout lost the stdout diagnostic on current main, and packaged fixtures suppressed the discovery prerequisite they need. Is this the best way to solve the issue? Yes. The patch moves fixture isolation to existing activation configuration while retaining canonical discovery, and repairs the diagnostic at its producing child-command owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8870e4a5ea5f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
dcb142a to
197e6ec
Compare
|
@clawsweeper re-review The live fixture now uses the canonical Codex owner and asserts the executed runtime and exact native MCP history names. Its source-bound Linux live proof passed with both real tool calls and the final response; retained failure attempts are described in the body. The unchanged deterministic siblings passed all 12 cases. Head 197e6ec mechanically refreshes onto main containing the Doctor prerequisite repair. Exact-head CI and three targeted integration cases are running before landing; no gate is being bypassed. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…law#134944) * fix(qa): preserve Doctor discovery during MCP bootstrap * test(qa): preserve plugin isolation in packaged Gateway fixtures * test: use the canonical Codex runtime for live MCP proof
Problem and repair
Packaged release-verification fixtures failed before reaching their session, node, or real model/tool checks. Their environment disabled bundled artifact discovery even though Doctor needs the plugins' public health APIs. Preserve discovery and use the existing plugin activation configuration for isolation. The custom-plugin control-plane case retains its exact allowlist/load path and disables the memory slot explicitly.
The QA command harness also preferred stderr over stdout on failure, hiding the updater's structured failure behind Doctor's stderr panels. Join both streams before the existing redactor and 2,048-character bound. Successful stdout, process ownership, shutdown, and exit handling remain unchanged.
Live verification then exposed two obsolete assumptions in the MCP fixture. Its manually built configuration disabled the Codex plugin needed by the default official OpenAI route. Use the canonical live-frontier setup with that owner enabled and no authored transport override. Assert the completed agent response identifies the executed Codex runtime. Configured Gateway MCP is owned natively by Codex and appears in persisted history as
gatewayLive.parity_probe; the node tool remains the dynamicnodeLive_parity_probe. The prompt and history assertion now match those exact owner contracts. Both real tool calls, their markers/results, and the exact final response are still required. Missing-call diagnostics include bounded synthetic history.This is a QA harness/fixture repair. No production loader, readiness, model routing, tool transport, retry, timeout, configuration surface, or storage change is introduced. No release publication is included.
Proof
memory-core/doctor-health-api.jspublic surface despite the built artifact existing. Removing only discovery suppression passed bootstrap with runtime plugins still disabled and children cleaned up.dcb142apassed its native Linux changed-scope gate and build, then all 12 deterministic cases across eight files with zero skips. This includes the optional provider timing proof. These unchanged sibling-case results are retained, not relabeled as a new full-release run.dcb142a. Node 24.19.0, build 48.3 seconds, live phase 64.2 seconds (case 34.5 seconds). It asserts actual Codex execution, both completed MCP calls/results, and the exact final token. All source hashes remained unchanged, no owned processes remained, and the lease was stopped. Redacted receipts are retained. This is source-bound working-tree proof, not an assertion that the old public head passed or a full-release certificate.codex-rs/app-server-protocol/src/protocol/v2/item.rs(MCP server/tool fields and conversion), dynamic-tool handling, and API-key login/storage owners.The original PR CI failed only the unrelated cold-source Doctor readiness fixture. That repair has since landed in #134812 (
113805d6): its Node 24.19 hosted shard passed all 11 Doctor process cases and 310 total tests, with runtime preparation before workers. This PR is refreshed over mainfd6bb229at head197e6ec9. All eleven reviewed QA file hashes are unchanged. Main also changed startup, auth, session lookup, retry ownership, and dependencies, so final-head validation rebuilt and ran the live MCP case, session scope continuity, and quiet-provider timeout recovery. All passed on exact197e6ec9: build 42.0 seconds; two deterministic cases, zero skips (580.1-second phase, including the unchanged 405-second provider hold); real Codex MCP case, zero skips (70.1-second phase). All 36,070 tracked blobs/modes and the refreshed lock matched, source remained unchanged, no owned processes remained, and the test lease was stopped. Exact-head CI 33490154830 passed 129 jobs with 16 skips; required gate 99801910773 succeeded.Production delta: +1/-1, net zero. Test delta: +87/-77, net +10. Removed the redundant discovery suppression, the stderr-only failure selection, and the live fixture's handcrafted provider/model configuration. Existing deterministic/session/recovery/transport contracts and original live deadlines remain intact.
ClawSweeper's refreshed review on exact
197e6ec9found no introduced correctness/security defects. Its before-merge and rank-up requests are now satisfied by the successful exact-head CI and focused integration proof above. Redacted proof receipts are retained. Related: #134824.