mariyaholic

Ad Astra

Ad Astra is a research program. It analyses astronomical archive data. For each result, it records the source and the evidence level.

Runtime
Python 3.10 or later; hosted runs use 3.12
Status
0.1.0 source preview, no release
Source
mariyaholic/ad_astra, commit 728f327
License
Apache-2.0

Run a campaign

  1. Make a virtual environment and install the campaign extras:
    python -m venv .venv
    .venv/bin/python -m pip install -e ".[test,site,campaign]"
  2. Examine the queue of targets:
    .venv/bin/python -m cygnus.campaign queue
  3. Select the next target. This command writes the specification file:
    .venv/bin/python -m cygnus.campaign new --next
  4. Run the campaign. Archive retrieval needs a network connection:
    .venv/bin/python -m cygnus.campaign run campaigns/<slug>.yaml
  5. Make the report:
    .venv/bin/python -m cygnus.campaign report campaigns/<slug>.yaml
Note

These commands use the macOS and Linux form. On Windows, replace .venv/bin/python with .venv\Scripts\python.exe.

Note

A run takes 1 to 5 minutes. A run is resumable: run the same command again after a failure.

The full procedure, with the review rules every lead has to pass, is in docs/AGENT_RUNBOOK.md.

How a run is recorded

Each run records provenance and writes a sky record.

Note

Evidence labels state the strength of the checks. They do not state a confirmed discovery.

The evidence levels describe the evidence. They do not say how exciting a target is:

Pick a target

The normal loop claims the top target of the queue. You can select a different target in three ways:

Note

Do not edit the numbers of a generated specification by hand. If a value is wrong, fix the source and generate the specification again.

python -m cygnus.batch drives the same loop for tens to hundreds of targets. Every campaign it makes is identical to a campaign made by hand.

Run on Colab

The notebooks in notebooks/ run the tiered lead pursuit and the reusable second stage on Google Colab. The index files docs/colab_runs/ and storage/locations.jsonl list the finished runs.

Publish results

Only the files in publish/collections/*.json become public.

  1. Make the collection file in publish/collections/.
  2. Run python -m cygnus.publish check.
  3. Run python -m cygnus.publish build. The site appears in build/.
Caution

Do not edit the templates to add content. The publication boundary is described in docs/PUBLISHING.md.

Rebuild the sky map

The interactive sky explorer is the public site's home page. To rebuild it, run:

python design-system/mockups/build_explorer.py

New catalogue fetches go through fetch_sky_data.py. It records the provenance of each fetch.

Settings

No credentials are needed. MAST, NASA Exoplanet Archive, VizieR, SIMBAD and the other services are public and anonymous. You can set:

Build from source

You need Python 3.10 or newer. The hosted runs use 3.12. On Windows, the venv python is .venv\Scripts\python.

git clone https://github.com/mariyaholic/ad_astra && cd ad_astra
python -m venv .venv
.venv/bin/python -m pip install -e ".[test,site,campaign]"
.venv/bin/python -m pytest -q

The science extras are mast, timing, imaging, moving and analysis. Install them if you want more than the campaign runner. The list is in pyproject.toml.

The tests run offline by default. -m network runs the live archive probes.

Bulk archive data, the ledger (state/), scratch downloads and credentials stay out of the repository (.gitignore). The Tier-1 data products live in private cloud storage. This repository holds their manifests and checksums, so every product can be fetched again from its public archive.

Run the tests

Run the test suite from the source checkout:

.venv/bin/python -m pytest -q

Limits

Warning

Use public or synthetic inputs for examples. Keep personal storage paths and credentials out of reports.

Repository layout

What is where
DirectoryContents
src/cygnus/Python package: ledger, candidate records, ingest, analysis, reporting, publish (site)
tests/pytest suite (offline by default; -m network for live archive probes)
campaigns/campaign specs and small campaign runs
reports/campaign reports, search logs and derived outputs
docs/tier1_pack/Tier-1 baseline pack manifests, name resolutions, search log
publish/curated publication manifests for the public site
design-system/Ad Astra design system source and the sky explorer
notebooks/Colab reanalysis, batch and tiered lead notebooks; completed runs indexed in docs/colab_runs/

Documents in the repository

Where to read more
ReadFor
AGENTS.mdThe governing spec: principles, investigation protocol, evidence levels, dossier schema. Agents must follow it.
docs/STATUS.mdCurrent state, open decisions and known problems: the handoff note. Read second.
ANALYSIS_STACK.mdArchitecture and the module register (what is built vs. designed).
DATA_SOURCES.mdVerified free archives and access tiers.
docs/STORAGE.mdWhere stored data lives (Drive folders, batch evidence, Colab runs): the committed index storage/locations.jsonl and python -m cygnus.storage, for every harness.
docs/TIERS.mdRun a tier anywhere: one command per environment (local, cloud agent, Colab), tier contracts, verified handbacks and failure classes.
docs/CODEX_CLOUD.mdCodex Cloud workflow: CPU setup, target selection, notebook-style T0–T3 gates/checkpoints and the Luna/xhigh task brief.
docs/CLOUD_SCOUTING.mdBefore T0: fresh public-archive scouting, bounded downloads, source coverage and input/review queues.
docs/COLAB_SYNC.mdCanonical Windows scheduler for Colab tier marks and automatic repo notes. Reuse \Cygnus-Colab-Sync; do not create redundant schedules.
docs/HIGHER_TIERS_COLAB.mdReusable second-stage notebook: discover first-stage exports, select earned T2 targets, reuse exact products and resume by source/revision. No manual target list or automatic promotion.
docs/ANALYSIS_SUITE.mdScope and limits of src/cygnus/analysis/.
docs/SUITE_EXPANSION.md2026-09-26 inventory: adapter data the pipeline discards, code no test exercises, and the expanded desired suite (L0–L3 + new record checks).
docs/TEST_ARCHITECTURE_PLAN_DRAFT.mdWorking-draft test plan and known gaps.
docs/PUBLISHING.mdThe public repository site and its publication boundary.
docs/AUTONOMY_STUDY.mdHistorical autonomy study, with a current capability note. See STATUS and COLAB_SYNC for operations.
docs/AGENT_RUNBOOK.mdRunning a target through the pipeline (any agent, any machine): five commands and the review rules; batches of many targets with python -m cygnus.batch.
docs/CAMPAIGNS.mdCampaign specs and the runner: how analyses are run, ledgered and calibrated.
docs/SKY_RECORDS.mdThe sky_record.json every analysis must leave (enforced by tests).
design-system/mockups/README.mdThe interactive sky explorer, the public site's home page: build, run, rules.
design-system/project/README.mdThe Ad Astra design system (site look and copy rules).

Release changes

Source snapshot, 7 November 2026

The source changed after the last snapshot. No release is claimed.

Reference

Last checked 17 November 2026 against source commit 728f327. The commands are from the source. This page does not claim that they ran on every system.