Skip to content

fix(sandbox): preserve file data and 308 redirects on Python 3.9 - #133580

Merged
steipete merged 1 commit into
mainfrom
steipete/frosty-snyder-010859
Aug 30, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/frosty-snyder-010859

Conversation

@steipete

@steipete steipete commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #133573 — remote-only sandbox files/media read as empty with Apple Python3.9.6.
Closes #133574 — Codex sandbox HTTP308 follow requests return the original redirect on Python3.9.

What Problem This Solves

Fixes an issue where users reading remote sandbox files or sending remote-only attachments would receive empty content when the selected Apple Python3.9.6 interpreter silently skipped a /dev/fd/3 helper program. Also fixes OpenClaw-backed Codex sandbox HTTP requests that stop at308 despite requesting redirect following on Python3.9.

Why This Change Was Made

Remote filesystem helpers now use the existing shell-quoted -c source transport, leaving stdin available for binary payloads. The unchanged Python program and reserved create status have one source owner, consumed by the shell-plan/quoting owner and retained fault-injection tests. This avoids both duplicate source quoting and a test-only raw export; the old raw/code export aliases are removed rather than retained as compatibility.

The HTTP subclass explicitly dispatches308 through urllib's existing redirect machinery and its current guarded override. It does not add another HTTP path or replace the selected interpreter.

User Impact

Remote file and media operations execute on the authoritative remote workspace, with no host-file fallback. Python selection, binary stdin/argv, exclusive-create collision/EPIPE behavior, pinned-parent/symlink/hardlink/size protections, cancellation and streaming ownership remain intact. HTTP307/308 preserve POST/body; stop/follow, cross-origin credential stripping and destination checks remain intact.

No new configuration/environment option, dependency/override, schema, timeout, heap, guard exception or Python version floor. The SSH remote utility contract still requires /bin/sh, python3, GNU-compatible stat -c and readlink -f in non-interactive SSH. This does not claim that an unprovisioned macOS SSH target meets that contract.

Evidence

Red and green

  • Exact CommandLineTools3.9.6: original remote/HTTP owners with the current regressions produced 8 expected failures (both remote-media sinks, remote binary operations and five308 cases). Restoring the repair yielded 79 passed /0 failed across the five focused files. Original stock tests also reproduced exactly the two empty-media failures and308 POST failure on Xcode3.9.6.
  • Final focused matrix: 79 passed per interpreter on exact CLT3.9.6, Python3.12.14 and3.14.7. Ten Linux-only cases remain skipped on macOS and were exercised separately on Linux. Native shell plans retain their absolute interpreter priority rather than being forcibly switched by the PATH-selected matrix.
  • Final CLT security/lifetime siblings: 237 passed, with two Linux-only and one Windows-only skips. Includes raw fault injection, read-only mounts/skills, bounded/FIFO reads, SSH stream/cancellation/EPIPE, SSRF/DNS pinning, retained read reservations and HTTP child reaping/finalization.
  • Final GNU/Linux proof: 114 passed /0 skipped across seven sandbox/HTTP files, using Node24 and Python3.12.3. Testbox backing run; wrapper exit0, all nine candidate file hashes matched, and the lease completed and was stopped. This is targeted Testbox validation, not a claim about the whole PR CI gate.
  • Real production preprovisioned SSH backend: 32 cases passed across Xcode3.9.6, exact CLT3.9.6,3.12.14 and3.14.7, through actual loopback SSH with task-provisioned installed GNU utilities and strict host checking. Binary/quoted-path roundtrips, legitimate empty files,8MiB create collisions, copy/rename/remove, limits and link rejection passed. Host directories stayed empty. All208 SSH invocations completed; four remote roots, four host directories and188 backend session directories were removed.
  • pnpm build passed locally. No ineffective dynamic-import warning was reported.
  • The actual nine-file check:changed plan passed 34/34 stages, including all Knip scans, core/core-test/plugin/plugin-test types, targeted lint and ownership/dependency guards. No skip flag or budget change was used.
  • Fresh pre-commit Codex autoreview: scoped-clean at P0; no accepted/actionable findings. The review received the final diff and directly captured dependency source.

Focused commands:

