rad-ox-drift-verify 0.13.3__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 (42) hide show
  1. rad_ox_drift_verify-0.13.3/LICENSE +21 -0
  2. rad_ox_drift_verify-0.13.3/LICENSE-BINARY +87 -0
  3. rad_ox_drift_verify-0.13.3/PKG-INFO +169 -0
  4. rad_ox_drift_verify-0.13.3/README.md +143 -0
  5. rad_ox_drift_verify-0.13.3/pyproject.toml +74 -0
  6. rad_ox_drift_verify-0.13.3/setup.cfg +4 -0
  7. rad_ox_drift_verify-0.13.3/verifier/drift_build_graph.py +375 -0
  8. rad_ox_drift_verify-0.13.3/verifier/drift_cli_entry.py +14 -0
  9. rad_ox_drift_verify-0.13.3/verifier/drift_demo.py +331 -0
  10. rad_ox_drift_verify-0.13.3/verifier/drift_junit_ratchet.py +358 -0
  11. rad_ox_drift_verify-0.13.3/verifier/drift_sarif.py +395 -0
  12. rad_ox_drift_verify-0.13.3/verifier/drift_shadow_junit.py +548 -0
  13. rad_ox_drift_verify-0.13.3/verifier/drift_verify.py +587 -0
  14. rad_ox_drift_verify-0.13.3/verifier/drift_verify_03.py +360 -0
  15. rad_ox_drift_verify-0.13.3/verifier/drift_verify_base.py +616 -0
  16. rad_ox_drift_verify-0.13.3/verifier/drift_verify_cert.py +88 -0
  17. rad_ox_drift_verify-0.13.3/verifier/drift_verify_dist.py +367 -0
  18. rad_ox_drift_verify-0.13.3/verifier/drift_verify_eval.py +490 -0
  19. rad_ox_drift_verify-0.13.3/verifier/drift_verify_events.py +289 -0
  20. rad_ox_drift_verify-0.13.3/verifier/drift_verify_formal.py +224 -0
  21. rad_ox_drift_verify-0.13.3/verifier/drift_verify_grant.py +255 -0
  22. rad_ox_drift_verify-0.13.3/verifier/drift_verify_mig.py +82 -0
  23. rad_ox_drift_verify-0.13.3/verifier/drift_verify_mutation.py +87 -0
  24. rad_ox_drift_verify-0.13.3/verifier/drift_verify_obs.py +380 -0
  25. rad_ox_drift_verify-0.13.3/verifier/drift_verify_pact.py +336 -0
  26. rad_ox_drift_verify-0.13.3/verifier/drift_verify_pact_cells.py +602 -0
  27. rad_ox_drift_verify-0.13.3/verifier/drift_verify_pact_io.py +152 -0
  28. rad_ox_drift_verify-0.13.3/verifier/drift_verify_parity.py +242 -0
  29. rad_ox_drift_verify-0.13.3/verifier/drift_verify_perf.py +290 -0
  30. rad_ox_drift_verify-0.13.3/verifier/drift_verify_ra.py +243 -0
  31. rad_ox_drift_verify-0.13.3/verifier/drift_verify_ra_io.py +157 -0
  32. rad_ox_drift_verify-0.13.3/verifier/drift_verify_sec.py +210 -0
  33. rad_ox_drift_verify-0.13.3/verifier/drift_verify_selftest.py +159 -0
  34. rad_ox_drift_verify-0.13.3/verifier/drift_verify_sim.py +211 -0
  35. rad_ox_drift_verify-0.13.3/verifier/drift_verify_ssh.py +285 -0
  36. rad_ox_drift_verify-0.13.3/verifier/drift_verify_subject.py +417 -0
  37. rad_ox_drift_verify-0.13.3/verifier/proves_bindings.py +22 -0
  38. rad_ox_drift_verify-0.13.3/verifier/rad_ox_drift_verify.egg-info/PKG-INFO +169 -0
  39. rad_ox_drift_verify-0.13.3/verifier/rad_ox_drift_verify.egg-info/SOURCES.txt +40 -0
  40. rad_ox_drift_verify-0.13.3/verifier/rad_ox_drift_verify.egg-info/dependency_links.txt +1 -0
  41. rad_ox_drift_verify-0.13.3/verifier/rad_ox_drift_verify.egg-info/entry_points.txt +5 -0
  42. rad_ox_drift_verify-0.13.3/verifier/rad_ox_drift_verify.egg-info/top_level.txt +31 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lukasz Radkiewicz (rad-ox)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,87 @@
