Repository navigation
fix(providers): polling loses proxy policy and media errors expose keys - #178757
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR preserves Runway polling transport policy and supplies active Google request headers to existing error-redaction helpers. Example: Google returns HTTP 400 with the message “Rejected fixture-google-opaque-credential”.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this PR repairs concrete omissions still present on current main, and no introduced correctness defect was identified. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherGoogle media and speech adapters convert provider responses into results or errors; Runway submits video jobs, polls their status, and downloads generated assets through shared SDK helpers. flowchart TD
A[Media or speech request] --> B[Provider adapter]
B --> C[Resolved credentials and transport policy]
C --> D[Shared HTTP and polling owners]
D --> E[Provider endpoint]
E --> F[Response parsing and error redaction]
F --> G[Media result or safe error]
Technical reviewBest possible solution: Retain the focused adapter changes and existing shared owners, keeping generated-asset downloads separate from provider credentials and transport authority. Do we have a high-confidence way to reproduce the issue? Current-main source demonstrates all three omissions, and the PR reports regression failures on the original adapters; this read-only review executed no target code. Is this the best way to solve the issue? Forwarding already-resolved context to existing SDK owners is the smallest complete repair and avoids duplicating redaction or transport policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f91bca9546f5. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete security regression was found, but the changed polling authority boundary lacks final-effect evidence. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests +59. Total +64 across 6 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 October 20, 2026, 4:44 PM ET / 20:44 UTC. |
Exact-head CI attributionReviewed head: All 51 jobs completed. Every selected test, type, lint, package-boundary, security, and architecture job passed except the inherited ratchet below. The precise security scan and Opengrep also passed. No job was rerun or branch updated to obtain green.
The informational table labels the ratchet new because a later main job passed and selected scope was not compared. The unchanged failing source and original checkout evidence establish inheritance from the older baseline; the later main repair explains that comparison. Failed CI is not being relabeled green. Focused proof: all 52 tests in the three touched provider suites passed, including original-red reflected-credential controls through the actual adapters. Targeted Google/Runway types, syntax lint/format, suppression tests (14), whitespace, and zero-cycle checks passed. Fresh independent P0–P2 review found no actionable defects. No paid live provider requests were made. This uses the scoped maintainer-authorized inherited-failure exception on the reviewed head. Security, required reviews, and all other required checks remain enforced. Existing request, retry, cancellation, body-cap, voice/media, polling, and status contracts remain protected; only diagnostic credential reflection is repaired. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Google media and speech errors could expose the active request credential when an upstream response reflected it. Runway video polling dropped the proxy/private-network policy already resolved for submission.
User Impact
Google media failures retain their useful provider details without echoing the request key. Runway task polling uses the same configured transport policy as submission. No configuration, protocol, dependency, or persisted-format change is required.
Why This Change Was Made
Carry existing request context to the existing Plugin SDK owners: requestHeaders for Google error redaction, and allowPrivateNetwork/dispatcherPolicy for Runway polling. Downloads of generated third-party assets deliberately do not inherit submission trust or credentials.
Best-effort tradeoffs accepted
None. These are reproduced adapter bugs; no guard or supported behavior is removed.
Evidence
All three new regressions failed on the original adapter paths for their intended reasons. The fixed candidate passes all 52 tests across the three touched suites. Runway proof exercises the real SDK poller and observes guarded transport selection; Google proof exercises the real SDK error redactor, including an actual request-header override.
Both targeted package typechecks, changed-file syntax lint/format, mandatory lint-suppressions (14 tests), whitespace checks, and scoped runtime/static cycles (zero) pass. Independent P0–P2 review is recorded before publication. Exact-head hosted CI is the broad gate. No paid live provider request was made.
Production delta: +5 lines. Test delta: +59 lines.