node scripts/run-vitest.mjs src/agents/tools/message-tool.internal-source-reply.integration.test.ts src/agents/tools/message-tool.sandbox-attachments.test.ts extensions/codex/src/app-server/sandbox-exec-server.http.test.ts src/agents/sandbox/fs-bridge-mutation-helper.test.ts src/agents/sandbox/remote-fs-bridge.test.ts
node scripts/check-changed.mjs -- extensions/codex/src/app-server/sandbox-exec-server.http.test.ts extensions/codex/src/app-server/sandbox-exec-server/http.ts src/agents/sandbox/fs-bridge-mutation-helper.test.ts src/agents/sandbox/fs-bridge-mutation-helper.ts src/agents/sandbox/fs-bridge-mutation-python.ts src/agents/sandbox/fs-bridge.ts src/agents/sandbox/remote-fs-bridge.test-helpers.ts src/agents/sandbox/remote-fs-bridge.test.ts src/agents/sandbox/remote-fs-bridge.ts
pnpm build

The per-interpreter executions retained separate full-file runs, complete native JSON, selected interpreter identity and source hashes. Failed evidence was preserved, including the first candidate's Knip rejection; the source-owner split resolved it without dropping tests or adding an exception.

Source and size

The Python program is unchanged: 23,155 bytes, SHA256 aed642e062d9b185ea49d4e4232ff77141f683c311964a6da4af3d6c92f2a456. All raw fault-test bodies remain unchanged. Production is +522/-520 (net+2), including507 exact moved lines; discounting the move gives +15/-13. Tests/support are +135/-27. Growth is the missing dispatch contract and explanatory context, not a parallel implementation.

Personally inspected Codex source: redirect semantics, follow/stop and streaming, and RPC forwarding, plus installed urllib3.9/3.12 dispatch and Python CLI contracts.

Proof boundaries

The current evidence proves actual Python subprocesses, real HTTP sockets, message-tool consumers and the real preprovisioned SSH backend. It does not claim a live model turn, Gateway UI/video, initial SSH seeding/recreate, a real-SSH abort experiment, Windows execution, or a full release/package matrix. The filesystem proof replaced parents before invocation, not inside a deterministic TOCTOU window; existing fault-injection and lifecycle tests cover their separate boundaries. The accepted candidate-only Gateway attachment proof is recorded below.

ClawSweeper review follow-through

The ClawSweeper review reported no code or security finding; its remaining request was direct sibling Codex-source verification unavailable in that review environment. The publication reviewer personally read all three files in the actual sibling checkout at 0ae94fdd49b05ee7faa4d984d06a68492cb32b54 before committing this exact PR head, a06db24a4eaf8948e5524d139642b40f5410ace3, and rechecked that upstream SHA afterward:

Direct inspection of installed Python 3.9 and 3.12 urllib also confirms the missing 3.9 dispatch alias and the existing dispatcher's call into the guarded override. This completes the requested source-contract check; it does not claim a live Codex model turn. No source change or acceptance of an unverified contract gap was needed.

Current landing CI

Exact-head CI run 33338000560, attempt 1 failed in checks-node-compact-small-32. The sole failed test in that shard is test/scripts/docs-sync-publish.test.ts:196, “keeps generated locale navigation aligned with English routes”: the actual release navigation includes releases/2026.8.1, while the test still expects the older three-entry list. The shard otherwise passed 2,198 tests, with four skipped.

That mismatch was present on main at 76e96cce16d5df5537cc67c58cdd69dbf79f6ee8. PR #133581 — include the v2026.8.1 release navigation subsequently fixed the English, shared, and Chinese test expectations and merged as 7504a3b3c45393e793e2a3960585a4e781da94cd.

This PR was rebased onto that healed main in its managed PR worktree, producing head 51b71731f7a3556296495f9ba4b62c1fac1447c4. All nine tested file hashes match the completed proof, and the complete binary diff of the repair is byte-for-byte identical before and after rebase. The sandbox/context, SSH, message-tool, sandbox-media, media-reader, Codex HTTP and Telegram paths inspected between the original base and healed main are unchanged. No docs-test or release-file change was added to this PR.

