aether-lang 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. aether_lang-0.3.0/LICENSE +111 -0
  2. aether_lang-0.3.0/PKG-INFO +333 -0
  3. aether_lang-0.3.0/README.md +299 -0
  4. aether_lang-0.3.0/pyproject.toml +80 -0
  5. aether_lang-0.3.0/setup.cfg +4 -0
  6. aether_lang-0.3.0/tests/test_action.py +146 -0
  7. aether_lang-0.3.0/tests/test_alsp_corpus.py +160 -0
  8. aether_lang-0.3.0/tests/test_cause_b.py +88 -0
  9. aether_lang-0.3.0/tests/test_corpus.py +101 -0
  10. aether_lang-0.3.0/tests/test_deterministic.py +120 -0
  11. aether_lang-0.3.0/tests/test_diagnostic_catalog.py +215 -0
  12. aether_lang-0.3.0/tests/test_effect_scope.py +2293 -0
  13. aether_lang-0.3.0/tests/test_exhaustiveness.py +313 -0
  14. aether_lang-0.3.0/tests/test_false_positive_corpus.py +67 -0
  15. aether_lang-0.3.0/tests/test_fix_loop_cli.py +153 -0
  16. aether_lang-0.3.0/tests/test_fix_loop_demo.py +93 -0
  17. aether_lang-0.3.0/tests/test_fmt.py +120 -0
  18. aether_lang-0.3.0/tests/test_llm_fix_demo.py +88 -0
  19. aether_lang-0.3.0/tests/test_lsp.py +312 -0
  20. aether_lang-0.3.0/tests/test_mining.py +109 -0
  21. aether_lang-0.3.0/tests/test_module_validation.py +199 -0
  22. aether_lang-0.3.0/tests/test_multi_file.py +227 -0
  23. aether_lang-0.3.0/tests/test_pack.py +92 -0
  24. aether_lang-0.3.0/tests/test_packaging.py +254 -0
  25. aether_lang-0.3.0/tests/test_parser_recovery.py +175 -0
  26. aether_lang-0.3.0/tests/test_phase1.py +100 -0
  27. aether_lang-0.3.0/tests/test_playground.py +192 -0
  28. aether_lang-0.3.0/tests/test_pretty_roundtrip.py +104 -0
  29. aether_lang-0.3.0/tests/test_py_frontend_sinks.py +692 -0
  30. aether_lang-0.3.0/tests/test_py_soundness.py +127 -0
  31. aether_lang-0.3.0/tests/test_ratchet.py +234 -0
  32. aether_lang-0.3.0/tests/test_regressions.py +383 -0
  33. aether_lang-0.3.0/tests/test_release_emit.py +81 -0
  34. aether_lang-0.3.0/tests/test_risk.py +84 -0
  35. aether_lang-0.3.0/tests/test_runtime_enforcement.py +224 -0
  36. aether_lang-0.3.0/tests/test_scan.py +253 -0
  37. aether_lang-0.3.0/tests/test_sdk.py +314 -0
  38. aether_lang-0.3.0/tests/test_smt.py +325 -0
  39. aether_lang-0.3.0/tests/test_static_effects.py +635 -0
  40. aether_lang-0.3.0/tests/test_stdlib_bytes.py +159 -0
  41. aether_lang-0.3.0/tests/test_stdlib_d1.py +219 -0
  42. aether_lang-0.3.0/transpiler/aether/__init__.py +8 -0
  43. aether_lang-0.3.0/transpiler/aether/cli.py +824 -0
  44. aether_lang-0.3.0/transpiler/aether/diagnostics.py +66 -0
  45. aether_lang-0.3.0/transpiler/aether/emitter.py +610 -0
  46. aether_lang-0.3.0/transpiler/aether/lexer.py +228 -0
  47. aether_lang-0.3.0/transpiler/aether/lsp.py +547 -0
  48. aether_lang-0.3.0/transpiler/aether/parser.py +758 -0
  49. aether_lang-0.3.0/transpiler/aether/passes/__init__.py +81 -0
  50. aether_lang-0.3.0/transpiler/aether/passes/ast_walk.py +56 -0
  51. aether_lang-0.3.0/transpiler/aether/passes/capability.py +220 -0
  52. aether_lang-0.3.0/transpiler/aether/passes/detector_specs.py +737 -0
  53. aether_lang-0.3.0/transpiler/aether/passes/effects.py +1726 -0
  54. aether_lang-0.3.0/transpiler/aether/passes/imports.py +180 -0
  55. aether_lang-0.3.0/transpiler/aether/passes/modules.py +115 -0
  56. aether_lang-0.3.0/transpiler/aether/passes/patch_target.py +384 -0
  57. aether_lang-0.3.0/transpiler/aether/passes/smt.py +307 -0
  58. aether_lang-0.3.0/transpiler/aether/pretty.py +375 -0
  59. aether_lang-0.3.0/transpiler/aether/py.typed +0 -0
  60. aether_lang-0.3.0/transpiler/aether/py_frontend.py +977 -0
  61. aether_lang-0.3.0/transpiler/aether/risk.py +137 -0
  62. aether_lang-0.3.0/transpiler/aether/runner.py +182 -0
  63. aether_lang-0.3.0/transpiler/aether/runtime.py +821 -0
  64. aether_lang-0.3.0/transpiler/aether/sarif.py +86 -0
  65. aether_lang-0.3.0/transpiler/aether/sdk.py +296 -0
  66. aether_lang-0.3.0/transpiler/aether_lang.egg-info/PKG-INFO +333 -0
  67. aether_lang-0.3.0/transpiler/aether_lang.egg-info/SOURCES.txt +69 -0
  68. aether_lang-0.3.0/transpiler/aether_lang.egg-info/dependency_links.txt +1 -0
  69. aether_lang-0.3.0/transpiler/aether_lang.egg-info/entry_points.txt +2 -0
  70. aether_lang-0.3.0/transpiler/aether_lang.egg-info/requires.txt +10 -0
  71. aether_lang-0.3.0/transpiler/aether_lang.egg-info/top_level.txt +1 -0
