osprey-facility 2026.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- osprey_facility-2026.11.0/.gitignore +231 -0
- osprey_facility-2026.11.0/CHANGELOG.md +48 -0
- osprey_facility-2026.11.0/LICENSE +28 -0
- osprey_facility-2026.11.0/PKG-INFO +106 -0
- osprey_facility-2026.11.0/README.md +86 -0
- osprey_facility-2026.11.0/pyproject.toml +114 -0
- osprey_facility-2026.11.0/src/osprey_facility/__init__.py +86 -0
- osprey_facility-2026.11.0/src/osprey_facility/_version.py +24 -0
- osprey_facility-2026.11.0/src/osprey_facility/build.py +124 -0
- osprey_facility-2026.11.0/src/osprey_facility/combine.py +1187 -0
- osprey_facility-2026.11.0/src/osprey_facility/compute.py +1221 -0
- osprey_facility-2026.11.0/src/osprey_facility/errors.py +304 -0
- osprey_facility-2026.11.0/src/osprey_facility/frontmatter.py +61 -0
- osprey_facility-2026.11.0/src/osprey_facility/kinds.py +1134 -0
- osprey_facility-2026.11.0/src/osprey_facility/knowledge_links.py +138 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/__init__.py +21 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/list.py +387 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/__init__.py +7 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/decks.py +790 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/directions.py +155 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/family.py +347 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/fingerprint.py +186 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/identity.py +606 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/importer.py +1030 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/judgments.py +1045 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/loaders/__init__.py +42 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/loaders/json_any.py +200 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/loaders/mat.py +199 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/mapping.py +2787 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/mml_export.m +2704 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/normalize.py +197 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/places.py +173 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/response_check.py +1001 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/rows.py +94 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/seed.py +881 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/systems.py +191 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/mml/wiring.py +1084 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/relations/__init__.py +254 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/relations/claims.py +452 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/relations/facility.py +128 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/relations/ids.py +94 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/relations/members.py +161 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/relations/names.py +195 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/relations/places.py +244 -0
- osprey_facility-2026.11.0/src/osprey_facility/layers/relations/tables.py +409 -0
- osprey_facility-2026.11.0/src/osprey_facility/measurement_groups.py +190 -0
- osprey_facility-2026.11.0/src/osprey_facility/pairing.py +332 -0
- osprey_facility-2026.11.0/src/osprey_facility/places.py +38 -0
- osprey_facility-2026.11.0/src/osprey_facility/provenance.py +130 -0
- osprey_facility-2026.11.0/src/osprey_facility/reading.py +111 -0
- osprey_facility-2026.11.0/src/osprey_facility/records.py +552 -0
- osprey_facility-2026.11.0/src/osprey_facility/references.py +326 -0
- osprey_facility-2026.11.0/src/osprey_facility/relations.py +791 -0
- osprey_facility-2026.11.0/src/osprey_facility/render.py +300 -0
- osprey_facility-2026.11.0/src/osprey_facility/roots.py +87 -0
- osprey_facility-2026.11.0/src/osprey_facility/scenarios.py +1023 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/__init__.py +52 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/_generate.py +209 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/_generated/__init__.py +1 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/_generated/core.py +2405 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/_generated/facility-4.schema.json +3173 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/_generated/facility.schema.json +3215 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/_generated/vocabulary.json +1919 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/compat.py +182 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/core.yaml +1218 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/loosenings.yaml +164 -0
- osprey_facility-2026.11.0/src/osprey_facility/schema/vocabulary.yaml +823 -0
- osprey_facility-2026.11.0/src/osprey_facility/served.py +105 -0
- osprey_facility-2026.11.0/src/osprey_facility/sessions.py +680 -0
- osprey_facility-2026.11.0/src/osprey_facility/simulated.py +118 -0
- osprey_facility-2026.11.0/src/osprey_facility/sources.py +1148 -0
- osprey_facility-2026.11.0/src/osprey_facility/start.py +62 -0
- osprey_facility-2026.11.0/src/osprey_facility/validate.py +3642 -0
- osprey_facility-2026.11.0/src/osprey_facility/wiring.py +454 -0
- osprey_facility-2026.11.0/tests/conftest.py +14 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/__init__.py +0 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_fixture_exports.py +34 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_harness/__init__.py +30 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_harness/_builds.py +35 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_harness/_entry_points.py +46 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_harness/_guards.py +70 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_harness/_once.py +65 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_harness/_paths.py +25 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_harness/_run_temp.py +83 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_mml_built.py +336 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_mml_trees.py +115 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/_served_tree.py +220 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/panel_fixture/documents.yaml +9 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/panel_fixture/records/channels.yaml +116 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/panel_fixture/records/devices.yaml +77 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/panel_fixture/records/groups.yaml +17 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/panel_fixture/records/places.yaml +15 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/panel_fixture/records/relations.yaml +91 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/rebuild_panel_fixture.py +75 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_documents_policy.py +286 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_engine_scenario_stops.py +102 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_facility_document_tables.py +121 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_facility_json_schema.py +383 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_fixes_apply.py +387 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_fixture_mappings.py +115 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_keyed_sets.py +554 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_layer_merge.py +596 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_layer_mml_directions.py +237 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_layer_mml_exporter.py +25 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_layer_mml_family.py +400 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_layer_mml_judgments_apply.py +874 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_layer_mml_judgments_detect.py +424 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_layer_mml_loader_json.py +266 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_layer_mml_normalize.py +381 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_layer_mml_systems.py +252 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_one_definition.py +84 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_package_never_imports_osprey.py +193 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_panel_fixture_rebuild.py +75 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_place_links.py +157 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_place_names.py +65 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_public_api.py +152 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_records_lookup.py +134 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_references.py +208 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_refresh_vocabulary.py +40 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relation_checks.py +377 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relation_keys.py +304 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relation_standing.py +402 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relation_types.py +92 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relation_warnings.py +434 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relations_import.py +387 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relations_import_claims.py +444 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relations_import_facility.py +177 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relations_import_ids.py +131 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relations_import_members.py +233 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relations_import_names.py +257 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relations_import_places.py +201 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relations_import_tables.py +312 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_relations_load.py +432 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_roots.py +112 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_scenario_sessions.py +127 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_source_parse.py +72 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_vocabulary_lifetime_and_mode_roles.py +62 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_wheel_contents.py +104 -0
- osprey_facility-2026.11.0/tests/osprey_facility_tests/test_wiring_vocabulary.py +27 -0
- osprey_facility-2026.11.0/tools/facility_schema/loosenings.py +289 -0
- osprey_facility-2026.11.0/tools/facility_schema/seeds/README.md +20 -0
- osprey_facility-2026.11.0/tools/facility_schema/seeds/canonical_ingest.yaml +412 -0
- osprey_facility-2026.11.0/tools/facility_schema/seeds/concept_vocabulary.yaml +155 -0
- osprey_facility-2026.11.0/tools/facility_schema/seeds/facility_bindings.yaml +136 -0
- osprey_facility-2026.11.0/tools/facility_schema/seeds/shared_semantics.yaml +497 -0
- osprey_facility-2026.11.0/tools/facility_schema/vocabulary.py +201 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Scratch notes (local idea capture)
|
|
2
|
+
scratch/
|
|
3
|
+
|
|
4
|
+
# NFS temporary files
|
|
5
|
+
.nfs*
|
|
6
|
+
|
|
7
|
+
# Byte-compiled / optimized / DLL files
|
|
8
|
+
__pycache__/
|
|
9
|
+
*.py[cod]
|
|
10
|
+
*$py.class
|
|
11
|
+
|
|
12
|
+
# C extensions
|
|
13
|
+
*.so
|
|
14
|
+
|
|
15
|
+
# Distribution / packaging
|
|
16
|
+
.Python
|
|
17
|
+
/build/
|
|
18
|
+
develop-eggs/
|
|
19
|
+
/dist/
|
|
20
|
+
downloads/
|
|
21
|
+
eggs/
|
|
22
|
+
.eggs/
|
|
23
|
+
lib/
|
|
24
|
+
lib64/
|
|
25
|
+
parts/
|
|
26
|
+
sdist/
|
|
27
|
+
var/
|
|
28
|
+
wheels/
|
|
29
|
+
*.egg-info/
|
|
30
|
+
.installed.cfg
|
|
31
|
+
*.egg
|
|
32
|
+
|
|
33
|
+
# PyInstaller
|
|
34
|
+
*.manifest
|
|
35
|
+
*.spec
|
|
36
|
+
|
|
37
|
+
# Installer logs
|
|
38
|
+
pip-log.txt
|
|
39
|
+
pip-delete-this-directory.txt
|
|
40
|
+
|
|
41
|
+
# Unit test / coverage reports
|
|
42
|
+
htmlcov/
|
|
43
|
+
.tox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
coverage.json
|
|
50
|
+
*.cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
|
|
53
|
+
# CI diagnostics drop (per-worker event logs, stack dumps, container logs).
|
|
54
|
+
# Written by _harness/ci_diagnostics.py and .github/actions/capture-ci-diagnostics
|
|
55
|
+
# whenever OSPREY_CI_DIAG_DIR is set; uploaded as an artifact, never committed.
|
|
56
|
+
/ci-diag/
|
|
57
|
+
.pytest_cache/
|
|
58
|
+
.mypy_cache/
|
|
59
|
+
# The import graph lint-imports (import-linter) caches between runs.
|
|
60
|
+
.import_linter_cache/
|
|
61
|
+
|
|
62
|
+
# Jupyter Notebook
|
|
63
|
+
.ipynb_checkpoints
|
|
64
|
+
|
|
65
|
+
# Environment directories
|
|
66
|
+
.env
|
|
67
|
+
.venv
|
|
68
|
+
# Side environments, e.g. UV_PROJECT_ENVIRONMENT=.venv-panels for a package synced alone
|
|
69
|
+
.venv-*/
|
|
70
|
+
env/
|
|
71
|
+
venv/
|
|
72
|
+
ENV/
|
|
73
|
+
env.bak/
|
|
74
|
+
venv.bak/
|
|
75
|
+
|
|
76
|
+
# IDE specific files
|
|
77
|
+
.idea/
|
|
78
|
+
.vscode/
|
|
79
|
+
*.swp
|
|
80
|
+
*.swo
|
|
81
|
+
|
|
82
|
+
# OS specific files
|
|
83
|
+
.DS_Store
|
|
84
|
+
.DS_Store?
|
|
85
|
+
._*
|
|
86
|
+
.Spotlight-V100
|
|
87
|
+
.Trashes
|
|
88
|
+
ehthumbs.db
|
|
89
|
+
Thumbs.db
|
|
90
|
+
|
|
91
|
+
# Data, models, and results
|
|
92
|
+
!data/.gitkeep
|
|
93
|
+
# models/ - Removed this to allow tracking model_config.py
|
|
94
|
+
!models/.gitkeep
|
|
95
|
+
results/
|
|
96
|
+
!results/.gitkeep
|
|
97
|
+
# Any source dir named results/ is SOURCE, not ML output — the broad unanchored
|
|
98
|
+
# results/ ignore above must not swallow it (this negation is deliberately
|
|
99
|
+
# path-independent: pinning it to one package broke when the bluesky-web
|
|
100
|
+
# sidecar moved services/ -> interfaces/, silently dropping the panel from the move).
|
|
101
|
+
!src/**/results/
|
|
102
|
+
# Benchmark model-matrix run exhaust (#259) — regenerable from scripts/benchmark/.
|
|
103
|
+
# All generated artifacts (dashboard.html, results_box/, live_updater.log) live
|
|
104
|
+
# under one output dir co-located with the tooling, keeping the repo root clean.
|
|
105
|
+
scripts/benchmark/_out/
|
|
106
|
+
*.h5
|
|
107
|
+
*.pkl
|
|
108
|
+
*.pt
|
|
109
|
+
*.pth
|
|
110
|
+
*.onnx
|
|
111
|
+
*.mlmodel
|
|
112
|
+
|
|
113
|
+
# Logs
|
|
114
|
+
logs/
|
|
115
|
+
*.log
|
|
116
|
+
!tests/deployment/fixtures/*.log
|
|
117
|
+
tensorboard/
|
|
118
|
+
|
|
119
|
+
# Temporary files
|
|
120
|
+
tmp/
|
|
121
|
+
temp/
|
|
122
|
+
|
|
123
|
+
*.jpg
|
|
124
|
+
*.gif
|
|
125
|
+
*.bmp
|
|
126
|
+
*.tiff
|
|
127
|
+
*.ico
|
|
128
|
+
# The demo template's CANOPY screens ship their images.
|
|
129
|
+
!src/osprey/templates/apps/demo/data/canopy/library/screens/**/images/*.jpg
|
|
130
|
+
|
|
131
|
+
# Landing-page demo video: recorded takes are never committed; the docs build
|
|
132
|
+
# downloads the MP4s from the release manifest.json names. The posters and
|
|
133
|
+
# manifest.json are committed, so the posters must override the `*.jpg` rule.
|
|
134
|
+
docs/demo-video/
|
|
135
|
+
docs/source/_static/demo/*.mp4
|
|
136
|
+
!docs/source/_static/demo/*-poster.jpg
|
|
137
|
+
|
|
138
|
+
# Credentials
|
|
139
|
+
.env
|
|
140
|
+
|
|
141
|
+
delete_me*
|
|
142
|
+
valves.json
|
|
143
|
+
*.code-workspace
|
|
144
|
+
|
|
145
|
+
# Agent data directories
|
|
146
|
+
_agent_data/*
|
|
147
|
+
# Track only the Codex marketplace manifest; never Codex plugin state.
|
|
148
|
+
.agents/*
|
|
149
|
+
!.agents/plugins/
|
|
150
|
+
.agents/plugins/*
|
|
151
|
+
!.agents/plugins/marketplace.json
|
|
152
|
+
|
|
153
|
+
# Local coding-agent guidance (kept out of git; see /CLAUDE.md below)
|
|
154
|
+
AGENTS.md
|
|
155
|
+
|
|
156
|
+
# Sample logbook data (large JSONL files)
|
|
157
|
+
logbook_*.jsonl
|
|
158
|
+
|
|
159
|
+
# Auto-generated documentation
|
|
160
|
+
_autosummary/
|
|
161
|
+
docs/build/
|
|
162
|
+
|
|
163
|
+
# PID files
|
|
164
|
+
*.pid
|
|
165
|
+
|
|
166
|
+
# Development services and applications (keep locally but not in git)
|
|
167
|
+
/.claude
|
|
168
|
+
_ISSUES
|
|
169
|
+
/CLAUDE.md
|
|
170
|
+
.mcp.json
|
|
171
|
+
|
|
172
|
+
# Git worktrees
|
|
173
|
+
.worktrees/
|
|
174
|
+
|
|
175
|
+
# Generated benchmark databases
|
|
176
|
+
data/benchmarks/cross_paradigm/tier*/
|
|
177
|
+
|
|
178
|
+
# OSPREY workspace (runtime data, not tracked — now covered by _agent_data/* above)
|
|
179
|
+
|
|
180
|
+
# Vendor assets (fetched at build time via `osprey vendor fetch`)
|
|
181
|
+
src/osprey/interfaces/artifacts/static/js/vendor/
|
|
182
|
+
src/osprey/interfaces/artifacts/static/css/vendor/
|
|
183
|
+
src/osprey/interfaces/web_terminal/static/vendor/*
|
|
184
|
+
# The dock engine is tracked: vendored from CANOPY's screen runtime at a pinned commit.
|
|
185
|
+
!src/osprey/interfaces/web_terminal/static/vendor/dock-engine.mjs
|
|
186
|
+
!src/osprey/interfaces/web_terminal/static/vendor/dock-engine.d.mts
|
|
187
|
+
src/osprey/interfaces/ariel/static/vendor/
|
|
188
|
+
src/osprey/interfaces/bluesky_web/panels/bluesky/vendor/
|
|
189
|
+
src/osprey/interfaces/optimizer_web/panels/optimizer/vendor/
|
|
190
|
+
# The okf panel's own vendored marked.min.js is tracked; only DOMPurify is fetched.
|
|
191
|
+
src/osprey/interfaces/okf_panel/static/vendor/purify.min.js
|
|
192
|
+
tests/e2e/claude_code/benchmark_results/
|
|
193
|
+
|
|
194
|
+
# Model files staged by hand for hosts that cannot reach the model host. They
|
|
195
|
+
# reach the qmd sidecar over the read-only mount `services.qmd.models_dir`
|
|
196
|
+
# names, never through a build context — but the staging directory itself can
|
|
197
|
+
# sit anywhere, this tree included. Gigabytes of GGUF, never source — keep them
|
|
198
|
+
# out of git and out of the build (see also the hatch exclude in pyproject.toml)
|
|
199
|
+
**/prefetched-models/
|
|
200
|
+
|
|
201
|
+
# Playwright MCP browser-session cache (page snapshots, console logs)
|
|
202
|
+
.playwright-mcp/
|
|
203
|
+
|
|
204
|
+
# Node.js (dev-only JS toolchain; not part of the Python wheel)
|
|
205
|
+
node_modules/
|
|
206
|
+
|
|
207
|
+
# Working directory gitlab-ci-local writes when the deploy goldens are checked
|
|
208
|
+
# against a real pipeline parser. Created wherever the check is run from.
|
|
209
|
+
.gitlab-ci-local/
|
|
210
|
+
|
|
211
|
+
# Version stamp written by the hatch-vcs build hook. Committing it would recreate
|
|
212
|
+
# the stale-literal problem the git-derived version exists to remove. It is still
|
|
213
|
+
# packaged into the wheel and sdist — the hook registers it as a build artifact.
|
|
214
|
+
src/osprey/_version.py
|
|
215
|
+
packages/osprey-connectors/src/osprey_connectors/_version.py
|
|
216
|
+
packages/osprey-facility/src/osprey_facility/_version.py
|
|
217
|
+
packages/osprey-optimizer/src/osprey_optimizer/_version.py
|
|
218
|
+
packages/osprey-panels/src/osprey_panels/_version.py
|
|
219
|
+
packages/pyaml-cs-osprey/src/pyaml_cs_osprey/_version.py
|
|
220
|
+
|
|
221
|
+
# feature-scaffolding logs (not committed)
|
|
222
|
+
.claude/.logs/
|
|
223
|
+
|
|
224
|
+
# Process scaffolding — never committed (specs/plans live here uncommitted)
|
|
225
|
+
docs/superpowers/
|
|
226
|
+
|
|
227
|
+
# Locally scaffolded deployment project. Carries a real .env, build output and
|
|
228
|
+
# run data; belongs to the working copy, never to the repo. Anchored to the root
|
|
229
|
+
# so the pattern cannot swallow a same-named path elsewhere in the tree.
|
|
230
|
+
/my-control-assistant/
|
|
231
|
+
/osprey-demo/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `osprey-facility` will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this package adheres to [Calendar Versioning](https://calver.org/).
|
|
7
|
+
|
|
8
|
+
The package has its own calendar stream, released from its own
|
|
9
|
+
`osprey-facility-vYYYY.M.P` tags by
|
|
10
|
+
`.github/workflows/release-package.yml`, independently of the framework's `v*` tags.
|
|
11
|
+
Changes from before this stream began are recorded in the repository's root
|
|
12
|
+
`CHANGELOG.md`, under the framework releases that shipped them.
|
|
13
|
+
|
|
14
|
+
Unreleased changes are written as fragments in `changelog.d/` beside this file
|
|
15
|
+
and folded into the `[Unreleased]` section below when a release is cut:
|
|
16
|
+
|
|
17
|
+
python scripts/changelog_fragments.py apply --root packages/osprey-facility
|
|
18
|
+
|
|
19
|
+
## [Unreleased]
|
|
20
|
+
|
|
21
|
+
## [2026.11.0] - 2026-11-26
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- A status channel states `idle` and a command states `timeout_s`; the build checks both (`command-invalid`). (#2892)
|
|
26
|
+
- A status channel that states `idle` is never followed from a setpoint; `idle` on a string status is the text it reads when no act runs, and a waveform channel is never a status.
|
|
27
|
+
- First version of `osprey-facility`: the facility description and its build,
|
|
28
|
+
moved out of the framework under the import root `osprey_facility`. It declares
|
|
29
|
+
its public modules, registers the five built-in measurement kinds under the
|
|
30
|
+
`osprey_facility.kinds` entry-point group, ships the published `facility.json`
|
|
31
|
+
JSON Schema (`osprey_facility.schema.published_schema()`), and installs and
|
|
32
|
+
tests without the framework; the MML layer needs the `mml` extra.
|
|
33
|
+
- A scenario states the simulator instances it starts on with `start_on`, a list of `va` and `standin`: `start_on: [standin]` starts it on the live stand-in alone. `start: true` still starts it on every instance; a scenario that states both, an unknown instance or an empty list is refused as `value-invalid`. `osprey_facility.start` holds the reading (`start_targets`, `start_error`).
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- The package requires `osprey-connectors>=2026.11.16`, the first release whose simulator serves what a `responds` seed states.
|
|
38
|
+
- A further address of a wiring record (under `also`) states no `tolerance` of its own: the build stops with `value-invalid`, naming the record's address.
|
|
39
|
+
- The published `facility.json` JSON Schema now carries `$schema` and a public
|
|
40
|
+
`$id` (`https://als-apg.github.io/osprey/latest/schemas/facility/<N>.schema.json`).
|
|
41
|
+
The compatibility check treats both as identity, not as a breaking addition,
|
|
42
|
+
and the package's compatibility window against framework releases is now
|
|
43
|
+
enforced in CI as osprey-connectors' is.
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- A limits record with `writable: true` now makes a bool, enum, string or waveform setpoint writable. Before, only a record with both bounds was writable, and such a channel may carry none. The same record on a float or int setpoint without both `min_value` and `max_value` now stops the build.
|
|
48
|
+
- The schema description of a limits record's `confirm` says that it is false when absent on a command that states `timeout_s`, whose status confirms the write.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: osprey-facility
|
|
3
|
+
Version: 2026.11.0
|
|
4
|
+
Summary: The OSPREY facility description: facility.json, its schema, and the layers that build it
|
|
5
|
+
Project-URL: Repository, https://github.com/als-apg/osprey
|
|
6
|
+
Project-URL: Issues, https://github.com/als-apg/osprey/issues
|
|
7
|
+
Project-URL: Changelog, https://github.com/als-apg/osprey/blob/main/packages/osprey-facility/CHANGELOG.md
|
|
8
|
+
License: BSD-3-Clause
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Python: >=3.11
|
|
11
|
+
Requires-Dist: numpy>=2.2.6
|
|
12
|
+
Requires-Dist: osprey-connectors>=2026.11.16
|
|
13
|
+
Requires-Dist: packaging>=26.3
|
|
14
|
+
Requires-Dist: pydantic<3,>=2.11
|
|
15
|
+
Requires-Dist: pyyaml>=6.0.2
|
|
16
|
+
Provides-Extra: mml
|
|
17
|
+
Requires-Dist: accelerator-toolbox>=0.8.0; extra == 'mml'
|
|
18
|
+
Requires-Dist: scipy>=1.17.1; extra == 'mml'
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# osprey-facility
|
|
22
|
+
|
|
23
|
+
The OSPREY facility description: the `facility.json` document a deployment is
|
|
24
|
+
built from, the open JSON Schema it is published against, and the layers that
|
|
25
|
+
build it from a facility's sources. It carries none of the rest of the OSPREY
|
|
26
|
+
framework (agents, views, web UI, etc.).
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
pip install osprey-facility
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The MML layer, which reads a MATLAB Middle Layer export, needs the `mml` extra:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
pip install "osprey-facility[mml]"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Stability
|
|
41
|
+
|
|
42
|
+
The package is released on its own CalVer tags, `osprey-facility-vYYYY.M.P`, by
|
|
43
|
+
`.github/workflows/release-package.yml`, independently of the framework's `v*`
|
|
44
|
+
tags.
|
|
45
|
+
|
|
46
|
+
- **Window.** The framework releases the package must keep working under are
|
|
47
|
+
listed in `[tool.osprey-facility.compat]` in `pyproject.toml`: the newest
|
|
48
|
+
stable release, every stable release of the last six months, and any
|
|
49
|
+
pre-release newer than the newest stable. The `facility-compat` CI lane
|
|
50
|
+
installs each listed framework release and runs HEAD's package under it.
|
|
51
|
+
- **Retirement.** A framework release leaves `frameworks` for `retired` when it
|
|
52
|
+
falls outside the window, or as a recorded break with its reason beside it;
|
|
53
|
+
never because it fails. The plan job holds both lists to the framework tags
|
|
54
|
+
reachable from HEAD.
|
|
55
|
+
- **Floor, never pin.** A framework release requires `osprey-facility` with a
|
|
56
|
+
floor and no ceiling; the `framework-at-facility-floor` lane installs that
|
|
57
|
+
published floor under HEAD's framework.
|
|
58
|
+
- **Schema `$id`.** The `$id` of the schema for format version N names the
|
|
59
|
+
newest additive form of N; a change that is not additive bumps N.
|
|
60
|
+
|
|
61
|
+
## Public API
|
|
62
|
+
|
|
63
|
+
The modules below are the package's public API; every other module is
|
|
64
|
+
private. Each names the one consumer it serves: a *fork/tool* that builds or
|
|
65
|
+
reads `facility.json` without the framework, a *kind plug-in*, an *app* (which
|
|
66
|
+
may import `osprey_facility.kinds` only), or a *framework job* (views, CLI,
|
|
67
|
+
engines, output writing), named by the framework modules that import it.
|
|
68
|
+
|
|
69
|
+
Each public module lists its public names in `__all__`. `osprey_facility.kinds`
|
|
70
|
+
also serves apps; `osprey_facility.reading` also serves the framework's checked
|
|
71
|
+
readers. `osprey_facility.schema.published_schema()` returns the shipped JSON
|
|
72
|
+
Schema: the current one, or `published_schema(4)` for a format version's floor.
|
|
73
|
+
`osprey_facility.__version__` is the installed distribution's version, or
|
|
74
|
+
`0.0.0+unbuilt` in a source tree with no install.
|
|
75
|
+
|
|
76
|
+
| Module | Consumer |
|
|
77
|
+
|---|---|
|
|
78
|
+
| `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` |
|
|
79
|
+
| `osprey_facility.build` | framework job: `osprey.cli.build_cmd`, `osprey.cli.facility_cmd`, `osprey.facility.views` |
|
|
80
|
+
| `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` |
|
|
81
|
+
| `osprey_facility.frontmatter` | framework job: `osprey.services.facility_knowledge` |
|
|
82
|
+
| `osprey_facility.kinds` | kind plug-in |
|
|
83
|
+
| `osprey_facility.layers` | framework job: `osprey.cli.facility_cmd`, `osprey.facility.bundled` |
|
|
84
|
+
| `osprey_facility.layers.list` | framework job: `osprey.cli.facility_cmd` |
|
|
85
|
+
| `osprey_facility.layers.mml.family` | framework job: `osprey.services.channel_finder` |
|
|
86
|
+
| `osprey_facility.layers.mml.importer` | framework job: `osprey.cli.facility_cmd` |
|
|
87
|
+
| `osprey_facility.layers.mml.mapping` | framework job: `osprey.cli.facility_cmd`, `osprey.facility.bundled` |
|
|
88
|
+
| `osprey_facility.layers.mml.response_check` | framework job: `osprey.cli.facility_cmd` |
|
|
89
|
+
| `osprey_facility.layers.mml.seed` | framework job: `osprey.cli.facility_cmd` |
|
|
90
|
+
| `osprey_facility.layers.relations` | framework job: `osprey.cli.facility_cmd` |
|
|
91
|
+
| `osprey_facility.measurement_groups` | framework job: `osprey.facility.views` |
|
|
92
|
+
| `osprey_facility.pairing` | framework job: `osprey.facility.views` |
|
|
93
|
+
| `osprey_facility.reading` | fork/tool |
|
|
94
|
+
| `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` |
|
|
95
|
+
| `osprey_facility.references` | framework job: `osprey.interfaces.ariel`, `osprey.interfaces.okf_panel`, `osprey.mcp_server.ariel`, `osprey.services.ariel_search` |
|
|
96
|
+
| `osprey_facility.relations` | framework job: `osprey.cli.facility_cmd`, `osprey.facility.views` |
|
|
97
|
+
| `osprey_facility.render` | framework job: `osprey.apps.sdk`, `osprey.cli.build_cmd`, `osprey.cli.facility_cmd`, `osprey.facility.views` |
|
|
98
|
+
| `osprey_facility.roots` | framework job: `osprey.cli`, `osprey.facility.bundled` |
|
|
99
|
+
| `osprey_facility.scenarios` | framework job: `osprey.facility.views`, `osprey.simulation.apply` |
|
|
100
|
+
| `osprey_facility.schema` | fork/tool |
|
|
101
|
+
| `osprey_facility.served` | framework job: `osprey.cli`, `osprey.facility.settings`, `osprey.facility.views` |
|
|
102
|
+
| `osprey_facility.sessions` | framework job: `osprey.agent_runner`, `osprey.interfaces.web_terminal`, `osprey.registry`, `osprey.simulation` |
|
|
103
|
+
| `osprey_facility.simulated` | framework job: `osprey.facility.views` |
|
|
104
|
+
| `osprey_facility.sources` | framework job: `osprey.facility.views` |
|
|
105
|
+
| `osprey_facility.start` | framework job: `osprey.facility.settings` |
|
|
106
|
+
| `osprey_facility.validate` | framework job: `osprey.cli`, `osprey.facility.views`, `osprey.mcp_server.channel_finder_graph`, `osprey.registry` |
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# osprey-facility
|
|
2
|
+
|
|
3
|
+
The OSPREY facility description: the `facility.json` document a deployment is
|
|
4
|
+
built from, the open JSON Schema it is published against, and the layers that
|
|
5
|
+
build it from a facility's sources. It carries none of the rest of the OSPREY
|
|
6
|
+
framework (agents, views, web UI, etc.).
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
pip install osprey-facility
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The MML layer, which reads a MATLAB Middle Layer export, needs the `mml` extra:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
pip install "osprey-facility[mml]"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Stability
|
|
21
|
+
|
|
22
|
+
The package is released on its own CalVer tags, `osprey-facility-vYYYY.M.P`, by
|
|
23
|
+
`.github/workflows/release-package.yml`, independently of the framework's `v*`
|
|
24
|
+
tags.
|
|
25
|
+
|
|
26
|
+
- **Window.** The framework releases the package must keep working under are
|
|
27
|
+
listed in `[tool.osprey-facility.compat]` in `pyproject.toml`: the newest
|
|
28
|
+
stable release, every stable release of the last six months, and any
|
|
29
|
+
pre-release newer than the newest stable. The `facility-compat` CI lane
|
|
30
|
+
installs each listed framework release and runs HEAD's package under it.
|
|
31
|
+
- **Retirement.** A framework release leaves `frameworks` for `retired` when it
|
|
32
|
+
falls outside the window, or as a recorded break with its reason beside it;
|
|
33
|
+
never because it fails. The plan job holds both lists to the framework tags
|
|
34
|
+
reachable from HEAD.
|
|
35
|
+
- **Floor, never pin.** A framework release requires `osprey-facility` with a
|
|
36
|
+
floor and no ceiling; the `framework-at-facility-floor` lane installs that
|
|
37
|
+
published floor under HEAD's framework.
|
|
38
|
+
- **Schema `$id`.** The `$id` of the schema for format version N names the
|
|
39
|
+
newest additive form of N; a change that is not additive bumps N.
|
|
40
|
+
|
|
41
|
+
## Public API
|
|
42
|
+
|
|
43
|
+
The modules below are the package's public API; every other module is
|
|
44
|
+
private. Each names the one consumer it serves: a *fork/tool* that builds or
|
|
45
|
+
reads `facility.json` without the framework, a *kind plug-in*, an *app* (which
|
|
46
|
+
may import `osprey_facility.kinds` only), or a *framework job* (views, CLI,
|
|
47
|
+
engines, output writing), named by the framework modules that import it.
|
|
48
|
+
|
|
49
|
+
Each public module lists its public names in `__all__`. `osprey_facility.kinds`
|
|
50
|
+
also serves apps; `osprey_facility.reading` also serves the framework's checked
|
|
51
|
+
readers. `osprey_facility.schema.published_schema()` returns the shipped JSON
|
|
52
|
+
Schema: the current one, or `published_schema(4)` for a format version's floor.
|
|
53
|
+
`osprey_facility.__version__` is the installed distribution's version, or
|
|
54
|
+
`0.0.0+unbuilt` in a source tree with no install.
|
|
55
|
+
|
|
56
|
+
| Module | Consumer |
|
|
57
|
+
|---|---|
|
|
58
|
+
| `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` |
|
|
59
|
+
| `osprey_facility.build` | framework job: `osprey.cli.build_cmd`, `osprey.cli.facility_cmd`, `osprey.facility.views` |
|
|
60
|
+
| `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` |
|
|
61
|
+
| `osprey_facility.frontmatter` | framework job: `osprey.services.facility_knowledge` |
|
|
62
|
+
| `osprey_facility.kinds` | kind plug-in |
|
|
63
|
+
| `osprey_facility.layers` | framework job: `osprey.cli.facility_cmd`, `osprey.facility.bundled` |
|
|
64
|
+
| `osprey_facility.layers.list` | framework job: `osprey.cli.facility_cmd` |
|
|
65
|
+
| `osprey_facility.layers.mml.family` | framework job: `osprey.services.channel_finder` |
|
|
66
|
+
| `osprey_facility.layers.mml.importer` | framework job: `osprey.cli.facility_cmd` |
|
|
67
|
+
| `osprey_facility.layers.mml.mapping` | framework job: `osprey.cli.facility_cmd`, `osprey.facility.bundled` |
|
|
68
|
+
| `osprey_facility.layers.mml.response_check` | framework job: `osprey.cli.facility_cmd` |
|
|
69
|
+
| `osprey_facility.layers.mml.seed` | framework job: `osprey.cli.facility_cmd` |
|
|
70
|
+
| `osprey_facility.layers.relations` | framework job: `osprey.cli.facility_cmd` |
|
|
71
|
+
| `osprey_facility.measurement_groups` | framework job: `osprey.facility.views` |
|
|
72
|
+
| `osprey_facility.pairing` | framework job: `osprey.facility.views` |
|
|
73
|
+
| `osprey_facility.reading` | fork/tool |
|
|
74
|
+
| `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` |
|
|
75
|
+
| `osprey_facility.references` | framework job: `osprey.interfaces.ariel`, `osprey.interfaces.okf_panel`, `osprey.mcp_server.ariel`, `osprey.services.ariel_search` |
|
|
76
|
+
| `osprey_facility.relations` | framework job: `osprey.cli.facility_cmd`, `osprey.facility.views` |
|
|
77
|
+
| `osprey_facility.render` | framework job: `osprey.apps.sdk`, `osprey.cli.build_cmd`, `osprey.cli.facility_cmd`, `osprey.facility.views` |
|
|
78
|
+
| `osprey_facility.roots` | framework job: `osprey.cli`, `osprey.facility.bundled` |
|
|
79
|
+
| `osprey_facility.scenarios` | framework job: `osprey.facility.views`, `osprey.simulation.apply` |
|
|
80
|
+
| `osprey_facility.schema` | fork/tool |
|
|
81
|
+
| `osprey_facility.served` | framework job: `osprey.cli`, `osprey.facility.settings`, `osprey.facility.views` |
|
|
82
|
+
| `osprey_facility.sessions` | framework job: `osprey.agent_runner`, `osprey.interfaces.web_terminal`, `osprey.registry`, `osprey.simulation` |
|
|
83
|
+
| `osprey_facility.simulated` | framework job: `osprey.facility.views` |
|
|
84
|
+
| `osprey_facility.sources` | framework job: `osprey.facility.views` |
|
|
85
|
+
| `osprey_facility.start` | framework job: `osprey.facility.settings` |
|
|
86
|
+
| `osprey_facility.validate` | framework job: `osprey.cli`, `osprey.facility.views`, `osprey.mcp_server.channel_finder_graph`, `osprey.registry` |
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
# setuptools-scm >= 9.2 for `scm.git.describe_command` below (the 8.x line hatch-vcs
|
|
3
|
+
# still admits has no `scm` table and refuses the keyword).
|
|
4
|
+
requires = ["hatchling", "hatch-vcs", "setuptools-scm>=9.2"]
|
|
5
|
+
build-backend = "hatchling.build"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "osprey-facility"
|
|
9
|
+
dynamic = ["version"]
|
|
10
|
+
description = "The OSPREY facility description: facility.json, its schema, and the layers that build it"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
requires-python = ">=3.11"
|
|
13
|
+
license = {text = "BSD-3-Clause"}
|
|
14
|
+
# Lower bounds are the framework's own, so a framework install and this package
|
|
15
|
+
# resolve the same floors.
|
|
16
|
+
dependencies = [
|
|
17
|
+
"osprey-connectors>=2026.11.16",
|
|
18
|
+
"pydantic>=2.11,<3",
|
|
19
|
+
"PyYAML>=6.0.2",
|
|
20
|
+
"packaging>=26.3",
|
|
21
|
+
"numpy>=2.2.6",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.optional-dependencies]
|
|
25
|
+
# The MML layer: reading a MATLAB Middle Layer export and the lattice computations
|
|
26
|
+
# it feeds. A description without an MML layer needs neither.
|
|
27
|
+
mml = [
|
|
28
|
+
"scipy>=1.17.1",
|
|
29
|
+
"accelerator-toolbox>=0.8.0",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Repository = "https://github.com/als-apg/osprey"
|
|
34
|
+
Issues = "https://github.com/als-apg/osprey/issues"
|
|
35
|
+
Changelog = "https://github.com/als-apg/osprey/blob/main/packages/osprey-facility/CHANGELOG.md"
|
|
36
|
+
|
|
37
|
+
# Measurement kinds, each entry naming its KindDeclaration; a facility build
|
|
38
|
+
# reaches a kind only through this group. The five below are the built-in ones.
|
|
39
|
+
[project.entry-points."osprey_facility.kinds"]
|
|
40
|
+
orm = "osprey_facility.kinds:ORM"
|
|
41
|
+
dispersion = "osprey_facility.kinds:DISPERSION"
|
|
42
|
+
trm = "osprey_facility.kinds:TRM"
|
|
43
|
+
crm = "osprey_facility.kinds:CRM"
|
|
44
|
+
chromaticity_monitor = "osprey_facility.kinds:CHROMATICITY_MONITOR"
|
|
45
|
+
|
|
46
|
+
[tool.hatch.version]
|
|
47
|
+
source = "vcs"
|
|
48
|
+
# The package has its own calendar stream, on its own tags:
|
|
49
|
+
# osprey-facility-vYYYY.M.P. `root` climbs to the repository the tags live in;
|
|
50
|
+
# the describe glob reads only this package's calendar tags, and the backend's
|
|
51
|
+
# default tag regex strips the `osprey-facility-` prefix and leading `v`. With no
|
|
52
|
+
# such tag reachable the build is 0.0.postN+g…, which is intended until the
|
|
53
|
+
# package's first release. The describe command sits in the `scm.git` table, not
|
|
54
|
+
# the deprecated flat `git_describe_command` key, as in osprey-connectors.
|
|
55
|
+
raw-options = { root = "../..", version_scheme = "post-release", scm = { git = { describe_command = "git describe --dirty --tags --long --abbrev=40 --match osprey-facility-v2[0-9][0-9][0-9].*" } } }
|
|
56
|
+
|
|
57
|
+
# The framework releases the facility package built at HEAD must keep working
|
|
58
|
+
# under. A framework release that depends on osprey-facility pins it with a floor
|
|
59
|
+
# and no ceiling, so a rebuild of one resolves the newest facility package; the
|
|
60
|
+
# `facility-compat` CI lane and the nightly run HEAD under each release listed
|
|
61
|
+
# here (`scripts/ci/compat_matrix.py --package facility` reads it).
|
|
62
|
+
#
|
|
63
|
+
# Policy: the newest stable framework release, every stable release published
|
|
64
|
+
# within the last six months, and any pre-release newer than the newest stable
|
|
65
|
+
# until a stable release supersedes it. A release leaves `frameworks` for
|
|
66
|
+
# `retired` when it falls outside that window, never because it fails. A
|
|
67
|
+
# deliberate break inside the window is a recorded retirement: the release
|
|
68
|
+
# moves to `retired` with its reason written beside it.
|
|
69
|
+
#
|
|
70
|
+
# The plan job holds both lists to the framework tags reachable from HEAD: a
|
|
71
|
+
# tagged release newer than 2026.11.1 (the last framework without an
|
|
72
|
+
# osprey-facility dependency) must be in one of them once a newer tag follows
|
|
73
|
+
# it, and neither may name a release with no tag. No framework release depends
|
|
74
|
+
# on the package yet, so both start empty.
|
|
75
|
+
[tool.osprey-facility.compat]
|
|
76
|
+
frameworks = []
|
|
77
|
+
retired = []
|
|
78
|
+
# Framework tests that read the facility source tree as text rather than drive
|
|
79
|
+
# the package, deselected where the installed package is not HEAD's (as the
|
|
80
|
+
# connectors list is). Node ids at HEAD; none yet.
|
|
81
|
+
source-text-tests = []
|
|
82
|
+
|
|
83
|
+
[tool.hatch.build.hooks.vcs]
|
|
84
|
+
version-file = "src/osprey_facility/_version.py"
|
|
85
|
+
|
|
86
|
+
[tool.hatch.build.targets.wheel]
|
|
87
|
+
packages = ["src/osprey_facility"]
|
|
88
|
+
|
|
89
|
+
# Unreleased changelog fragments are repository workflow, not package content:
|
|
90
|
+
# the release fold empties the directory into CHANGELOG.md, which does ship. So
|
|
91
|
+
# is the package's checks module, which only the repository's check command reads.
|
|
92
|
+
[tool.hatch.build.targets.sdist]
|
|
93
|
+
exclude = ["changelog.d", "repo_checks.py"]
|
|
94
|
+
|
|
95
|
+
# The package suite's test dependencies: a group, not an extra, so they never
|
|
96
|
+
# reach the wheel's metadata. `uv sync --package osprey-facility` installs it.
|
|
97
|
+
[dependency-groups]
|
|
98
|
+
dev = [
|
|
99
|
+
"pytest",
|
|
100
|
+
"pytest-asyncio",
|
|
101
|
+
"pytest-timeout",
|
|
102
|
+
"pytest-xdist",
|
|
103
|
+
"jsonschema>=4.26,<5", # validates built descriptions against the published schema
|
|
104
|
+
]
|
|
105
|
+
|
|
106
|
+
# Read by the standalone lane; a run from the repository root uses the root's.
|
|
107
|
+
[tool.pytest.ini_options]
|
|
108
|
+
addopts = "-ra -v --tb=short --strict-markers --color=yes"
|
|
109
|
+
testpaths = ["tests"]
|
|
110
|
+
asyncio_mode = "auto"
|
|
111
|
+
tmp_path_retention_policy = "failed"
|
|
112
|
+
markers = [
|
|
113
|
+
"wheel_build: Tests that read a built osprey-facility wheel named by OSPREY_FACILITY_WHEEL. Deselected from the root unit shards; the package's standalone CI job builds the wheel once and selects them.",
|
|
114
|
+
]
|