Skip to content

CM-68232: read a machine-wide AI Guardrails policy path#490

Open
Ilanlido wants to merge 2 commits into
mainfrom
CM-68232-machine-policy-path
Open

CM-68232: read a machine-wide AI Guardrails policy path#490
Ilanlido wants to merge 2 commits into
mainfrom
CM-68232-machine-policy-path

Conversation

@Ilanlido

@Ilanlido Ilanlido commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Add an admin/MDM-provisioned machine-wide policy layer to load_policy(), merged as defaults <- machine <- user <- repo. Path is per-OS (/etc/cycode, /Library/Application Support/Cycode, %ProgramData%\Cycode). Lets MDM write one policy file for all users instead of per-user provisioning.

Add an admin/MDM-provisioned machine-wide policy layer to load_policy(),
merged as defaults <- machine <- user <- repo. Path is per-OS
(/etc/cycode, /Library/Application Support/Cycode, %ProgramData%\Cycode).
Lets MDM write one policy file for all users instead of per-user provisioning.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

Construct the mocked Path.home() return value inside the test body while
pyfakefs is active, matching test_load_policy_precedence, so the user-level
config is read from the fake filesystem in CI.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

2 participants