# Releases and supply chain

Phantom is delivered from `main` as source and runs on the researcher's
own machine. There are no numbered releases yet and no published
container images; a commit is the version.

## Dependencies

- Backend: `requirements.txt` states the supported ranges;
  `requirements.lock` pins every package, transitive ones included, as
  resolved for the Docker image (Python 3.12 on Linux). The image and CI's
  Python 3.12 tests install from the lock; the Python 3.14 tests install
  the ranges, so a new release of a dependency shows up in CI before it
  reaches the lock.
- Interface and documentation: `package-lock.json` pins every package;
  CI installs with `npm ci`.
- Dependency audits, an SBOM and a secret scan run in the Security
  workflow on every push.

## Security updates

1. Report a vulnerability privately (`SECURITY.md`).
2. The fix lands on `main` with a test that shows the problem is gone;
   an advisory is published once it is fixed.
3. CI passes.
4. A workstation pulls `main` and restarts (`docker compose up --build`
   rebuilds the local images); migrations run on start.

Only the latest commit receives fixes.

## Supported platforms

| | Tested in CI | Expected to work |
|---|---|---|
| Backend | Python 3.12 and 3.14 on Linux with SQLite; migrations both ways on PostgreSQL 16 | Windows and macOS for a workstation |
| Interface | Node 22 build and component tests | current Chrome, Edge, Firefox, Safari |

Upgrades apply database migrations when the backend starts; they only
add tables and columns or widen them, so checking out the previous
commit keeps working. Known gaps are listed in the
[status page](../roadmap/status.md).

## Desktop packaging

A desktop installer is not built yet: the service contracts (API, MCP,
plugin SDK) are still settling, and a workstation runs from Docker
Compose or the repository today.
