aqueduct-core 1.0.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.
- aqueduct_core-1.0.0/.gitignore +157 -0
- aqueduct_core-1.0.0/CHANGELOG.md +210 -0
- aqueduct_core-1.0.0/LICENSE +201 -0
- aqueduct_core-1.0.0/PKG-INFO +973 -0
- aqueduct_core-1.0.0/README.md +707 -0
- aqueduct_core-1.0.0/aqueduct/__init__.py +48 -0
- aqueduct_core-1.0.0/aqueduct/agent/__init__.py +889 -0
- aqueduct_core-1.0.0/aqueduct/cli.py +3965 -0
- aqueduct_core-1.0.0/aqueduct/compiler/__init__.py +6 -0
- aqueduct_core-1.0.0/aqueduct/compiler/compiler.py +425 -0
- aqueduct_core-1.0.0/aqueduct/compiler/expander.py +298 -0
- aqueduct_core-1.0.0/aqueduct/compiler/lineage.py +212 -0
- aqueduct_core-1.0.0/aqueduct/compiler/macros.py +106 -0
- aqueduct_core-1.0.0/aqueduct/compiler/models.py +104 -0
- aqueduct_core-1.0.0/aqueduct/compiler/provenance.py +201 -0
- aqueduct_core-1.0.0/aqueduct/compiler/runtime.py +195 -0
- aqueduct_core-1.0.0/aqueduct/compiler/warnings/__init__.py +60 -0
- aqueduct_core-1.0.0/aqueduct/compiler/warnings/count_col_likely_count_star.py +42 -0
- aqueduct_core-1.0.0/aqueduct/compiler/warnings/file_format_no_repartition.py +38 -0
- aqueduct_core-1.0.0/aqueduct/compiler/warnings/jdbc_missing_partition.py +38 -0
- aqueduct_core-1.0.0/aqueduct/compiler/warnings/kafka_checkpoint_stale.py +46 -0
- aqueduct_core-1.0.0/aqueduct/compiler/warnings/nondeterministic_fanout.py +53 -0
- aqueduct_core-1.0.0/aqueduct/compiler/wirer.py +111 -0
- aqueduct_core-1.0.0/aqueduct/config.py +587 -0
- aqueduct_core-1.0.0/aqueduct/depot/__init__.py +0 -0
- aqueduct_core-1.0.0/aqueduct/depot/depot.py +72 -0
- aqueduct_core-1.0.0/aqueduct/doctor.py +1222 -0
- aqueduct_core-1.0.0/aqueduct/executor/__init__.py +30 -0
- aqueduct_core-1.0.0/aqueduct/executor/models.py +43 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/__init__.py +4 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/assert_.py +561 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/channel.py +421 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/egress.py +272 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/executor.py +1587 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/funnel.py +243 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/ingress.py +190 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/junction.py +168 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/metrics.py +160 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/probe.py +506 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/session.py +117 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/test_runner.py +395 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/udf.py +279 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/warnings/__init__.py +44 -0
- aqueduct_core-1.0.0/aqueduct/executor/spark/warnings/jar_availability.py +123 -0
- aqueduct_core-1.0.0/aqueduct/exit_codes.py +41 -0
- aqueduct_core-1.0.0/aqueduct/parser/__init__.py +6 -0
- aqueduct_core-1.0.0/aqueduct/parser/graph.py +100 -0
- aqueduct_core-1.0.0/aqueduct/parser/models.py +117 -0
- aqueduct_core-1.0.0/aqueduct/parser/parser.py +219 -0
- aqueduct_core-1.0.0/aqueduct/parser/resolver.py +168 -0
- aqueduct_core-1.0.0/aqueduct/parser/schema.py +207 -0
- aqueduct_core-1.0.0/aqueduct/patch/__init__.py +5 -0
- aqueduct_core-1.0.0/aqueduct/patch/apply.py +411 -0
- aqueduct_core-1.0.0/aqueduct/patch/explain_gate.py +172 -0
- aqueduct_core-1.0.0/aqueduct/patch/grammar.py +277 -0
- aqueduct_core-1.0.0/aqueduct/patch/operations.py +334 -0
- aqueduct_core-1.0.0/aqueduct/patch/preview.py +430 -0
- aqueduct_core-1.0.0/aqueduct/secrets.py +196 -0
- aqueduct_core-1.0.0/aqueduct/stores/__init__.py +40 -0
- aqueduct_core-1.0.0/aqueduct/stores/base.py +246 -0
- aqueduct_core-1.0.0/aqueduct/stores/duckdb_.py +109 -0
- aqueduct_core-1.0.0/aqueduct/stores/postgres.py +204 -0
- aqueduct_core-1.0.0/aqueduct/stores/redis_.py +100 -0
- aqueduct_core-1.0.0/aqueduct/surveyor/__init__.py +5 -0
- aqueduct_core-1.0.0/aqueduct/surveyor/models.py +75 -0
- aqueduct_core-1.0.0/aqueduct/surveyor/scenario.py +572 -0
- aqueduct_core-1.0.0/aqueduct/surveyor/surveyor.py +768 -0
- aqueduct_core-1.0.0/aqueduct/surveyor/webhook.py +118 -0
- aqueduct_core-1.0.0/aqueduct/templates/__init__.py +0 -0
- aqueduct_core-1.0.0/aqueduct/templates/default/__init__.py +0 -0
- aqueduct_core-1.0.0/aqueduct/templates/default/aqscenarios/__init__.py +0 -0
- aqueduct_core-1.0.0/aqueduct/templates/default/aqscenarios/aqscenario.yml.template +96 -0
- aqueduct_core-1.0.0/aqueduct/templates/default/aqtests/__init__.py +0 -0
- aqueduct_core-1.0.0/aqueduct/templates/default/aqtests/aqtest.yml.template +93 -0
- aqueduct_core-1.0.0/aqueduct/templates/default/aqueduct.yml.template +502 -0
- aqueduct_core-1.0.0/aqueduct/templates/default/blueprints/__init__.py +0 -0
- aqueduct_core-1.0.0/aqueduct/templates/default/blueprints/blueprint.yml.template +544 -0
- aqueduct_core-1.0.0/aqueduct/templates/default/gitignore.template +36 -0
- aqueduct_core-1.0.0/aqueduct/warnings.py +119 -0
- aqueduct_core-1.0.0/pyproject.toml +112 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# --- Spark / Hadoop / Data ---
|
|
2
|
+
.spark-staging/
|
|
3
|
+
*.parquet
|
|
4
|
+
*.avro
|
|
5
|
+
*.csv
|
|
6
|
+
# DuckDB
|
|
7
|
+
*.db
|
|
8
|
+
*.duckdb
|
|
9
|
+
*.duckdb.wal
|
|
10
|
+
**/spark-warehouse/
|
|
11
|
+
artifacts/
|
|
12
|
+
|
|
13
|
+
# --- Virtual Environments & Secrets ---
|
|
14
|
+
.env
|
|
15
|
+
.envrc
|
|
16
|
+
.venv
|
|
17
|
+
env/
|
|
18
|
+
venv/
|
|
19
|
+
ENV/
|
|
20
|
+
env.bak/
|
|
21
|
+
venv.bak/
|
|
22
|
+
.pdm-python
|
|
23
|
+
.pdm-build/
|
|
24
|
+
.pixi
|
|
25
|
+
|
|
26
|
+
# --- Python ---
|
|
27
|
+
# Byte-compiled / optimized / DLL files
|
|
28
|
+
__pycache__/
|
|
29
|
+
*.py[codz]
|
|
30
|
+
*$py.class
|
|
31
|
+
*.so
|
|
32
|
+
|
|
33
|
+
# --- Distribution / Packaging ---
|
|
34
|
+
.Python
|
|
35
|
+
build/
|
|
36
|
+
develop-eggs/
|
|
37
|
+
dist/
|
|
38
|
+
downloads/
|
|
39
|
+
eggs/
|
|
40
|
+
.eggs/
|
|
41
|
+
lib/
|
|
42
|
+
lib64/
|
|
43
|
+
parts/
|
|
44
|
+
sdist/
|
|
45
|
+
var/
|
|
46
|
+
wheels/
|
|
47
|
+
share/python-wheels/
|
|
48
|
+
*.egg-info/
|
|
49
|
+
.installed.cfg
|
|
50
|
+
*.egg
|
|
51
|
+
MANIFEST
|
|
52
|
+
*.manifest
|
|
53
|
+
*.spec
|
|
54
|
+
|
|
55
|
+
# --- Testing / Coverage ---
|
|
56
|
+
.pytest_cache/
|
|
57
|
+
pytest_*.*/
|
|
58
|
+
.coverage
|
|
59
|
+
.coverage.*
|
|
60
|
+
htmlcov/
|
|
61
|
+
.tox/
|
|
62
|
+
.nox/
|
|
63
|
+
.nosepy
|
|
64
|
+
nosetests.xml
|
|
65
|
+
coverage.xml
|
|
66
|
+
*.cover
|
|
67
|
+
*.py.cover
|
|
68
|
+
.hypothesis/
|
|
69
|
+
cover/
|
|
70
|
+
.cache
|
|
71
|
+
|
|
72
|
+
# --- IDEs, OS & AI Assistants ---
|
|
73
|
+
# Visual Studio Code
|
|
74
|
+
.vscode/
|
|
75
|
+
# JetBrains
|
|
76
|
+
.idea/
|
|
77
|
+
# Spyder
|
|
78
|
+
.spyderproject
|
|
79
|
+
.spyproject
|
|
80
|
+
# Rope
|
|
81
|
+
.ropeproject
|
|
82
|
+
# macOS
|
|
83
|
+
.DS_Store
|
|
84
|
+
# Windows
|
|
85
|
+
Thumbs.db
|
|
86
|
+
# Claude / Cursor
|
|
87
|
+
.claude/
|
|
88
|
+
CLAUDE.md
|
|
89
|
+
.cursorignore
|
|
90
|
+
.cursorindexingignore
|
|
91
|
+
.prompts/
|
|
92
|
+
# Vim
|
|
93
|
+
*.swp
|
|
94
|
+
*.swo
|
|
95
|
+
*~
|
|
96
|
+
|
|
97
|
+
# --- Tools & Frameworks ---
|
|
98
|
+
# PyPI config
|
|
99
|
+
.pypirc
|
|
100
|
+
# Ruff
|
|
101
|
+
.ruff_cache/
|
|
102
|
+
# mypy
|
|
103
|
+
.mypy_cache/
|
|
104
|
+
.dmypy.json
|
|
105
|
+
dmypy.json
|
|
106
|
+
# Pyre
|
|
107
|
+
.pyre/
|
|
108
|
+
# pytype
|
|
109
|
+
.pytype/
|
|
110
|
+
# Cython
|
|
111
|
+
cython_debug/
|
|
112
|
+
# Jupyter / IPython
|
|
113
|
+
.ipynb_checkpoints
|
|
114
|
+
profile_default/
|
|
115
|
+
ipython_config.py
|
|
116
|
+
# Django / Flask / Scrapy
|
|
117
|
+
local_settings.py
|
|
118
|
+
db.sqlite3
|
|
119
|
+
db.sqlite3-journal
|
|
120
|
+
instance/
|
|
121
|
+
.webassets-cache
|
|
122
|
+
.scrapy
|
|
123
|
+
# Celery
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
# Sphinx / mkdocs
|
|
127
|
+
docs/_build/
|
|
128
|
+
/site
|
|
129
|
+
# Translations
|
|
130
|
+
*.mo
|
|
131
|
+
*.pot
|
|
132
|
+
# PyBuilder
|
|
133
|
+
.pybuilder/
|
|
134
|
+
target/
|
|
135
|
+
# SageMath
|
|
136
|
+
*.sage.py
|
|
137
|
+
# Abstra
|
|
138
|
+
.abstra/
|
|
139
|
+
# Marimo
|
|
140
|
+
marimo/_static/
|
|
141
|
+
marimo/_lsp/
|
|
142
|
+
__marimo__/
|
|
143
|
+
|
|
144
|
+
# --- Logs & Misc ---
|
|
145
|
+
*.log
|
|
146
|
+
*.bak
|
|
147
|
+
pip-log.txt
|
|
148
|
+
pip-delete-this-directory.txt
|
|
149
|
+
__pypackages__/
|
|
150
|
+
|
|
151
|
+
# --- Aqueduct Project ---
|
|
152
|
+
# Local testing, examples, and patches
|
|
153
|
+
.aqueduct/
|
|
154
|
+
tmp/
|
|
155
|
+
patches/
|
|
156
|
+
**/data/output/**
|
|
157
|
+
!**/data/input/*
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable, consumer-facing changes to Aqueduct (`aqueduct-core`) are
|
|
4
|
+
recorded here.
|
|
5
|
+
|
|
6
|
+
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
|
|
7
|
+
versioning follows [SemVer](https://semver.org/). The stability contract
|
|
8
|
+
applies from v1.0.0 — during alpha/RC, breaking changes may land in any
|
|
9
|
+
release and are marked **BREAKING**.
|
|
10
|
+
|
|
11
|
+
## [1.0.0] — 2026-05-18
|
|
12
|
+
|
|
13
|
+
First stable release. The stability contract (`docs/STABILITY.md`, exit
|
|
14
|
+
codes, frozen public API) is now in force; subsequent breaking changes
|
|
15
|
+
follow SemVer. Consolidates everything previously staged as Unreleased
|
|
16
|
+
and the `1.0.0a2` pre-release (which never shipped separately).
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- `aqueduct benchmark` accepts a single `.aqscenario.yml` (positional or
|
|
20
|
+
`--scenarios`), not only a directory.
|
|
21
|
+
- `aqueduct benchmark --provider` / `--base-url` / `--timeout` to override
|
|
22
|
+
the agent connection per run (precedence: flag > `aqueduct.yml` agent >
|
|
23
|
+
default). `--timeout 0` = unbounded read (connect still fails fast).
|
|
24
|
+
- `aqueduct init` now writes a `.gitignore` (Spark/Aqueduct runtime
|
|
25
|
+
artifacts, `.env`, ephemeral `patches/{pending,rejected}/`); existing
|
|
26
|
+
files, including a user `.gitignore`, are never overwritten.
|
|
27
|
+
- `aqueduct doctor` `--aqtest` / `--aqscenario` pre-flight, combinable
|
|
28
|
+
with a config/blueprint probe in one pass.
|
|
29
|
+
- `aqueduct benchmark --format json` now includes the generated
|
|
30
|
+
`patch` (PatchSpec) per result, so a failure can be diagnosed without
|
|
31
|
+
re-running. Table mode prints a `(N failed — rerun with --format
|
|
32
|
+
json …)` hint when any scenario fails.
|
|
33
|
+
- Stable exit codes (`aqueduct/exit_codes.py`) and `docs/STABILITY.md`;
|
|
34
|
+
downstream tooling can branch on `$?`.
|
|
35
|
+
- `aqueduct schema --target {blueprint,config,patch}` emits the JSON
|
|
36
|
+
Schema for IDE autocomplete / CI gating.
|
|
37
|
+
- `--format json` on `aqueduct runs` and `aqueduct patch list`.
|
|
38
|
+
- Two-tier suppressible warning system with stable `AQ-WARN [rule_id]`
|
|
39
|
+
IDs and `warnings.suppress` / `--suppress-warning`. New rules:
|
|
40
|
+
`kafka_checkpoint_stale`, `nondeterministic_fanout`,
|
|
41
|
+
`count_col_likely_count_star`, `file_format_no_repartition`,
|
|
42
|
+
`jdbc_missing_partition`, `jar_availability`.
|
|
43
|
+
- Post-patch `explain()` regression check and
|
|
44
|
+
`agent.block_on_explain_regression` (warn-only by default).
|
|
45
|
+
- `aqueduct patch preview` with lineage + sandbox validation gates;
|
|
46
|
+
`agent.patch_validation: full_run | sandbox`.
|
|
47
|
+
- Pluggable observability/lineage/depot store backends (Postgres;
|
|
48
|
+
Redis for depot) with `aqueduct stores info|migrate` and
|
|
49
|
+
`[postgres]` / `[redis]` extras.
|
|
50
|
+
- Secrets providers `aws` / `gcp` / `azure` / `custom` with
|
|
51
|
+
`[aws]` / `[gcp]` / `[azure]` extras.
|
|
52
|
+
- Global `--log-format {text,json}` for structured log shipping.
|
|
53
|
+
- `agent.max_heal_attempts_per_hour` spend-cap on self-healing.
|
|
54
|
+
- `aqueduct compile --show {manifest,provenance,inputs,all}`.
|
|
55
|
+
- Ingress `partition_filters`; Egress `maintenance:` (Delta
|
|
56
|
+
OPTIMIZE/VACUUM); Channel `metrics_boundary`; Channel
|
|
57
|
+
`materialize: incremental` + `watermark_column`; `Manifest`
|
|
58
|
+
input fingerprinting.
|
|
59
|
+
- Assert `error_type` plus `agent.guardrails.heal_on_errors` /
|
|
60
|
+
`never_heal_errors` pre-trigger guards.
|
|
61
|
+
|
|
62
|
+
### Changed
|
|
63
|
+
- `aqueduct benchmark` scoring is now two-tier: **correctness gates**
|
|
64
|
+
PASS/FAIL (`patch_is_valid`, `patch_applies`, `expected_patch`), while
|
|
65
|
+
**diagnosis quality** (`root_cause_contains`, `expected_category`,
|
|
66
|
+
`max_attempts`, `min_confidence`) is recorded as a diagnosis score and
|
|
67
|
+
reported (`diag_score`/`soft_failures` in JSON, `d%` + `Diag score` in
|
|
68
|
+
the table) but **never fails an otherwise-correct fix**.
|
|
69
|
+
- Gallery `aqscenarios` benchmark suite reworked for fidelity: each
|
|
70
|
+
scenario now has its own blueprint carrying exactly one real defect,
|
|
71
|
+
`inject_failure.error_message` mirrors authentic Spark output (error
|
|
72
|
+
class, `SQLSTATE`, suggestion list), and scoring is op-agnostic
|
|
73
|
+
(outcome + diagnosis, not a hard-coded patch op). Previously 4/5
|
|
74
|
+
scenarios injected an error unrelated to the shared clean blueprint
|
|
75
|
+
(unsolvable/ungradable).
|
|
76
|
+
- `.env` is now auto-loaded by **every** command from the directory of
|
|
77
|
+
the config/blueprint passed (previously only `run`/`doctor`/`validate`).
|
|
78
|
+
A one-line stderr notice reports what was loaded; `-e KEY=VAL`
|
|
79
|
+
(docker-style, highest precedence) and `AQ_NO_ENV_FILE=1` added.
|
|
80
|
+
- `aqueduct benchmark` default `--workers` is now `1` (serial); set `>1`
|
|
81
|
+
to parallelize scenario×model pairs.
|
|
82
|
+
- `aqueduct test` always runs on `local[*]` and ignores
|
|
83
|
+
`deployment.master_url` (isolated unit tests); `--master` overrides for
|
|
84
|
+
cluster-runtime-dependent modules.
|
|
85
|
+
- `aqueduct doctor` default view shows only actionable rows; skip/green
|
|
86
|
+
low-signal rows collapse into one line, `--verbose` expands. The Spark
|
|
87
|
+
check is a fast bounded reachability probe by default; `--preflight`
|
|
88
|
+
runs a full unbounded session check. `agent` no longer warns when
|
|
89
|
+
self-healing is simply unconfigured (opt-in). Convention: ✗ = "will
|
|
90
|
+
break", ⚠ = "runs but fragile". doctor stays advisory.
|
|
91
|
+
- Init scaffold directories renamed for consistency: `tests/` → `aqtests/`,
|
|
92
|
+
`benchmarks/` → `aqscenarios/`.
|
|
93
|
+
- Default `agent.model` is now `claude-sonnet-4-6`.
|
|
94
|
+
- Incremental-Channel watermark is computed from materialized Egress
|
|
95
|
+
output instead of re-scanning the upstream DAG twice.
|
|
96
|
+
- Cluster/cloud deployments with relative store paths now error in
|
|
97
|
+
`doctor` and warn at run start.
|
|
98
|
+
- Public API frozen to a small `__all__` (`parse`, `ParseError`,
|
|
99
|
+
`AqueductWarning`, `__version__`); everything else is internal.
|
|
100
|
+
- **BREAKING:** `aqueduct benchmark --output` renamed to `--format`
|
|
101
|
+
(data-shape selector; consistent with `runs`/`report`/`patch list`).
|
|
102
|
+
`-o`/`--output` is now reserved exclusively for file destinations
|
|
103
|
+
(`schema`); `compile --show` keeps its artefact-slice meaning.
|
|
104
|
+
|
|
105
|
+
### Deprecated
|
|
106
|
+
- _None._
|
|
107
|
+
|
|
108
|
+
### Removed
|
|
109
|
+
- **BREAKING:** `heal --scenario` removed. `heal` is production-only
|
|
110
|
+
(heal a real failed `run_id`); scenario evaluation is
|
|
111
|
+
`aqueduct benchmark <file-or-dir>`.
|
|
112
|
+
- **BREAKING:** `heal --print-prompt-format` removed — folded into
|
|
113
|
+
`--print-prompt [text|json]` (bare = text, `--print-prompt json` for
|
|
114
|
+
JSON).
|
|
115
|
+
- **BREAKING:** `warnings.silence_all` config field and `--no-warnings`
|
|
116
|
+
flag removed. Use `warnings.suppress: ["*"]` or
|
|
117
|
+
`--suppress-warning '*'`.
|
|
118
|
+
- **BREAKING:** `aqueduct check-config` removed — use `aqueduct validate`
|
|
119
|
+
(auto-detects blueprint vs engine config by header, accepts multiple
|
|
120
|
+
files).
|
|
121
|
+
- **BREAKING:** `aqueduct doctor --config` / `--blueprint` removed — pass
|
|
122
|
+
the file positionally (header-sniffed).
|
|
123
|
+
- **BREAKING:** `agent.llm_timeout` → `agent.timeout`,
|
|
124
|
+
`agent.llm_max_reprompts` → `agent.max_reprompts` (the self-healing
|
|
125
|
+
subsystem is uniformly "the agent"; no aliases).
|
|
126
|
+
- **BREAKING:** `probes.block_full_actions_in_prod` →
|
|
127
|
+
`danger.allow_full_probe_actions` (inverted polarity).
|
|
128
|
+
- `ollama_options` renamed to `provider_options`.
|
|
129
|
+
|
|
130
|
+
### Fixed
|
|
131
|
+
- Postgres store backend (`stores.*.backend: postgres`) no longer crashes
|
|
132
|
+
on DuckDB-only DDL/upsert SQL; non-DuckDB store `path` (a DSN) is no
|
|
133
|
+
longer mis-created as a local directory. (Full multi-backend
|
|
134
|
+
certification still pending.)
|
|
135
|
+
- `--parallel` Probe race that silently dropped Probe signals
|
|
136
|
+
(ISSUE-042).
|
|
137
|
+
- Tier-0 tokens (`${VAR:-default}`, `${ctx.*}`) are now resolved in
|
|
138
|
+
top-level `spark_config` and `macros` (ISSUE-027).
|
|
139
|
+
- `materialize: incremental` blueprints referencing `${ctx._watermark}`
|
|
140
|
+
no longer fail `validate`/`run`.
|
|
141
|
+
- Duplicate missing-env-var error lines collapsed to one.
|
|
142
|
+
- pyspark `DataFrame.sql_ctx` deprecation warning from the explain gate.
|
|
143
|
+
- Misleading agent "failed after N attempts" log now reports the actual
|
|
144
|
+
attempt count.
|
|
145
|
+
- Bundled `aqtest.yml.template` rewritten to match the real
|
|
146
|
+
`aqueduct test` runner schema (it previously documented a
|
|
147
|
+
non-functional format).
|
|
148
|
+
|
|
149
|
+
## [1.0.0a1] — 2026-05-12
|
|
150
|
+
|
|
151
|
+
### Added
|
|
152
|
+
- `danger:` block (`allow_aggressive_patching`,
|
|
153
|
+
`allow_full_probe_actions`), defaulting `false`, with a startup
|
|
154
|
+
warning when any is enabled.
|
|
155
|
+
- `approval_mode: ci` with `agent.ci_webhook_url`; webhooks
|
|
156
|
+
`on_patch_pending` / `on_ci_patch` make `human`/`ci` review viable
|
|
157
|
+
for teams.
|
|
158
|
+
- `PatchSpec.confidence|category|root_cause`; `confidence < 0.7`
|
|
159
|
+
auto-escalates to human review regardless of `approval_mode`.
|
|
160
|
+
- `healing_outcomes` table persisting every healing attempt.
|
|
161
|
+
- Per-pipeline store paths (`.aqueduct/obs/{blueprint_id}/`),
|
|
162
|
+
removing DuckDB write contention across pipelines.
|
|
163
|
+
- Java/Scala UDFs (`lang: java|scala`, `jar:`, `entry:`).
|
|
164
|
+
- `schema_hint` `strict | additive | subset` modes.
|
|
165
|
+
- Git-integrated patch lifecycle: `aqueduct patch
|
|
166
|
+
commit|discard|log|rollback|list`; surgical `set_module_config_key`
|
|
167
|
+
op.
|
|
168
|
+
- Provenance layer — smaller/cleaner LLM prompts; `doctor` recurses
|
|
169
|
+
into Arcades.
|
|
170
|
+
- `aqueduct init` project scaffold (writes `.gitignore` ignoring the
|
|
171
|
+
ephemeral patch dirs); `aqueduct runs`; `aqueduct report`;
|
|
172
|
+
`aqueduct lineage`; `aqueduct signal`; `aqueduct heal`;
|
|
173
|
+
`aqueduct test`.
|
|
174
|
+
- Probe signal types: `value_distribution`, `distinct_count`,
|
|
175
|
+
`data_freshness`, `partition_stats`.
|
|
176
|
+
- Compile-time SQL macros; Channel `op: join` with broadcast hint.
|
|
177
|
+
|
|
178
|
+
### Changed
|
|
179
|
+
- `runs.db` + `signals.db` consolidated into a single
|
|
180
|
+
`observability.db`.
|
|
181
|
+
|
|
182
|
+
### Removed
|
|
183
|
+
- **BREAKING:** `agent.validate_patch` field removed — `aggressive`
|
|
184
|
+
mode now always validates in-memory before writing.
|
|
185
|
+
|
|
186
|
+
## [1.0.0a0] — 2026-04-27
|
|
187
|
+
|
|
188
|
+
First alpha on PyPI (`aqueduct-core`). Phases 1–9: the core engine.
|
|
189
|
+
|
|
190
|
+
### Added
|
|
191
|
+
- Declarative blueprint pipeline: Parser → Compiler → Executor with
|
|
192
|
+
`aqueduct validate | compile | run`.
|
|
193
|
+
- Modules: Ingress, Egress, Channel (SQL), Junction, Funnel, Probe;
|
|
194
|
+
Spillway error-row routing; Assert data-quality module
|
|
195
|
+
(`abort|warn|webhook|quarantine|trigger_agent`).
|
|
196
|
+
- Resolution: Tier-0 (`${ENV:-default}`, `${ctx.*}`, env/profile/CLI
|
|
197
|
+
overrides) and Tier-1 (`@aq.date.*`, `@aq.run.*`, `@aq.depot.*`,
|
|
198
|
+
`@aq.secret()`); Arcades (reusable sub-blueprints).
|
|
199
|
+
- Depot KV store; Python/Java/Scala UDFs; `RetryPolicy` (exponential/
|
|
200
|
+
linear/fixed + jitter + deadline); per-module `on_failure`;
|
|
201
|
+
opt-in checkpoint/resume.
|
|
202
|
+
- LLM self-healing: `approval_mode: disabled|human|auto|aggressive`,
|
|
203
|
+
deterministic guardrails (`allowed_paths`, `forbidden_ops`), patch
|
|
204
|
+
staging/rollback; Anthropic + Ollama + OpenAI-compatible providers
|
|
205
|
+
over plain HTTP (no `anthropic` SDK dependency).
|
|
206
|
+
- Observability: Surveyor (DuckDB) run records / failure contexts;
|
|
207
|
+
SparkListener per-module metrics; column-level lineage via sqlglot;
|
|
208
|
+
`aqueduct doctor`.
|
|
209
|
+
- Remote Spark (`local[*]`, `spark://`, `yarn`, `k8s://`); partial DAG
|
|
210
|
+
(`--from`/`--to`); `--execution-date` for backfills.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Sadig Akhund
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|