ASTRA Specification
Agentic Schema for Transparent Research Analysis — a declarative YAML format for scientific analyses that separates what you want to learn from how to compute it.
What is ASTRA?
ASTRA is a structured format that captures every consequential choice in a scientific analysis — its inputs, outputs, decisions, and the evidence behind them — so the result is reproducible, auditable, and composable. An agent, a workflow runner, a notebook, or a human reads the spec and produces the results; ASTRA itself stays out of execution.
For the longer argument that motivates the project — per-result trust in the agentic-AI era and why an open substrate matters — see the Lightcone Research position paper.
Quick example
# astra.yaml
version: "1.0"
name: Iris Classification
inputs:
- id: iris_data
type: data
source: sklearn.datasets.load_iris
outputs:
- id: accuracy
type: metric
format: json
decisions: [scaling, model]
recipe:
command: python src/evaluate.py
decisions:
scaling:
label: Feature Scaling
default: standard
options:
none: { label: No Scaling }
standard: { label: StandardScaler }
model:
label: Classification Model
default: random_forest
options:
random_forest: { label: Random Forest }
svm:
label: SVM
requires: [scaling.standard]
A universe picks one option per decision (e.g. { scaling: standard, model: svm }). The same analysis can carry many universes; each one yields one set of results.
Install and try it
uv tool install astra-tools # installs the `astra` CLI on your PATH
astra init my-analysis && cd my-analysis
astra validate astra.yaml
astra info
astra viz
Full walk-through: Getting started →
Repository layout
This repository (astra-spec) holds the LinkML schema and the documentation site.
src/astra/
schema/ # LinkML schema source (edit these)
datamodel/ # Generated Python datamodel (do not edit directly)
docs/ # Documentation source (Zensical → astra-spec.org)
tests/data/ # Valid/invalid YAML fixtures
project/ # Multi-language bindings (Python, TS, JSON Schema, JSON-LD, OWL, Java)
The Python CLI and SDK (astra-tools) live in a separate repository: LightconeResearch/astra-tools. Both packages share the astra.* Python namespace via PEP 420.
Development
git clone https://github.com/LightconeResearch/astra-spec.git
cd astra-spec
uv sync --dev
Requires Python 3.9+, uv, and just.
just test # Schema generation, Python datamodel, examples
just lint # LinkML schema lint
just gen-python # Regenerate Python datamodels
just gen-doc # Regenerate the schema reference docs
just docs-serve # Live-reload local preview of the docs site
just --list # Everything else
The release recipe (just release X.Y.Z) updates CITATION.cff and creates an annotated tag; the version is injected into generated artifacts from the tag at build time. Pushing the tag triggers the Deploy versioned docs on tag workflow, which publishes the versioned docs to gh-pages via mike.
See CONTRIBUTING.md and the Community page for the full contribution workflow.
License
- Schema — CC BY 4.0
- Code — BSD 3-Clause
Both are permissive; commercial and academic use are unrestricted. Schema reuse requires attribution; code reuse requires the standard BSD-3 notice.
Citing
If you use ASTRA, please cite the repository — the easiest way is the "Cite this repository" button on this page (it generates APA and BibTeX from CITATION.cff). Include the schema version you targeted; it is recorded at the top of each LinkML source file and in every generated artefact.
For the broader context, the Lightcone Research position paper is a separate citation, not a replacement.
Credits
Developed by Lightcone Research. Built with LinkML using the linkml-project-copier template.
Metadata
Release files for astra-spec 0.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| astra_spec-0.0.14.tar.gz | 32.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| astra_spec-0.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.8 kB
Release files / astra_spec-0.0.14.tar.gz
| Download URL | astra_spec-0.0.14.tar.gz |
|---|---|
| Size | 32.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a6aa99d460ec0ad782f835f4bba3a4913babde05cdc2713979f93499af3c1d7
|
|
BLAKE2b-256 checksum How to use checksums |
fbc78de4ec4abd6f08d4e609a43d2a3b70f6a59f1f7a318e673150cfd4d3d622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency logRelease files / astra_spec-0.0.14-py3-none-any.whl
| Download URL | astra_spec-0.0.14-py3-none-any.whl |
|---|---|
| Size | 36.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7f8e1c224a4ccd6ba8c2fd054821b61e08d5097f29fd5d6bd89a59712053d41
|
|
BLAKE2b-256 checksum How to use checksums |
09f0b87c6764d961e13f208a1e5e2c5072eea9479f5360a5fe2a14706fd56829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency logSecurity for astra-spec 0.0.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for astra_spec-0.0.14.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.