Repository navigation
Conversation
Document the sandbox policy fields, path resolution helpers, and error payloads so the planned private-item and public documentation gates can be enabled without suppressions. Mark compatible accessors as const and remove the unused receiver from the canonical path cache helper. Keep original runtime path aliases and executable authorization separate.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (3)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: 2 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour. Summary
No new execplan is identified in the supplied change summary. Test results are not available. WalkthroughThe changes document sandbox error fields, profile policies, and launch checks. Selected profile methods become ChangesSandbox API and launch behaviour
Suggested labels: Priority: ⬇️ Low Change: Refactor Merge Risk: ⚪ Minimal · up to No actionable behavior or compatibility regression was found in the reviewed changes; no material risk remains before normal checks. Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error, 2 warnings)
✅ Passed checks (12 passed)
Full details: Testing (Overall)Explanation The pull request adds compile-time API capability without a test for it. The diff changes Resolution Add compile-time tests that use the changed methods from constant contexts. Cover Full details: Developer DocumentationExplanation The pull request adds and changes internal sandbox interfaces without updating Resolution Update Full details: Testing (Compile-Time / Ui)Explanation The PR introduces compile-time Rust behaviour by changing Resolution Add a sandbox compile-time test using Mark each error field with care, Comment |
Reviewer's GuidePrepares the sandbox source for the strict Rust lint baseline through documentation, compatible Sequence diagram for sandbox command launch validationsequenceDiagram
participant Caller
participant Sandbox
participant SandboxProfile
participant Filesystem
participant Birdcage
Caller->>Sandbox: spawn(command)
Sandbox->>Sandbox: ensure_single_threaded()
Sandbox->>Sandbox: canonical_program(program)
Sandbox->>SandboxProfile: executable_paths_canonicalized()
SandboxProfile->>Filesystem: canonicalize executable paths
Filesystem-->>SandboxProfile: canonical paths
SandboxProfile-->>Sandbox: executable allowlist
Sandbox->>Sandbox: ensure_program_whitelisted(program)
Sandbox->>SandboxProfile: runtime_paths()
SandboxProfile-->>Sandbox: original runtime aliases
Sandbox->>Birdcage: activate and launch with exceptions
Birdcage-->>Caller: SandboxChild
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
This branch prepares the sandbox policy source for the strict Rust lint baseline. It documents policy fields, path-resolution helpers, and error payloads; makes compatible accessors const; and removes an unused receiver from the cache helper. The runtime aliases added in #297 remain distinct from the caller's executable allowlist. No lint is suppressed.
This is the sandbox source-fix layer above #309 (build-script environment injection). It precedes the separate
EnvGuard/launcher boundary work and the later lint-configuration layer.Review walkthrough
Vec's dereference, soruntime_pathsremains an ordinary method.Validation
make check-fmt,make spelling,make lint,make test,make typecheck,make markdownlint,make nixie, andmake test-workflow-contracts: all passed sequentially on commitaab776ff050f12e1448f404eab01027c500a2d8e. The test gate passed 1,589 tests with four skipped and all doctests; workflow contracts passed 187 tests. Logs:/tmp/weaver-sandbox-20260924-old-policy-gates-run1/.EnvGuard, two in its tests, and newly reachable CLI and LSP-host source; that failing run is a lower bound, not a compliant workspace verdict. Scoped Whitaker stopped at twoEnvGuardunsafe-code compiler errors before its suite ran. Logs:/tmp/weaver-sandbox-20260924-probe-*.git diff --checkpassed. Independent static review found no blocking issue. The committed patch matches the tested source diff SHA-256447135652b4e1efc944841b0ae5ec61580307f9948c679aa8842fc61e9efab94.Notes
The existing configuration deliberately governs this source-fix layer. Later layers own final lint enforcement and the unresolved environment/unsafe boundary. Parent #309's hosted CI currently fails at the Whitaker installer, which may also block this stacked PR's hosted checks; that is a tooling failure rather than a local source-gate result. No claim of full-estate baseline compliance is made here.
References
Summary by Sourcery
Prepare the sandbox policy source for the strict lint baseline without changing its runtime behavior or public error messages.
Enhancements: