Skip to content

fix(crew): a confined worker's Git does not read the system git config - #2720

Merged
kinqsradio merged 1 commit into
mainfrom
fix/worker-nosystem-gitconfig
Dec 5, 2026
Merged

kinqsradio merged 1 commit into
mainfrom
fix/worker-nosystem-gitconfig

Conversation

@kinqsradio

@kinqsradio kinqsradio commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Fixes #2609

What

Confinement::scrub_env (the one place a confined worker's environment is built, called from agents/driver/pipes.rs) now sets GIT_CONFIG_NOSYSTEM=1 on every platform, over any value the parent had. A worker's Git no longer reads the system config (/etc/gitconfig, the Homebrew prefix file). Docs in docs/crew/protocol/SPEC.md updated.

Limit: Git ignores GIT_CONFIG_NOSYSTEM for an explicit git config --system write (checked with git 2.54: with GIT_CONFIG_SYSTEM pointing at a writable file, the write still lands, but a plain read no longer sees it). So the variable closes the read side; a write still depends on the file being unwritable to the worker's user. The docs say so.

Evidence

On the box (cargo-remote.sh):

  • Before the change: host::confine::env_tests::a_worker_git_does_not_read_the_system_config FAILED and host::confine::env_tests::the_rules_set_no_system_git_config_over_any_other_value FAILED (8 passed, 2 failed).
  • After: both ok; cargo test -p orbyn-core confine:: 40 passed, 0 failed.
  • cargo clippy -p orbyn-core --all-targets -- -D warnings: finished, no errors.

The first test runs real git config --get against a fake system file named by GIT_CONFIG_SYSTEM: Git with no rules reads the planted value, a worker's Git does not.

AI usage

Tool: Claude Code 2.1.330. Model: claude-sonnet-5-5. Effort: medium. Human role: lead set the scope. Sources: none.

Agent review: Eng 3 checked the diff at 6864982

@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a0ad1034-e611-4555-a363-2de9d9b42ba1

You can disable this status message by setting the reviews.output.walkthrough.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@kinqsradio
kinqsradio merged commit c2f83bb into main Dec 5, 2026
2 checks passed
@kinqsradio
kinqsradio deleted the fix/worker-nosystem-gitconfig branch December 5, 2026 07:32
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.

Crew worker can still write the system git config and include.path targets

1 participant