Repository navigation
Conversation
Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 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. |
Route mock-provider request artifact collection through the plugin SSRF guard, with bounded loopback access and deterministic resource release. Co-authored-by: RomneyDa <[email protected]>
|
Codex review: needs changes before merge. What this changesThis PR saves mock OpenAI request snapshots as QA artifacts before stopping the provider. Example: A mock-openai QA suite records a request with cursor 1 and model fixture-model.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this useful, maintainer-authored diagnostic improvement open; the new test mock introduces a concrete CI gate failure. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherQA Lab starts an isolated Gateway and mock provider, runs scenarios, then tears down resources; the added capture reads the provider's debug endpoint and publishes a diagnostic file through the existing artifact writer. flowchart TD
A[QA suite scenarios] --> B[Isolated Gateway]
B --> C[Mock OpenAI provider]
A --> D[Suite cleanup owner]
D --> E[Stop Gateway]
E --> F[Capture request artifact]
C --> F
F --> G[Stop mock provider]
Technical reviewBest possible solution: Retain the focused capture helper and existing cleanup owner, and repair the new test mock so the export-completeness gate passes. Do we have a high-confidence way to reproduce the issue? Source inspection establishes both the missing request-retention path on main and the new mock's rejection by the export guard; no target code was executed. Is this the best way to solve the issue? The capture uses the existing provider endpoint, cleanup sequence, and atomic writer, making it a focused implementation without a competing state owner. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cd2f589dfe4c. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +56, Tests +58. Total +114 across 5 files. Added test files: 1. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 8:23 PM ET / November 2, 2026, 01:23 UTC. |
Summary
/debug/requestssnapshot in QA artifactsThe artifact is written atomically with mode
0600atartifacts/mock-openai-requests.json. Cleanup continues even if capture fails.Testing
pnpm test extensions/qa-lab/src/suite-provider-artifacts.test.ts extensions/qa-lab/src/suite.test.ts --maxWorkers=1(29 tests)git diff --checkRepair sweep — 2026-11-25
Integrated main ba6d94e to pick up current qualification. Addressed both test-review findings: the SSRF runtime mock now preserves real exports, and the no-provider live-mode negative case was removed because it did not prove live-provider isolation. The mock-export guard fails on the old factory and passes with the correction; all25 artifact/suite tests, focused type-aware lint, formatting, and diff checks pass. Independent source review found no actionable findings in this correction. Exact-head hosted CI is green; the local correction review is complete as detailed below.
Published head:
663510dc0ca14f5e54e4df6ac3b1c6f9544cf4c1. No merge or deployment is claimed.Current correction review
Local ClawSweeper completed its normal committed-range code/security review of
d8501ac4cd775f06b29fc4b0a3b351890da1206c..663510dc0ca14f5e54e4df6ac3b1c6f9544cf4c1with no actionable findings. This covers the repair correction, not a new full review of the historical PR. No GitHub review or approval was posted by the local runner.