{
  "$comment": "What agent-guard blocks when MULTI_AGENT_UNATTENDED=1, as data. The command grammar (which gh verbs write, how a curl URL is read) lives in scripts/unattended_policy.py; the lists a deployment may want to change live here. Nothing here is read when the variable is unset. Contract: multi-agent-refs/features/unattended-security.md.",
  "network": {
    "$comment": "curl and wget may reach these hosts, and subdomains of them, for reads only. prefsHostKeys are read from prefs.global.hosts at hook time, so a machine's own Jira or Confluence host is allowed without editing this file. corpDomain is deliberately absent: it is an email domain, and allowing it would allow every host under it.",
    "staticHosts": [
      "github.com",
      "api.github.com",
      "raw.githubusercontent.com",
      "objects.githubusercontent.com",
      "codeload.github.com",
      "localhost",
      "127.0.0.1",
      "::1"
    ],
    "prefsHostKeys": [
      "jira",
      "confluence",
      "bitbucket",
      "fortify",
      "graylog",
      "graylogTest",
      "jenkins"
    ]
  },
  "protectedRepoPaths": {
    "$comment": "Matched as a path segment sequence anywhere in the target path, except that a .claude directory which IS the host root under $HOME is judged by protectedHostEntries instead.",
    "dirs": [".github/workflows", ".claude", ".git"],
    "files": ["CODEOWNERS", ".mcp.json"]
  },
  "protectedHostRoots": [".claude", ".copilot", ".codex"],
  "protectedHostEntries": [
    "scripts",
    "lib",
    "commands",
    "skills",
    "multi-agent-refs",
    "agents",
    "rules",
    "hooks",
    "schemas",
    "settings.json",
    "settings.local.json",
    "config.toml",
    "autopilot",
    "plugins",
    "CLAUDE.md",
    "multi-agent-preferences.json",
    "multi-agent-unattended.settings.json"
  ],
  "protectedHomeFiles": [
    ".claude.json",
    ".gitconfig",
    ".zshrc",
    ".zprofile",
    ".bashrc",
    ".bash_profile",
    ".bash_login",
    ".profile",
    ".zshenv",
    ".zlogin",
    ".zlogout",
    ".npmrc",
    ".netrc",
    ".git-credentials",
    ".curlrc",
    ".wgetrc",
    ".lldbinit",
    ".pythonrc",
    ".gemrc",
    ".tmux.conf",
    ".vimrc"
  ],
  "$commentHomeDirs": "Directory prefixes under $HOME whose whole subtree is host, shell or credential configuration, the guard's twin of the profile's sandbox.filesystem.denyWrite list. ~/.config/git holds the XDG git config, ~/.config/gh the GitHub CLI token, ~/.ssh and ~/.gnupg keys and their config; ~/Library/LaunchAgents holds per-user launchd jobs that run as the operator; ~/.gradle is the operator's Gradle home, and ~/.gradle/init.d runs on every build; ~/.multi-agent-unattended-homes holds the unattended data directory (links into the operator's data directory, rebuilt before every launch) and the quarantine the launcher deletes finished Gradle homes from; ~/.config/multi-agent-pipeline holds a preferences file the pipeline and the guard read, and ~/.config/multi-agent-mcp the toolkit's store reference file, with ~/.config/multi-agent-toolkit, its earlier path, which the server still reads while the current one is absent. A command naming a path under any of those is refused, and so is a move, removal or link of a directory above one of them (protectedAncestorsOf), or of the directory holding the file MULTI_AGENT_PREFS names; ~/.m2, ~/.cargo, ~/.bundle, ~/.pip, ~/.config/pip and ~/.config/fish point a toolchain or shell at a config or index.",
  "protectedAncestorsOf": [
    ".multi-agent-unattended-homes",
    ".config/multi-agent-pipeline",
    ".config/multi-agent-mcp",
    ".config/multi-agent-toolkit"
  ],
  "protectedHomeDirs": [
    ".config/git",
    ".config/gh",
    ".config/pip",
    ".config/fish",
    ".ssh",
    ".gnupg",
    ".gradle",
    ".gradle/init.d",
    ".multi-agent-unattended-homes",
    ".config/multi-agent-pipeline",
    ".config/multi-agent-mcp",
    ".config/multi-agent-toolkit",
    ".m2",
    ".cargo",
    ".bundle",
    ".pip",
    "Library/LaunchAgents",
    "Library/LaunchDaemons"
  ],
  "manifests": {
    "$comment": "Dependency manifests and lockfiles. Editing one is how a run adds a package, so it is blocked the same way an install command is.",
    "files": [
      "Package.swift",
      "Package.resolved",
      "package.json",
      "package-lock.json",
      "npm-shrinkwrap.json",
      "yarn.lock",
      "pnpm-lock.yaml",
      "bun.lock",
      "bun.lockb",
      "Podfile",
      "Podfile.lock",
      "Cartfile",
      "Cartfile.resolved",
      "build.gradle",
      "build.gradle.kts",
      "settings.gradle",
      "settings.gradle.kts",
      "libs.versions.toml",
      "pyproject.toml",
      "poetry.lock",
      "uv.lock",
      "Pipfile",
      "Pipfile.lock",
      "go.mod",
      "go.sum",
      "Cargo.toml",
      "Cargo.lock",
      "Gemfile",
      "Gemfile.lock"
    ],
    "patterns": ["^requirements.*\\.txt$", "^constraints.*\\.txt$"]
  },
  "publisherScripts": {
    "$comment": "Pipeline scripts that write to a tracker, a PR or a wiki, change which devices may reach this machine, turn autopilot on or off, publish or install shared routines, or save, import or remove routines. Under the single-writer model the runner publishes; a run calling one of these directly is blocked. A value of null blocks every invocation; a list blocks only those subcommands.",
    "jira-publish.sh": null,
    "post-pr-review.sh": null,
    "update-issue-progress.sh": null,
    "analysis-jira-write.sh": null,
    "jira-attach.sh": null,
    "plan-attachment.mjs": ["upload"],
    "jira-remote-links.sh": ["apply"],
    "md2confluence-v3.py": ["create", "update"],
    "multi-repo-pipeline.sh": ["push", "pr"],
    "keychain-save.sh": null,
    "credential-store.sh": ["get", "set", "delete"],
    "keychain.py": ["get", "set", "delete"],
    "gate-ledger.mjs": ["append"],
    "autopilot-control.mjs": ["on", "off"],
    "routine-registry.mjs": ["add", "import", "remove"],
    "routine-share.mjs": ["share", "import", "update", "delete"]
  }
}
