Skip to content

fix(runway): honor task routing and video edit ratios - #179245

Merged
steipete merged 2 commits into
mainfrom
deslop/z41-37-runway-request-policy-20261015
Oct 21, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/z41-37-runway-request-policy-20261015

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Runway tasks ignored configured request overrides, and no-proxy polling did not activate the private-network restriction. Video-to-video requests also rejected advertised edit aspect ratios such as1:1 before submission.

User Impact

Configured headers, proxies and private-network policy reach Runway task submission and polling, including a restrictive policy without proxy overrides. Video editing accepts its advertised aspect ratios while text-to-video keeps its existing restriction. Generated third-party downloads keep their separate credential and network boundary. No new configuration key, schema, dependency or SDK contract is introduced.

Why This Change Was Made

Pass existing configuration through the SDK sanitizer and resolver, give the poller an explicit resolved SSRF policy, and recognize both image and video references in the existing ratio helper. Keep authentication, deadline ownership, response validation, bounded downloads and release behavior. Document the task/download boundary.

Best-effort tradeoffs accepted

None. This fixes a reproduced adapter omission; it removes no guard or supported behavior.

Evidence

  • The new provider-boundary regression failed on the original adapter: the final assembled submission headers lacked the configured synthetic relay header. It uses the real SDK policy assembly and intercepts only authentication and external submission, before any network or paid work. Baseline wrapper85.21s, Vitest70.62s; compiler/transform dominated.
  • A second real-SDK regression failed on the previously published head by reaching intercepted unguarded fetch with private networking explicitly denied and no proxy (52.29s wrapper). It now rejects with SsrFBlockedError before fetch and still releases the submission response. No actual network request runs.
  • One new row in the existing submit/poll/download keeper reproduced rejected1:1 video editing before the ratio fix (29.78s wrapper). The repaired flow reaches submission, polling and download with the supported square ratio.
  • Final owner and sibling suites:18 tests/two files passed,26.38s wrapper/22.15s Vitest. Strict targeted types pass after repairing the new response fixture's required finalUrl. Existing coverage retains configured true/proxy policy, SecretRef auth, normal tasks, response/size errors, deadlines and release behavior. No retry, timeout, skip, suppression or assertion weakening.
  • Focused syntax lint, four-file format, three-source line caps, unchanged assertion counts and whitespace pass. Two production modules have zero runtime cycles/no new static component. Final independent P0–P2 review of the staged candidate was scoped-clean with final source verification; the earlier incomplete review is not relabeled clean. Its body-deadline claim was source-rejected and the final reviewer confirmed: guarded POST owns a timer until release, including body reading; no duplicate timer was added. Broad suites and builds remain CI-owned.
  • The mandatory suppression audit is13pass/1fail: two untouched performance scripts add rows outside its97-entry expectation. One serial replay on exact clean tracked base042ed5 reproduced the identical failure (10.42s wrapper). All three candidate hashes were restored and verified afterward. Neither the audit nor either named performance script changes here; no suppression or allowance is added. This is an investigated inherited local failure, not a passing audit or a fix for it.

No live Runway call, credentials, Gateway, build or E2E claim. Exact-head hosted CI is the broad gate. The test's fixed synthetic submission failure is deliberate interception, not a claim that a remote task completed.

Production delta:+5 lines; test delta:+105; documentation:+5. This is a real bug fix under the campaign's size exception, not LARGE cleanup credit. The separate residue branch and protected Phase E backend are not part of this PR.

Release-note context: Runway video tasks honor configured headers and network routing, enforce private-network restrictions during polling, and accept advertised video-edit aspect ratios.

@clawsweeper

clawsweeper Bot commented Oct 21, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: runway size: S labels Oct 21, 2026
@steipete
steipete marked this pull request as ready for review October 21, 2026 07:45
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T09:11:12.503114Z d1e6eed New commits
ℹ️ 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR forwards Runway’s configured request policy into the existing resolver for task submission and polling.

Example: Configure models.providers.runway.request.headers with X-Relay: synthetic-route.

  • Before: Runway task submission omits the configured relay header.
  • After: Task submission and polling receive the configured header.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused patch and regression support correctness, but material network authority is demonstrated only before transport I/O.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Runway video tasks silently ignore configured provider request headers and network routing.
Reason: This restores an existing configuration contract with a minimal adapter repair, and the supplied maintainer-authored status establishes direction.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open: it fixes a current adapter omission with a focused change, and no introduced correctness defect was found.

Priority: P2
Reviewed head: 6f73088a36deaa17ac590508343ef7c1190233cd

Before merge

  • Add real behavior proof - Authority-chain proof required: the new regression stops at mocked submission before I/O, and the body explicitly claims no live execution; provide exact-head production-transport evidence showing configured task routing, private-task rejection without permission, and asset requests without inherited task credentials or policy, including retained saved overrides after upgrade, with sensitive values 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 merge risk - Before merge, establish at the transport boundary that Runway’s configured private-network permission applies only when enabled and that task credentials and policy remain absent from generated-asset requests.

Findings

None.

