Skip to content

fix(crew): a confined worker cannot write the system git config - #2772

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

kinqsradio merged 1 commit into
mainfrom
fix/worker-system-gitconfig-deny

Conversation

@kinqsradio

@kinqsradio kinqsradio commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Follows #2720; closes the write side of #2609.

What

The read-only list now names the system git config: the file the core's GIT_CONFIG_SYSTEM names (already closed), else the path the core's Git was built with (git var GIT_CONFIG_SYSTEM, falling back to /etc/gitconfig; Homebrew's etc/gitconfig where that is the build path). On macOS the profile refuses a worker's write, create, rename or remove there; it stays readable. GIT_CONFIG_NOSYSTEM (#2720) stops reads only, so this is what refuses an explicit git config --system write. docs/crew/protocol/SPEC.md updated.

Evidence

On the box (Linux):

  • Before: host::confine::env_tests::the_system_git_config_is_on_the_read_only_list FAILED (list held only the home).
  • After: that test ok; cargo test -p orbyn-core confine:: 41 passed, 0 failed.
  • cargo clippy -p orbyn-core --all-targets -- -D warnings: no errors.

Not run: host::confine::read_only_tests::the_system_config_git_was_built_with_is_closed_when_the_environment_names_none (a real sandboxed echo > and git config --system write to a fake path being refused). read_only_tests is macOS-only and the box is Linux, so it was not compiled or run; macOS CI or a macOS run must confirm it.

AI usage

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

macOS run

output/cargo-serial.sh cargo test -p orbyn-core confine:: on macOS (this Mac, head 2077a3c): 108 passed, 0 failed, 2 ignored, including read_only_tests::the_system_config_git_was_built_with_is_closed_when_the_environment_names_none (a plain write and git config --system to the closed system config are both refused).

Agent review: Eng 3 checked the diff at 2077a3c

@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: 1953f0aa-79d9-4816-a99a-f0b4171a5462

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 732dfc5 into main Dec 5, 2026
2 checks passed
@kinqsradio
kinqsradio deleted the fix/worker-system-gitconfig-deny branch December 5, 2026 09:40
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.

1 participant