Skip to content

fix(sources): disable project Agent creation and import - #12104

Merged
DOsinga merged 1 commit into
mainfrom
jbg/security-disable-project-agent-create
Dec 2, 2026
Merged

DOsinga merged 1 commit into
mainfrom
jbg/security-disable-project-agent-create

Conversation

@jbg

@jbg jbg commented Sep 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Closes #11599. Disable project-scoped Agent creation and import while retaining discovery of existing project Agents and global create and import.

The tests cover both ACP project target forms, preservation of existing project Agent discovery, and global creation and import.

Verification

  • cargo fmt --all -- --check
  • cargo test --locked -p goose --test agent_source_mutation_test (3 passed)
  • cargo test --locked -p goose --test acp_custom_requests_test test_custom_agent_source_mutations_reject_project_scopes (1 passed)
  • cargo build --locked -p goose
  • cargo clippy --locked -p goose --all-targets -- -D warnings

Verified on macOS.

This finding was discovered by Project Loupe

@jbg
jbg requested a review from a team as a code owner September 16, 2026 13:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T10:20:59.569723Z 9e24f75 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jbg jbg removed their assignment Oct 14, 2026
@jbg jbg added the security Security related label Oct 28, 2026
Reject project-scoped Agent creation and import before filesystem access while retaining global mutations and project discovery. Cover public source APIs and both ACP project target forms.

Implements #11599.

Signed-off-by: Jasper Hugo <jasper@spiral.xyz>
@jbg
jbg force-pushed the jbg/security-disable-project-agent-create branch from 004823b to 9e24f75 Compare November 24, 2026 10:19
@DOsinga
DOsinga added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit a1c256c Dec 2, 2026
45 of 46 checks passed
@DOsinga
DOsinga deleted the jbg/security-disable-project-agent-create branch December 2, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define containment for project Agent source mutations

2 participants