Metadata-Version: 2.5
Name: osprey-facility
Version: 2026.11.1
Summary: The OSPREY facility description: facility.json, its schema, and the layers that build it
Project-URL: Repository, https://github.com/als-apg/osprey
Project-URL: Issues, https://github.com/als-apg/osprey/issues
Project-URL: Changelog, https://github.com/als-apg/osprey/blob/main/packages/osprey-facility/CHANGELOG.md
License: BSD-3-Clause
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: numpy>=2.2.6
Requires-Dist: osprey-connectors>=2026.11.16
Requires-Dist: packaging>=26.3
Requires-Dist: pydantic<3,>=2.11
Requires-Dist: pyyaml>=6.0.2
Provides-Extra: mml
Requires-Dist: accelerator-toolbox>=0.8.0; extra == 'mml'
Requires-Dist: scipy>=1.17.1; extra == 'mml'
Description-Content-Type: text/markdown

# osprey-facility

The OSPREY facility description: the `facility.json` document a deployment is
built from, the open JSON Schema it is published against, and the layers that
build it from a facility's sources. It carries none of the rest of the OSPREY
framework (agents, views, web UI, etc.).

## Install

```
pip install osprey-facility
```

The MML layer, which reads a MATLAB Middle Layer export, needs the `mml` extra:

```
pip install "osprey-facility[mml]"
```

## Stability

The package is released on its own CalVer tags, `osprey-facility-vYYYY.M.P`, by
`.github/workflows/release-package.yml`, independently of the framework's `v*`
tags.

- **Window.** The framework releases the package must keep working under are
  listed in `[tool.osprey-facility.compat]` in `pyproject.toml`: the newest
  stable release, every stable release of the last six months, and any
  pre-release newer than the newest stable. The `facility-compat` CI lane
  installs each listed framework release and runs HEAD's package under it.
- **Retirement.** A framework release leaves `frameworks` for `retired` when it
  falls outside the window, or as a recorded break with its reason beside it;
  never because it fails. The plan job holds both lists to the framework tags
  reachable from HEAD.
- **Floor, never pin.** A framework release requires `osprey-facility` with a
  floor and no ceiling; the `framework-at-facility-floor` lane installs that
  published floor under HEAD's framework.
- **Schema `$id`.** The `$id` of the schema for format version N names the
  newest additive form of N; a change that is not additive bumps N.

## Public API

The modules below are the package's public API; every other module is
private. Each names the one consumer it serves: a *fork/tool* that builds or
reads `facility.json` without the framework, a *kind plug-in*, an *app* (which
may import `osprey_facility.kinds` only), or a *framework job* (views, CLI,
engines, output writing), named by the framework modules that import it.

Each public module lists its public names in `__all__`. `osprey_facility.kinds`
also serves apps; `osprey_facility.reading` also serves the framework's checked
readers. `osprey_facility.schema.published_schema()` returns the shipped JSON
Schema: the current one, or `published_schema(4)` for a format version's floor.
`osprey_facility.__version__` is the installed distribution's version, or
`0.0.0+unbuilt` in a source tree with no install.
`osprey_facility.retired` finds and refuses a facility tree still laid out at
retired paths, and its move machinery assumes nothing about the facility tree:
`place_moves` reports how `(old, new)` paths under any root move or clash, and
`render_script` renders `Move`s, `LineEdit`s and deletions as a shell script.

| Module | Consumer |
|---|---|
| `osprey_facility` | framework job: `osprey.apps.sdk`, `osprey.channel_roster`, `osprey.cli`, `osprey.facility.settings`, `osprey.facility.views`, `osprey.mcp_server.python_executor`, `osprey.simulation.model_request`, `osprey.utils.facility` |
| `osprey_facility.build` | framework job: `osprey.cli.build_cmd`, `osprey.cli.facility_cmd`, `osprey.facility.views` |
| `osprey_facility.errors` | framework job: `osprey.cli`, `osprey.facility.settings`, `osprey.facility.views`, `osprey.integrations.canopy`, `osprey.mcp_server.python_executor`, `osprey.registry`, `osprey.runtime`, `osprey.services.ariel_search`, `osprey.simulation`, `osprey.utils.facility` |
| `osprey_facility.frontmatter` | framework job: `osprey.services.facility_knowledge` |
| `osprey_facility.kinds` | kind plug-in |
| `osprey_facility.layers` | framework job: `osprey.cli.facility_cmd`, `osprey.facility.bundled` |
| `osprey_facility.layers.list` | framework job: `osprey.cli.facility_cmd` |
| `osprey_facility.layers.mml.family` | framework job: `osprey.services.channel_finder` |
| `osprey_facility.layers.mml.importer` | framework job: `osprey.cli.facility_cmd` |
| `osprey_facility.layers.mml.mapping` | framework job: `osprey.cli.facility_cmd`, `osprey.facility.bundled` |
| `osprey_facility.layers.mml.response_check` | framework job: `osprey.cli.facility_cmd` |
| `osprey_facility.layers.mml.seed` | framework job: `osprey.cli.facility_cmd` |
| `osprey_facility.layers.relations` | framework job: `osprey.cli.facility_cmd` |
| `osprey_facility.measurement_groups` | framework job: `osprey.facility.views` |
| `osprey_facility.pairing` | framework job: `osprey.facility.views` |
| `osprey_facility.reading` | fork/tool |
| `osprey_facility.records` | framework job: `osprey.apps.sdk`, `osprey.channel_roster`, `osprey.cli`, `osprey.facility.settings`, `osprey.facility.views`, `osprey.interfaces`, `osprey.mcp_server`, `osprey.runtime`, `osprey.services.ariel_search` |
| `osprey_facility.references` | framework job: `osprey.interfaces.ariel`, `osprey.interfaces.okf_panel`, `osprey.mcp_server.ariel`, `osprey.services.ariel_search` |
| `osprey_facility.relations` | framework job: `osprey.cli.facility_cmd`, `osprey.facility.views` |
| `osprey_facility.retired` | framework job: `osprey.cli`, `osprey.repo_retired` |
| `osprey_facility.render` | framework job: `osprey.apps.sdk`, `osprey.cli.build_cmd`, `osprey.cli.facility_cmd`, `osprey.facility.views` |
| `osprey_facility.roots` | framework job: `osprey.cli`, `osprey.facility.bundled` |
| `osprey_facility.scenarios` | framework job: `osprey.facility.views`, `osprey.simulation.apply` |
| `osprey_facility.schema` | fork/tool |
| `osprey_facility.served` | framework job: `osprey.cli`, `osprey.facility.settings`, `osprey.facility.views` |
| `osprey_facility.sessions` | framework job: `osprey.agent_runner`, `osprey.interfaces.web_terminal`, `osprey.registry`, `osprey.simulation` |
| `osprey_facility.simulated` | framework job: `osprey.facility.views` |
| `osprey_facility.source_tree` | framework job: `osprey.cli`, `osprey.facility`, `osprey.mcp_server.python_executor`, `osprey.registry`, `osprey.simulation` |
| `osprey_facility.sources` | framework job: `osprey.facility.views` |
| `osprey_facility.start` | framework job: `osprey.facility.settings` |
| `osprey_facility.validate` | framework job: `osprey.cli`, `osprey.facility.views`, `osprey.mcp_server.channel_finder_graph`, `osprey.registry` |
