Skip to content

Stop committing the framework's own .claude/settings.json; ship it as a template #1639

Closed

Description

@potiuk

What should happen

The Magpie repository stops committing .claude/settings.json. Its contents become a template, plus a documented step that contributors (and the secure-setup install) follow to put it in place locally.

Why

The file in this repository is the maintainers' working configuration, not something a contributor's agent should silently inherit on clone. It mixes two things:

  • the sandbox and permission baseline (sandbox.*, permissions.*);
  • the self-adoption wiring (extraKnownMarketplaces, enabledPlugins).

Because it is committed, every change to it is a repository change. Contributors also get the maintainers' choices whether or not they want them, and a cloned checkout can never differ from the baseline without a dirty tree.

Which layer

The repository root .claude/settings.json, plus every surface that references it:

  • .github/workflows/sandbox-lint.yml and tools/sandbox-lint/expected.json (the lint baseline);
  • .asf.yaml (the required sandbox-lint check);
  • .pre-commit-config.yaml (the exclusion it gets);
  • plugins/magpie-setup/skills/setup/setup_preflight/isolated.py (it is listed as a dogfooded file);
  • docs/security/threat-model.md (mitigation M.14 cites its allowedDomains);
  • docs/setup/secure-agent-setup.md, docs/setup/secure-agent-internals.md, docs/spec-driven-development.md and plugins/magpie-utilities/skills/write-skill/security-checklist.md (they link it as the block to copy).

Boundary conditions

  • Ship the template at a tracked path outside .claude/ (for example tools/agent-isolation/claude-settings.template.json), and gitignore .claude/settings.json in this repository.
  • Retarget sandbox-lint, the preflight fingerprint and the doc links at the template, so the baseline stays linted and required in CI.
  • Add the contributor step to the contributor docs and to setup-isolated-setup-install: copy or merge the template into .claude/settings.json (or settings.local.json), with isolated-setup-verify reporting when it is missing.
  • An adopter's adopt still writes its own committed .claude/settings.json floor. This issue is about the Magpie repository only.

Out of scope

Changing the contents of the baseline.

Activity

  1. added
    enhancement
    family:setup
    family:ci
    capability:platform
    good first issue
    on Oct 15, 2026
  2. added 3 commits that reference this issue on Oct 16, 2026
    e62c3e6
    1e1093a
    a915505
  3. added
    family:security
    family:docs
    capability:authoring
    family:utilities
    substrate:sandbox
    on Oct 16, 2026
  4. added 2 commits that reference this issue on Oct 16, 2026
    399ab1b
    4a07965
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    capability:authoringcapability:platformenhancementfamily:cifamily:docsfamily:securityfamily:setupfamily:toolsfamily:utilitiesgood first issuesubstrate:sandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions