# Security Policy

## Supported Versions

We provide security fixes for the latest minor of the current major. Older versions get fixes only for severity ≥ high.

| Version | Supported              |
| ------- | ---------------------- |
| 24.x    | ✅ active              |
| 23.x    | ⚠️ security fixes only |
| ≤ 22.x  | ❌ end-of-life         |

## Reporting a Vulnerability

**Do not open a public GitHub issue for security reports.**

Please report vulnerabilities privately via GitHub's [Security Advisory](https://github.com/multi-agent-ecosystem/multi-agent-pipeline/security/advisories/new) flow. If GitHub Advisories are unavailable to you, email the package owner (see the `author` field of `package.json`) with:

- A clear description of the issue and its impact
- Steps to reproduce (a minimal repro is most helpful)
- Affected version(s) and platform
- Optional: a suggested patch or mitigation

You should receive an initial acknowledgement within **5 business days**. We'll keep you updated on progress and aim to release a patch within **30 days** for high/critical issues.

## Scope

This pipeline orchestrates external systems (Jira, Bitbucket, GitHub, Confluence, Figma) using user-supplied tokens. We consider the following in scope for security reports:

- **Token leakage** - any code path that logs, echoes, or persists secrets outside macOS Keychain.
- **Command injection** - bash invocations built from untrusted input (Jira summary, branch names, PR titles, etc.).
- **Pre-commit bypass** - secret-detection hook silently failing or being skippable without `--no-verify`.
- **Pipeline tampering** - agent-state.json or preferences manipulation that escalates an installed package's effective permissions.

Out of scope:

- Misconfigured user systems (broken Keychain, expired tokens, missing CLI tools).
- Vulnerabilities in transitive dependencies that don't reach a code path we use (please report those upstream first).
- Issues that require an attacker to already control the user's local machine.

## Coordinated Disclosure

We follow standard coordinated disclosure: researchers are credited (with permission) in the release notes once a fix is shipped. Public disclosure timelines are agreed with the reporter, defaulting to 90 days from initial report or 30 days after a patch is released - whichever is earlier.

## Telemetry

Usage reporting sends coarse run metadata to the maintainer's site so a failing install can be diagnosed. It can be turned off with `usageLog.optOut: true`, which stops run reporting before any network call or credential read. Two things still run on an opted-out machine: the access check, which sends the GitHub login and the version and nothing else, and feedback you type and send yourself. The full field table is in [`pipeline/multi-agent-refs/features/usage-reporting.md`](pipeline/multi-agent-refs/features/usage-reporting.md).

Field categories that are sent:

- Numbers and booleans: durations, token totals, estimated cost, review iterations, whether a pull request was opened, autopilot and local-mode flags.
- Values from closed lists shipped inside the package: command, skill, tool, plugin, code-host and MCP server names, model ids, modes, stacks, phase numbers, run status and event, closed halt and error codes, operating system, CLI, language, the installed version.
- Keyed digests: run, repository and machine identifiers, computed under a per-install secret so the site cannot turn them back into names.
- Per-run and per-machine counts: MCP tool calls and typed `/multi-agent` commands, by shipped name only.
- Health and credential summaries: one status per section with a message id, and per logical credential key a status with a check time, limited to documented key names.
- The documented subject: the GitHub login used for the access check and registration, and feedback text you write yourself.
- Opt-in, reduced before leaving the machine: a task title becomes a word count, a ticket-shape flag and a language code; a pull request address is kept only for the four public code hosts, without credentials, query or fragment.

Never sent, outside the opt-ins above (a pull request address names its repository): prompts, code, diffs, file paths, repository names, ticket keys, titles, token values, command arguments or tool results. A name that is not on a shipped list goes out as `other` or `private`.
