Skip to main content

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.

Build and test Docs Schema license: CC BY 4.0 Code license: BSD 3-Clause

[!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

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

astra_spec-0.0.10.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astra_spec-0.0.10-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

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

Hashes for astra_spec-0.0.10.tar.gz
Algorithm Hash digest
SHA256 744ca418499dce6a09c42bab1cfdb516ea973e5b6a2eb636ea145d089f09739e
MD5 30c6050df7e6a7ded7a008aa5254ee37
BLAKE2b-256 1cca339cc410b91d5ff01d5bb5e612e662f6f2748bf369280cd35ce37fa300bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for astra_spec-0.0.10.tar.gz:

Publisher: pypi-publish.yaml on LightconeResearch/astra-spec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for astra_spec-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 83900fb6c0230f3890aab07cd3f7f173eff470302e51eb33c01730ca15d25429
MD5 d4214bf8a468ad0eb1a207a7d8f9f3af
BLAKE2b-256 eda2c7ea5867c59a037bf1b09591106509818726c82db9734d131f54b855b522

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page