Fresh exact-head CI run 33339434921 completed successfully for 51b71731f7a3556296495f9ba4b62c1fac1447c4, including the required openclaw/ci-gate. The failed immutable old merge-ref run was not retried. The direct Codex inspection above remains valid at upstream 0ae94fdd49b05ee7faa4d984d06a68492cb32b54; its exact source and the repair are unchanged. The parent accepted the Gateway proof below and granted final clearance for native landing. This evidence update precedes native preparation and merge; no bypass is authorized.

Real Gateway → SSH → channel attachment proof

PASS — candidate-only real Gateway with a scripted provider and a mock Telegram API. One synthetic inbound update exercised the normal built Gateway/OpenClaw runtime, actual SSH exec, the production message.send path and Telegram's multipart document sender. Exact Apple CommandLineTools Python 3.9.6 performed the pinned remote read, with the already-supported GNU stat/readlink contract provisioned through a task-owned PATH. This was a real loopback SSH endpoint with strict known-host checking, not an injected filesystem bridge.

The remote proof.bin contained a valid gzip archive of the original 17-byte binary payload, including 0 and 255. The channel received exactly 40 bytes, SHA-256 32399dba0ea788fbb5507f2d9945a950ff2c29cff564a900d63006dbda204cd5, and returned synthetic receipt 7001. The receiver asserted both exact archive equality and successful decompression to the original payload. The host workspace was an existing empty directory before and after, with no counterpart file and no host fallback. All 15 SSH invocations ended successfully; the Gateway emitted start/end without error. Owned Gateway, mock servers, SSH children and temporary runtime/workspace roots were cleaned up.

Exact command (Node 24.20.0; ignored, task-local proof driver):

/opt/homebrew/Cellar/node@24/24.20.0/bin/node --import ./scripts/tsx.mjs .artifacts/python-portability/landing-proof/run-20260830-gateway-clt39-a3/probe.ts
Sanitized Gateway verdict and evidence binding
{
  "verdict": "PASS",
  "kind": "candidate-only Gateway, scripted provider, mock Telegram API, real SSH",
  "testedSourceHead": "a06db24a4eaf8948e5524d139642b40f5410ace3",
  "rebasedPrHead": "51b71731f7a3556296495f9ba4b62c1fac1447c4",
  "allNineSourceHashesMatchRebasedHead": true,
  "repairDiffByteIdenticalAfterRebase": true,
  "python": "Apple CommandLineTools 3.9.6",
  "node": "24.20.0",
  "hostEntriesBefore": [],
  "hostEntriesAfter": [],
  "hostCounterpartAbsent": true,
  "remoteReadBytes": 40,
  "receivedBytes": 40,
  "remoteAndReceivedSha256": "32399dba0ea788fbb5507f2d9945a950ff2c29cff564a900d63006dbda204cd5",
  "decompressedPayloadBytes": 17,
  "decompressedPayloadSha256": "e9c23aca886e07d28ad3bea249fe49d267a4062ddbd9216ca694acca03e43a64",
  "decompressedPayloadVerified": true,
  "successfulExecCalls": 1,
  "successfulMessageCalls": 1,
  "documentUploads": 1,
  "syntheticReceipt": 7001,
  "terminalWithoutError": true,
  "all15SshInvocationsExitedZero": true,
  "strictKnownHostsUnchanged": true,
  "allOwnedResourcesCleaned": true,
  "distEntries": 12201,
  "distSha256": "ba4eff52067873e82b6b6ae1bd3b94f3a6e374f8746713852606ce0fc0c81a58",
  "driverSha256": "9001fcdf5160cc00b76d4e81a5d0c6e99a534222a1c7594901a6a72feb4b3a00",
  "sshWrapperSha256": "4798bab7201d5c0888938dbc533234989202f6a27804bf254b34ffc002ddcc83"
}

The normal build was made from the candidate before its same-byte publication commit; its unchanged build stamps name base cbb8926a43dbfb96ea9fadf5faa8b197f53b78dd, not the later commit. The full source and dist fingerprints were checked before/after. The lead independently checked the proof driver, SSH wrapper, scalar verdict, hashes and cleanup. The subsequent PR rebase changes none of the nine tested files or the affected caller paths.