@@ -0,0 +1,111 @@
1
+ Business Source License 1.1
2
+
3
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
4
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
5
+
6
+ -----------------------------------------------------------------------------
7
+
8
+ Parameters
9
+
10
+ Licensor: <FULL LEGAL NAME> (individual; rights to be assigned
11
+ to the Aether entity upon its registration)
12
+
13
+ Licensed Work: Aether
14
+ The Licensed Work is (c) 2026 <FULL LEGAL NAME>.
15
+
16
+ Additional Use Grant: You may make use of the Licensed Work, provided that
17
+ you do not offer to third parties, on a hosted,
18
+ embedded, or paid basis, a product or service whose
19
+ value derives substantially from the Licensed Work's
20
+ compiler, diagnostic suite, or corpus scanner.
21
+
22
+ For clarity, the following ARE permitted without a
23
+ separate commercial license:
24
+
25
+ (a) any internal use within your own organization,
26
+ including use in production and in CI pipelines,
27
+ to compile, check, or scan your own source code;
28
+
29
+ (b) use for research, teaching, evaluation, and
30
+ personal projects;
31
+
32
+ (c) distribution of software you wrote in the Aether
33
+ language, and of the Python output produced by
34
+ the transpiler. Output of the Licensed Work is
35
+ yours; this license does not attach to it.
36
+
37
+ Change Date: 2030-07-19
38
+
39
+ Change License: Apache License, Version 2.0
40
+
41
+ For information about alternative licensing arrangements for the Licensed
42
+ Work, please contact the Licensor.
43
+
44
+ -----------------------------------------------------------------------------
45
+
46
+ Terms
47
+
48
+ The Licensor hereby grants you the right to copy, modify, create derivative
49
+ works, redistribute, and make non-production use of the Licensed Work. The
50
+ Licensor may make an Additional Use Grant, above, permitting limited
51
+ production use.
52
+
53
+ Effective on the Change Date, or the fourth anniversary of the first publicly
54
+ available distribution of a specific version of the Licensed Work under this
55
+ License, whichever comes first, the Licensor hereby grants you rights under
56
+ the terms of the Change License, and the rights granted in the paragraph
57
+ above terminate.
58
+
59
+ If your use of the Licensed Work does not comply with the requirements
60
+ currently in effect as described in this License, you must purchase a
61
+ commercial license from the Licensor, its affiliated entities, or authorized
62
+ resellers, or you must refrain from using the Licensed Work.
63
+
64
+ All copies of the original and modified Licensed Work, and derivative works
65
+ of the Licensed Work, are subject to this License. This License applies
66
+ separately for each version of the Licensed Work and the Change Date may vary
67
+ for each version of the Licensed Work released by Licensor.
68
+
69
+ You must conspicuously display this License on each original or modified copy
70
+ of the Licensed Work. If you receive the Licensed Work in original or
71
+ modified form from a third party, the terms and conditions set forth in this
72
+ License apply to your use of that work.
73
+
74
+ Any use of the Licensed Work in violation of this License will automatically
75
+ terminate your rights under this License for the current and all other
76
+ versions of the Licensed Work.
77
+
78
+ This License does not grant you any right in any trademark or logo of
79
+ Licensor or its affiliates (provided that you may use a trademark or logo of
80
+ Licensor as expressly required by this License).
81
+
82
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
83
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
84
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
85
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
86
+ TITLE.
87
+
88
+ MariaDB hereby grants you permission to use this License's text to license
89
+ your works, and to refer to it using the trademark "Business Source License",
90
+ as long as you comply with the Covenants of Licensor below.
91
+
92
+ Covenants of Licensor
93
+
94
+ In consideration of the right to use this License's text and the "Business
95
+ Source License" name and trademark, Licensor covenants to MariaDB, and to all
96
+ other recipients of the licensed work to be provided by Licensor:
97
+
98
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
99
+ or a license that is compatible with GPL Version 2.0 or a later version,
100
+ where "compatible" means that software provided under the Change License
101
+ can be included in a program with software provided under GPL Version 2.0
102
+ or a later version. Licensor may specify additional Change Licenses
103
+ without limitation.
104
+
105
+ 2. To either: (a) specify an additional grant of rights to use that does not
106
+ impose any additional restriction on the right granted in this License, as
107
+ the Additional Use Grant; or (b) insert the text "None".
108
+
109
+ 3. To specify a Change Date.
110
+
111
+ 4. Not to modify this License in any other way.
@@ -0,0 +1,333 @@
1
+ Metadata-Version: 2.4
2
+ Name: aether-lang
3
+ Version: 0.3.0
4
+ Summary: Security checker for AI-written Python: injection, deserialization, hardcoded credentials, access control. Emits SARIF.
5
+ Author: Aether contributors
6
+ License-Expression: BUSL-1.1
7
+ Project-URL: Homepage, https://github.com/fitness-trener/Aether
8
+ Project-URL: Repository, https://github.com/fitness-trener/Aether
9
+ Project-URL: Issues, https://github.com/fitness-trener/Aether/issues
10
+ Keywords: security,sast,static analysis,taint analysis,sarif,code scanning,appsec,vulnerability scanner,python,AI generated code,AI agents,programming language,effects,capabilities,refinement types
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Security
20
+ Classifier: Topic :: Software Development :: Compilers
21
+ Classifier: Topic :: Software Development :: Interpreters
22
+ Classifier: Topic :: Software Development :: Quality Assurance
23
+ Requires-Python: >=3.10
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Provides-Extra: llm
27
+ Requires-Dist: anthropic>=0.34.0; extra == "llm"
28
+ Provides-Extra: smt
29
+ Requires-Dist: z3-solver>=4.12; extra == "smt"
30
+ Provides-Extra: dev
31
+ Requires-Dist: pytest>=7.0; extra == "dev"
32
+ Requires-Dist: z3-solver>=4.12; extra == "dev"
33
+ Dynamic: license-file
34
+
35
+ # Aether
36
+
37
+ **A security checker for the Python your AI agent writes — including the
38
+ classes pattern scanners structurally miss.**
39
+
40
+ Point it at a Python file. It finds SQL injection, command injection, open
41
+ redirect, SSTI, insecure deserialization, hardcoded credentials and XXE by
42
+ reading dataflow and argument shape, not by matching patterns. No rewrite,
43
+ no annotations, no configuration.
44
+
45
+ $ aether check-py bench/py_frontend/corpus/sqli_repro.py
46
+ [E0713] error (capability) at line 20, col 12: function 'find_user' builds a SQL query for
47
+ 'sqlQuery' unsafely (query is built by string concatenation - use sqlBind(...)); untrusted
48
+ input concatenated into a query is an injection
49
+ hint: use a fixed literal, or parameterize with sqlBind("... ? ...", value) which escapes
50
+ the value so it cannot break out of the query
51
+ [E0713] error (capability) at line 26, col 12: function 'find_user_fstring' builds a SQL
52
+ query for 'sqlQuery' unsafely ...
53
+
54
+ 2 finding(s) in 3 function(s); 3 unprovable region(s) in 3 function(s).
55
+ NOT checked on Python (no declared effects clause, no marker types): ...
56
+
57
+ Exit `0` clean, `2` on findings. Every command on this page is runnable
58
+ from a fresh clone.
59
+
60
+ ---
61
+
62
+ ## Why it finds things other scanners don't
63
+
64
+ Aether's detectors are designed against a **typed intermediate
65
+ representation** with explicit security markers — `Authorized<T>`,
66
+ `Untrusted<T>`, `Secret<T>`, `PII<T>` — and then projected down onto plain
67
+ Python. A rule is written once against dataflow, not once per syntactic
68
+ spelling.
69
+
70
+ Two consequences you can reproduce right now.
71
+
72
+ **It reads the argument, not the call.** `bench/realworld_subprocess_cmdi/subprocess_repro.py`
73
+ holds a command injection on line 18 and its documented fix — the argv-list
74
+ form, no shell — on line 24.
75
+
76
+ $ python -m bandit -f custom -q bench/realworld_subprocess_cmdi/subprocess_repro.py
77
+ ...:13: B404[bandit]: LOW: Consider possible security implications associated with the subprocess module.
78
+ ...:18: B602[bandit]: HIGH: subprocess call with shell=True identified, security issue.
79
+ ...:24: B607[bandit]: LOW: Starting a process with a partial executable path
80
+ ...:24: B603[bandit]: LOW: subprocess call - check for execution of untrusted input.
81
+
82
+ $ aether check-py bench/realworld_subprocess_cmdi/subprocess_repro.py
83
+ [E0714] error (capability) at line 18, col 12: function 'make_thumbnail' builds a shell
84
+ command for 'shellExec' unsafely ...
85
+
86
+ Both find line 18. Only one of them also warns about the fix. A checker
87
+ that flags the remediation trains people to ignore it.
88
+
89
+ **It reads literal content, not variable names.** The same corpus has a
90
+ real AWS key in `hardcoded_secret_repro.py`:
91
+
92
+ $ python -m bandit -f custom -q bench/py_frontend/corpus/hardcoded_secret_repro.py
93
+ (no output, exit 0)
94
+
95
+ $ aether check-py bench/py_frontend/corpus/hardcoded_secret_repro.py
96
+ [E0723] error (capability) at line 19, col 18: string literal contains a hardcoded AWS
97
+ access key id; a credential in source is committed to version control and shipped in
98
+ every build
99
+
100
+ Bandit's B105/B106 match password-*ish* variable names; `E0723` matches
101
+ provider key *shapes* (`AKIA…`, `ghp_…`, PEM blocks).
102
+
103
+ This is not a general "better than bandit" claim, and the repo says so at
104
+ length in [`bench/py_frontend/REPORT.md`](https://github.com/fitness-trener/Aether/blob/main/bench/py_frontend/REPORT.md) §3:
105
+ bandit ships ~70 plugins across crypto, Django, TLS and more; Aether models
106
+ 8 rows on Python. **On breadth bandit wins outright.** The narrow claim is
107
+ the one above, and it is checkable in two commands.
108
+
109
+ ## Measured on 1.19M lines nobody wrote for us
110
+
111
+ Every false-negative number in a security tool's README is usually measured
112
+ against ground truth its own authors wrote. Ours were too — so we went and
113
+ got some that weren't.
114
+
115
+ | | |
116
+ |---|---|
117
+ | PyPI distributions scanned | 111 |
118
+ | Python files / SLOC | 5,588 / **1,192,484** |
119
+ | parse failures | **0** |
120
+ | analyzer crashes | **0** |
121
+ | findings outside test dirs | 39 (**0.033 per KLOC**) |
122
+ | agreement with bandit, comparable categories | **86.8%** (125 agreed / 19 candidate misses) |
123
+
124
+ **No vulnerability was discovered in that corpus**, and roughly 56% of the
125
+ 39 findings trace to one documented over-flag rule. Both facts are stated
126
+ up front in the reports, not buried:
127
+ [`bench/pypi_scan/REPORT.md`](https://github.com/fitness-trener/Aether/blob/main/bench/pypi_scan/REPORT.md) (precision,
128
+ triaged line by line) and [`bench/pypi_scan/RECALL.md`](https://github.com/fitness-trener/Aether/blob/main/bench/pypi_scan/RECALL.md)
129
+ (recall against bandit as an independent oracle — which found **5 real
130
+ false negatives**, since fixed).
131
+
132
+ Reproduce both: `python -B bench/pypi_scan/run_scan.py` and
133
+ `python -B bench/pypi_scan/run_recall.py`.
134
+
135
+ ## What it checks on Python, and what it does not
136
+
137
+ Default-on, no annotations required:
138
+
139
+ | Code | Class | CWE |
140
+ |---|---|---|
141
+ | `E0713` | SQL injection | 89 |
142
+ | `E0714` | Command injection | 78 |
143
+ | `E0718` | Open redirect | 601 |
144
+ | `E0719` | Template injection / SSTI | 94 |
145
+ | `E0720` | Insecure deserialization | 502 |
146
+ | `E0723` | Hardcoded credential | 798 |
147
+ | `E0727` | XML external entity (XXE) | 611 |
148
+
149
+ `--strict` adds `E0711` (dynamic filesystem paths) and the `E0701`
150
+ capability inventory. Both are **held back by measurement, not taste**:
151
+ E0711 alone fired 476 times on the PyPI corpus against 39 for the entire
152
+ default set.
153
+
154
+ **Not checked on Python at all**, and the CLI prints this every run rather
155
+ than letting you assume otherwise: `E0801` effect composition and the
156
+ taint-marker family (`E0712`/`E0715`/`E0716`/`E0717`/`E0724`). Those need a
157
+ declared `effects` clause or a marker type, neither of which Python has.
158
+ They run on Aether source, where the access-control rows live — see
159
+ [Where the rules come from](#where-the-rules-come-from).
160
+
161
+ Further limits, stated plainly: the analysis is **intraprocedural and
162
+ syntactic** — over-flag, never miss *within the modeled surface*, which is
163
+ not a soundness proof. Sinks are matched by method name on receivers of
164
+ unresolved type. Single file, no cross-module resolution, no control flow.
165
+ Full list in [`bench/py_frontend/REPORT.md`](https://github.com/fitness-trener/Aether/blob/main/bench/py_frontend/REPORT.md) §4.
166
+
167
+ ## Install
168
+
169
+ Python 3.10+. The core toolchain is stdlib-only — zero third-party
170
+ packages.
171
+
172
+ pip install aether-lang
173
+ aether check-py <your_file.py>
174
+
175
+ From a checkout, to get the corpus and the benchmarks the commands on this
176
+ page reference:
177
+
178
+ git clone https://github.com/fitness-trener/Aether.git
179
+ cd Aether
180
+ pip install .
181
+
182
+ Without installing, every command works through the module path:
183
+
184
+ python -B -m transpiler.aether.cli check-py <your_file.py>
185
+
186
+ Optional extras: `pip install '.[smt]'` adds Z3 for `--prove` contract
187
+ checking; `pip install '.[llm]'` adds the Anthropic SDK for the live
188
+ fix-loop.
189
+
190
+ Point it at a whole repository — directories are walked recursively for
191
+ `.py`, skipping `.git`, `.venv`, `node_modules`, `build` and the other
192
+ vendored trees, because a repo scan that becomes a dependency scan buries
193
+ the findings you can actually fix:
194
+
195
+ $ aether check-py src/ scripts/
196
+ src/handlers/search.py
197
+ [E0713] error (capability) at line 41, col 12: function 'lookup' builds a SQL query ...
198
+
199
+ scanned 128 file(s) · 3 with findings · 1 unparseable · 0 analyzer error(s)
200
+ findings by code: E0713x2, E0723x1
201
+
202
+ Findings sort worst-first by the per-code risk rating, so the top of a long
203
+ scan is the part worth reading.
204
+
205
+ ## CI and GitHub Code Scanning
206
+
207
+ Findings carry `security-severity` derived from a per-code risk table
208
+ ([`risk.py`](https://github.com/fitness-trener/Aether/blob/main/transpiler/aether/risk.py)), so they land in the **Security →
209
+ Code Scanning** tab already ranked, and appear inline on the PR diff.
210
+
211
+ ```yaml
212
+ name: aether
213
+ on: [push, pull_request]
214
+
215
+ permissions:
216
+ contents: read
217
+ security-events: write # required to upload SARIF
218
+
219
+ jobs:
220
+ scan:
221
+ runs-on: ubuntu-latest
222
+ steps:
223
+ - uses: actions/checkout@v4
224
+ - uses: fitness-trener/Aether@main
225
+ with:
226
+ path: 'src tests' # default: .
227
+ strict: 'false' # adds E0711 + the E0701 inventory
228
+ ```
229
+
230
+ Inputs: `path`, `strict`, `fail-on-findings`, `upload-sarif`, `sarif-file`,
231
+ `category`, `setup-python`, `python-version`. Outputs: `findings`,
232
+ `sarif-file`, `exit-code`. Full contract in [`action.yml`](https://github.com/fitness-trener/Aether/blob/main/action.yml).
233
+
234
+ Or drive the CLI yourself:
235
+
236
+ aether check-py src/ --sarif > aether.sarif
237
+
238
+ `.aeth` corpora go through `tools/scan.py`, which additionally supports
239
+ `--min-risk high` as a triage filter and `--expect` for a repo that
240
+ deliberately contains violations;
241
+ [`.github/workflows/aether-scan.yml`](https://github.com/fitness-trener/Aether/blob/main/.github/workflows/aether-scan.yml)
242
+ is the working reference for that path.
243
+
244
+ ---
245
+
246
+ ## Where the rules come from
247
+
248
+ Aether is also a **language**, and that is why the detector set looks the
249
+ way it does rather than being a marketing line.
250
+
251
+ The compiler refuses to compose components that violate declared
252
+ architectural constraints — effect locality, URL discipline, module
253
+ capability scope, refinement-typed boundaries — and emits structured
254
+ diagnostics an agent fix-loop can act on mechanically. Because the type
255
+ system carries `Authorized<T>` and `Untrusted<T>` as first-class markers,
256
+ whole classes become expressible that a pattern matcher has no vocabulary
257
+ for:
258
+
259
+ - **`E0716` missing authorization** (CWE-862/863) — a data-mutating sink
260
+ reachable with no authorization proof in its dataflow.
261
+ - **`E0717` cross-tenant access / IDOR** (CWE-639) — an authorization proof
262
+ that is not bound to the *same resource id* the sink mutates.
263
+
264
+ Nine named companies' own public CVEs and incidents are ported and refused
265
+ at check time in [`outreach/CUSTOMER_EVIDENCE.md`](https://github.com/fitness-trener/Aether/blob/main/outreach/CUSTOMER_EVIDENCE.md)
266
+ — Copilot, Cursor, Lovable, Replit, Vercel, Atlassian, Ivanti, GitLab,
267
+ crawl4ai. **Five of the nine are access-control cases that mainstream SAST
268
+ does not cover.** These are retrospective ports of public incidents, not
269
+ live scans of anyone's systems, and the file says so first.
270
+
271
+ Current surface: **54 diagnostic codes across 30 gated detectors**, held by
272
+ a monotonic ratchet (`tests/ratchet_baseline.json`) that turns the build red
273
+ if a detector is ever removed or weakened. Security family `E0710`–`E0730`;
274
+ static-semantic family `E0202`–`E0207` (non-exhaustive match, unreachable
275
+ arm, dead code, dead store, ignored `Result`, unsatisfiable refinement).
276
+
277
+ Working with the language directly:
278
+
279
+ aether check demos/payment_workflow/aether/main.aeth
280
+ aether run demos/payment_workflow/aether/main.aeth
281
+ aether fmt demos/payment_workflow/aether/main.aeth
282
+ aether fix-loop demos/payment_workflow/broken.aeth # deterministic AST repair
283
+ aether fix-loop demos/payment_workflow/broken.aeth --live # LLM repair (needs ANTHROPIC_API_KEY)
284
+
285
+ `--json` on any command emits structured output for an agent to consume;
286
+ the Python SDK is `from aether import sdk`, the same spelling installed or
287
+ from a checkout.
288
+
289
+ **Design principles.** One syntactic form per semantic operation · every
290
+ public function declares its contracts and effects · modules declare their
291
+ capabilities and the runtime grants only what is declared · the AST is
292
+ canonical (`parse(print(ast)) == ast`) · errors are structured and
293
+ suggestions are machine-readable.
294
+
295
+ **Honest framing, enforced repo-wide.** Refinement, capability and
296
+ effect-scope checks that fire at *runtime* are described as runtime
297
+ guarantees, never as static proof. Taint passes are syntactic and
298
+ intraprocedural and are described as "over-flag, never miss within the
299
+ modeled surface", never as "sound".
300
+
301
+ ## Layout
302
+
303
+ transpiler/ The compiler, runtime and CLI — pure Python, no third-party deps
304
+ tools/ py_frontend.py (Python → IR), scan.py (SARIF scanner), risk.py
305
+ grammar/ Specification: keywords, types, effects, EBNF, stdlib, diagnostics catalog
306
+ bench/ Measurement harnesses — py_frontend, pypi_scan, architectural
307
+ demos/ Case studies, including the improvement-loop log
308
+ vault/ Long-term design analysis (Karpathy LLM-wiki method)
309
+ reference/ Reference programs with canonical AST + expected output
310
+ tests/ Integration tests and the monotonic ratchet
311
+ scripts/ run_all.py — the full gate
312
+
313
+ Full gate: `python -B scripts/run_all.py` (exit 0 = green; 37 PASS suites).
314
+
315
+ ## Documentation
316
+
317
+ - [`docs/SCANNING.md`](https://github.com/fitness-trener/Aether/blob/main/docs/SCANNING.md) — scanner and CI setup
318
+ - [`SECURITY_POSTURE.md`](https://github.com/fitness-trener/Aether/blob/main/SECURITY_POSTURE.md) — the violation classes and the four detector families
319
+ - [`grammar/diagnostics.md`](https://github.com/fitness-trener/Aether/blob/main/grammar/diagnostics.md) — every diagnostic code
320
+ - [`demos/case_studies/LOOP_LOG.md`](https://github.com/fitness-trener/Aether/blob/main/demos/case_studies/LOOP_LOG.md) — how each detector was built and what it still misses
321
+ - [`BUGS.md`](https://github.com/fitness-trener/Aether/blob/main/BUGS.md) — open and fixed defects in Aether itself
322
+
323
+ ## License
324
+
325
+ Business Source License 1.1 — see [`LICENSE`](https://github.com/fitness-trener/Aether/blob/main/LICENSE). Source is public.
326
+ Using Aether on your own code, in production and in CI, is free; so is
327
+ research, teaching and evaluation. Code you write in Aether and the Python
328
+ the transpiler emits are yours and carry no obligation from this license.
329
+
330
+ What the license reserves is selling Aether itself — a hosted, embedded or
331
+ paid product whose value derives substantially from the compiler,
332
+ diagnostic suite or scanner. That needs a commercial license until the
333
+ Change Date (2030-07-19), when each released version converts to Apache-2.0.