Tests

  • Missing end-to-end proof: Missing exact-head final-effect evidence for configured submit/poll routing, private-task rejection without permission, asset credential isolation, and existing saved overrides surviving an upgrade.
Agent review details

How this fits together

The Runway plugin receives video-generation requests and provider configuration, resolves authenticated HTTP policy, submits and polls tasks, then downloads generated assets through a separate path.

flowchart LR
  A[Video generation request] --> B[Runway adapter]
  C[Provider configuration] --> D[Shared request policy]
  B --> D
  D --> E[Task submission and polling]
  E --> F[Generated asset download]
  F --> G[Video result]
Loading

Technical review

Best possible solution:

Keep the adapter-local forwarding through the existing sanitizer and resolver while preserving the separate generated-asset path.

Do we have a high-confidence way to reproduce the issue?

Yes: current main omits runway.request at policy resolution, and the added regression supplies a concrete relay-header configuration that exposes the omission; no target code was executed during this review.

Is this the best way to solve the issue?

The change restores the missing input at its producer, reuses existing policy ownership, and leaves polling and downloads on their established paths.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5dad414c2852.

Merge-risk options

Maintainer options:

  1. Verify the task-only authority boundary (recommended)
    Provide final-effect evidence for configured task routing, rejection of private task destinations without permission, and asset requests without inherited task credentials or policy.

Provenance checked

  • Authenticated task request assembly keeps the original intent (012bb1c: The provider refactor composed existing authentication and request-policy owners without intending user-visible behavior changes.)
  • Base URL normalization keeps the original intent (f05a892: The native-adapter refactor delegated URL normalization and classification to the shared policy owner.)
  • Polling and asset separation keeps the original intent (829ccbc: The earlier repair explicitly preserved task transport policy while keeping generated third-party downloads separate from submission trust and credentials.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 6aaf235 adds docs/providers/runway.md:62 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 6aaf235aeedd; files: docs/providers/runway.md)

PR surface

Source +4, Tests +61, Docs +4. Total +69 across 3 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 4 0 +4
Tests 1 61 0 +61
Docs 1 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 69 0 +69

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +4 lines; tests +61 lines The production change reuses existing owners; the regression catches an actual configuration omission hidden by the older resolver-mocked suite.

Labels

Label changes:

  • add P2: The bug affects Runway users relying on existing custom headers or network routing, with a limited provider-specific scope.
  • add merge-risk: 🚨 security-boundary: The patch starts consuming configured authentication and private-network overrides in task transport; final-effect evidence for the allowed and nearest-forbidden cases is absent.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish 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 bug affects Runway users relying on existing custom headers or network routing, with a limited provider-specific scope.
  • merge-risk: 🚨 security-boundary: The patch starts consuming configured authentication and private-network overrides in task transport; final-effect evidence for the allowed and nearest-forbidden cases is absent.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish 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 for configured task access, private-task rejection without permission, and asset requests without inherited task credentials or policy.

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 21, 2026, 4:02 AM ET / 08:02 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Exact reviewed head: 6f73088a36deaa17ac590508343ef7c1190233cd.

The ready-head CI run39564219277 completed successfully, including openclaw/ci-gate and security-fast. The complete head census contains186 checks:39success,144skipped, two superseded metadata cancellations, and the single infrastructure failure below. No runtime test job is cancelled or failing.

Failed check Evidence and attribution
Select Critical Quality shards /119102493598 The PR-files fetch failed with GitHub installation API quota HTTP403 at07:45:26UTC, before source inspection or shard selection. The same selector failed with the same quota HTTP403 at07:45:39UTC on the unrelated run39564249162/job119102585447, head607b8c8e35884b487f382acd376b015fcd4551b0. This three-file Runway repair changes neither the workflow nor its API fetch. Downstream skipped scans are not passing scan proof.

The cancelled auto-response and PR-context jobs have successful same-head successors119102489567 and119102496730. No CI rerun, synthetic push, assertion weakening or suppression change was used.

The separately investigated local suppression-audit failure remains recorded in the PR body and native review, with its identical exact-clean-base replay; it is not relabeled green by hosted CI.

Native landing stopped before dispatch: its MERGEABLE/UNSTABLE admission predicate rejects this unsuperseded optional selector failure despite the successful required CI gate. There is no retained merge intent and no merge request was sent. The native inherited-failure evidence path requires a failed ci.yml attempt, so that evidence shape cannot truthfully represent this successful-CI/failed-optional-workflow case. No admin evidence has been fabricated, and the direct-fallback precondition has not been manufactured with repeated identical attempts.

@steipete steipete changed the title fix(runway): honor configured task request policy fix(runway): honor task routing and video edit ratios Oct 21, 2026
@steipete
steipete enabled auto-merge (squash) October 21, 2026 09:02
@steipete
steipete merged commit 41532e1 into main Oct 21, 2026
98 of 100 checks passed
@steipete
steipete deleted the deslop/z41-37-runway-request-policy-20261015 branch October 21, 2026 09:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
* fix(runway): honor configured task request policy

* fix(runway): guard task polling and accept video edit ratios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: runway merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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