Two failed proof attempts are retained. The diagnostic retry showed that the unchanged media guard correctly rejects arbitrary binary blobs as an unknown type. The successful attempt corrected only the artifact fixture to valid, buffer-verified gzip; it did not weaken the media guard, change production code, substitute the interpreter or add a host-file fallback. The original-owner failing media regression tests remain the red baseline; this is not a Gateway before/after run.

Limits: no live Telegram acceptance, model judgment or UI rendering claim. Codex 308 and security/cancellation coverage come from the separate recorded interpreter and sibling matrices, not this Gateway run. No raw provider/session transcripts or secret-bearing historical logs were inspected or published.

@steipete steipete self-assigned this Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling extensions: codex size: XL maintainer Maintainer-authored PR labels Aug 30, 2026
@steipete
steipete marked this pull request as ready for review August 30, 2026 22:01
@steipete
steipete requested a review from a team as a code owner August 30, 2026 22:01
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 7:03 PM ET / 23:03 UTC.

ClawSweeper review

What this changes

The PR moves the sandbox mutation program to a dedicated module, sends it to remote Python with -c so stdin remains binary payload data, and routes Python 3.9 HTTP 308 responses through the guarded redirect handler.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for security-owner review. The patch is a coherent owner-boundary repair and current main still contains both old Python paths, but this reviewer could not perform the required direct ../codex source inspection because that checkout is absent and network access is unavailable.

Priority: P1
Reviewed head: 51b71731f7a3556296495f9ba4b62c1fac1447c4
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch and focused boundary coverage are strong, with remaining landing review confined to the restricted owner and unavailable direct Codex-contract check.
Proof confidence 🌊 off-meta tidepool Not applicable: The repository state identifies a member-authored PR, so the external-contributor proof gate does not apply; the supplied body nevertheless describes focused real Python, SSH, and candidate Gateway evidence for the changed owners.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository state identifies a member-authored PR, so the external-contributor proof gate does not apply; the supplied body nevertheless describes focused real Python, SSH, and candidate Gateway evidence for the changed owners.
Evidence reviewed 7 items Remote mutation owner and caller: The remote read path invokes the shared mutation runner, and the introduced runner puts Python source in a shell variable before executing python3 -c, leaving command stdin untouched for binary data.
Current main remains unfixed: Fetched current main still uses the /dev/fd/3 heredoc transport in the remote mutation runner and has no 308 dispatch alias in the redirect handler; the PR is not obsolete.
Redirect safety is retained: The introduced 308 dispatch calls the base redirect dispatcher, which reaches the existing override; that override checks the next URL before constructing the redirected request and strips sensitive headers cross-origin.
Findings None None.
Security None None.

How this fits together

Remote sandbox filesystem operations send guarded shell commands to the authoritative workspace, where Python performs reads and mutations. The Codex sandbox HTTP server similarly delegates requests to Python, which validates redirect destinations before returning buffered or streamed results.

flowchart LR
A[Agent file or attachment request] --> B[Remote sandbox filesystem bridge]
B --> C[Shell command with Python source]
C --> D[Remote Python mutation program]
D --> E[Remote workspace bytes]
F[Codex HTTP request] --> G[Guarded redirect handler]
G --> H[Validated final response]
E --> H
Loading

Decision needed

Question Recommendation
Should the sandbox security owners approve this Python 3.9 transport and guarded-redirect change after independently verifying the Codex redirect contract? Approve after owner contract check: Have the listed security owners independently verify the Codex redirect contract and approve the reviewed exact head.

Why: The affected core sandbox directory has explicit security-owner routing, and this reviewer could not meet the repository’s mandatory direct sibling-Codex inspection gate.

Before merge

  • Resolve merge risk (P1) - The patch changes a restricted sandbox and redirect-security boundary, so listed security-owner involvement is required before landing.
  • Resolve merge risk (P1) - The affirmative Codex-contract check cannot be independently completed in this read-only environment because ../codex is absent; this review therefore cannot certify that compatibility claim.
  • Complete next step (P2) - No mechanical repair is identified; restricted sandbox ownership and the unavailable direct Codex-contract check require human review.
