Repository navigation
fix(fusion): retain native request correlation IDs - #1044
vincentkoc wants to merge 1 commit into
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. What this changesThis PR records OpenAI client and provider request IDs in native pair and workload benchmark receipts. Example: An OpenAI benchmark request returns HTTP 400 with x-request-id=req_test-123.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful benchmark diagnostics absent from current main, with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherOpt-in benchmark runners transform model requests, reserve spending, call native provider APIs, and write private JSON receipts containing accounting and bounded diagnostic metadata. flowchart LR
A[Benchmark runner] --> B[Native request adapter]
B --> C[Reserve and save client ID]
C --> D[Provider API]
D --> E[Capture bounded response ID]
E --> F[Settle or retain reservation]
F --> G[Private JSON receipt]
Technical reviewBest possible solution: Keep correlation in the existing native adapter and receipt ledgers while preserving current privacy, accounting, and stopping rules. Do we have a high-confidence way to reproduce the issue? Current-main source shows that native pair and workload calls neither send client correlation IDs nor retain provider response IDs; no target code was executed during this read-only review. Is this the best way to solve the issue? The implementation is focused: two shared helpers serve the existing dispatch owners, leave serialized bodies unchanged, and retain correlation without introducing another transport or accounting path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 43d978e80dfa. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel 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 13, 2026, 1:34 PM ET / 18:34 UTC. |
08415c3 to
582a877
Compare
Summary
Native Fusion benchmark failures lacked request correlation for provider investigation. Persist a unique OpenAI client request ID before dispatch and retain a bounded provider request ID before parsing the response, including HTTP and JSON failures. No prompts, completions, arbitrary headers or raw error bodies are added to receipts.
Verification
Deployment and risk
Benchmark scripts only. No deployment, default routing, retry, scoring or budget-policy changes. Provider IDs outside the documented receipt allowlist are omitted. No paid model calls were made for this change.
Rebased onto the landed probe-qualified handoff and fresh Azure task. Both sets of regression tests are retained; the final rebased patch passed independent P0–P2 review. Fresh CI applies to the new head.