catincloud-crosslink 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,323 @@
1
+ Metadata-Version: 2.5
2
+ Name: catincloud-crosslink
3
+ Version: 0.1.0
4
+ Summary: A project format reduced from an orchestrated asset graph, and the write path back to it
5
+ Project-URL: Homepage, https://github.com/catincloud-labs/crosslink
6
+ Project-URL: Repository, https://github.com/catincloud-labs/crosslink
7
+ Project-URL: Issues, https://github.com/catincloud-labs/crosslink/issues
8
+ Project-URL: Changelog, https://github.com/catincloud-labs/crosslink/blob/main/CHANGELOG.md
9
+ Author: David Anaya
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: asset-graph,conformance,dagster,dbt,drift,project-format
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Software Development :: Libraries
19
+ Classifier: Topic :: Software Development :: Testing
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: pyyaml>=6.0
22
+ Provides-Extra: conformance
23
+ Requires-Dist: pytest>=8.4; extra == 'conformance'
24
+ Provides-Extra: generate
25
+ Requires-Dist: anthropic>=1.0; extra == 'generate'
26
+ Provides-Extra: service
27
+ Requires-Dist: catincloud-ration==0.2.1; extra == 'service'
28
+ Provides-Extra: test
29
+ Requires-Dist: pytest>=8.4; extra == 'test'
30
+ Description-Content-Type: text/markdown
31
+
32
+ # crosslink
33
+
34
+ A project format reduced from an orchestrated asset graph - and the write path
35
+ back to it.
36
+
37
+ Copyright 2026 David Anaya. Apache-2.0.
38
+
39
+ ## What this is
40
+
41
+ Modern transformation tooling assumes a project is a directory of files. An orchestrated
42
+ asset graph is not that - it is a live object graph whose source of truth is the code
43
+ that builds it. The two describe the same warehouse and cannot read each other.
44
+
45
+ Reducing the graph into something a project-shaped consumer can **read** is
46
+ solved, and that reduction is half of what this package contains. The way
47
+ back is the harder half: when a consumer wants to change something, the
48
+ change cannot be applied to the reduction, because the reduction is
49
+ regenerated from code. So a change is proposed against the code (ADR-0002)
50
+ and verified against the reduction it claims to change (ADR-0003); the
51
+ Status section below says which steps of that path are built.
52
+
53
+ Closing that loop is what this repository is for. The interesting property is that the
54
+ two halves need each other - the reduction is what makes a proposed change *checkable*.
55
+ Apply a candidate change, rebuild, re-reduce, and compare against the delta you asked
56
+ for. The read side is the acceptance test for the write side.
57
+
58
+ ## What it offers, and what it does not
59
+
60
+ Three things: the package; the contract a project format is judged by,
61
+ `crosslink.conformance`, with the formats built to fail it,
62
+ `crosslink.conformance_calibration`, shipped beside it; and the suite under
63
+ `tests/`.
64
+
65
+ The calibration is evidence about the contract, not about your format: it
66
+ shows the contract refusing three formats that are wrong on purpose. A format
67
+ conforms only when the contract has judged that format. Where this README and
68
+ the contract disagree, the contract and its calibration are right.
69
+
70
+ No guarantee and no support are promised. The write path ships as a mechanism,
71
+ and nothing here says what it will do against a repository of yours.
72
+
73
+ ## Installing
74
+
75
+ The distribution is named `catincloud-crosslink`, and it imports as
76
+ `crosslink`:
77
+
78
+ ```bash
79
+ pip install catincloud-crosslink
80
+ ```
81
+
82
+ **Do not `pip install crosslink`.** That name on PyPI belongs to an unrelated
83
+ project, which installs a top-level `crosslink` package of its own, so the two
84
+ cannot share an environment and the wrong one imports without complaint.
85
+
86
+ No release has been uploaded yet. Until one is, install from a clone:
87
+
88
+ ```bash
89
+ git clone https://github.com/catincloud-labs/crosslink.git
90
+ cd crosslink
91
+ pip install .
92
+ ```
93
+
94
+ ## Status
95
+
96
+ The read side is in place and passes its suite - and so is every step of the
97
+ write path `docs/ROADMAP.md` sequences: reduction, self-consistency findings,
98
+ the typed delta, the oracle harness, bounded patch generation, and the delivery
99
+ adapter that renders a verified proposal as a pull request. What is still not
100
+ implemented is the format-side half of tier 3: no format yet *receives* an edit
101
+ through `propose_edits()`. The machinery that produces and proves a proposal
102
+ exists; the contract it would hand the proposal to is declared only.
103
+
104
+ | tier | contract | state |
105
+ | --- | --- | --- |
106
+ | 1 | `declarations()` - what the project declares | implemented - `DagsterProject`, `DbtProject` |
107
+ | 2 | `+ fingerprint()` - what it looks like right now | implemented - both formats |
108
+ | 3 | `+ propose_edits()` - what may be written back | **declared only** - no format serves it |
109
+
110
+ Tier 3 is the point of the project and is deliberately the last thing standing.
111
+
112
+ ## Records
113
+
114
+ Design decisions live in `docs/adr/` - immutable once merged; to change one,
115
+ add a new record that supersedes it and link both directions. Each record
116
+ carries a `## Do not implement until` section, and its checkboxes are
117
+ load-bearing: the `adr preconditions` check refuses a citation of a record
118
+ whose boxes are open, so tick one only when the named observable has been
119
+ observed.
120
+
121
+ The four records under `docs/adr/` were reworded once, on 2026-11-11, for
122
+ publication: passages that pointed at private history were cut or rewritten,
123
+ characters outside ASCII were replaced, and no status, decision or constraint
124
+ changed. Each record says so in a dated note at its head, and the originals
125
+ stand in the private repository's history.
126
+
127
+ A bare `ADR-NNNN` in this repository names a record in **this** `docs/adr/`.
128
+ A record in another repository's corpus is always cited with its repository
129
+ named.
130
+
131
+ ## Layout
132
+
133
+ ```text
134
+ src/crosslink/
135
+ __init__.py the package surface - what `import crosslink` exports
136
+ model.py the neutral project model
137
+ protocol.py the tiered seam - tier 3 is declared here
138
+ context.py how a project is located and built
139
+ declarations.py declared keys, joins, semantics, sources
140
+ project.py reduction from an asset graph - DagsterProject
141
+ dbt.py the second format - DbtProject, tiers 1 and 2
142
+ conformance.py an importable contract for project formats
143
+ conformance_calibration.py formats built to fail that contract, shipped beside it
144
+ findings.py self-consistency findings, computed from one snapshot
145
+ delta.py the typed delta between two declaration snapshots
146
+ verify.py the oracle harness: sandbox apply, re-reduce, compare
147
+ generate.py bounded search against the oracle; the proposer is a callable
148
+ deliver.py a verified proposal rendered as a pull request, or as files
149
+ wire.py the versioned envelope and the fingerprint payload it carries
150
+ service.py the comparer: two envelopes in, a drift verdict out
151
+ serve.py the comparer as a process: framed fingerprints in, verdicts out
152
+ produce.py the producer as a process: a graph reduced, published, framed, posted
153
+ PROVENANCE.md what this shares with dagster-dex, and what each left out
154
+ tests/
155
+ docs/
156
+ adr/ the records
157
+ design/ what the subsystems look like today
158
+ ROADMAP.md what is built, what is decided, what is parked
159
+ ```
160
+
161
+ Derive the list rather than trusting it - `git ls-files src/crosslink docs` -
162
+ and read a module's own docstring for what it is; the glosses above are those
163
+ docstrings' first sentences, shortened.
164
+
165
+ The read side shares its origin with the public `dagster-dex`, and depends on
166
+ it nowhere - see `src/crosslink/PROVENANCE.md` for what is shared and how to
167
+ see it.
168
+
169
+ ## Releases
170
+
171
+ No release has been cut: no `v*` tag exists, and nothing is on PyPI under
172
+ this project's name. *Installing*, above, says what to do until one is.
173
+
174
+ A release is a signed `v*` tag, the upload of that tagged tree to PyPI as
175
+ `catincloud-crosslink`, and the GitHub release for the tag.
176
+ `.github/workflows/publish.yml` makes the upload and the GitHub release, from
177
+ the tag and from nothing else, only after all of these have passed in the same
178
+ run:
179
+
180
+ - `.github/workflows/release.yml`, which it calls, has verified the tag's SSH
181
+ signature against `.github/allowed_signers`, read the tag's name as exactly
182
+ `v` and the version `pyproject.toml` carries at the tagged commit, and run
183
+ the suite there;
184
+ - `.github/release/check-dist.py` has read the wheel and the sdist it is about
185
+ to upload: the distribution's name, its licence expression, no requirement
186
+ that names a URL, and the package's own `__version__` equal to the wheel's;
187
+ - the stranger-shaped projects in `.github/strangers/` have judged that wheel
188
+ from a fresh environment: each format built to fail the contract fails
189
+ exactly the arms its defect is for, and a correct one passes them all.
190
+
191
+ Each of those checks is also run on inputs built wrong on purpose, on every
192
+ pull request and before every release, and the run fails unless each one is
193
+ refused. Each uploaded file carries a PEP 740 attestation. After the upload
194
+ the same run reads each file's provenance back from the index, and a
195
+ provenance that names any publisher but that workflow, in this repository, in
196
+ its `pypi` environment, turns the run red and withholds the GitHub release.
197
+ The version in `pyproject.toml` at a commit no tag names is not a release.
198
+
199
+ A release installs as *Installing* says, by the distribution name and never
200
+ by the bare one. To judge a format of your own against the contract, install
201
+ the `conformance` extra:
202
+
203
+ ```bash
204
+ pip install "catincloud-crosslink[conformance]"
205
+ ```
206
+
207
+ It adds pytest, the one dependency of the contract the package ships as
208
+ `crosslink.conformance`; without it that module does not import.
209
+
210
+ A tag is checked from a clone at that tag, with the scripts the workflow runs:
211
+
212
+ ```bash
213
+ bash .github/release/verify-tag.sh <tag> .github/allowed_signers
214
+ bash .github/release/check-version.sh <tag>
215
+ ```
216
+
217
+ A bare `git verify-tag` is not the same check: it passes a signature made for
218
+ another tag and moved to this one. The first script's exit 0 shows that a key
219
+ `.github/allowed_signers` names signed a tag object carrying this tag's own
220
+ name. That file travels in the same tree as the tag it vouches for, so it says
221
+ nothing on its own about who holds the key.
222
+
223
+ The metadata says `Development Status :: 3 - Alpha`, and it means it: while
224
+ the major version is 0, a release may change what the contract decides.
225
+
226
+ ## Running the tests
227
+
228
+ ```bash
229
+ uv run --frozen --python 3.12 --extra test --extra service pytest -q
230
+ ```
231
+
232
+ That is the command CI's `tests` job runs, against the tracked `uv.lock`
233
+ (`.github/workflows/checks.yml`). The `service` extra pins
234
+ `catincloud-ration`, the distribution the public `catincloud-labs/ration`
235
+ uploads to PyPI and which imports as `ration`, to one exact version. It needs
236
+ no credential. Without the extra, `tests/test_serve.py` and
237
+ `tests/test_produce.py` fail to collect, which is a red rather than a skip on
238
+ purpose: a suite that cannot import the codec the comparer runs has not
239
+ exercised the comparer.
240
+
241
+ Where there is no project environment to freeze, the same suite runs with
242
+ versions named on the command line, which are not the lock's:
243
+
244
+ ```bash
245
+ uv run --no-project --python 3.12 --with-editable . --with pytest==8.4.1 \
246
+ --with 'catincloud-ration==<version>' \
247
+ python -m pytest tests -q
248
+ ```
249
+
250
+ `<version>` is the one `pyproject.toml`'s `service` extra names. Never a bare
251
+ `--with ration`, which takes PyPI's unrelated project of that name. This form
252
+ re-resolves everything else, so it bypasses the lock that `CONTRIBUTING.md`
253
+ calls mandatory: it is the recipe for a machine with no checkout to trust,
254
+ not a second way to run CI.
255
+
256
+ Nothing orchestrator-side is installed by either form, and that is the point: the package imports
257
+ no orchestrator at all. `from_asset_graph` is duck-typed, so the coupling is to a shape
258
+ rather than to a distribution. If a future change makes the suite need an orchestrator to
259
+ pass, that is a coupling worth noticing rather than absorbing.
260
+
261
+ ## Running the comparer
262
+
263
+ The long-lived half of the wire is `crosslink.serve`: a
264
+ process that holds the last accepted fingerprint envelope as its standing
265
+ objective and answers framed envelopes with drift verdicts, one JSON line per
266
+ request on stdout. It needs the `service` extra, because it decodes the frame
267
+ before the envelope and the frame codec lives in `ration`.
268
+
269
+ ```bash
270
+ uv run --frozen --extra service python -m crosslink.serve \
271
+ --sender example --baseline ./baseline.json --bind 127.0.0.1:8100
272
+ ```
273
+
274
+ `--sender` names each producer the process keeps a sequence ledger for (the
275
+ `POST` path is `/<sender>`); `--baseline` is where the accepted bytes are
276
+ kept so that a restart does not re-baseline, and its directory has to exist
277
+ and be writable or the process refuses to start; `--bind` defaults to
278
+ loopback. Where it runs, and behind what, is its deployment's to decide: the
279
+ module offers no TLS and no authentication, and its docstring says so.
280
+
281
+ ## Running the producer
282
+
283
+ The other half is `crosslink.produce`: one run reduces an asset
284
+ graph, publishes its payload digest to a topic in a `ration` store, frames
285
+ the envelope at the start of the epoch that publication returned, and posts
286
+ it to a comparer. It writes one JSON line and exits; the cadence belongs to
287
+ whoever deploys it.
288
+
289
+ The reduction can be watched with no store and no comparer. The suite's own
290
+ graph is four definitions and a carve (`tests/test_produce.py`), and
291
+ `--dry-run` reduces it and prints the line:
292
+
293
+ ```bash
294
+ PYTHONPATH=tests uv run --frozen --python 3.12 --extra test --extra service \
295
+ python -m crosslink.produce \
296
+ --load test_produce:GRAPH --carve test_produce:carve \
297
+ --name example \
298
+ --publish-topic example-fingerprint --publisher example-producer \
299
+ --post http://127.0.0.1:8100/example --dry-run
300
+ ```
301
+
302
+ `--load` names the graph and `--carve` a function of the reduced tree's own
303
+ that drops the definitions it does not want fingerprinted; both are module
304
+ paths passed as arguments, so the source names no module of the tree it
305
+ reduces. The line that comes back says `"event": "reduced"` and counts three
306
+ models; drop `--carve` and it counts four. `--declared`, `--semantic` and
307
+ `--sources` each name a directory of `*.yml` declarations, read by filename
308
+ stem.
309
+
310
+ A run without `--dry-run` needs three more things: the tree it reduces on
311
+ `PYTHONPATH`, `RATION_DSN` in the environment, and a Postgres driver
312
+ (`psycopg`) that neither this package nor `ration` declares as a dependency. Without the
313
+ driver a real run stops at the store with `ModuleNotFoundError`, after the
314
+ reduction. The suite does not prove that path: it injects
315
+ `ration.memory.MemoryStore`.
316
+
317
+ ## Naming
318
+
319
+ Three names, and they are not interchangeable:
320
+
321
+ - **`crosslink`** is the repository and the import name.
322
+ - **`catincloud-crosslink`** is the distribution name, the one to install.
323
+ - **`crosslink` on PyPI** is someone else's project. See *Installing*.
@@ -0,0 +1,23 @@
1
+ crosslink/PROVENANCE.md,sha256=CoSBo99e3hYYj5I2nGWThHLIKwBPq-enE1srcrzFfmY,4047
2
+ crosslink/__init__.py,sha256=fubQ2_GyTJrYtd91PzGLyzl8tXSN8epAF8inp_M4xY4,3599
3
+ crosslink/conformance.py,sha256=aCpEjpHOv5EjnIcklnS9BP2e170WaZGZ-MOjL6X_new,17539
4
+ crosslink/conformance_calibration.py,sha256=Ch3qRtuj9o1j8YUJ6ZBLRZoGH7bxK37joyJKghRZswY,9062
5
+ crosslink/context.py,sha256=xwUXj1cLm-InM2C6XPiFO9vrab6NTL8Eu9qB1NzxJso,2747
6
+ crosslink/dbt.py,sha256=ipEfDjA_Gf2iSpjfnVtWaXvc4EHBUozC2kvtXKXldPE,20886
7
+ crosslink/declarations.py,sha256=YrtlkVSZETiAlTw1RZKThP0BoFMF4eByYs2Qsb-MgyY,15209
8
+ crosslink/deliver.py,sha256=IxxtiuoaNJtR920D7SXthGIvMG6NA59j1Qtxs5tuShc,24774
9
+ crosslink/delta.py,sha256=8ToZDxPI69DgiaZaaHokoUqBWEHCg9B4g4m8agvTr4g,19132
10
+ crosslink/findings.py,sha256=fOmgkvi9P738cs7WZ-r4M4xMnd45O5AIwSAhAfo4UAo,11991
11
+ crosslink/generate.py,sha256=2TBtPwiZsEJGHZlhGHVZNBOIiSk6phmtsLlDkylOg-g,21832
12
+ crosslink/model.py,sha256=b0RoVY5IFz8XGu8xPOa2uXuiWhLapLUmmrcgJSznqFA,16684
13
+ crosslink/produce.py,sha256=a_eCN1ekKBFXOrNQaBaWwkHJuDaBpS_fiPMYBJaLwcA,17785
14
+ crosslink/project.py,sha256=eJBuB67NpZHzU9kn9q44xsfDRQk2r_sNTqSmeqnAhvA,11365
15
+ crosslink/protocol.py,sha256=-8h-AlK9Sn7LXZTSH6Lqr462mD1vzvURYedFBVahuT4,5256
16
+ crosslink/serve.py,sha256=L0uP_dlK-6xVfbZA3cFBxbuSsWziVjNjZakH7Zk50HU,19061
17
+ crosslink/service.py,sha256=_zobsJCwZojSxOoaR8iRpV0-qWVNFmN7EJZaEfVFIJ4,5068
18
+ crosslink/verify.py,sha256=Vo9k0N85LFybimHBPpimuxZfSVUqo1At9oF60lbZl94,7066
19
+ crosslink/wire.py,sha256=zTMJqMhMOWHurfBrBPjy3IshJ5l-6ZcF-0Jnqi0kUXg,13108
20
+ catincloud_crosslink-0.1.0.dist-info/METADATA,sha256=08mnhtCP8vmYjc537BI6el-TmiJ6GWe39ONmeSemCRg,14923
21
+ catincloud_crosslink-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
22
+ catincloud_crosslink-0.1.0.dist-info/licenses/LICENSE,sha256=4e_rXXLWa1HuFHY66K4ESUYb6KmW0ztAJyIbGvVqnt4,11341
23
+ catincloud_crosslink-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -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 David Anaya
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.
@@ -0,0 +1,74 @@
1
+ # Provenance
2
+
3
+ This package's read side and the public
4
+ [`dagster-dex`](https://github.com/catincloud-labs/dagster-dex) come from the
5
+ same code. Neither depends on the other: nothing here imports `dagster_dex`,
6
+ and `pyproject.toml` names no such requirement. This file says what the two
7
+ share and what each left out, so that a port in either direction is a diff
8
+ rather than archaeology.
9
+
10
+ ## What is shared, and how to see it
11
+
12
+ Besides `__init__.py`, five modules carry the same name in both packages:
13
+ `model.py`, `protocol.py`, `declarations.py`, `project.py` and
14
+ `conformance.py`. The comparison below is against `dagster-dex`'s first tag,
15
+ `v0.1.0`:
16
+
17
+ git clone https://github.com/catincloud-labs/dagster-dex
18
+ git -C dagster-dex checkout v0.1.0
19
+ git diff --no-index dagster-dex/src/dagster_dex/protocol.py src/crosslink/protocol.py
20
+
21
+ Run the last command once per module. Both sides have moved since, so the
22
+ diffs are not empty; what they show is the same docstrings and the same
23
+ names, edited apart.
24
+
25
+ | here | in `dagster-dex` at `v0.1.0` | what a diff shows |
26
+ | --- | --- | --- |
27
+ | `protocol.py` | `protocol.py` | the same three tiers, `ProjectSource`, `FingerprintedProject` and `EditableProject`, and the same `tier_of` |
28
+ | `model.py` | `model.py` | the same neutral model, from `ProjectModel` to `ProjectDeclarations`. This side added the shared predicates and `layered_fingerprint`; that side has `SemanticField`, which this one does not |
29
+ | `declarations.py` | `declarations.py` | the same three parsers: `parse_declarations`, `parse_semantics` and `parse_source_declarations` |
30
+ | `project.py` | `project.py` | `DagsterProject` and the two unexported protocols it reads a graph through |
31
+ | `conformance.py` | `conformance.py` | `ProjectSourceContract`, `FingerprintedProjectContract` and the fixture builders |
32
+ | `context.py` | `dex.py` | `ProjectContext`. There it sits inside the engine boundary module; here it stands alone, because it is not engine-specific |
33
+
34
+ ## What each left out
35
+
36
+ Not here, and in `dagster-dex`:
37
+
38
+ - **`dex.py`**, the mapping onto the dex engine's model (`to_transform_layer`,
39
+ `transform_layer_notes`, `to_project_definitions`), and
40
+ `tests/test_dex_bridge.py`, which tests it. Whether this package stays
41
+ interoperable with that engine is an open decision, and an unused mapping
42
+ acquires callers. Re-adding it is a bounded, one-file job.
43
+ - **`artifact.py`**, the transport that carries a reduced project as a file.
44
+
45
+ Here, and not in `dagster-dex`: the second format (`dbt.py`), the write path
46
+ (`findings.py`, `delta.py`, `verify.py`, `generate.py`, `deliver.py`), the
47
+ wire and its two processes (`wire.py`, `service.py`, `serve.py`,
48
+ `produce.py`), and the formats built to fail the contract
49
+ (`conformance_calibration.py`).
50
+
51
+ ## Why two packages rather than one dependency
52
+
53
+ The two are under different constraints, each readable in its own tree.
54
+ `dagster-dex` is a plugin for one engine: its `requires-python` is `>=3.10`,
55
+ and its `AGENTS.md` keeps the engine import to one module so that everything
56
+ else runs with the engine uninstalled. This package targets no engine, has a
57
+ 3.12 floor, takes `ration` for its two processes, and is built around
58
+ verifying a proposal against the reduction it claims to change (ADR-0003).
59
+
60
+ They also answer tier 3 differently. `dagster-dex`'s `main` reaches it with
61
+ `EditableDagsterProject`, whose edits land in hand-written declaration files
62
+ (its `AGENTS.md` says why those and not the models). Here no format serves
63
+ tier 3 yet, and a change is proposed against code (ADR-0002).
64
+
65
+ Sharing the read side as a dependency would mean arguing every change to it
66
+ against both sets of constraints. A port is still possible in either
67
+ direction, as a diff, and it is a decision each time rather than a sync.
68
+
69
+ ## Copyright
70
+
71
+ Both repositories are Apache-2.0, `Copyright 2026 David Anaya` (each one's
72
+ `LICENSE`), so text moves between them without friction. Whether the holder
73
+ should become a legal entity is an open question; it would touch the per-file
74
+ headers as well as `LICENSE`.