Agent review details

Security

None.

PR surface

Source +2, Tests +108. Total +110 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 6 526 524 +2
Tests 3 131 23 +108
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 657 547 +110

Review metrics

Metric Value Why it matters
Production versus test delta production +522/-520; tests/support +135/-27; approximately 507 production lines relocated The net production growth is two lines while centralizing the existing Python program and adding the explicit 308 dispatch.

Merge-risk options

Maintainer options:

  1. Require sandbox-owner approval (recommended)
    Obtain listed security-owner review and the direct Codex-contract check before merge because the patch changes Python-version behavior in a sandbox redirect path.
  2. Pause pending contract access
    Defer landing if direct Codex-source verification cannot be performed by an authorized reviewer.

Technical review

Best possible solution:

Retain the single quoted -c transport and guarded 308 dispatch, then obtain security-owner review with a direct Codex-source contract check before landing.

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

No live reproduction was run in this read-only review, but current-main source still has the reported heredoc and missing-308-dispatch paths and the PR adds focused boundary coverage for both.

Is this the best way to solve the issue?

Unclear: the repair is at the correct source-transport and guarded-redirect owners, but this reviewer could not independently inspect the required Codex sibling contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3337163a78b7.

Labels

Label changes:

  • add merge-risk: 🚨 security-boundary: The new 308 route enters the sandbox HTTP redirect path that enforces destination validation and credential stripping.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P1: On affected Python 3.9 installations, remote-only attachment bytes can silently become empty and 308 follow requests can stop early.
  • merge-risk: 🚨 compatibility: The PR changes how existing remote sandbox hosts invoke their selected Python interpreter.
  • merge-risk: 🚨 security-boundary: The new 308 route enters the sandbox HTTP redirect path that enforces destination validation and credential stripping.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The repository state identifies a member-authored PR, so the external-contributor proof gate does not apply; the supplied body nevertheless describes focused real Python, SSH, and candidate Gateway evidence for the changed owners.

Evidence

What I checked:

  • Remote mutation owner and caller: The remote read path invokes the shared mutation runner, and the introduced runner puts Python source in a shell variable before executing python3 -c, leaving command stdin untouched for binary data. (src/agents/sandbox/remote-fs-bridge.ts:109, 51b71731f7a3)
  • Current main remains unfixed: Fetched current main still uses the /dev/fd/3 heredoc transport in the remote mutation runner and has no 308 dispatch alias in the redirect handler; the PR is not obsolete. (src/agents/sandbox/remote-fs-bridge.ts:700, 3337163a78b7)
  • Redirect safety is retained: The introduced 308 dispatch calls the base redirect dispatcher, which reaches the existing override; that override checks the next URL before constructing the redirected request and strips sensitive headers cross-origin. (extensions/codex/src/app-server/sandbox-exec-server/http.ts:413, 51b71731f7a3)
  • Boundary coverage: The introduced tests cover 308 stop/follow behavior, streamed body completion, cross-origin credential removal, POST body preservation, and blocking a private redirect before its second connection. (extensions/codex/src/app-server/sandbox-exec-server.http.test.ts:269, 51b71731f7a3)
  • Restricted-path routing: The sandbox directory is explicitly routed to the security owners. (.github/CODEOWNERS:48, 51b71731f7a3)
  • Direct Codex-contract gap: The PR explicitly relies on Codex redirect behavior, but the required sibling checkout is absent; GitHub access could not retrieve a substitute. This is a reviewer-environment limitation, not missing contributor proof.

Likely related people:

  • openclaw/openclaw-secops: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Obtain listed sandbox security-owner review with direct inspection of the Codex redirect contract.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-30T22:09:01.449Z sha a06db24 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T22:19:58.347Z sha a06db24 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T22:27:10.248Z sha a06db24 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T22:40:55.450Z sha 51b7173 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T22:53:30.296Z sha 51b7173 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 30, 2026