1
+ # DRIFT Dual-Surface & Binary Edition License Terms
2
+
3
+ DRIFT is distributed under a dual-surface license model:
4
+
5
+ 1. **Open Integration Surface (MIT License — see [`LICENSE`](LICENSE))** — All
6
+ test bridges (`bridges/`), the independent reference proof
7
+ verifier and CI companions (`verifier/`), editor and Git hooks (`hooks/`), local review and flow UIs (`ui/`, `map-ui/`), release verification helpers and trust roots
8
+ (`release/`, `release-component.sh`, `configure-pi.py`),
9
+ JSON schemas (`schemas/`), starter profiles (`profiles/`), agent skill definitions (`skill/drift/`, `skills/drift/`), example areas (`example/`), standalone AI-agent benchmark fixtures (`benchmarks/`),
10
+ CI and governance templates (`templates/`), Codespaces container
11
+ definitions (`.devcontainer/`), GitHub Action and
12
+ Python packaging manifests (`action.yml`, `pyproject.toml`), live showcase
13
+ wrappers (`drift-demo`), installers (`install.sh`, `install.ps1`,
14
+ `install.cmd`, `uninstall.cmd`), visual assets (`assets/`), and
15
+ documentation (`*.md`, `docs/`) are licensed under the **MIT License** in
16
+ [`LICENSE`](LICENSE). You may freely copy, vendor, modify, and distribute
17
+ them inside personal, open-source, or commercial repositories.
18
+ 2. **DRIFT Free CLI Engine (`drift` / `drift.exe`)** — The precompiled `drift`
19
+ command-line executable is proprietary software provided under the **DRIFT
20
+ Free Edition License** in Part II below.
21
+ 3. **DRIFT Pro & Enterprise Editions (`drift-pro`, `drift-enterprise`)** — The
22
+ `drift-pro` (`drift-pro.exe`) and `drift-enterprise` (`drift-enterprise.exe`)
23
+ executables and the companion Pro, Enterprise, and `drift-recall` agent
24
+ skills are proprietary commercial software governed by Part III below.
25
+
26
+ ---
27
+
28
+ ## Part I — Open Integration Surface (MIT License)
29
+
30
+ All Open Integration Surface files listed above are governed by the standard
31
+ SPDX **MIT License** in [`LICENSE`](LICENSE) (`Copyright (c) 2026 Lukasz Radkiewicz (rad-ox)`).
32
+
33
+ ---
34
+
35
+ ## Part II — DRIFT Free Edition License (CLI Binary)
36
+
37
+ Copyright (c) 2026 Lukasz Radkiewicz (rad-ox). All rights reserved.
38
+
39
+ 1. **Grant of License.** Subject to the terms below, the copyright holder
40
+ grants you a perpetual, worldwide, non-exclusive, royalty-free license to
41
+ download, install, and execute the unmodified `drift` Free Edition binary for
42
+ personal, academic, internal business, and commercial software development,
43
+ including execution inside automated Continuous Integration / Continuous
44
+ Delivery (CI/CD) pipelines.
45
+ 2. **Redistribution.** You may mirror or redistribute the official, unmodified
46
+ release archives alongside their `SHA256SUMS` digests within your
47
+ organization or development environments, provided that [`LICENSE`](LICENSE)
48
+ and this `LICENSE-BINARY` file are retained intact.
49
+ 3. **Restrictions.** You may not decompile, disassemble, reverse-engineer,
50
+ binary-patch, or modify the `drift` CLI executable, nor circumvent edition
51
+ boundaries (`DRIFT Pro` / `DRIFT Enterprise`).
52
+ 4. **Disclaimer of Warranty.** THE DRIFT CLI BINARY IS PROVIDED "AS IS",
53
+ WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
54
+
55
+ ---
56
+
57
+ ## Part III — DRIFT Pro & Enterprise Commercial Editions
58
+
59
+ Copyright (c) 2026 Lukasz Radkiewicz (rad-ox). All rights reserved.
60
+
61
+ 1. **Commercial License Required.** The `drift-pro` (`drift-pro.exe`) and
62
+ `drift-enterprise` (`drift-enterprise.exe`) executables, together with the
63
+ `drift-pro`, `drift-enterprise`, and `drift-recall` agent skill packages,
64
+ are proprietary commercial software. Copying, installing, or executing them
65
+ in local development or CI/CD environments requires an active DRIFT Pro or
66
+ DRIFT Enterprise commercial license, an Open-Source Maintainer Grant under
67
+ Section 2 below, or an authorized evaluation agreement with the copyright
68
+ holder (`rad-ox@users.noreply.github.com`).
69
+ 2. **Open-Source Maintainer Grant (Complimentary Upon Request).** Maintainers
70
+ and owners of public open-source repositories distributed under an
71
+ OSI-approved open-source license may request a complimentary,
72
+ non-transferable **DRIFT Enterprise** license for their open-source
73
+ repositories by contacting `rad-ox@users.noreply.github.com` with the
74
+ repository URL. Complimentary grants are issued at the copyright holder's
75
+ discretion, are restricted to the named public open-source repository (not
76
+ private repositories or internal commercial workloads), prohibit committing
77
+ or publicly mirroring the `drift-pro` / `drift-enterprise` binaries or
78
+ exposing them as downloadable CI artifacts, and are provided "AS IS" without
79
+ commercial SLA obligations. The grant terminates automatically if the
80
+ covered repository becomes proprietary or closed-source.
81
+ 3. **Open Surface Unchanged.** Even inside a DRIFT Pro or DRIFT Enterprise
82
+ distribution archive, all Open Integration Surface files listed above remain
83
+ licensed under the **MIT License** in [`LICENSE`](LICENSE).
84
+ 4. **Restrictions & Disclaimer.** The restrictions on reverse-engineering,
85
+ modification, and tier circumvention in Part II, Section 3, and the
86
+ warranty disclaimer in Part II, Section 4, apply equally to the DRIFT Pro
87
+ and DRIFT Enterprise executables.
@@ -0,0 +1,169 @@
1
+ Metadata-Version: 2.2
2
+ Name: rad-ox-drift-verify
3
+ Version: 0.13.3
4
+ Summary: Zero-dependency MIT proof verifier, SARIF reporter, JUnit test-erosion ratchet, and live false-green showcase for DRIFT 0.3 contracts.
5
+ Author-email: Lukasz Radkiewicz <rad-ox@users.noreply.github.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/rad-ox/drift
8
+ Project-URL: Repository, https://github.com/rad-ox/drift
9
+ Project-URL: Documentation, https://github.com/rad-ox/drift/blob/main/GUIDE.md
10
+ Project-URL: Issues, https://github.com/rad-ox/drift/issues
11
+ Keywords: ai-agents,coding-agents,test-integrity,release-gate,sarif,verification
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: Software Development :: Quality Assurance
21
+ Classifier: Topic :: Software Development :: Testing
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ License-File: LICENSE-BINARY
26
+
27
+ <p align="center">
28
+ <img src="assets/banner.svg" alt="DRIFT — Specification-Driven Proof Gate" width="100%" />
29
+ </p>
30
+
31
+ <!-- drift:hero:start -->
32
+ > **DRIFT is a release gate that binds test evidence to owner-approved TOML behaviour contracts by digest.**
33
+ > **Use it** when AI agents or fast-moving teams write code and tests together and CI must fail if a test drops, weakens, skips, or silently edits an expected behaviour.
34
+ > **Skip it** for throwaway prototypes or when passing unit tests are enough: DRIFT is not a test runner, and it only guards behaviour you declare.
35
+ <!-- drift:hero:end -->
36
+
37
+ <p align="center">
38
+ <a href="https://github.com/rad-ox/drift/pull/1">Live Blocked PR #1</a> ·
39
+ <a href="#try-in-60-seconds-zero-binary-install">60s Demo &amp; Codespaces</a> ·
40
+ <a href="#add-to-github-actions-4-lines-zero-binary-default">GitHub Action</a> ·
41
+ <a href="#trust-without-taking-our-word-for-it">Verifier-Only CI</a> ·
42
+ <a href="docs/bridges.md">12 Bridges</a> ·
43
+ <a href="docs/errors.md">Error Catalog</a> ·
44
+ <a href="EDITIONS.md">Editions</a>
45
+ </p>
46
+
47
+ ---
48
+
49
+ ## Caught in the Act: Test Runner vs. DRIFT Gate ([Inspect Live PR #1 →](https://github.com/rad-ox/drift/pull/1))
50
+
51
+ When an agent breaks `GET /items/1` and "fixes" CI by weakening or deleting the test, ordinary runners still exit `0`:
52
+
53
+ | Agent Shortcut | Standard Runner (`pytest` / `node --test` / `go test` / `mvn test`) | `drift gate` & MIT `verifier/drift_verify.py` |
54
+ |---|---|---|
55
+ | **Drops `name` assertion** | **PASS (False Green)** — status `200` passes; runner exits `0`. | **FAIL** — `d.check` throws `no check for then.name`; incomplete reads stay `bound`, never `verified`. |
56
+ | **Edits `then.status = 500` in `.toml`** | **PASS (False Green)** — test reads `500` and passes. | **FAIL ([`DR-E601`](docs/errors.md#dr-e601))** — `dr2b:` digest changes; stale owner seal blocks the gate. |
57
+ | **Deletes the failing test** | **PASS (False Green)** — remaining tests pass. | **FAIL (`gone: 1`, when coverage drops)** — `.meta.json` inventory discards orphaned events and blocks the unproved case. |
58
+
59
+ <details>
60
+ <summary>Anti-cheat guards, real-world showcases (FastAPI, Zod, serde_json, {fmt}, Spring) & proof states</summary>
61
+
62
+ - **Empty / tautology callbacks** (`(v) => {}`, `() => true`, `(v) => true`, `lambda v: None`, `lambda v: True`) fail immediately with `AssertionError`; self-stubbed `d.buildOutput(...)` checks stay `bound` and surface `oracle.self_stubbed`.
63
+ - **Strict proof progression:** `missing` → `red` → `bound` → `verified` → `killed` *(Enterprise mutants)*. Full threat model & 23-scenario live benchmark: **[GUARANTEES.md](GUARANTEES.md)** · **[Red-Team Benchmark](docs/redteam-benchmark.md)**.
64
+ - **Live real-world showcases:** **[FastAPI](https://github.com/rad-ox/drift-showcase-fastapi)** · **[Zod](https://github.com/rad-ox/drift-showcase-zod)** · **[serde_json](https://github.com/rad-ox/drift-showcase-serde-json)** · **[{fmt}](https://github.com/rad-ox/drift-showcase-fmt)** · **[Spring Petclinic](https://github.com/rad-ox/drift-showcase-spring-petclinic-rest)** · **[Benchmark Suite](https://github.com/rad-ox/drift-realworld)**.
65
+ </details>
66
+
67
+ ---
68
+
69
+ ## Try in 60 Seconds (Zero Binary Install)
70
+
71
+ Reproduce all 3 false-green cheats and the verified control using only **Python 3.11+ standard library** (or launch `.devcontainer/` in **[GitHub Codespaces](https://codespaces.new/rad-ox/drift)**):
72
+
73
+ ```bash
74
+ git clone --depth=1 https://github.com/rad-ox/drift.git && cd drift
75
+ ./drift-demo # Runs 3 false-green cheats vs. MIT verifier in <2s
76
+ python3 benchmarks/false-green-evals/run_eval.py # Standalone AI-agent eval fixtures (zero DRIFT dep)
77
+ ```
78
+
79
+ ---
80
+
81
+ ## Add to GitHub Actions (4 Lines, Zero-Binary Default)
82
+
83
+ `uses: rad-ox/drift@main` defaults to **`mode: verifier`** (100% inspectable MIT Python stdlib `verifier/drift_verify.py`, zero closed binary in CI), writes a Markdown verdict table to `$GITHUB_STEP_SUMMARY`, and optionally emits **SARIF 2.1.0** (`verifier/drift_sarif.py`) or runs a **Zero-TOML JUnit Ratchet** (`verifier/drift_junit_ratchet.py`) before you write a single `.toml`:
84
+
85
+ ```yaml
86
+ - uses: rad-ox/drift@main
87
+ with:
88
+ contracts: .drift/contracts
89
+ events: .drift-work/events
90
+ sarif-file: drift.sarif # Optional: inline PR annotations via Code Scanning
91
+ junit-base: reports/base.xml # Optional: fail if tests vanish or turn skipped (no TOML needed)
92
+ junit-head: reports/head.xml
93
+ ```
94
+
95
+ ---
96
+
97
+ ## Trust Without Taking Our Word For It
98
+
99
+ - **Verifier-Only CI (MIT) + Native V CLI:** The `drift` CLI engine is a fast static compiled V binary (`0` runtime dependencies, CLI release `0.13.3`), while **[`verifier/drift_verify.py`](verifier/drift_verify.py)** (100% Python 3.11+ stdlib, **MIT License**, runnable via `uvx --from git+https://github.com/rad-ox/drift drift-verify`) independently recomputes RFC 8785 `dr2b:`/`dr2a:`/`dr1:` digests and enforces fail-closed gate verdicts offline without invoking `drift`.
100
+ - **Self-Hosted, Fuzz-Tested & Cryptographically Signed:** DRIFT is built under its own gate (**343 self-hosted contracts**), verified by differential CLI↔Python fuzzers (`verifier/json_diff_fuzz.py`, `verifier/verdict_diff_fuzz.py`) and mechanized Lean 4 semantics, and every release archive (`drift-0.13.3-linux-x64.tar.gz`, macOS, Windows) ships with `SHA256SUMS`, OpenSSH `RELEASE_SIGNERS`, **SLSA v1.0** provenance, **Sigstore Cosign** bundles, and **TUF** metadata.
101
+ - **Honest trust boundaries:** Seals detect edits; authenticating *who* approved belongs to Git `CODEOWNERS` on `.drift/**` + signed commits (`--ssh-sign` / `--trust-root`).
102
+
103
+ ---
104
+
105
+ ## How It Works & Quick Start
106
+
107
+ Declare expected behaviour once in schema `0.3` `.toml`, seal with `drift approve` (or the local **`drift-ask-ui`** Observatory Deck), and bind tests:
108
+
109
+ ```toml
110
+ drift = "0.3"
111
+ id = "item-get"
112
+ intent = "Return catalog item 1 or 404 when absent."
113
+
114
+ [use]
115
+ profile = "http-json@1"
116
+
117
+ [scope]
118
+ surface = "GET /items/{id}"
119
+ writes = []
120
+ reads = ["items"]
121
+ indirect = "none"
122
+
123
+ [cases.found]
124
+ at = ["http"]
125
+ when.request = "GET /items/1"
126
+ then.status = 200
127
+ then.name = "lamp"
128
+ ```
129
+
130
+ ```bash
131
+ ./install.sh # Install verified CLI, bridges & agent skills
132
+ drift fmt .drift/contracts/item-get.toml # 1. Canonical TOML layout
133
+ drift check .drift # 2. Static validation
134
+ drift approve .drift/contracts/item-get.toml --by alice # 3. Human owner seal (dr2b / dr2a)
135
+ drift run --gate -- pytest # 4. Run tests & fail-closed gate
136
+ ```
137
+
138
+ ### Bootstrap a New Project Area
139
+
140
+ ```bash
141
+ drift init alice .
142
+ drift approve .drift/config.toml --by alice
143
+ drift new .drift/profiles/http-json@1.toml --from http-json@1
144
+ drift new .drift/contracts/health-check.toml --profile http-json@1 --intent "Report service readiness."
145
+ ```
146
+
147
+ Evaluate any existing repository with **zero committed files** via Shadow Mode (`drift init alice /path/to/repo --state-dir ~/.drift-shadows/svc`) — see **[Brownfield & Shadow Mode](docs/adopt/existing-repo.md)** and **[AI Agents, Hooks & `drift-ask-ui`](docs/adopt/ai-agents.md)**.
148
+
149
+ ---
150
+
151
+ ## Polyglot Test Bridges (12 Bridges, Zero Lock-In)
152
+
153
+ | Runtimes | CI Verification Tier | Artifacts & Guide |
154
+ |---|---|---|
155
+ | **Java 17–25 (JUnit 5), JS/TS, Python 3** | **Public CI E2E** (live HTTP + CLI/verifier parity) | `drift-junit`, `drift.mjs`, `drift.py` · [Primary](docs/bridges.md#primary-bridges) |
156
+ | **Go 1.22+, Rust, C++20, C#/.NET, PHP 8.2+, COBOL** | **Public CI Smoke, `go test` & `cargo test`** | `bridges/go`, `bridges/rust`, `drift_cpp.hpp`, `Drift.cs`, `Drift.php`, `drift_cobol.py` · [Bridges](docs/bridges.md) |
157
+ | **V, Scala 2.12–3.9, JUnit 4, Godot 4** | **Shared JVM / Experimental** | `drift_v`, `drift-junit`, `DriftJUnit4.java`, `drift.gd` · [Matrix](docs/bridges.md#bridge-matrix) |
158
+
159
+ <details>
160
+ <summary>Guides, Advanced & Regulated Workflows, Editions & Repository Surface</summary>
161
+
162
+ - **Core Guides:** **[GUIDE.md](GUIDE.md)** · **[INSTALL.md](INSTALL.md)** · **[CLI Reference](docs/cli.md)** · **[Editors & `drift lsp`](docs/editors.md)** · **[CI Governance](docs/ci-governance.md)** · **[Error Catalog (`DR-E*`)](docs/errors.md)** · **[Incremental & Waves](docs/workflows/incremental-and-waves.md)** *(IT: [Guida](GUIDE.it.md) · [Installa](INSTALL.it.md))*
163
+ - **Specialized Workflows:** **[Formal & Regulated](docs/workflows/formal-and-regulated.md)** · **[Legacy Cutover](docs/workflows/legacy-cutover.md)** · **[Real-Time & Simulation](docs/workflows/realtime-and-simulation.md)** · **[UI Sequences](docs/workflows/ui-sequences.md)** · **[Multi-Repo Governance](docs/workflows/multi-repo-governance.md)**
164
+ - **Editions ([EDITIONS.md](EDITIONS.md)):** **Free** (core lifecycle, Shadow Mode, `drift run --gate`, `drift lsp`, `drift-ask-ui`, `drift-map-ui`, all 12 bridges, MIT verifier) · **Pro** (`select`, `gate --base`, `impact`, `recall`, `plan`, `merge`, `pact`, OpenAPI/AsyncAPI scaffolding) · **Enterprise** (`mutants`, `sweep --flow`, `gate --attest`, `stats`; *complimentary grant for public OSI open-source repos*).
165
+ - **Dual-Surface License ([LICENSE](LICENSE) · [LICENSE-BINARY](LICENSE-BINARY)):** Open surface (`bridges/`, `verifier/`, `schemas/`, `profiles/`, `hooks/`, `ui/`, `map-ui/`, `release/`, `skill/drift/`, `skills/drift/`, `example/`, `benchmarks/`, `templates/`, `.devcontainer/`, `assets/`, `action.yml`, `pyproject.toml`, `drift-demo`, installers, docs) is **MIT**; CLI binaries follow [`LICENSE-BINARY`](LICENSE-BINARY). **[SECURITY.md](SECURITY.md)** · **[CONTRIBUTING.md](CONTRIBUTING.md)** · **[SUPPORT.md](SUPPORT.md)** · **[CHANGELOG.md](CHANGELOG.md)**
166
+ </details>
167
+
168
+
169
+
@@ -0,0 +1,143 @@
1
+ <p align="center">
2
+ <img src="assets/banner.svg" alt="DRIFT — Specification-Driven Proof Gate" width="100%" />
3
+ </p>
4
+
5
+ <!-- drift:hero:start -->
6
+ > **DRIFT is a release gate that binds test evidence to owner-approved TOML behaviour contracts by digest.**
7
+ > **Use it** when AI agents or fast-moving teams write code and tests together and CI must fail if a test drops, weakens, skips, or silently edits an expected behaviour.
8
+ > **Skip it** for throwaway prototypes or when passing unit tests are enough: DRIFT is not a test runner, and it only guards behaviour you declare.
9
+ <!-- drift:hero:end -->
10
+
11
+ <p align="center">
12
+ <a href="https://github.com/rad-ox/drift/pull/1">Live Blocked PR #1</a> ·
13
+ <a href="#try-in-60-seconds-zero-binary-install">60s Demo &amp; Codespaces</a> ·
14
+ <a href="#add-to-github-actions-4-lines-zero-binary-default">GitHub Action</a> ·
15
+ <a href="#trust-without-taking-our-word-for-it">Verifier-Only CI</a> ·
16
+ <a href="docs/bridges.md">12 Bridges</a> ·
17
+ <a href="docs/errors.md">Error Catalog</a> ·
18
+ <a href="EDITIONS.md">Editions</a>
19
+ </p>
20
+
21
+ ---
22
+
23
+ ## Caught in the Act: Test Runner vs. DRIFT Gate ([Inspect Live PR #1 →](https://github.com/rad-ox/drift/pull/1))
24
+
25
+ When an agent breaks `GET /items/1` and "fixes" CI by weakening or deleting the test, ordinary runners still exit `0`:
26
+
27
+ | Agent Shortcut | Standard Runner (`pytest` / `node --test` / `go test` / `mvn test`) | `drift gate` & MIT `verifier/drift_verify.py` |
28
+ |---|---|---|
29
+ | **Drops `name` assertion** | **PASS (False Green)** — status `200` passes; runner exits `0`. | **FAIL** — `d.check` throws `no check for then.name`; incomplete reads stay `bound`, never `verified`. |
30
+ | **Edits `then.status = 500` in `.toml`** | **PASS (False Green)** — test reads `500` and passes. | **FAIL ([`DR-E601`](docs/errors.md#dr-e601))** — `dr2b:` digest changes; stale owner seal blocks the gate. |
31
+ | **Deletes the failing test** | **PASS (False Green)** — remaining tests pass. | **FAIL (`gone: 1`, when coverage drops)** — `.meta.json` inventory discards orphaned events and blocks the unproved case. |
32
+
33
+ <details>
34
+ <summary>Anti-cheat guards, real-world showcases (FastAPI, Zod, serde_json, {fmt}, Spring) & proof states</summary>
35
+
36
+ - **Empty / tautology callbacks** (`(v) => {}`, `() => true`, `(v) => true`, `lambda v: None`, `lambda v: True`) fail immediately with `AssertionError`; self-stubbed `d.buildOutput(...)` checks stay `bound` and surface `oracle.self_stubbed`.
37
+ - **Strict proof progression:** `missing` → `red` → `bound` → `verified` → `killed` *(Enterprise mutants)*. Full threat model & 23-scenario live benchmark: **[GUARANTEES.md](GUARANTEES.md)** · **[Red-Team Benchmark](docs/redteam-benchmark.md)**.
38
+ - **Live real-world showcases:** **[FastAPI](https://github.com/rad-ox/drift-showcase-fastapi)** · **[Zod](https://github.com/rad-ox/drift-showcase-zod)** · **[serde_json](https://github.com/rad-ox/drift-showcase-serde-json)** · **[{fmt}](https://github.com/rad-ox/drift-showcase-fmt)** · **[Spring Petclinic](https://github.com/rad-ox/drift-showcase-spring-petclinic-rest)** · **[Benchmark Suite](https://github.com/rad-ox/drift-realworld)**.
39
+ </details>
40
+
41
+ ---
42
+
43
+ ## Try in 60 Seconds (Zero Binary Install)
44
+
45
+ Reproduce all 3 false-green cheats and the verified control using only **Python 3.11+ standard library** (or launch `.devcontainer/` in **[GitHub Codespaces](https://codespaces.new/rad-ox/drift)**):
46
+
47
+ ```bash
48
+ git clone --depth=1 https://github.com/rad-ox/drift.git && cd drift
49
+ ./drift-demo # Runs 3 false-green cheats vs. MIT verifier in <2s
50
+ python3 benchmarks/false-green-evals/run_eval.py # Standalone AI-agent eval fixtures (zero DRIFT dep)
51
+ ```
52
+
53
+ ---
54
+
55
+ ## Add to GitHub Actions (4 Lines, Zero-Binary Default)
56
+
57
+ `uses: rad-ox/drift@main` defaults to **`mode: verifier`** (100% inspectable MIT Python stdlib `verifier/drift_verify.py`, zero closed binary in CI), writes a Markdown verdict table to `$GITHUB_STEP_SUMMARY`, and optionally emits **SARIF 2.1.0** (`verifier/drift_sarif.py`) or runs a **Zero-TOML JUnit Ratchet** (`verifier/drift_junit_ratchet.py`) before you write a single `.toml`:
58
+
59
+ ```yaml
60
+ - uses: rad-ox/drift@main
61
+ with:
62
+ contracts: .drift/contracts
63
+ events: .drift-work/events
64
+ sarif-file: drift.sarif # Optional: inline PR annotations via Code Scanning
65
+ junit-base: reports/base.xml # Optional: fail if tests vanish or turn skipped (no TOML needed)
66
+ junit-head: reports/head.xml
67
+ ```
68
+
69
+ ---
70
+
71
+ ## Trust Without Taking Our Word For It
72
+
73
+ - **Verifier-Only CI (MIT) + Native V CLI:** The `drift` CLI engine is a fast static compiled V binary (`0` runtime dependencies, CLI release `0.13.3`), while **[`verifier/drift_verify.py`](verifier/drift_verify.py)** (100% Python 3.11+ stdlib, **MIT License**, runnable via `uvx --from git+https://github.com/rad-ox/drift drift-verify`) independently recomputes RFC 8785 `dr2b:`/`dr2a:`/`dr1:` digests and enforces fail-closed gate verdicts offline without invoking `drift`.
74
+ - **Self-Hosted, Fuzz-Tested & Cryptographically Signed:** DRIFT is built under its own gate (**343 self-hosted contracts**), verified by differential CLI↔Python fuzzers (`verifier/json_diff_fuzz.py`, `verifier/verdict_diff_fuzz.py`) and mechanized Lean 4 semantics, and every release archive (`drift-0.13.3-linux-x64.tar.gz`, macOS, Windows) ships with `SHA256SUMS`, OpenSSH `RELEASE_SIGNERS`, **SLSA v1.0** provenance, **Sigstore Cosign** bundles, and **TUF** metadata.
75
+ - **Honest trust boundaries:** Seals detect edits; authenticating *who* approved belongs to Git `CODEOWNERS` on `.drift/**` + signed commits (`--ssh-sign` / `--trust-root`).
76
+
77
+ ---
78
+
79
+ ## How It Works & Quick Start
80
+
81
+ Declare expected behaviour once in schema `0.3` `.toml`, seal with `drift approve` (or the local **`drift-ask-ui`** Observatory Deck), and bind tests:
82
+
83
+ ```toml
84
+ drift = "0.3"
85
+ id = "item-get"
86
+ intent = "Return catalog item 1 or 404 when absent."
87
+
88
+ [use]
89
+ profile = "http-json@1"
90
+
91
+ [scope]
92
+ surface = "GET /items/{id}"
93
+ writes = []
94
+ reads = ["items"]
95
+ indirect = "none"
96
+
97
+ [cases.found]
98
+ at = ["http"]
99
+ when.request = "GET /items/1"
100
+ then.status = 200
101
+ then.name = "lamp"
102
+ ```
103
+
104
+ ```bash
105
+ ./install.sh # Install verified CLI, bridges & agent skills
106
+ drift fmt .drift/contracts/item-get.toml # 1. Canonical TOML layout
107
+ drift check .drift # 2. Static validation
108
+ drift approve .drift/contracts/item-get.toml --by alice # 3. Human owner seal (dr2b / dr2a)
109
+ drift run --gate -- pytest # 4. Run tests & fail-closed gate
110
+ ```
111
+
112
+ ### Bootstrap a New Project Area
113
+
114
+ ```bash
115
+ drift init alice .
116
+ drift approve .drift/config.toml --by alice
117
+ drift new .drift/profiles/http-json@1.toml --from http-json@1
118
+ drift new .drift/contracts/health-check.toml --profile http-json@1 --intent "Report service readiness."
119
+ ```
120
+
121
+ Evaluate any existing repository with **zero committed files** via Shadow Mode (`drift init alice /path/to/repo --state-dir ~/.drift-shadows/svc`) — see **[Brownfield & Shadow Mode](docs/adopt/existing-repo.md)** and **[AI Agents, Hooks & `drift-ask-ui`](docs/adopt/ai-agents.md)**.
122
+
123
+ ---
124
+
125
+ ## Polyglot Test Bridges (12 Bridges, Zero Lock-In)
126
+
127
+ | Runtimes | CI Verification Tier | Artifacts & Guide |
128
+ |---|---|---|
129
+ | **Java 17–25 (JUnit 5), JS/TS, Python 3** | **Public CI E2E** (live HTTP + CLI/verifier parity) | `drift-junit`, `drift.mjs`, `drift.py` · [Primary](docs/bridges.md#primary-bridges) |
130
+ | **Go 1.22+, Rust, C++20, C#/.NET, PHP 8.2+, COBOL** | **Public CI Smoke, `go test` & `cargo test`** | `bridges/go`, `bridges/rust`, `drift_cpp.hpp`, `Drift.cs`, `Drift.php`, `drift_cobol.py` · [Bridges](docs/bridges.md) |
131
+ | **V, Scala 2.12–3.9, JUnit 4, Godot 4** | **Shared JVM / Experimental** | `drift_v`, `drift-junit`, `DriftJUnit4.java`, `drift.gd` · [Matrix](docs/bridges.md#bridge-matrix) |
132
+
133
+ <details>
134
+ <summary>Guides, Advanced & Regulated Workflows, Editions & Repository Surface</summary>
135
+
136
+ - **Core Guides:** **[GUIDE.md](GUIDE.md)** · **[INSTALL.md](INSTALL.md)** · **[CLI Reference](docs/cli.md)** · **[Editors & `drift lsp`](docs/editors.md)** · **[CI Governance](docs/ci-governance.md)** · **[Error Catalog (`DR-E*`)](docs/errors.md)** · **[Incremental & Waves](docs/workflows/incremental-and-waves.md)** *(IT: [Guida](GUIDE.it.md) · [Installa](INSTALL.it.md))*
137
+ - **Specialized Workflows:** **[Formal & Regulated](docs/workflows/formal-and-regulated.md)** · **[Legacy Cutover](docs/workflows/legacy-cutover.md)** · **[Real-Time & Simulation](docs/workflows/realtime-and-simulation.md)** · **[UI Sequences](docs/workflows/ui-sequences.md)** · **[Multi-Repo Governance](docs/workflows/multi-repo-governance.md)**
138
+ - **Editions ([EDITIONS.md](EDITIONS.md)):** **Free** (core lifecycle, Shadow Mode, `drift run --gate`, `drift lsp`, `drift-ask-ui`, `drift-map-ui`, all 12 bridges, MIT verifier) · **Pro** (`select`, `gate --base`, `impact`, `recall`, `plan`, `merge`, `pact`, OpenAPI/AsyncAPI scaffolding) · **Enterprise** (`mutants`, `sweep --flow`, `gate --attest`, `stats`; *complimentary grant for public OSI open-source repos*).
139
+ - **Dual-Surface License ([LICENSE](LICENSE) · [LICENSE-BINARY](LICENSE-BINARY)):** Open surface (`bridges/`, `verifier/`, `schemas/`, `profiles/`, `hooks/`, `ui/`, `map-ui/`, `release/`, `skill/drift/`, `skills/drift/`, `example/`, `benchmarks/`, `templates/`, `.devcontainer/`, `assets/`, `action.yml`, `pyproject.toml`, `drift-demo`, installers, docs) is **MIT**; CLI binaries follow [`LICENSE-BINARY`](LICENSE-BINARY). **[SECURITY.md](SECURITY.md)** · **[CONTRIBUTING.md](CONTRIBUTING.md)** · **[SUPPORT.md](SUPPORT.md)** · **[CHANGELOG.md](CHANGELOG.md)**
140
+ </details>
141
+
142
+
143
+
@@ -0,0 +1,74 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "rad-ox-drift-verify"
7
+ version = "0.13.3"
8
+ description = "Zero-dependency MIT proof verifier, SARIF reporter, JUnit test-erosion ratchet, and live false-green showcase for DRIFT 0.3 contracts."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = { text = "MIT" }
12
+ authors = [{ name = "Lukasz Radkiewicz", email = "rad-ox@users.noreply.github.com" }]
13
+ keywords = ["ai-agents", "coding-agents", "test-integrity", "release-gate", "sarif", "verification"]
14
+ classifiers = [
15
+ "Development Status :: 4 - Beta",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Programming Language :: Python :: 3.14",
23
+ "Topic :: Software Development :: Quality Assurance",
24
+ "Topic :: Software Development :: Testing",
25
+ ]
26
+ dependencies = []
27
+
28
+ [project.urls]
29
+ Homepage = "https://github.com/rad-ox/drift"
30
+ Repository = "https://github.com/rad-ox/drift"
31
+ Documentation = "https://github.com/rad-ox/drift/blob/main/GUIDE.md"
32
+ Issues = "https://github.com/rad-ox/drift/issues"
33
+
34
+ [project.scripts]
35
+ drift-verify = "drift_cli_entry:main"
36
+ drift-sarif = "drift_sarif:main"
37
+ drift-junit-ratchet = "drift_junit_ratchet:main"
38
+ drift-demo = "drift_demo:main"
39
+
40
+ [tool.setuptools]
41
+ package-dir = { "" = "verifier" }
42
+ py-modules = [
43
+ "drift_verify",
44
+ "drift_verify_03",
45
+ "drift_verify_base",
46
+ "drift_verify_cert",
47
+ "drift_verify_dist",
48
+ "drift_verify_eval",
49
+ "drift_verify_events",
50
+ "drift_verify_formal",
51
+ "drift_verify_grant",
52
+ "drift_verify_mig",
53
+ "drift_verify_mutation",
54
+ "drift_verify_obs",
55
+ "drift_verify_pact",
56
+ "drift_verify_pact_cells",
57
+ "drift_verify_pact_io",
58
+ "drift_verify_parity",
59
+ "drift_verify_perf",
60
+ "drift_verify_ra",
61
+ "drift_verify_ra_io",
62
+ "drift_verify_sec",
63
+ "drift_verify_selftest",
64
+ "drift_verify_sim",
65
+ "drift_verify_ssh",
66
+ "drift_verify_subject",
67
+ "drift_sarif",
68
+ "drift_junit_ratchet",
69
+ "drift_demo",
70
+ "drift_shadow_junit",
71
+ "drift_build_graph",
72
+ "proves_bindings",
73
+ "drift_cli_entry",
74
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+