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
- Make a virtual environment and install the campaign extras:
python -m venv .venv .venv/bin/python -m pip install -e ".[test,site,campaign]" - Examine the queue of targets:
.venv/bin/python -m cygnus.campaign queue - Select the next target. This command writes the specification file:
.venv/bin/python -m cygnus.campaign new --next - Run the campaign. Archive retrieval needs a network connection:
.venv/bin/python -m cygnus.campaign run campaigns/<slug>.yaml - Make the report:
.venv/bin/python -m cygnus.campaign report campaigns/<slug>.yaml
These commands use the macOS and Linux form. On Windows, replace .venv/bin/python with .venv\Scripts\python.exe.
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.
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:
- Unverified lead: an observed feature with an unfinished artifact audit.
- Vetted candidate: it survived every test available.
- Independently supported: other data back it up.
- Established: community confirmation.
Pick a target
The normal loop claims the top target of the queue. You can select a different target in three ways:
new --from-queue TOI-2423.01claims a named target from the queue.new --planet "WASP-12 b"builds a campaign for any known planet. Every predicted transit becomes a positive control.new --manual NAME --tic N --ra DEG --dec DEG --t0 BJD --source "..."builds a campaign for anything else.
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.
- Make the collection file in
publish/collections/. - Run
python -m cygnus.publish check. - Run
python -m cygnus.publish build. The site appears inbuild/.
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:
CYGNUS_SCRATCHsets where light curves and other downloads go. The default is~/.cache/cygnus/scratch. A TESS sector for one target uses about 2 MB. It is always safe to delete this folder.CYGNUS_LEDGERsets the SQLite provenance ledger. The default isstate/ledger.sqlite, which is made on first use. On a machine other than the main workstation, use your own ledger. Name the run IDs in your report, so the runs can be merged later.campaigns/<id>.yamlholds the parameters of one analysis. The steps are ledgered and resumable. Each analysis regenerates thesky_record.json, and the tests fail without it.python -m cygnus.storage whereshows how the current machine reaches the shared Drive storage. Every harness gets there its own way.
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
Use public or synthetic inputs for examples. Keep personal storage paths and credentials out of reports.
Repository layout
| Directory | Contents |
|---|---|
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
| Read | For |
|---|---|
| AGENTS.md | The governing spec: principles, investigation protocol, evidence levels, dossier schema. Agents must follow it. |
| docs/STATUS.md | Current state, open decisions and known problems: the handoff note. Read second. |
| ANALYSIS_STACK.md | Architecture and the module register (what is built vs. designed). |
| DATA_SOURCES.md | Verified free archives and access tiers. |
| docs/STORAGE.md | Where 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.md | Run a tier anywhere: one command per environment (local, cloud agent, Colab), tier contracts, verified handbacks and failure classes. |
| docs/CODEX_CLOUD.md | Codex Cloud workflow: CPU setup, target selection, notebook-style T0–T3 gates/checkpoints and the Luna/xhigh task brief. |
| docs/CLOUD_SCOUTING.md | Before T0: fresh public-archive scouting, bounded downloads, source coverage and input/review queues. |
| docs/COLAB_SYNC.md | Canonical Windows scheduler for Colab tier marks and automatic repo notes. Reuse \Cygnus-Colab-Sync; do not create redundant schedules. |
| docs/HIGHER_TIERS_COLAB.md | Reusable 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.md | Scope and limits of src/cygnus/analysis/. |
| docs/SUITE_EXPANSION.md | 2026-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.md | Working-draft test plan and known gaps. |
| docs/PUBLISHING.md | The public repository site and its publication boundary. |
| docs/AUTONOMY_STUDY.md | Historical autonomy study, with a current capability note. See STATUS and COLAB_SYNC for operations. |
| docs/AGENT_RUNBOOK.md | Running 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.md | Campaign specs and the runner: how analyses are run, ledgered and calibrated. |
| docs/SKY_RECORDS.md | The sky_record.json every analysis must leave (enforced by tests). |
| design-system/mockups/README.md | The interactive sky explorer, the public site's home page: build, run, rules. |
| design-system/project/README.md | The 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.
- Added: tier runs with resumable cycles, contract checks and verified handbacks.