@steipete
steipete force-pushed the steipete/frosty-snyder-010859 branch from a06db24 to 51b7173 Compare August 30, 2026 22:32
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready at verified head 51b71731f7a3556296495f9ba4b62c1fac1447c4. CI run 33339434921, attempt 1 and required openclaw/ci-gate passed on that exact head. The earlier docs-navigation failure remains recorded; PR #133581 healed the base, and the rebase preserved all nine tested file hashes and the complete repair diff.

Proof covers 79 focused tests per interpreter (exact CLT 3.9.6, Python 3.12.14 and 3.14.7), 237 CLT sibling tests, 114 Linux tests, 32 real SSH cases/208 invocations, all 34 changed-file gates and a successful build. The retained fresh precommit Codex review is scoped-clean at P0, with no accepted/actionable findings; no broader-priority review claim is implied.

The accepted built Gateway run used a scripted provider, mock Telegram API and real strict-known-host SSH with exact CLT Python 3.9.6. Actual exec and message.send delivered all 40 gzip bytes, SHA256 32399dba0ea788fbb5507f2d9945a950ff2c29cff564a900d63006dbda204cd5, receipt 7001; decompression matched the original 17 bytes including 0/255. The host directory stayed empty, all 15 SSH calls exited zero, and owned resources were cleaned. The media guard remained unchanged; only the rejected arbitrary-binary fixture became valid gzip. Failed proof attempts are retained.

Commands recorded with their detailed evidence in the PR body:

node scripts/run-vitest.mjs src/agents/tools/message-tool.internal-source-reply.integration.test.ts src/agents/tools/message-tool.sandbox-attachments.test.ts extensions/codex/src/app-server/sandbox-exec-server.http.test.ts src/agents/sandbox/fs-bridge-mutation-helper.test.ts src/agents/sandbox/remote-fs-bridge.test.ts
node scripts/check-changed.mjs -- extensions/codex/src/app-server/sandbox-exec-server.http.test.ts extensions/codex/src/app-server/sandbox-exec-server/http.ts src/agents/sandbox/fs-bridge-mutation-helper.test.ts src/agents/sandbox/fs-bridge-mutation-helper.ts src/agents/sandbox/fs-bridge-mutation-python.ts src/agents/sandbox/fs-bridge.ts src/agents/sandbox/remote-fs-bridge.test-helpers.ts src/agents/sandbox/remote-fs-bridge.test.ts src/agents/sandbox/remote-fs-bridge.ts
pnpm build
/opt/homebrew/Cellar/node@24/24.20.0/bin/node --import ./scripts/tsx.mjs .artifacts/python-portability/landing-proof/run-20260830-gateway-clt39-a3/probe.ts

I personally inspected sibling Codex at 0ae94fdd49b05ee7faa4d984d06a68492cb32b54: route_aware_redirect.rs:33–109, route_aware_http_client.rs:104–304, and rpc_http_client.rs:27–70. The latest ClawSweeper review has no source/security findings; its unavailable-sibling contract check is completed by direct maintainer inspection, and exact-head CI is green. No compatibility gap is being waived.

Binary stdin/argv, exit-17/EPIPE handling, remote authority, link/size protections, HTTP stop/follow, POST/body, cross-origin credential removal, destination checks and lifecycle ownership remain covered by their recorded owner/sibling matrices. No host fallback or new configuration, dependency, timeout, heap, schema or guard exception was added. Production +522/-520 includes 507 exact moved lines (net +2); tests/support +135/-27.

Limits: the Gateway run is candidate-only and adds no live Telegram acceptance, model judgment, UI, 308 or security-matrix claim. No initial SSH provisioning/recreate, real-SSH abort, Windows or release-matrix claim. Its unchanged build stamps name the pre-publication base cbb8926a43dbfb96ea9fadf5faa8b197f53b78dd; all nine built source hashes match the rebased head. Parent independently accepted the evidence and granted final native landing clearance. No admin or CI bypass is authorized.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 30, 2026
@steipete
steipete merged commit df055e9 into main Aug 30, 2026
258 checks passed
@steipete
steipete deleted the steipete/frosty-snyder-010859 branch August 30, 2026 23:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

agents Agent runtime and tooling extensions: codex maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Codex sandbox HTTP 308 redirects do not follow on Python 3.9 [Bug]: Remote sandbox files read as empty with Apple Python 3.9.6

1 participant