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.9.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.9-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file astra_spec-0.0.9.tar.gz.

File metadata

  • Download URL: astra_spec-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 f1c1da047f944b252a117d604f7b3ce365a85e58f6bcc1cf4ee9c903699a73f9
MD5 8c5760d1b712cbc6909081539c9a5aea
BLAKE2b-256 ee9f7be6f5a6fea4caef767f8d4ad7e9ba70c5186862396fd2967ddf61626815

See more details on using hashes here.

Provenance

The following attestation bundles were made for astra_spec-0.0.9.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.9-py3-none-any.whl.

File metadata

  • Download URL: astra_spec-0.0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec3c7a7371f4b31c2944484243b6da0ce3fca63224c11abd733aff432abb078
MD5 1801e074cefd4ef1536c6f86202e8f6a
BLAKE2b-256 a838420af20d4d57f906d480fef77bb33d8cf2495ae32bb9ae327debb2ad1cf3

See more details on using hashes here.

Provenance

The following attestation bundles were made for astra_spec-0.0.9-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