Repository navigation
Welcome pull requests from all contributors - #1236
Conversation
|
|
|
||
| Pull requests from everyone are welcome, including first-time contributors and authors who are not maintainers or existing contributors. Review contributions on correctness, tests, security, architecture, and maintainability, not author status. Good PRs can be merged directly after review and validation. Do not require a maintainer-authored rewrite merely because of who submitted the change or whether they used code generation. | ||
|
|
||
| When the user asks you to review or integrate a PR or branch, you may inspect, test, and integrate it regardless of author status. Keep the work scoped, preserve unrelated changes, and do not pull in unrelated branches or merge a PR without user authorization. Follow the repository's `AGENTS.md` and `CONTRIBUTING.md` for its workflow and contribution policy. |
There was a problem hiding this comment.
Unsandboxed contribution validation
The new policy tells the self-development agent to test and integrate contributions from anyone, but its build and test paths execute contributor-controlled commands through a shell with the host filesystem and environment available. A malicious external contribution can therefore read inherited credentials or modify the review host before its code has been established as safe. Require untrusted contributions to be inspected without execution, or run their build and test commands in an isolated environment with no host credentials.
How this was verified: A controlled contribution build path and the repository build wrapper both inherited an environment marker and read a host file during execution.
Artifacts
- The authored non-destructive script creates only temporary controlled executables, runs the simulated contribution and actual repository wrapper paths, and records their host-access behavior.
- The factory-equivalent self-dev build command executed the simulated contributor script, which inherited the proof environment and read `/etc/hostname`, demonstrating no execution boundary.
- The actual `scripts/dev_cargo.sh` reached a controlled host-PATH cargo executable that inherited the proof environment and read `/etc/hostname`, demonstrating no execution boundary.
Ran code and verified through T-Rex
Prompt To Fix With AI
This is a comment left during a code review.
Path: crates/jcode-base/src/prompt/selfdev_mode.txt
Line: 13
Comment:
**Unsandboxed contribution validation**
The new policy tells the self-development agent to test and integrate contributions from anyone, but its build and test paths execute contributor-controlled commands through a shell with the host filesystem and environment available. A malicious external contribution can therefore read inherited credentials or modify the review host before its code has been established as safe. Require untrusted contributions to be inspected without execution, or run their build and test commands in an isolated environment with no host credentials.
**How this was verified:** A controlled contribution build path and the repository build wrapper both inherited an environment marker and read a host file during execution.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.…ibutors-20260913 Welcome pull requests from all contributors
Summary
Validation
cargo test -p jcode-base --lib prompt -- --test-threads=1: 44 passed.rustfmt --check --edition 2024 crates/jcode-base/src/prompt_tests.rs: passed.Closes #1235