Skip to content

Welcome pull requests from all contributors - #1236

Merged
1jehuang merged 1 commit into
masterfrom
docs/welcome-all-contributors-20260913
Sep 13, 2026
Merged

1jehuang merged 1 commit into
masterfrom
docs/welcome-all-contributors-20260913

Conversation

@1jehuang

Copy link
Copy Markdown
Owner

Summary

  • Welcome PRs for direct review and merging regardless of maintainer or prior contributor status.
  • Align AGENTS.md, new CLAUDE.md, CONTRIBUTING.md, and embedded self-dev guidance.
  • Keep review, validation, scoped changes, and user authorization for merges.
  • Add a regression test covering full and split self-dev prompts.

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.
  • Coordinated self-dev TUI build: passed.
  • Only the five policy/test files are included. Unrelated local commits and staged changes were excluded.

Closes #1235

@1jehuang
1jehuang merged commit f51d3ca into master Sep 13, 2026
2 checks passed
@greptile-apps

greptile-apps Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 3/5

The change is not safe to merge because untrusted contribution code can run with review-host access.

Findings

  1. P1 Security Unsandboxed contribution validation ▶
Fix with agent prompt
### Issue 1
crates/jcode-base/src/prompt/selfdev_mode.txt:13
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.

Summary

  • The updated self-development policy permits testing and integrating contributions from any author.
  • The corresponding build and test execution paths run contributor-controlled shell commands with access to the review host's environment and filesystem.

Merge safety

Not safe to merge until untrusted contribution execution is isolated or restricted to inspection-only work.

Reviews (1) · Last reviewed commit: "docs: welcome pull requests from all con..."


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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 security 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

Evidence from the check

  • 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.

Command output from the check

  • 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.

Command output from the check

  • 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.

View artifacts

T-Rex 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.

alecuba16 pushed a commit to alecuba16/jcode that referenced this pull request Sep 18, 2026
…ibutors-20260913

Welcome pull requests from all contributors
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.

Welcome pull requests from all contributors for direct merging

1 participant