ASTRA — Agentic Schema for Transparent Research Analysis: a declarative YAML format for reproducible, auditable, and composable scientific analyses.
Project description
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.
[!WARNING] ASTRA is in early alpha. Expect breaking changes between minor versions, and pin the schema version in your analyses. Bug reports from real-analysis attempts and design challenges are exactly what the project needs at this stage — please open an issue or join the Community.
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
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astra_spec-0.0.10.tar.gz.
File metadata
- Download URL: astra_spec-0.0.10.tar.gz
- Upload date:
- Size: 30.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
744ca418499dce6a09c42bab1cfdb516ea973e5b6a2eb636ea145d089f09739e
|
|
| MD5 |
30c6050df7e6a7ded7a008aa5254ee37
|
|
| BLAKE2b-256 |
1cca339cc410b91d5ff01d5bb5e612e662f6f2748bf369280cd35ce37fa300bc
|
Provenance
The following attestation bundles were made for astra_spec-0.0.10.tar.gz:
Publisher:
pypi-publish.yaml on LightconeResearch/astra-spec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
astra_spec-0.0.10.tar.gz -
Subject digest:
744ca418499dce6a09c42bab1cfdb516ea973e5b6a2eb636ea145d089f09739e - Sigstore transparency entry: 1472497291
- Sigstore integration time:
-
Permalink:
LightconeResearch/astra-spec@9e2f3984bbe6669274662086776d19b42a4756e2 -
Branch / Tag:
refs/tags/v0.0.10 - Owner: https://github.com/LightconeResearch
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yaml@9e2f3984bbe6669274662086776d19b42a4756e2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file astra_spec-0.0.10-py3-none-any.whl.
File metadata
- Download URL: astra_spec-0.0.10-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83900fb6c0230f3890aab07cd3f7f173eff470302e51eb33c01730ca15d25429
|
|
| MD5 |
d4214bf8a468ad0eb1a207a7d8f9f3af
|
|
| BLAKE2b-256 |
eda2c7ea5867c59a037bf1b09591106509818726c82db9734d131f54b855b522
|
Provenance
The following attestation bundles were made for astra_spec-0.0.10-py3-none-any.whl:
Publisher:
pypi-publish.yaml on LightconeResearch/astra-spec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
astra_spec-0.0.10-py3-none-any.whl -
Subject digest:
83900fb6c0230f3890aab07cd3f7f173eff470302e51eb33c01730ca15d25429 - Sigstore transparency entry: 1472497543
- Sigstore integration time:
-
Permalink:
LightconeResearch/astra-spec@9e2f3984bbe6669274662086776d19b42a4756e2 -
Branch / Tag:
refs/tags/v0.0.10 - Owner: https://github.com/LightconeResearch
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yaml@9e2f3984bbe6669274662086776d19b42a4756e2 -
Trigger Event:
release
-
Statement type: