Skip to content

Add verified Rust sandbox web policy core - #1220

Open
PurpleCHOIms wants to merge 4 commits into
mainfrom
feat/rust-sandbox-web-core-pr
Open

PurpleCHOIms wants to merge 4 commits into
mainfrom
feat/rust-sandbox-web-core-pr

Conversation

@PurpleCHOIms

@PurpleCHOIms PurpleCHOIms commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Add a standalone Rust library for the Decepticon OSS sandbox web engine's generic URL transforms, SSRF and redirect policy, WAF signal matching, allowlisted search result parsing, and response validation. The crate has no network client or process entry point. The current Python sandbox engine and Docker image continue to run until the remaining transport and command path are ported.

Local verification

  • Rust 1.100: cargo +1.100 test --locked --offline --manifest-path runtime/sandbox-web/Cargo.toml --all-targets — 31 passed.
  • Rust 1.100: cargo +1.100 clippy --locked --offline --manifest-path runtime/sandbox-web/Cargo.toml --all-targets -- -D warnings — passed.
  • cargo +1.100 fmt --manifest-path runtime/sandbox-web/Cargo.toml --check and git diff --check — passed.
  • Original Python URL, safety, kernel, WAF, provider and validator suites — 52 passed, 1 skipped (curl_cffi unavailable on the host).

Cargo ran through the shared build coordinator using a RAM-backed target. Verification details and integration limits record the exact scope. CHAGELOG.md records this proposed, unreleased change.

Compatibility and remaining work

There is no user-facing behavior change, package version change or release. The Rust library is not wired into the current sandbox image. A Rust fetch transport, command envelope, Phase-0 router and browser fallback remain; RoE and per-hop redirect checks must be preserved at cutover. BeautifulSoup-specific CSS selector behavior needs a cutover comparison.

Hosted checks are separate from this local qualification; inspect the PR for current results. Account billing/spending limits have previously interrupted GitHub Actions. This PR does not bypass any repository protection.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant