Skip to content

fix(providers): polling loses proxy policy and media errors expose keys - #178757

Merged
steipete merged 1 commit into
mainfrom
deslop/z44-3-provider-transport-errors-20261015
Oct 20, 2026
Merged

steipete merged 1 commit into
mainfrom
deslop/z44-3-provider-transport-errors-20261015

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T20:31:54.178870Z e7f97b2 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This 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”.

  • Before: The reflected request credential can appear in the media error.
  • After: The existing redactor removes the credential while retaining the HTTP status and safe diagnostics.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused patch appears correct and worthwhile; required authority-boundary proof remains limited to mocked transport.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Google failures can echo active credentials, and Runway polling can lose the transport policy used for submission.
Reason: The maintainer-authored direction restores existing contracts through their current owners without adding settings or public APIs.

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
Reviewed head: e7f97b20e71fbea171b249bdefc9421bf6787d33

Before merge

  • Add real behavior proof - Authority-chain proof required: the Runway adapter forwards configured private-network and proxy policy through the real poller, but its guard is mocked; provide a real-transport trace showing allowed polling and rejection or credential stripping before a cross-origin destination receives I/O, with credentials and non-public endpoints redacted. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security review attention item - No concrete security regression was found, but the changed polling authority boundary lacks final-effect evidence.
  • Resolve merge risk - Runway polling now consumes private-network and proxy authority; confirm through the real transport that a cross-origin polling redirect cannot deliver the Runway credential to another origin.

Findings

None.

Tests

  • Missing end-to-end proof: Supply final-effect Runway polling evidence with the real transport for the configured route and a credential-free cross-origin redirect.
Agent review details

How this fits together

Google 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]
Loading

Technical review

Best 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 options

Maintainer options:

  1. Prove transport authority at the final request (recommended)
    Supply a production-path transport trace showing configured Runway polling succeeds and a redirect to another origin receives no Runway credential.

Provenance checked

  • Google media error handling keeps the original intent (a43c1f8: The existing change shared provider HTTP errors with Google; supplying request headers completes that shared owner's credential-redaction contract.)
  • Google speech error handling keeps the original intent (refactor: fold private delivery helpers into their owners #177770: The owner refactor folded private delivery helpers into their sole caller while preserving security and behavior; the patch retains that placement and retry handling.)
  • Runway shared polling keeps the original intent (refactor(media): deslop media #156406: The refactor shared bounded polling while keeping provider transport local; forwarding the resolved transport policy preserves that intent.)

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete security regression was found, but the changed polling authority boundary lacks final-effect evidence.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 1690803 adds extensions/runway/video-generation-provider.ts:320 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 16908037a034; files: extensions/runway/video-generation-provider.ts)
  • Vincent Koc: Raw commit ba8a649 adds extensions/runway/video-generation-provider.ts:421 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: ba8a6499f02f; files: extensions/runway/video-generation-provider.ts)

PR surface

Source +5, Tests +59. Total +64 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 7 2 +5
Tests 3 60 1 +59
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 67 3 +64

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +7/-2; tests +60/-1 The small production increase forwards existing context, while the tests cover distinct media, speech, and polling adapter omissions.

Labels

Label changes:

  • add P2: The fixes address reflected credentials and configured Runway transport failures with limited provider-specific scope.
  • add merge-risk: 🚨 security-boundary: Forwarding private-network and proxy authority changes polling transport selection, while supplied evidence mocks the final enforcement boundary.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: The fixes address reflected credentials and configured Runway transport failures with limited provider-specific scope.
  • merge-risk: 🚨 security-boundary: Forwarding private-network and proxy authority changes polling transport selection, while supplied evidence mocks the final enforcement boundary.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add final-effect proof that configured Runway polling succeeds and a cross-origin polling redirect receives no Runway credential.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 20, 2026, 4:44 PM ET / 20:44 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Exact-head CI attribution

Reviewed head: e7f97b20e71fbea171b249bdefc9421bf6787d33.
CI run: 39492303179, attempt 1.

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.

Failing job Attribution and evidence
checks-fast-baseline-ratchets, 118869159835 Inherited mock-export failure at src/commands/doctor-database-network-storage.test.ts:15, mocking ./doctor-database-engine-inspection.js. Actual CI checkout f37f6e13a8848641103050e298031f7787247d8f has ordered parents 05ade6d2df13f660e9df17cbedaeba5eb9f93dfc and this exact head. The failing file has identical blob 29c039ac68a10dcb3d8e90de21bda55c1d184e49 in the baseline and tested merge. That merge changes only this PR's six Google/Runway files. The failure was introduced by #178672 and repaired on main by 2466488c29e25f6fdafe0d6419387116e4194ade; independent PR #178745 reproduces the same diagnostic.
openclaw/ci-gate, 118926276337 Downstream failure solely from checks-baseline-ratchets=failure; every other selected result succeeded.

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.

@steipete
steipete merged commit 829ccbc into main Oct 20, 2026
184 of 189 checks passed
@steipete
steipete deleted the deslop/z44-3-provider-transport-errors-20261015 branch October 20, 2026 23:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: google extensions: runway merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant