Aether Quant
A self-adapting algorithmic trading system on QuantConnect Lean and PyTorch, and an open toolkit for building, testing and proving your own algorithms.
Aether Quant is not a single static strategy. It's a dynamic system. At its core, an ensemble of neural models predicts, for every asset every day, a multi-horizon view of the market: direction at 1, 5 and 20 days, expected return magnitude and volatility, and each asset's cross-sectional rank. Predictions come from a Mixture-of-Experts ensemble (bullish/bearish/sideways/volatility specialists) routed by a learned gating network, plus a causal-TCN sequence encoder, all reading one feature pipeline that folds in a market-regime detector, a 3D market topology layer and a liquidity/market-impact engine. A unified multi-asset-class layer routes equities, crypto, bonds, futures, options and forex through one portfolio, behind a kill switch, position reconciliation and a hash-chained audit log, while a controlled retraining loop and a research cycle let generations of models share capital and hand it over as evidence arrives. Everything is wired together and validated end to end inside QuantConnect's Lean engine. The thesis this project exists to test: markets are non-stationary, so a trading model should be too.
Proving that thesis is only half the purpose. Aether Quant is also meant to help build the next algorithm, whoever writes it. The aether_quant library and the aq CLI work on any signal, not just this project's, and offer the same tools it judges itself by: position sizing, book construction, order gates, a cost-aware simulator, pre-registered research with counted trials and once-only holdouts, overfitting tests, Lean-exact statistics, and generations that hand over gradually. The safety-critical functions behind them are proved in Lean 4 and tested against those proofs. Documentation, tutorials and the API reference: https://leon1706-lol.github.io/Aether-quant/.
The book trading today is two parts, on paper only: a long-only crypto trend sleeve (70%) and a multi-asset model book (30%) over equities, bond ETFs, crypto and forex. It is labelled reinstated, not verified: no pre-registered test has found a verified edge for either, and the model book was installed by the owner's rule, inside a 10% volatility and 15% drawdown ceiling, not because it passed one.
| Lean Sharpe | Net profit | Max drawdown | Sharpe without T-bill carry | Alpha t | Deflated Sharpe |
|---|---|---|---|---|---|
| 0.57 | 31.249% | 9.40% | 0.66 | -0.19 | 1.54% |
Lean run 2026-11-16_16-25-28, 2023-07-01 to 2026-11-02, computed 2026-11-20 11:27 UTC. Details: Backtest Statistics.
Quickstart
pip install aether-quant # numpy and pandas only: no torch, no Lean, no Docker
aq hello # downloads 11 coins (keyless), runs the shipped rule with costs, prints the report
aq models install example-crypto-mlp && aq models score example-crypto-mlp # an example model from the release, scored with numpy
aq init my-signal && cd my-signal && aq pipeline run # your own signal: data, evaluate, gate, report
Retraining the model stack fits a 4 GB machine: aq cycle retrain --host local --procedure stack --memory-profile low (Train on a small machine).
aq hello --offline uses the sample shipped in the wheel. The tutorials cover signal evaluation, book construction and overfitting tests, and each opens in Colab. The docs hold the guide and the API reference. The dashboard runs with demo data in one command: docker run --rm -p 8080:8000 ghcr.io/leon1706-lol/aether-quant-dashboard:latest.
Known Limitations
- No demonstrated edge. The book is mostly crypto exposure, and almost all of its result came before mid-2025. The model book's 12 optimizers and 6 signal mixes (R-BOOK1, R-MIX1) all scored a negative Sharpe in 2021-04 to 2023-06 and none survived, and the model's rank IC is under 0.07 in every class. See Alpha by Period.
- Nothing has survived selection. None of the project's 258 pre-registered trials survived, so the holdouts stay unread. See Research Record.
- Hindsight in the universe. The 11 coins are today's survivors. The same rule scored Sharpe -0.06 on coins no rule had read (#301). EOS, which Coinbase delisted, left the book on 2026-11-07 (#311).
- Paper only, and no broker yet. Interactive Brokers cannot fill this sleeve, and the crypto venue (Coinbase assumed) needs an API key (#192). See RUNBOOK "When the keys arrive".
- IB is unverified end to end. Connection, live futures margin and all 43 option structures have only met Lean's samples, never a real Gateway. Futures and options stay data-empty until a key is connected (
aq ib status). - Not ready for live capital, measured.
aq live-readinessscores 21 conditions and reads NOT READY: no 60-session forward record, no paper period, no broker. Seedocs/live/paper-to-live.md. - Safety is field-tested without a broker only. In Lean's paper brokerage on a fake feed,
main.pypasses the field test (#351,scripts/lean_smoke/field_test.py). Its orders fill, injected drift breaches reconciliation, and an injected shock trips the kill switch and flattens the book. It survives Redis and then Postgres being stopped, restarts cleanly, runs two accounts apart, and its audit chain verifies on a real Postgres. The kill switch, reconciliation and auto-rollback have still never run against a real broker over paper hours (#228, #338, #192).
Table of Contents
- Quickstart
- Known Limitations
- The
aether_quantLibrary - Download
- Getting Started
- Requirements
- Architecture
- Universe Size
- Project Structure
- Documentation Site
- Module Documentation
- Development Documentation
- Open Source Files
- Backtest Statistics
- Overview
- Benchmarks
- Alpha by Period
- General Characteristics
- Performance
- Runs and Drawdowns
- Implementation Shortfall
- Return/Risk Efficiency
- Attribution
- Robustness: Monte Carlo
- Research Record
- Disclaimer
- Retired model book: Classification Scores, Walk-Forward, Lean vs Offline Books, Offline Evaluation, As-Live Book, Benchmarks, Cross-Checks, Research and Audit
- Test Suite
- CLI Reference
aq helloaq modelsaq initaq pipelineaq trainaq testaq backtestaq profileaq reportaq cycleaq apiaq webuiaq dockeraq configaq leanaq docsaq verifyaq retrainaq paper-readinessaq trade-lockaq kill-switchaq cleanaq evaluateaq researchaq proveaq fetchaq backfillaq ibaq assetsaq render-lean-configaq secretsaq accountsaq liveaq usersaq live-readinessaq secrets-checkaq audit-logaq statusaq doctoraq versionaq helpaq completionaq hooksaq commitaq checkaq ciaq depsaq coverageaq codespaceaq vaultaq problemsaq lintaq scaffoldaq phaseaq bug-reportaq examplesaq notebooksaq benchaq dataaq signalaq featuresaq overfitaq labaq datasetaq stackaq trialsaq runsaq api-diffaq releaseaq health
- Release Process
- Roadmap
The aether_quant Library
One importable package over the same pure functions the live algorithm and the research chain call: 1180 public names across 34 modules.
pip install "aether-quant[research]" # the library is Apache-2.0; scipy, scikit-learn and friends come with [research]
# from a clone: pip install -e .[research]
Score your own signal, build a constrained book, gate an order and test for overfitting:
import numpy as np
import pandas as pd
from aether_quant import execution, portfolio, research, risk
# Your signal: one score per ticker per date, next to the realised rank it should predict
rng = np.random.default_rng(0)
rows = []
for date in pd.date_range("2024-01-01", periods=120, freq="B").strftime("%Y-%m-%d"):
future = rng.normal(size=30)
ranks = pd.Series(future).rank(pct=True).to_numpy()
for i in range(30):
rows.append({"date": date, "ticker": f"T{i}", "split": "validation", "my_score": 0.3 * future[i] + rng.normal(),
"target_rank_5d": ranks[i], "target_rank_20d": ranks[i]})
frame = pd.DataFrame(rows)
# 1. The report this project judges its own models by: rank IC, HAC t, bootstrap interval
report = research.evaluate_signal(frame, score_column="my_score", splits=("validation",), bootstrap_draws=200)
h20 = report["splits"]["validation"]["h20"]
print(f"IC {h20['mean_ic']:.3f}, HAC t {h20['hac_t']:.1f}")
# 2. A market-neutral book: per-name and sector caps, dollar neutrality, gross cap
weights, _ = portfolio.apply_book_neutrality(
{"AAA": 0.20, "BBB": 0.10, "CCC": -0.15, "DDD": -0.05},
sector_by_symbol={"AAA": "tech", "BBB": "tech", "CCC": "energy", "DDD": "tech"},
dollar_neutral=True, sector_neutral=True, gross_exposure_cap=0.5, max_weight_per_name=0.12, sector_max_net_weight=0.15,
)
# 3. Sizing never flips a trade or exceeds its cap; a tripped risk lock stops the order
sized = risk.build_dynamic_position_sizing(-0.3, 0.9, 0.02, 0.10)
allowed, reason = execution.resolve_order_permission("paper", True, True, False)
print(round(sized.target_weight, 4), allowed, reason)
# 4. How likely is the best of your variants just the luckiest? (daily returns, one column per variant)
trial_returns = rng.normal(0, 0.01, size=(400, 8))
print("PBO:", research.probability_of_backtest_overfitting(trial_returns, blocks=8)["pbo"])
How it works:
- A facade, not a copy. Every name is re-exported from the module
main.pyand the offline tools already use, so a library result and a live decision come from the same code. - Light to import. No torch, Lean, Redis, Postgres or web stack. Optional extras load only when called.
- Modules map to jobs:
signals,sizing,neutrality,costs,backtest,overfitting: the research toolkit by task, with Kelly, volatility targeting, beta and factor neutrality, composable cost models,backtest(), the minimum track record and the haircut Sharpe.samples,hello: the bundled sample andaq helloas a call.risk,portfolio,execution: sizing, kill switch, book construction, HRP, order gates, cost model, reconciliation.features,training,data: indicators, cross-sectional ranks, purged folds, data parsers.evaluation,research: simulators, Monte Carlo, Lean-exact statistics, deflated Sharpe, PBO, factor spanning, leakage audits.cycle: pre-registered rounds, generation shares, decay detection, retraining preflight.audit,formal,io: the hash chain, Lean 4 proof cases, finite-safe JSON.
- Stable surface. The public names are pinned in
tests/data/aether_quant_api.json, so a change is always deliberate. Every export is fully annotated and documented: the API reference.
Runnable tours: examples/aether_quant_quickstart.py, examples/aether_quant_cycle.py. Full module list: aether_quant/README.md.
Download
| Command | What | |
|---|---|---|
Library + aq |
pip install aether-quant |
numpy and pandas only (about 145 MB in a fresh venv) |
| Research | pip install "aether-quant[research]" |
adds scipy, scikit-learn, statsmodels, pyarrow, httpx |
| Notebooks | pip install "aether-quant[notebooks]" |
adds matplotlib and the Jupyter kernel |
| Dashboard | docker run --rm -p 8080:8000 ghcr.io/leon1706-lol/aether-quant-dashboard:latest |
the web UI with demo data, no database |
| Whole system | pip install "aether-quant[full]", docker pull ghcr.io/leon1706-lol/aether-quant:latest |
Lean CLI, torch, Redis, Postgres clients, the engine image |
The 40 GB Lean engine image is only for real Lean backtests and deployments, never for research.
Getting Started
From a clone, with a virtual environment active:
pip install -r requirements/requirements.txt
pip install -r requirements/requirements-dev.txt
pip install -e . # registers the `aq` command
aq --help
aq test # the suite, without Redis, Postgres or IB
aq evaluate --lean-report # refresh the statistics from a finished run
aq cycle status # what is due today
- Dashboard:
aq webui --docker(the demo image, port 8080), or for developmentaq api(port 8001), thennpm installinwebui/andaq webui(port 3002). - Live operations: secrets (
aq secrets), accounts (aq accounts,aq live), users (aq users) and the scorecard (aq live-readiness). SeeRUNBOOK.mdanddocs/live/. - Training:
aq train,aq cycle retrain. SeeRUNBOOK.md.
Requirements
- Python 3.11, which CI runs. Package metadata says >=3.10, and a first-party check (
vermin -t=3.10-) in CI keeps the sources importable on 3.10 (#326). - For backtests: Docker and the Lean CLI (
pip install lean). The first run pulls the pinned engine image, quantconnect/lean:17900, about 40 GB. - For the infrastructure: Docker Compose (Redis, Postgres, workers). Everything degrades gracefully without it.
- For the dashboard: Node.js.
- For retraining: 4 GB of RAM with
--memory-profile low(14 GB for the standard profile), or the training Codespace through the GitHub CLI (gh).
Dependency sets are listed in requirements/README.md.
Architecture
Every decision runs daily inside Lean's on_data(). A config flag picks what drives the book:
- Target weights (shipped):
phase_v2.target_weightsreadsml/target_weights.csv, the blend of the crypto sleeve and the model book, and an offline twin tracks it at a daily correlation above 0.99 (0.99999 on the pinned run). - Model book: the installed models score all 103 assets and
portfolio/book_optimizer.pysizes the book (inverse-volatility ranks, every 20 sessions, forex at a 6% name cap behind a loss guard). The offline engine decides its rows (scripts/model_book_decide.py). Withphase_v2.target_weights.sourceset to"model_book",main.pycomputes the same row inside Lean (default off). - Legacy gated book (selectable): the ensemble's rank heads drive a dollar- and sector-neutral long/short book with
target_weights.enabled: false. It has failed the pre-registered bar every time.
flowchart LR
D["Lean data<br/>equities, bonds, crypto, forex"] --> F["Feature pipeline<br/>regime, liquidity, topology, macro"]
F --> M["Models<br/>4 experts + gating,<br/>multitask, sequence"]
M -. "model book" .-> B["Book construction<br/>neutrality, sizing, costs"]
W["Target weights<br/>rule or blended generations"] -- "shipped" --> B
B --> G["Safety gates<br/>kill switch, order gate,<br/>reconciliation"]
G --> L["Lean orders"]
L --> R["Redis, then PostgreSQL<br/>experience and audit log"]
R --> T["Performance triggers"]
T --> C["Controlled retraining<br/>validate, promote, roll back"]
C --> M
Q["Research cycle<br/>rounds, generations, decay"] --> W
C --> Q
Models (one shared feature code path for training and runtime)
- Baseline + 4 experts: bullish, bearish, sideways and volatility specialists, routed by a learned gating network.
- Multitask: a shared trunk with direction, magnitude, volatility and rank heads, including residualised ranks that measure skill rather than beta.
- Sequence: a causal-TCN over a 30-bar window.
- Ranking objective: trained directly on soft-Spearman or ListNet over whole dates.
Risk and execution
- Sizing: bounded and direction-preserving, scaled down when expected edge does not clear round-trip cost.
- Controls: an automated kill switch, reconciliation against broker holdings, a drawdown lock and an opt-in auto-rollback.
- Asset classes: one router for equities, crypto, bonds, forex, futures and options.
Live operations (off until configured; docs/live/)
- Secrets: each credential comes from a file, a Docker secret, the environment or the OS keyring, and never shows itself.
- Accounts: one Lean deployment each, with overrides that can only tighten the config (proved in Lean 4); the default account is the single-account system.
- Users: viewer, operator and admin tokens for the API and dashboard; locks are audited.
- Readiness:
aq live-readinessmeasures every paper-to-live condition, and the broker-free field test exercises the safety paths in Lean.
Research cycle (aq cycle)
- Rounds: rules are hashed before any score, trials go in a ledger, and a holdout read happens once.
- Generations: up to four share a book, each one's share computed from its record and moving smoothly.
- Admission: a candidate must earn its share (R-ADMIT1); real money is always the owner's manual action.
- Off by default:
ml/generations/policy.jsonhasenabled: false, and nothing in Lean reads it.
Stack: Lean CLI, Docker Compose, Redis, PostgreSQL, PyTorch, NumPy/pandas, FastAPI, React/Vite, Telegram alerts, GitHub Actions, Codespaces. Full contracts: development/architecture.md.
Universe Size
103 assets in `config.json`: 55 equities and broad ETFs, 22 bond ETFs, 11 crypto pairs, 15 forex pairs. The shipped book trades the crypto pairs; the rest feed the models.| Split | Dates |
|---|---|
| Training | 2014-12-01 to 2021-12-31 |
| Validation | 2022-01-01 to 2023-06-30 |
| Backtest | 2023-07-01 to 2025-06-30 |
| Holdout | 2025-07-01 to 2026-11-02 |
Tickers and roles: development/asset_universe.md.
Project Structure
Single-responsibility Python packages, each with its own README, a few top-level entry points (main.py for the Lean algorithm, train*.py for the trainers, aq_cli.py for the CLI) and the runtime config (config.json, lean.json). The annotated tree is in development/project_structure.md.
Documentation Site
The guide, the live-operations pages and the API reference are published at https://leon1706-lol.github.io/Aether-quant/ after each green CI on main, together with the coverage reports. Preview it with mkdocs serve; see docs/. The table below is generated from mkdocs.yml by aq docs sync.
| Section | Pages |
|---|---|
| Home | Home |
| Getting started | Install · Hello world · The dashboard · Train on a small machine |
| Tutorials | Hello world · Signal evaluation · Book construction · Overfitting tests · Models · Model lab |
| Guide | Signals · Sizing · Neutrality · Costs · Backtesting · Overfitting · Research cycle · Models · Model lab · Your own pipeline · Safety |
| Live trading | Paper to live · Secrets · Accounts · Users · Field test |
| API reference | Overview, one page per facade (34), generated by scripts/build_docs.py |
| About | License · Security · Changelog |
Module Documentation
| Area | Module | What it owns |
|---|---|---|
| Library | aether_quant/ |
The importable facade over every subsystem |
| Library | formal/ |
Lean 4 proofs of the safety-critical functions (aq prove) |
| Library | notebooks/ · docs/ |
Colab tutorials, built from percent-format sources · the MkDocs site sources |
| Trading | risk/ |
Position sizing, leverage, kill switch, asset-class routing |
| Trading | portfolio/ |
Book construction, HRP, sleeves, target weights, options |
| Trading | execution/ |
Order gate, cost model, reconciliation, paper readiness |
| Trading | analyzer/ |
The final per-asset action layer |
| Models | features/ |
Feature functions shared by training and runtime |
| Models | lab/ |
The model lab: the production networks and losses, datasets, training runs as counted trials, evaluation and export (aq lab) |
| Models | inference/ · cpp_inference_ext/ |
The numpy forward pass · its optional C++ accelerator |
| Models | moe/ · experts/ |
The gating network · the four expert models |
| Models | regime/ · topology/ · liquidity/ |
Regime detection · market topology · market impact |
| Models | ml/ |
Weights, datasets, candidates, generations |
| Research | evaluation/ |
Simulators, audits, statistics, the research cycle |
| Research | retraining/ · performance/ |
Controlled retraining and rollback · performance triggers |
| Research | backtests/ |
Lean run output (gitignored) |
| Data | data/ · data_pipeline/ |
The Lean data layout · backfills and bar synthesis |
| Ops | experience/ · audit/ |
Redis-to-Postgres decision history · the hash-chained audit log |
| Ops | monitoring/ · webui/ · visualization/ |
FastAPI · the React dashboard · runtime state exports |
| Ops | notifications/ · storage/ |
Telegram alerts · reserved for future persistent artifacts |
| Tooling | tests/ · scripts/ · requirements/ |
The suite · dev and research scripts · dependency sets |
| Tooling | .devcontainer/ · .githooks/ |
The training and Lean Codespace definitions · the opt-in git hooks |
Development Documentation
| Document | Contents |
|---|---|
development/README.md |
What each development document is for |
development/architecture.md |
Subsystem contracts and the offline/live parity contract |
development/infrastructure.md |
Docker, ports, Codespaces, database inspection |
development/verification.md |
Every way the project is verified, and when each is required (aq verify) |
development/research_results.md |
Generated results of the retired model book and past rule chains |
development/project_structure.md |
The directory tree |
development/asset_universe.md |
The tickers |
development/Changelog.md |
Build history |
development/Problems.md |
Bug log |
development/backups/ |
Full text from before each condensing pass |
Open Source Files
| File | Purpose |
|---|---|
LICENSE |
The GNU AGPL-3.0, the license of the trading system. LICENSING.md maps the two licenses: the library (what the wheel and dashboard ship, the UI, notebooks, docs, proofs) is Apache-2.0 with NOTICE, and REUSE.toml maps every path |
CONTRIBUTING.md |
Setup and conventions for people |
AGENTS.md |
Setup and conventions for AI agents |
RUNBOOK.md |
Everyday commands, incidents, the research cycle, what to do when keys arrive |
REPRODUCIBILITY.md |
How to reproduce every published number |
SECURITY.md |
Reporting a vulnerability |
CODE_OF_CONDUCT.md |
Community conduct |
todo.md |
The owner's current objectives |
Backtest Statistics
The shipped book's numbers from the real Lean engine. Every table is generated, never hand-edited: aq backtest or aq evaluate --lean-report --backtest-dir backtests/<run> refreshes them.
- Portfolio is the whole Lean run. Strategy is that run without its T-bill sweep, because idle-cash carry is not alpha.
- The current code reproduces the pinned run order for order. No newer run is needed until the book changes.
- Results of the retired model book live in
development/research_results.md.
Overview
| Metric | Value |
|---|---|
| Backtest window | 2023-07-01 to 2026-11-02 |
| Sharpe Ratio | 0.571 |
| Net Profit | 31.249% |
| Compounding Annual Return | 8.462% |
| Drawdown | 9.400% |
| Total Orders | 1445 |
| Win Rate | 51% |
| Last updated | 2026-11-17 10:09 UTC (auto-generated by aq backtest) |
Benchmarks
| Series | Total return | Annual return | Volatility | Sharpe | Max drawdown |
|---|---|---|---|---|---|
| Portfolio (with the T-bill sweep) | +31.65% | +8.62% | 7.29% | 1.17 | 9.40% |
| Strategy (without the sweep) | +16.29% | +4.64% | 7.30% | 0.66 | 11.43% |
| SPY | +76.55% | +18.64% | 14.91% | 1.22 | 18.76% |
| 60/40 SPY/AGG, rebalanced daily | +48.09% | +12.53% | 9.63% | 1.27 | 11.27% |
| Bitcoin, buy and hold | +157.01% | +32.83% | 46.20% | 0.84 | 53.06% |
| The book's 11 coins, equal weight | +156.78% | +32.79% | 65.28% | 0.76 | 57.09% |
Run 2026-11-16_16-25-28 · computed 2026-11-20 11:27 UTC · same sessions to the last equity close, no risk-free rate
Alpha by Period
| Period | Dates | Sharpe | 95% interval | Alpha per year | Alpha t | Deflated Sharpe |
|---|---|---|---|---|---|---|
| Whole run | 2023-07-02 to 2026-11-04 | 0.66 | -0.54 to 1.86 | -0.45% | -0.19 | 1.54% |
| First half | 2023-07-02 to 2025-06-30 | 1.21 | -0.42 to 2.87 | -0.83% | -0.25 | 18.66% |
| Second half | 2025-07-01 to 2026-11-02 | -0.16 | -1.84 to 1.55 | +0.87% | 0.26 | 1.06% |
| Long run, same rule | 2019-01-02 to 2026-11-04 | 0.71 | -0.04 to 1.54 | -0.32% | -0.19 | 0.10% |
Proof of alpha (R-ALPHA1): not demonstrated (full-window alpha t < 2.0; deflated Sharpe < 0.95).
With SPY and AGG read a session late, as the crypto series is, the full-window alpha t is -0.22 (#330). R-ALPHA1 reads the figure in the table.
Run 2026-11-16_16-25-28 · computed 2026-11-20 11:27 UTC · alpha against SPY / AGG / BTCUSD with a Newey-West t · deflated over 258 ledger trials
General Characteristics
| Metric | Portfolio | Strategy | Note |
|---|---|---|---|
| Time range | 2023-07-01 to 2026-11-02 | ||
| Years | 3.35 | ||
| Average AUM | $121,046 | ||
| Capacity (Lean estimate) | $520,000 | lowest-capacity asset AAA XHPVXIJUWS4L | |
| Leverage, mean (gross exposure / NAV) | 1.05x | 0.18x | |
| Leverage, max | 1.14x | 0.28x | |
| Maximum dollar position | — | $6,804 | ETHUSD on 2026-08-21 |
| Ratio of longs (share of bets) | — | 64.60% | |
| Longs : shorts (bets) | — | 188 : 103 | |
| Frequency of bets (per year) | — | 86.9 | |
| Average holding period (days, notional-weighted) | — | 52.1 | |
| Annualized turnover (traded notional / AUM) | 2.90x | 2.39x | |
| Correlation to underlying (SPY, daily) | 0.307 | 0.308 | |
| Start equity | $100,000 | ||
| End equity | $131,249 | ||
| Total orders | 1,445 | ||
| Lean portfolio turnover (daily mean) | 0.810% |
Run 2026-11-16_16-25-28 · computed 2026-11-20 11:27 UTC
Performance
| Metric | Portfolio | Strategy |
|---|---|---|
| PnL | +$31,249 | +$16,451 |
| PnL from the T-bill sweep (carry) | +$14,798 | |
| PnL from long positions (closed bets, net of fees) | — | +$18,122 |
| PnL from short positions (closed bets, net of fees) | — | -$1,336 |
| Annualized rate of return | +8.46% | +4.65% |
| Hit ratio (closed bets net of fees) | — | 44.16% |
| Average return from hits | — | +36.63% |
| Average return from misses | — | -16.15% |
| Time-weighted return (no external flows: the chained return) | +31.25% | +16.45% |
| Net profit (Lean) | 31.249% | |
| Win rate / loss rate (Lean, all trades) | 51% / 49% | |
| Average win / average loss (Lean) | 0.10% / -0.06% | |
| Profit-loss ratio (Lean) | 1.72 | |
| Expectancy (Lean) | 0.377 | |
| Unrealized at the end (Lean) | +$11,548 |
Run 2026-11-16_16-25-28 · computed 2026-11-20 11:27 UTC
Runs and Drawdowns
| Metric | Portfolio | Strategy |
|---|---|---|
| HHI of positive returns | 0.002 | 0.002 |
| HHI of negative returns | 0.002 | 0.002 |
| HHI of time between bets (bets per month) | — | 0.011 |
| 95-percentile drawdown | 4.72% | 6.58% |
| 95-percentile time under water (days) | 224.5 | 237.6 |
| Maximum drawdown | 9.40% | 12.55% |
| Longest time under water (days) | 393 | 393 |
| Drawdown episodes | 35 | 28 |
| Drawdown (Lean) | 9.400% | |
| Drawdown recovery (Lean, days) | 241 | |
| Maximum drawdown duration (Lean) | 209.04:00:00 |
Run 2026-11-16_16-25-28 · computed 2026-11-20 11:27 UTC
Implementation Shortfall
| Metric | Portfolio | Strategy |
|---|---|---|
| Traded notional | $1,174,824 | $968,550 |
| Broker fees | $6,912 | $6,826 |
| Broker fees per turnover (bps of traded notional) | 58.8 bps | 70.5 bps |
| Average slippage per turnover (bps vs the bar's open) | 7.5 bps | 8.9 bps |
| Dollar performance per turnover (bps) | 266.0 bps | 169.8 bps |
| Return on execution costs (net PnL / (fees + slippage)) | 4.01x | 2.14x |
| Total fees (Lean) | $6,912 |
Run 2026-11-16_16-25-28 · computed 2026-11-20 11:27 UTC
Return/Risk Efficiency
| Metric | Portfolio | Strategy | Note |
|---|---|---|---|
| Annualized Sharpe ratio (Lean: risk-free rate subtracted) | 0.571 | ||
| Annualized Sharpe ratio (no risk-free rate) | 1.182 | 0.659 | |
| Information ratio vs SPY | -0.675 | -0.934 | |
| Information ratio (Lean) | -0.773 | ||
| Probabilistic Sharpe ratio (P[true Sharpe > 0]) | 98.56% | 88.74% | |
| Probabilistic Sharpe ratio (Lean, vs its benchmark) | 18.916% | ||
| Deflated Sharpe ratio | 23.21% | 4.53% | 215 registered trials, expected best Sharpe 1.58 |
| Sortino ratio (Lean) | 0.869 | ||
| Alpha / beta (Lean) | 0.018 / 0.15 | ||
| Annual standard deviation (Lean) | 0.071 | ||
| Annual variance (Lean) | 0.0050 | ||
| Tracking error (Lean) | 0.143 | ||
| Treynor ratio (Lean) | 0.272 | ||
| Sharpe, Lean formula (shipped rate file/365) | 0.571 |
Run 2026-11-16_16-25-28 · computed 2026-11-20 11:27 UTC
Attribution
| Class | Net PnL | Return on AUM (annual) | Volatility (annual) | Sharpe | Max drawdown (on AUM) | Risk share | Fees |
|---|---|---|---|---|---|---|---|
| bond | -$439 | -0.11% | 0.04% | -2.63 | 0.37% | 0.05% | $177 |
| cash_sweep | +$14,798 | +3.65% | 0.29% | 12.78 | 0.31% | 0.32% | $85 |
| crypto | +$17,415 | +4.30% | 7.09% | 0.69 | 12.84% | 99.28% | $6,510 |
| equity | -$475 | -0.12% | 0.16% | -0.70 | 0.51% | 0.36% | $139 |
| unattributed (Lean minus rebuilt) | -$49 |
Run 2026-11-16_16-25-28 · computed 2026-11-20 11:27 UTC
Robustness
Monte Carlo Simulation
| Metric | p5 | p50 | p95 |
|---|---|---|---|
| Final return | 2.708382% | 30.373177% | 70.664238% |
| Annualized Sharpe | 0.150314 | 1.160635 | 2.213691 |
| Max drawdown | 5.060089% | 8.029595% | 13.509692% |
| P(negative total return): 0.034 |
1000 block-bootstrapped histories (block 20 days, seed 42) of Lean run 2026-11-16_16-25-28's 1222 daily returns, 2023-07-01 to 2026-11-02. The run itself returned 31.25%; computed 2026-11-20 11:26 UTC (rendered 2026-11-20 15:21 UTC).
Full distribution
Deeper distribution statistics across all Monte Carlo runs:
Final total return (%)
| p5 | p25 | p50 | p75 | p95 |
|---|---|---|---|---|
| 2.708382 | 18.329887 | 30.373177 | 44.287211 | 70.664238 |
Annualized Sharpe
| p5 | p25 | p50 | p75 | p95 |
|---|---|---|---|---|
| 0.150314 | 0.754331 | 1.160635 | 1.567745 | 2.213691 |
Max drawdown (%)
| p5 | p25 | p50 | p75 | p95 |
|---|---|---|---|---|
| 5.060089 | 6.500643 | 8.029595 | 10.084157 | 13.509692 |
- Best run total return: 123.2148%
- Worst run total return: -13.4437%
- Probability of a negative total return: 0.034
- Config: n_runs=1000, method=
block, block_size=20d, seed=42 (pinned - the section only changes when underlying results change)
The red line in the chart above is the element-wise AVERAGE of all run equity curves; faint blue lines are the individual bootstrap histories.
Research Record
Each search used rules written before any score. Details are in development/Problems.md.
| Search | Trials | Survivors | Nearest result | Entry |
|---|---|---|---|---|
| Candidate pool, strict bar | 38 selection trials | 0; overfitting probability 0.53 ended verification | The installed sleeve, Lean Sharpe 0.63, by fallback rule R-LEAN19 | #279 |
| Round 1: fundamentals, insiders, short volume, funding, point-in-time retrain, wide crypto | 28 | 0 | The sleeve itself scored -0.06 on unread coins | #300, #301 |
| Round 2 | 8 | 0 | Sharpe 0.57 | #310 |
| Round 3: pooled books, composites, published signs, quarterly accruals | 10 | 0 | Sharpe 0.58, second half 0.29 | #315 |
| Round 4C: crypto risk, liquidity and trend filters, a boosted model | 14 | 0; overfitting probability 0.58 | Idiosyncratic volatility, Sharpe 0.62 (halves 0.39, 0.69) | #336 |
| Round 4E: EDGAR filings, seasonality, insiders, cash profitability, ETF trend, macro timing | 9, two voided by a runner defect | 0 | Cash profitability, Sharpe 0.39 | #336 |
| Round 4F: the two voided trials again | 2 | 0 | SPY on term and credit, Sharpe 0.75 on one name, failed the placebo | #336 |
| R-LOSS1: five training losses against the control, on the retrained stack | 6 | 0 | ic_pearson, mean class IC 0.035 against the control's 0.048 |
#407 |
R-BOOK2: the model book rebuilt on the strongest score (ml_a2), for the 70/30 flip |
9 | 0; overfitting probability 0.79 | Pooled ranks of ml_a2, Sharpe 0.74, second half 0.33 |
#409 |
Disclaimer
- Only the Lean backtest counts as ground truth. Offline numbers are estimates.
- Capacity is theoretical. It is a participation cap on historical volume, never tested against real fills at size.
- A backtest is not a forecast. The record since the data freeze is the real test:
aq cycle status,forward/on theforward-ledgerbranch.
Test Suite
One test file per source module; the badge above counts them on CI's last green run of main. aq test runs them, and aq test --coverage measures every tracked module on a small PC. Conventions: tests/README.md.
CLI Reference
aq --help lists 70 commands, and aq <command> --help gives every flag. Dry run is the default wherever a command writes data or config.
aq hello
aq hello [--offline] [--start YYYY-MM-DD] [--end YYYY-MM-DD] [--json FILE] [--html FILE] [--no-cache]
Start here: one command, no key, no Docker. It downloads daily bars for the shipped book's 11 coins from Coinbase's public candles, runs the shipped rule through a cost-aware backtest, and prints a report with BTC and equal-weight benchmarks and the overfitting checks (PSR, PBO, deflated and haircut Sharpe, minimum track record).
--offline: the sample bundled in the wheel (2021-06 to 2026-10). Any failed download falls back to it too, with a notice.--json,--html: also write the report, or a self-contained page with the equity curve.--no-cache: download again instead of reading~/.cache/aether-quant/candles.- From Python:
aether_quant.hello.run(offline=True).
aq models
aq models list | install NAME [--version V] [--from ZIP] | info NAME | score NAME [--csv CLOSES] [--head rank_20d] [--out FILE]
Example models published with each GitHub release: small networks trained on the bundled sample only, installed into ~/.cache/aether-quant/models after their sha256 is checked against the release manifest, and scored with the numpy forward pass (no torch). The project's own trading models are not published. score also takes any folder holding an exported model, such as your own retrain's ml/versions/<id>/. From Python: aether_quant.models.
--json: Print JSON instead of text (aq models list)--dry-run: Print what would be removed (aq models remove)
aq init
aq init DIRECTORY [--name NAME]
A new signal project: my_signal.py (your score(closes)), its tests (shape and no look-ahead), pipeline.toml with a gate you set before the first run, and a GitHub workflow that runs both on free runners every week. Refuses a folder that is not empty.
--force: Write into a folder that is not empty, overwriting the template's files--dry-run: Print the files it would write
aq pipeline
aq pipeline run [--config pipeline.toml] [--run-id ID | --resume] [--runs-dir runs]
aq pipeline status [--run-id ID]
Data, signal, an optional small model, evaluate (IC by horizon, half-life, the spread after costs), gate and report, each stage resumable, into runs/<id>/. --resume continues the newest stopped run with the pipeline file it started with. Without a file it runs the bundled sample with 20-session momentum. Exit 3 means a signal failed its gate.
--json: Print JSON instead of text (aq pipeline status)--all: Every run, not only the latest (aq pipeline status)
aq train
aq train [--dataset-only|--init-only|--experts-only|--candidate|--gating-only|--multitask-only|--sequence-only|--topology-only|--strategy-selector-only|--rl-sizing-only]
aq train --walk-forward [--step-days N] [--mode rolling|expanding] [--include-multitask] [--include-sequence] [--metrics M] [--resume-run-id ID]
aq train [--seed N] [--ranking-objective mse|soft_spearman|listnet|ic_pearson|ls_sharpe|class_balanced|cost_aware] [--memory-profile standard|low]
aq train --resume [RUN_ID]
aq train --list-runs
Builds the dataset and trains the models into ml/.
- No flag: trains everything.
--*-only: one piece.--topology-onlyand--strategy-selector-onlyneed outcome events in Postgres and skip cleanly without them. The four newer ranking objectives read each row's class and returns, so they need--sequence-only.--candidate: the baseline and experts intoml/versions/candidate-<uuid>/, never touching the active models.--walk-forward: one diagnostic run per window, never touches the active models.--memory-profile low: trains on a 4 GB machine, slower; every trainer the run calls gets it.--resume [RUN_ID]: every mode but--init-onlyrecords a folderml/cycle/train_<id>/when it starts (its settings, its version ids, the walk-forward's id, its finished steps).--resumecontinues the newest stopped run, orRUN_ID, with those settings. Finished steps are skipped, a walk-forward continues at its next window, a window reuses its dataset and baseline when they were written completely, and the sequence trainer continues from its last epoch.--list-runslists theaq trainandaq cycle retrainruns with their finished steps.--dry-run: Print the mode and settings it would run with, and stop--json: With --list-runs: print JSON
aq test
aq test [--ruff] [--parallel] [--lean|--full] [--coverage [--changed]]
aq test [--cli] [--risk] [--portfolio] [--features] [--data-pipeline] [--webui] [--ml] [--retraining] [--notifications] [--storage] [--live] [--audit] [--evaluation] [--formal] [--lab] [--meta] [--scripts]
Runs pytest, then syncs the doc facts on a full run. The test badge is CI's.
--ruff: lint first and fail fast.--coverage: each group in turn under coverage, then the combined report; every tracked module must reach 100%.--coverage --changed: the fast gate before a commit (the pre-commit hook runs it). It runs the tests that name each module changed since HEAD, new files included, and fails on any uncovered line in those modules; a fresh fullcoverage-report/coverage.jsonthat already shows them covered passes at once.--parallel: xdist. Don't use it on a low-memory machine, because each worker imports torch.--lean,--full: add the real Lean integration test, over an hour.- Subsystem flags: run only those test files; they combine.
--keyword: Only tests whose name matches EXPR (pytest -k)--lf: Only the tests that failed last time (pytest --lf)--impacted: Only the tests that name a module changed since HEAD, without coverage--watch: With --impacted or paths: rerun on every save (Ctrl-C stops)--repeat: Run the given tests N times and report the flaky ones (exit 3)--light-hypothesis: Fewer hypothesis examples, no too_slow health check (a 4 GB machine)--list-groups: Print the test groups and their sizes--group: With new: the test group (default: from the module's folder)--top: With slowest: how many (default 15)--target: With fuzz: one fuzz target--seconds: With fuzz: how long atheris runs (default 60)--json: With where, slowest, --repeat or --list-groups: print JSON--dry-run: Print the pytest command (or, with new, the files) and stop
aq backtest
aq backtest [--image IMAGE]
Runs lean backtest . and refreshes Backtest Statistics. Needs Docker.
--image: use another engine image instead of the pinned local build.--no-publish: Leave the README, charts and evaluation reports alone (a research run)--dry-run: Print the Lean command and where the config is frozen, and stop
aq profile
aq profile [--iterations N] [--sort cumulative] [--batched] [--symbols-per-bar N] [--parallel] [--pool-workers N] [--no-gc] [--bucket-report]
aq profile [--regime] [--topology] [--topology-cached] [--learned-topology] [--liquidity] [--gating] [--analyzer] [--indicators] [--options]
Profiles the per-bar hot path without a backtest: a pstats breakdown plus p50/p95/p99 latency.
- No subsystem flag: the inference path.
--batchedprofiles the production path,--parallelbenchmarks a process pool. - Subsystem flags: those pure functions; they combine.
aq report
aq report <backtest-folder> <result-id>
Writes Lean's own HTML report to backtests/<backtest-folder>/report.html.
aq cycle
aq cycle status [--ledger-file F]
aq cycle research {rules|score|placebo|gate|pbo|freeze|hold|report} --round R [--draft D] [--only T...] [--draws N] [--force] [--trial T] [--digest H]
aq cycle daily [--ledger-file F] [--dry-run]
aq cycle decide --generation G --weights W --ledger-file F --session D
aq cycle retrain --host {local,codespace} [--procedure P] [--memory-profile {standard,low}] [--min-ram-gb GB] [--score-end D] [--smoke] [--dry-run] [--if-due] [--estimate]
aq cycle retrain --resume [RUN_ID]
aq cycle retrain --list-runs
aq cycle promote --generation G --to {shadow,ramping,active,fading,winding_down,retired,rejected} [--ledger-file F]
aq cycle schedule {show|install} [--platform {windows,linux}] [--host {local,codespace}] [--dry-run]
The research cycle: rounds, generations, decay and retraining.
status: what is due today.retrain --host local: needs 14 GB of RAM, or 3.5 GB with--memory-profile low(the same models, slower);--estimateprints each profile's peak for your dataset,--min-ram-gboverrides a profile's minimum, and--smokeproves the plumbing anywhere.retrain --resume [RUN_ID]: continues a stopped retrain (the newest unfinished one, orRUN_ID) with its own settings. Its folderml/cycle/retrain_<id>/holdsresume.json,state.jsonandwalk_forward_run_id: finished stages and walk-forward windows are skipped, a window's finished trainers are reused, and the sequence trainer continues from its last epoch. A Codespace run and its retries resume the same way on that machine.k06andk07keep each test year's scores inyears/, so they continue at their next year.--list-runslists every run with its finished stages.promote: follows R-ADMIT1 and never touches a broker setting.--json: Print the status as JSON (the default output is JSON too) (aq cycle status)
aq api
aq api
Starts the FastAPI monitoring server on port 8001.
--host: Bind address (default 127.0.0.1)--port: Port (default 8001)--no-reload: Do not restart on code changes--check: GET /health on a running server (exit 1 if it does not answer)
aq webui
aq webui
aq webui --docker [--build] [--image IMAGE] [--port 8080] [--data DIR]
Starts the dashboard dev server (port 3002, with aq api on 8001).
--docker: runs the dashboard image instead: FastAPI, the built web UI and demo data fromaq hello, no database and no engine. It is the publishedaether-quant-dashboardimage, the one-line Docker command in Getting Started.--build: builds the image from this checkout first (the Dockerfile'sdashboardstage).--data: serves a real tree (itsvisualization/andml/) read-only instead of the demo.--open: Open the browser on it
aq docker
aq docker up [--lean|--all]
aq docker build
up starts Redis and PostgreSQL by default. build rebuilds the app image.
--dry-run: Print the docker command (aq docker up)--no-cache: Build every layer again (aq docker build)--tail: Lines per service (default 100) (aq docker logs)--follow: Keep printing new lines (aq docker logs)
aq config
aq config [get <key>|set <key> <value>|keys [<prefix>]]
aq config preset --list|--show <name>|--apply <name> [--dry-run]
Reads and edits config.json by dotted key. set parses JSON values and keeps a backup; preset applies a named bundle after validating every key.
--json: Print the value as JSON (aq config get)--force: Allow the value to change type (bool to string, say) (aq config set)
aq lean
aq lean [get <key>|set <key> <value>|keys [<prefix>]]
The same tool for lean.json.
--json: Print the value as JSON (aq lean get)--dry-run: Print old -> new, write nothing (aq lean set)--force: Allow the value to change type (bool to string, say) (aq lean set)
aq docs
aq docs sync [--check]
Refreshes every marked fact in the docs from its source (docs_facts.py), and the generated blocks it owns, such as the Documentation Site table from mkdocs.yml. --check changes nothing and exits 1 on drift, which is how CI catches stale numbers.
--json: Print the stale and unknown keys as JSON (aq docs sync)--strict: Fail on any warning, as CI's docs job does (aq docs build)--port: Port (default 8000) (aq docs serve)--external: Also check http(s) links (network) (aq docs links)
aq verify
aq verify [--list] [--quick] [--record FILE] [--write-doc]
Every way the project is verified, in one table (development/verification.md): --list prints it, --quick runs what a 4 GB machine can (ruff, doc facts, the library gate, the sorry scan, secrets, the guard tests), --record also writes the results as JSON, and --write-doc regenerates the table in the doc.
--json: With --quick: print the results as JSON
aq retrain
aq retrain <plan|train|train_topology|train_gating|train_multitask|train_sequence|train_strategy_selector|validate|backtest|commit|promote|rollback|auto-rollback|status> [...]
Runs one stage of the controlled retraining pipeline by hand.
train: a candidate in isolation, never the active files.validate,backtest: candidate against active.promote,rollback --to-version-id <id>: switch the active model.auto-rollback --status: a read-only check of whether the active model would roll back.--dry-run: Print the orchestrator command
aq paper-readiness
aq paper-readiness
The check to run before switching to paper: broker config and observation-mode health.
--json: Print the checks as JSON
aq trade-lock
aq trade-lock --on|--off|--auto|--status [--account ID]
Overrides the sticky drawdown lock. --off deliberately clears it. --account writes a named account's override (state/accounts/<id>/overrides.json) instead of config.json.
--yes: Confirm loosening the lock without a prompt--dry-run: Print old -> new and change nothing--json: With --status: print JSON
aq kill-switch
aq kill-switch --arm|--disarm|--auto|--status [--account ID]
aq kill-switch --history [--limit N]
Overrides the kill switch through the same file as the trade lock, so the two can't disagree. --history reads past trips from the audit log (needs AETHER_POSTGRES_DSN).
--yes: Confirm disarming without a prompt--dry-run: Print old -> new and change nothing--json: With --status: print JSON
aq clean
aq clean ml [--keep-versions N] [--keep-backups N] [--strip-walk-forward-datasets] [--apply] [--json]
Lists what can be removed from ml/. Active models are never listed, and nothing is deleted without --apply.
--yes: With --apply: confirm without a prompt
aq evaluate
aq evaluate <flag> [--backtest-dir backtests/<run>] [--json] [--account ID]
Offline evaluation and audits. Every Lean-reading flag uses --backtest-dir, else the README pin, else the newest finished run. Each writes ml/evaluation/<name>.json. --account evaluates on one account's tightened limits, through the same apply_risk_overrides main.py runs.
A finished Lean run
| Flag | What it does |
|---|---|
--lean-report |
Runs every tool below that a run supports, then refreshes the README |
--backtest-stats |
The tables in Backtest Statistics |
--alpha-proof [--data-dir DIR] |
Alpha, Sharpe interval and deflated Sharpe per period |
--lean-monte-carlo |
Block bootstrap of the run's daily returns |
--lean-stats [--interest-rate-file F] [--trading-days N] |
Lean's Sharpe, Sortino and PSR, replicated exactly |
--audit-backtest [--period START..END] [--book-run-index N] [--max-open-sessions N] |
Order-level audit; run it after every backtest |
--audit-fills |
Fills against the data's open: cost or price gap |
--attribute-lean [--book-history-file PATH] |
P&L per asset class and component |
--classification-parity |
Logged probabilities against the offline head |
--paper-check [--reference-dir R] [--start D] [--end D] |
A paper run against a reference run's bands |
--forward-ledger [--ledger-branch B] [--ledger-file F] |
Verifies the forward record's hash chain and judges each rule |
The offline book (the retired rank book)
| Flag | What it does |
|---|---|
--rank-book [--model M] [--head H] [--split S] |
Net and gross Sharpe, turnover, cost drag |
--as-live |
The same book through the live path's decision functions |
--all |
--rank-book, --capacity, --stress, --calibrate-edge, --benchmarks, --monte-carlo, --classification |
--capacity · --stress |
Participation-capped capacity · 1x, 2x, 3x costs |
--benchmarks |
Naive and public baselines on the same split |
--monte-carlo [--mc-runs N] [--mc-block-size B] [--mc-seed S] [--mc-method block|iid] |
Bootstrap of the book's returns |
--classification |
Direction-head accuracy, F1, log-loss |
--ablation [--variants a,b,c] |
Each mechanism switched off in turn |
--factor-exposure |
Loadings on SPY and momentum, residual Sharpe |
--preset NAME |
A config preset in memory only |
--walk-forward-summary [--run-id ID] |
Print a finished walk-forward run |
Research and audits
| Flag | What it does |
|---|---|
--pbo [--trial-returns PATH] |
Probability of backtest overfitting |
--factor-spanning --signal CSV |
What a signal adds over plain factors |
--ic-by-class · --audit-gates |
Within- and between-class IC · the rolling-IC gate's vetoes |
--audit-leakage · --overfit-report |
Label and feature leakage · IC kept out of sample |
--audit-features [--permutation] · --audit-heads |
Feature quality · each head against its gate |
--audit-data [--data-root PATH] |
Every universe zip, plus a hash manifest |
--calibrate-sim-lean --calibration-file PATH |
Simulator-to-Lean gap, by mechanism |
Calibration and replay (print a value, write nothing to config)
| Flag | What it does |
|---|---|
--calibrate-edge |
edge_bps_per_rank_unit for the net-edge gate |
--calibrate-book-spread [--book-spread-percentile P] |
The minimum rank spread |
--calibrate-confidence-threshold [--confidence-threshold-percentile P] |
The minimum confidence |
--calibrate-rolling-ic-floor [--rolling-ic-floor-percentile P] |
The rolling-IC floor |
--calibrate-volatility-threshold [--volatility-threshold-percentile P] |
Per-class elevated volatility |
--replay-kill-switch · --replay-rolling-ic-gate |
Day-by-day offline replays |
--simulate-limit-fills [--limit-fill-offset-sweep 0.5,1.0,2.0] |
How often limit orders would fill |
--reconcile-book-history [--book-history-path P] [--replay-hysteresis] [--hysteresis-survives-veto] [--reconcile-run-index N | --reconcile-all-runs] |
Lean's book against an offline re-derivation |
--reconcile-features --symbol TICKER |
One symbol's live features against the dataset |
Shared by the flags above: --dataset PATH, --split S, --json.
--list: List the tool groups and their flags, and stop
aq research
aq research --signal CSV [--dataset PATH] [--horizons 5,20] [--out PATH]
Scores any date,ticker,score CSV: rank IC, t-stats, bootstrap interval, era stability and decay. The same report judges this project's models.
--json: Print the report as JSON
aq prove
aq prove [--module NAME] [--regen-cases] [--check-sorry]
Builds the Lean 4 proofs in formal/ (needs elan and the Mathlib cache).
--regen-cases: regenerate the differential cases; run it after any spec edit.--check-sorry: scan for unfinished proofs, no Lean install needed.--list: List the specs and stop--json: With --list or --check-sorry: print JSON
aq fetch
aq fetch <crypto|stock> --ticker T --start D --end D [--apply]
aq fetch futures --ticker T --start D --end D --expiry D [--contract-month YYYYMM] [--family-ticker ROOT] [--apply]
aq fetch options --ticker T --start D --end D --expiry D --strike K --right <call|put> [--family-ticker ROOT] [--apply]
Backfills one new ticker and, with --apply, registers it in config.json. Crypto and stocks come from Yahoo Finance, futures and options from Interactive Brokers.
--json: Print the fetch report as JSON
aq backfill
aq backfill <dividends|fred|yfinance> [--apply] [--tickers T ...] [--series S ...] [--quotes]
Refreshes one data source across the whole universe: dividend schedules, FRED series, or thin Lean zips. --quotes derives a missing crypto quote zip. Never touches config.json.
aq ib
aq ib status
Interactive Brokers readiness: disabled, missing credentials, or reachable. Credentials live in lean.json (aq lean set ib-account <ACCOUNT>).
--json: Print JSON instead of text (aq ib status)
aq assets
aq assets status
Multi-asset readiness at a glance: IB, futures and options flags, margin specs, FRED coverage.
--json: Print JSON instead of text (aq assets status)
aq render-lean-config
aq render-lean-config [--base lean.json] [--out lean.live.json] [--env-file .env.live] [--account ID]
Renders the gitignored lean.live.json for Lean's --lean-config. Values come from a *_FILE file, a Docker secret, the AETHER_* variables or the keyring. Coinbase's key pair renders too. Prints field names only, never secrets. --account reads AETHER_<ID>_* and writes lean.live.<id>.json.
--dry-run: Print the field names that would be filled (never values), write nothing--check: Exit 1 when the rendered file is missing or differs from what the secrets give
aq secrets
aq secrets status [--json FILE] [--account ID]
aq secrets set NAME [--account ID]
aq secrets delete NAME [--account ID] [--yes]
Where each credential comes from: a *_FILE file, a Docker secret, an environment variable or the OS keyring. status shows names and sources, never a value. set stores one in the keyring, prompted and never echoed. See docs/live/secrets.md.
aq accounts
aq accounts list|validate
aq accounts status [--json FILE]
The account registry (accounts.json; template accounts.example.json). Each account is one Lean deployment whose overrides may only tighten the config. status shows each account's secrets (resolved or not) and last state.
aq live
aq live up|down [--account ID] [--dry-run]
Starts or stops one account's Lean live deployment from the compose lean-live service: its own container, AQ_ACCOUNT, its Lean environment and its rendered config. --dry-run prints the commands.
--yes: Confirm a live (real-money) start without a prompt (aq live up)--json: Print JSON instead of text (aq live status)
aq users
aq users add NAME [--role viewer|operator|admin] [--accounts a,b]
aq users list
aq users rotate NAME [--yes]
aq users remove NAME [--yes]
Dashboard and API users. A token is printed once and stored as a salted hash. rotate issues a new token and revokes the old one; rotate, remove and aq secrets delete ask first on a terminal and need --yes without one. With any user, every /api route but /api/health needs a bearer token. An operator may lock an account and an admin may unlock it.
--json: Print JSON instead of text (aq users list)
aq live-readiness
aq live-readiness [--account ID] [--paper-check FILE] [--markdown] [--json FILE] [--no-write] [--docs]
The paper-to-live scorecard: every condition for live capital, measured, with unknown counting as fail. It writes visualization/grafana/live_readiness.json for the dashboard and exits 1 unless ready. --docs refreshes the table in docs/live/paper-to-live.md.
aq secrets-check
aq secrets-check
Exits non-zero if a secret is about to be committed. Backs .githooks/pre-commit.
--json: Print the findings as JSON (field names only, never values)
aq audit-log
aq audit-log [--event-type order_placement|credential_load|live_mode_transition] [--since YYYY-MM-DD] [--limit N] [--verify]
Queries the tamper-evident audit log (needs AETHER_POSTGRES_DSN). --verify walks the whole hash chain and reports the first broken link.
--until: Only entries on or before this date, ISO 8601 YYYY-MM-DD--export: Write the matching entries as JSON lines--json: Print the entries as JSON
Developer and maintainer commands
aq status
aq status [--json] [--offline] [--git]
The project at a glance: the objective from todo.md, the branch and how far it is from origin, changed files, the last commit, whether the pre-commit hook is installed and its coverage step on, the age of the last coverage run, the CI of HEAD, open Dependabot PRs and any Codespace that is running (and billing). Without gh or a network those lines say unknown. --git prints plain git status.
--json: Print JSON instead of text--offline: Skip the GitHub queries (CI, PRs, Codespaces)--git: Print plain git status instead
aq doctor
aq doctor [--json]
Checks the environment and says how to fix what fails: Python, that the editable install points at this checkout and every top-level module imports (the stale-install trap of rule 5), aq on PATH, the hook, git, gh and its login, uv, Docker, the Lean CLI, Node, Redis and Postgres (warnings only: everything degrades without them), RAM (under 8 GB: use the low memory profile), disk, the model pins and config.json. Exit 1 on a failure.
--json: Print JSON instead of text
aq version
aq version [--json]
The installed version, Python and platform, and in a checkout the commit and whether the tree has changes. aq --version prints the first line.
--json: Print JSON instead of text
aq help
aq help [topic ...]
The same as aq COMMAND --help, for a command path (aq help lab train); a mistyped name gets the closest matches.
aq completion
aq completion {bash,zsh,powershell}
Prints a completion script for bash, zsh or PowerShell, built from the parser, so every command, subcommand and flag completes with Tab.
aq hooks
aq hooks install [--dry-run]
aq hooks status [--json]
aq hooks coverage [--once] [--dry-run] [--json] {off,on,status}
The pre-commit gate (.githooks/pre-commit): secrets check, library gate, formal inventory, Scorecard pins, ruff on the staged files, and coverage of the changed modules. install writes the wrapper into .git/hooks; coverage off skips the coverage step until coverage on (off --once: the next commit only). CI's python-tests still enforces 100%.
--dry-run: Print what would happen, change nothing--json: Print JSON instead of text--once: With off: skip only the next commit's coverage step
aq commit
aq commit -m MESSAGE [-a] [--skip-coverage] [--dry-run] [git_args ...]
git commit through the gate. --skip-coverage skips only the coverage step, for this one commit (it sets AQ_SKIP_COVERAGE_HOOK=1 for git's child process); the secrets, library, inventory, pins and ruff gates still run. Arguments after -- go to git.
--message: The commit message--all: Stage every tracked change first (git commit -a)--skip-coverage: Skip the coverage step for this commit only (sets AQ_SKIP_COVERAGE_HOOK=1); the other gates still run--dry-run: Print what would happen, change nothing
aq check
aq check [--no-coverage]
Runs the pre-commit hook itself, committing nothing: what the next commit would be checked by. --no-coverage skips the slowest step.
--no-coverage: Skip the coverage step
aq ci
aq ci status [--sha SHA] [--branch BRANCH] [--watch] [--interval INTERVAL] [--json]
aq ci logs [--job JOB] [--lines LINES] run_id
aq ci local [--workflow WORKFLOW] [--list] [--matrix KEY=VALUE] [--dry-run] [job]
GitHub Actions from the terminal (needs gh). status is every workflow run of a commit: exit 0 green, 1 red, 3 still running, and --watch polls until nothing runs. logs prints only the lines that explain each failed job. local runs a ci.yml job's run: steps here, in order, skipping its uses: steps.
--sha: The commit (default HEAD)--branch: The tip of this remote branch instead--watch: Poll until nothing is running--interval: Seconds between polls with --watch (default 30)--json: Print JSON instead of text--job: Only jobs whose name contains this (default: every failed job)--lines: At most this many lines per job (default 80)--workflow: The workflow file under .github/workflows (default ci.yml)--list: List the jobs and what each needs--matrix: A matrix value (default: each key's first)--dry-run: Print what would happen, change nothing
aq deps
aq deps prs [--json]
aq deps apply [--dry-run] numbers [numbers ...]
aq deps lock [--profile PROFILE] [--upgrade-package NAME]
aq deps pins
aq deps audit
aq deps why [--profile PROFILE] [--json] package
Dependencies. prs lists Dependabot's PRs; apply applies one the way the checks accept it (pip: only the .in and requirement files, then the locks rebuilt with uv; npm: npm install; actions: the diff, with a reminder to move every CodeQL sub-action together) and never commits. lock, pins and audit are the lock rebuild, the Scorecard pin check and pip-audit; why names what pulls a package into each lock.
--json: Print JSON instead of text--dry-run: Print what would happen, change nothing--profile: One profile (repeatable; default all)--upgrade-package: Let this pin move to its newest allowed version (repeatable)
aq coverage
aq coverage report [--json]
aq coverage misses [--include INCLUDE] [--by-function] [--context N]
aq coverage clean [--apply] [--yes] [--json]
The last coverage run (coverage-report/coverage.json): the total, the files below 100% and those changed since (exit 3 below 100%); misses lists the uncovered lines by file or function; clean deletes the reports.
--json: Print JSON instead of text--include: Glob of files (repeatable)--by-function: Group misses by function--context: Print each miss with N lines around it--apply: Delete (default: list only)--yes: Confirm without a prompt (needed without a terminal)
aq codespace
aq codespace list [--json]
aq codespace stop [--all] [--dry-run] [name]
aq codespace delete [--dry-run] [--yes] name
GitHub Codespaces (rule 13): list marks a running one, which bills; stop stops one or every running one; delete removes one and its storage after asking.
--json: Print JSON instead of text--all: Every running Codespace--dry-run: Print what would happen, change nothing--yes: Confirm without a prompt (needed without a terminal)
aq vault
aq vault record --label LABEL [--metric METRIC] [--dry-run] paths [paths ...]
aq vault graph --summary SUMMARY --files FILES [FILES ...] [--agent AGENT] [--dry-run]
record commits files with a label and metrics into Aether-Vault (scripts/vault_record.py), whose commit time proves what existed first; graph regenerates the Obsidian code graph and appends the handoff entry, as the wrap-up asks.
--label: The record's tag--metric: key=value (repeatable)--dry-run: Print what would happen, change nothing--summary: The handoff summary--files: Files the phase changed--agent: The handoff's agent name (default ox-alpha)
aq problems
aq problems next [--json]
aq problems show [--json] number
aq problems open [--json]
development/Problems.md: next prints the next free number with the entry template, show one entry, open the entries still partial.
--json: Print JSON instead of text
aq lint
aq lint [--fix] [--types]
ruff over the project (--fix applies its safe fixes); --types also checks that the library's public API is fully annotated.
--fix: Apply ruff's safe fixes--types: Also check the library's type completeness (scripts/type_completeness.py)
aq scaffold
aq scaffold [--group GROUP] [--dry-run] path
A new module with its registered test file: the module, tests/test_<name>.py (a failing placeholder, so it cannot pass unnoticed), its line in _SUBSYSTEM_TEST_FILES, py-modules for a top-level file, and the reminders for the aether_quant export (rule 14) and the folder's readme.
--group: The test group (default: from the folder)--dry-run: Print what would happen, change nothing
aq phase
aq phase check --version VERSION [--json]
The end-of-phase list of AGENTS.md, checked where a machine can: the Changelog and docs entries, todo.md, doc facts, pins, the library and inventory gates, README freshness, coverage at 100% and newer than the code, a clean tree, CI green, no Codespace running, a vault handoff today. The rest is printed as reminders. Exit 3 on a failure.
--version: The phase as its Changelog heading names it--json: Print JSON instead of text
aq bug-report
aq bug-report [--out OUT]
A Markdown report for a GitHub issue: versions, the platform and the doctor's checks, with the home folder and user name masked; no config values, no environment variables.
--out: Write it here instead of printing
aq examples
aq examples list [--json]
aq examples run name
The runnable scripts in examples/: list them with what each shows, or run one.
--json: Print JSON instead of text
aq notebooks
aq notebooks list [--json]
aq notebooks run [--out OUT] name
The tutorial notebooks in docs/tutorials/: list them, or execute one (needs the notebooks extra).
--json: Print JSON instead of text--out: Write the executed notebook here
aq bench
aq bench run [--iterations ITERATIONS] [--json]
aq bench baseline [--iterations ITERATIONS] [--json]
aq bench compare [--iterations ITERATIONS] [--json] [--threshold THRESHOLD]
The hot path's latency: the numpy forward pass per symbol-bar (scripts/profile_inference.py's workload), p50/p95/p99. baseline saves the result for this machine (~/.aq/bench/<host>.json), compare fails (exit 3) when p95 is more than the threshold slower. Without ml/ it times an installed example model.
--iterations: Symbol-bars to time (default 2000)--json: Print JSON instead of text--threshold: Allowed p95 slowdown as a fraction (default 0.2)
Model lab, data and research commands
aq data
aq data fetch --coins COINS [--start START] [--end END] --out OUT
aq data sample --out OUT
aq data info [--json] file
aq data explore [--out OUT] file
aq data manifest [--root ROOT] [--out OUT]
aq data diff [--root ROOT] [--json] manifest_a [manifest_b]
Price data for research. fetch downloads daily closes from Coinbase's public candles (no key); sample writes the bundled sample; info shows each ticker's span, missing share and longest gap; explore writes a one-file HTML page (growth, return moments, correlations, rolling volatility, gaps). manifest and diff compare data folders file by file (rule 12: the PC and the Codespace must match).
--coins: Comma list, e.g. BTC,ETH--start: First date (default 2021-01-01)--end: Last date (default: the last closed bar)--out: closes.csv or closes.parquet--json: Print JSON instead of text--root: The folder (default data)
aq signal
aq signal check [--min-names MIN_NAMES] [--json] file
aq signal eval [--prices PRICES] [--horizons HORIZONS] [--min-names MIN_NAMES] [--html FILE] [--json] file
aq signal compare [--prices PRICES] [--horizons HORIZONS] [--min-names MIN_NAMES] [--json] files [files ...]
aq signal neutralize [--prices PRICES] [--horizons HORIZONS] [--min-names MIN_NAMES] [--market MARKET] [--window WINDOW] [--out OUT] file
aq signal backtest [--prices PRICES] [--horizons HORIZONS] [--min-names MIN_NAMES] [--top-n TOP_N] [--cost COST] [--rebalance REBALANCE] [--ledger LEDGER] [--json] file
Any signal file (date, ticker, score), on any closes. check catches what would silently skew a result (duplicates, NaN or inf, unparseable dates); eval gives IC by horizon with HAC t and a bootstrap interval, decay, half-life and quintile returns; compare shows what each signal adds after the others; neutralize removes each date's cross-sectional beta (rolling, no look-ahead); backtest runs a cost-aware book and judges it with PSR, the deflated Sharpe at the ledger's N and the minimum track record.
--min-names: Warn on dates with fewer scored names (default 2)--json: Print JSON instead of text--prices: Closes CSV (default: the bundled sample)--horizons: Comma list of horizons (default 5,20)--html: Also write an HTML page--market: A ticker as the market (default: the equal-weight mean)--window: Beta window in rows (default 120)--out: Output CSV (default: FILE_neutral.csv)--top-n: Hold the top N names equally (default: rank weights over all)--cost: coinbase, ib_equity or bps:N (default coinbase)--rebalance: Rebalance every N rows (default 5)--ledger: Count this backtest as a trial in this ledger (JSONL)
aq features
aq features list [--all] [--json]
aq features build [--prices PRICES] [--set SET] [--out OUT] [--dry-run]
aq features inspect [--prices PRICES] [--horizons HORIZONS] [--html FILE] [--json] name
The features the lab builds from closes (features/feature_registry.py): each reads closes up to its own date only. build writes a long table; inspect shows one feature's IC, decay, IC by year and overlap with the core set.
--all: Also name the production-only groups--json: Print JSON instead of text--prices: Closes CSV (default: the bundled sample)--set: A set (example, momentum, core, all) or a comma list (default core)--out: Output CSV (default features.csv)--dry-run: Print what would happen, change nothing--horizons: Comma list (default 5,20)--html: Also write an HTML page
aq overfit
aq overfit pbo [--blocks BLOCKS] [--json] trials
aq overfit psr --returns RETURNS [--benchmark-sharpe BENCHMARK_SHARPE] [--json]
aq overfit dsr --returns RETURNS [--trials TRIALS] [--trial-variance TRIAL_VARIANCE] [--from-ledger] [--periods PERIODS] [--json]
aq overfit hurdle --trials TRIALS --trial-variance TRIAL_VARIANCE [--json]
aq overfit haircut --sharpe SHARPE --obs OBS --trials TRIALS [--method {bonferroni,holm,bhy}] [--json]
aq overfit mintrl --returns RETURNS [--target-sharpe TARGET_SHARPE] [--confidence CONFIDENCE] [--periods PERIODS] [--json]
The overfitting statistics as calculators: PBO over a trials table, PSR, the deflated Sharpe at N trials, the Sharpe the best of N unskilled trials is expected to show, the haircut Sharpe and the minimum track record.
--blocks: CSCV blocks (default 16)--json: Print JSON instead of text--returns: CSV with a return column--benchmark-sharpe: Per-period benchmark Sharpe (default 0)--trials: N--trial-variance: Variance of the trials' annual Sharpes--from-ledger: Take N and the variance from the project's trial ledgers--periods: Periods a year (default 252; 365 for crypto)--sharpe: Annual Sharpe--obs: Observations--method: Adjustment (default bhy)--target-sharpe: Annual target (default 0)--confidence: Default 0.95
aq lab
aq lab init directory
aq lab new [--lab LAB] --template {mlp,multitask,tcn,linear} [--force] name
aq lab train [--lab LAB] [--seeds SEEDS] [--folds {split,annual}] [--set KEY=VALUE] [--resume [RUN_ID]] [--engine {lab,production}] [--production-kind {multitask,tcn}] [--objective OBJECTIVE] [--memory-profile {standard,low}] [--project-ledger] [--dry-run] [--json] model
aq lab runs [--lab LAB] [--json]
aq lab show [--lab LAB] [--json] run
aq lab eval [--lab LAB] [--book] [--cost-bps COST_BPS] [--html FILE] [--holdout] [--i-understand-this-spends-it] [--project-ledger] [--json] run
aq lab compare [--lab LAB] [--baseline BASELINE] [--html FILE] [--json] runs [runs ...]
aq lab card [--lab LAB] [--out OUT] run
aq lab sweep [--lab LAB] --grid GRID [--random K] [--seed SEED] [--max-trials MAX_TRIALS] [--project-ledger] [--json] model
aq lab explain [--lab LAB] [--json] run
aq lab ablate [--lab LAB] [--project-ledger] [--json] run
aq lab seeds [--lab LAB] [--seeds SEEDS] [--project-ledger] [--json] run
aq lab export [--lab LAB] --name NAME [--out OUT] [--json] run
The model lab: build and train networks (the production AetherNet, multitask and causal-TCN classes) or a numpy ridge model on any dataset, and judge them by the project's own statistics. Every training run counts in the lab's trial ledger (trials.jsonl), every report puts a Sharpe next to the deflated-Sharpe hurdle at that N, and a sealed holdout is never read unless eval --holdout --i-understand-this-spends-it records its one read first. export packages a run for aq models (scored with numpy, no torch). Start with aq lab init mylab.
--lab: The lab folder (default: the nearest lab.toml above here)--template: mlp, multitask, tcn (production networks) or linear (numpy)--force: Overwrite an existing model folder--seeds: Comma list (default: the config's)--folds: split: train/validation/backtest; annual: an expanding walk-forward by year--set: Override the config for this run, e.g. train.lr=3e-4 (repeatable)--resume: Continue a stopped run--engine: production: the real trainers on the project dataset (source checkout)--production-kind: With --engine production: which trainer--objective: With --engine production: the ranking objective--memory-profile: With --engine production: the trainer's profile--project-ledger: Also count the trials in the project's ledger and seal the project's holdout window--dry-run: Print what would happen, change nothing--json: Print JSON instead of text--book: Also a quintile long-short book after costs, with PSR and DSR at N--cost-bps: Per-side cost for --book (default 10)--html: Also write an HTML page--holdout: Spend the sealed holdout on this run (once, recorded first)--i-understand-this-spends-it: Required with --holdout--baseline: Add a baseline: momentum_20, momentum_60, reversal_5 or a feature column--out: Default: the run's MODEL_CARD.md--grid: Space-separated key=v1,v2 items--random: Only K points drawn at random--seed: The draw's seed (default 7)--max-trials: Refuse a sweep that would push N past this--name: The model's name for aq models
aq dataset
aq dataset build [--prices PRICES] [--features FEATURES] [--targets TARGETS] [--splits SPLITS] [--out OUT] [--dry-run] [--json]
aq dataset info [--json] file
aq dataset leakage [--target TARGET] [--json] file
Lab datasets in the production dataset's columns: build makes features, forward rank targets and split labels from closes, dropping train rows whose label reaches into the next split; info describes one; leakage runs the leakage audit (exit 3 when something is flagged).
--prices: Closes CSV (default: the bundled sample)--features: A set or comma list (default core; aq features list)--targets: Comma list of horizons (default 5,20)--splits: NAME:START..END,... (default 60/20/20 by date); a holdout split is sealed--out: Output CSV (default dataset.csv)--dry-run: Print what would happen, change nothing--json: Print JSON instead of text--target: Default target_rank_20d
aq stack
aq stack inspect [--ml-dir ML_DIR] [--json]
aq stack decay [--ml-dir ML_DIR] [--head HEAD] [--split {train,validation,backtest}] [--max-dates MAX_DATES] [--by {class,year,split}] [--window WINDOW] [--html FILE] [--json]
aq stack attrib [--ml-dir ML_DIR] [--head HEAD] [--split {train,validation,backtest}] [--max-dates MAX_DATES] [--max-features MAX_FEATURES] [--json]
aq stack lab-baseline [--ml-dir ML_DIR] [--head HEAD] [--split {train,validation,backtest}] [--max-dates MAX_DATES] [--lab LAB]
The installed model stack, for research on the shipped models: inspect lists the models, heads with their validation and backtest IC, inputs and pins; decay shows the live blend's IC rolling and by class, year or split, with its half-life, on non-holdout rows only; attrib the permutation importance of its inputs per class; lab-baseline registers its scores as a lab run, so aq lab compare can put a lab model against production on the same rows. Needs the private ml/.
--ml-dir: Another model folder, e.g. ml/versions/--json: Print JSON instead of text--head: Target head (default rank_20d)--split: One split (default validation and backtest)--max-dates: Only the last N dates (a small machine)--by: Group by (default class)--window: Rolling window in dates (default 60)--html: Also write an HTML page--max-features: At most this many inputs (default 30)--lab: The lab folder
aq trials
aq trials count [--evaluation-dir EVALUATION_DIR] [--json]
aq trials list [--phase PHASE] [--limit LIMIT] [--evaluation-dir EVALUATION_DIR] [--json]
aq trials dsr [--window WINDOW] [--returns RETURNS] [--periods PERIODS] [--evaluation-dir EVALUATION_DIR] [--json]
aq trials add --trial-id TRIAL_ID --role {candidate,verification,placebo,plumbing} --sharpe SHARPE --obs OBS [--track TRACK] [--window WINDOW] [--note NOTE] [--ledger LEDGER] [--dry-run]
The project's trial ledgers: count is N (and what it is made of), dsr the Sharpe a new candidate must beat at N (and a return series' deflated Sharpe), list the trials, add records a manual one.
--evaluation-dir: Default ml/evaluation--json: Print JSON instead of text--phase: Only ledgers whose path contains this--limit: At most this many (default 50)--window: Only this window's trials for the variance--returns: CSV with a return column--periods: Periods a year (default 252)--trial-id:--role:--sharpe: Annualised Sharpe--obs: Observations--track: Default manual--note:--ledger: Default ml/evaluation/v671/trial_ledger.jsonl
aq runs
aq runs list [--limit LIMIT] [--json]
aq runs show [--json] run
aq runs diff [--json] run_a run_b
The Lean runs in backtests/: list with Sharpe, net profit, drawdown and orders, marking the README pin and the runs without a frozen config; show every statistic and the engine log's verdict (rule 7); diff the statistics that differ and the two frozen configs' differences.
--limit: Default 15--json: Print JSON instead of text
aq api-diff
aq api-diff [--json] [ref]
The library's public names added and removed since a tag (default: the latest), and the version bump that implies. Exit 3 when a name was removed.
--json: Print JSON instead of text
aq release
aq release check [--json] version
The checks before a tag: a clean tree on main, CI green, the changelog, a version big enough for the API change, a wheel that builds and passes the wheel smoke. It never tags; it prints the command.
--json: Print JSON instead of text
aq health
aq health [--history] [--json]
A maintainer dashboard: lines of code per subsystem, test files, coverage per subsystem, the gates' ceilings, Problems by status and the ruff ignores. --history appends today's row to development/health_history.jsonl and shows the change.
--history: Append today's row to development/health_history.jsonl and show the change--json: Print JSON instead of text
Release Process
A release happens only on a pushed version tag:
git tag vX.Y.Z
git push origin vX.Y.Z
The tag sets the version through setuptools-scm, then .github/workflows/release.yml:
- runs the test suite beside the release, for visibility only (a failure does not block it);
- publishes to PyPI through Trusted Publishing, with no stored token;
- pushes the engine and dashboard images to
ghcr.io/leon1706-lol/aether-quantandaether-quant-dashboard, each with an SBOM and provenance; - creates the GitHub release with the wheel, sdist and SBOM, a Sigstore signature per file and SLSA provenance, then refreshes the OpenSSF Scorecard.
A release published without those assets gets them from a dispatch of the same workflow with backfill_tag (RUNBOOK "Releases").
Roadmap
History lives in development/Changelog.md; current objectives are in todo.md.
- Interactive Brokers and a crypto venue: verify end to end, then run the paper period (
aq evaluate --paper-check). - Forward records: judge the sleeve and any shadow generation at 60 and 252 sessions (
aq cycle status). - A candidate that passes selection: the unread holdouts back one frozen candidate, once.
- Later, HFT: tick data, short-horizon models and low-latency execution would be a second system alongside this one, not a change to it. See
development/architecture.md.
Built by Leon Schwarzkopf, leonschwarzkopf08@gmail.com
Metadata
Release files for aether-quant 6.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aether_quant-6.7.1.tar.gz | 7.7 MB | With provenance | Details for aether_quant-6.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aether_quant-6.7.1-py3-none-any.whl | Python 3 | none | any | Details for aether_quant-6.7.1-py3-none-any.whl |
Total release size: 9.5 MB
Release files / aether_quant-6.7.1.tar.gz
| Download URL | aether_quant-6.7.1.tar.gz |
|---|---|
| Size | 7.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
233d25ccfb22d00aac05a550aa4a8157438922e1edfb2d7c9f5945d911c0e271
|
|
BLAKE2b-256 checksum How to use checksums |
a952df7b23f94955b59ef2aa6cdd960a367f1aefa2f5d5cffe136654ad760c34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / aether_quant-6.7.1-py3-none-any.whl
| Download URL | aether_quant-6.7.1-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
396323cfe2d84d35a28d43191e79bdc76cca971428752c997993aacb7a5576a0
|
|
BLAKE2b-256 checksum How to use checksums |
2e53c483f5657053a829f2b3ba0fe6579db76b44d31ce61c50915706cc9881b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for aether-quant 6.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for aether_quant-6.7.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.