ayentra 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.
Files changed (38) hide show
  1. ayentra-1.0.0/LICENSE +181 -0
  2. ayentra-1.0.0/PKG-INFO +260 -0
  3. ayentra-1.0.0/README.md +229 -0
  4. ayentra-1.0.0/pyproject.toml +62 -0
  5. ayentra-1.0.0/setup.cfg +4 -0
  6. ayentra-1.0.0/src/ayentra/__init__.py +63 -0
  7. ayentra-1.0.0/src/ayentra/ast_analyzer.py +460 -0
  8. ayentra-1.0.0/src/ayentra/cli.py +1864 -0
  9. ayentra-1.0.0/src/ayentra/cloud.py +308 -0
  10. ayentra-1.0.0/src/ayentra/concurrency.py +333 -0
  11. ayentra-1.0.0/src/ayentra/contracts.py +303 -0
  12. ayentra-1.0.0/src/ayentra/dogfood.py +278 -0
  13. ayentra-1.0.0/src/ayentra/engine.py +1205 -0
  14. ayentra-1.0.0/src/ayentra/py.typed +0 -0
  15. ayentra-1.0.0/src/ayentra/regression.py +278 -0
  16. ayentra-1.0.0/src/ayentra/repair.py +1217 -0
  17. ayentra-1.0.0/src/ayentra/report.py +276 -0
  18. ayentra-1.0.0/src/ayentra/sarif.py +153 -0
  19. ayentra-1.0.0/src/ayentra/site/app.js +1387 -0
  20. ayentra-1.0.0/src/ayentra/site/favicon.png +0 -0
  21. ayentra-1.0.0/src/ayentra/site/index.html +1622 -0
  22. ayentra-1.0.0/src/ayentra/site/logo.png +0 -0
  23. ayentra-1.0.0/src/ayentra/site/styles.css +1842 -0
  24. ayentra-1.0.0/src/ayentra/studio.py +2628 -0
  25. ayentra-1.0.0/src/ayentra.egg-info/PKG-INFO +260 -0
  26. ayentra-1.0.0/src/ayentra.egg-info/SOURCES.txt +36 -0
  27. ayentra-1.0.0/src/ayentra.egg-info/dependency_links.txt +1 -0
  28. ayentra-1.0.0/src/ayentra.egg-info/entry_points.txt +2 -0
  29. ayentra-1.0.0/src/ayentra.egg-info/requires.txt +3 -0
  30. ayentra-1.0.0/src/ayentra.egg-info/top_level.txt +1 -0
  31. ayentra-1.0.0/tests/test_ayentra_engine.py +1247 -0
  32. ayentra-1.0.0/tests/test_cli_distribution.py +1556 -0
  33. ayentra-1.0.0/tests/test_open_core_gating.py +206 -0
  34. ayentra-1.0.0/tests/test_pilot_workflow.py +370 -0
  35. ayentra-1.0.0/tests/test_pr_mock.py +599 -0
  36. ayentra-1.0.0/tests/test_sarif_supply_chain.py +491 -0
  37. ayentra-1.0.0/tests/test_studio.py +803 -0
  38. ayentra-1.0.0/tests/test_transition_policy_adversarial.py +367 -0
ayentra-1.0.0/LICENSE ADDED
@@ -0,0 +1,181 @@
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
+ 2. Grant of Copyright License. Subject to the terms and conditions of
63
+ this License, each Contributor hereby grants to You a perpetual,
64
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
65
+ copyright license to reproduce, prepare Derivative Works of,
66
+ publicly display, publicly perform, sublicense, and distribute the
67
+ Work and such Derivative Works in Source or Object form.
68
+
69
+ 3. Grant of Patent License. Subject to the terms and conditions of
70
+ this License, each Contributor hereby grants to You a perpetual,
71
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
+ (except as stated in this section) patent license to make, have made,
73
+ use, offer to sell, sell, import, and otherwise transfer the Work,
74
+ where such license applies only to those patent claims licensable
75
+ by such Contributor that are necessarily infringed by their
76
+ Contribution(s) alone or by combination of their Contribution(s)
77
+ with the Work to which such Contribution(s) was submitted. If You
78
+ institute patent litigation against any entity (including a
79
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
80
+ or a Contribution incorporated within the Work constitutes direct
81
+ or contributory patent infringement, then any patent licenses
82
+ granted to You under this License for that Work shall terminate
83
+ as of the date such litigation is filed.
84
+
85
+ 4. Redistribution. You may reproduce and distribute copies of the
86
+ Work or Derivative Works thereof in any medium, with or without
87
+ modifications, and in Source or Object form, provided that You
88
+ meet the following conditions:
89
+
90
+ (a) You must give any other recipients of the Work or
91
+ Derivative Works a copy of this License; and
92
+
93
+ (b) You must cause any modified files to carry prominent notices
94
+ stating that You changed the files; and
95
+
96
+ (c) You must retain, in the Source form of any Derivative Works
97
+ that You distribute, all copyright, patent, trademark, and
98
+ attribution notices from the Source form of the Work,
99
+ excluding those notices that do not pertain to any part of
100
+ the Derivative Works; and
101
+
102
+ (d) If the Work includes a "NOTICE" text file as part of its
103
+ distribution, then any Derivative Works that You distribute must
104
+ include a readable copy of the attribution notices contained
105
+ within such NOTICE file, excluding those notices that do not
106
+ pertain to any part of the Derivative Works, in at least one
107
+ of the following places: within a NOTICE text file distributed
108
+ as part of the Derivative Works; within the Source form or
109
+ documentation, if provided along with the Derivative Works; or,
110
+ within a display generated by the Derivative Works, if and
111
+ wherever such third-party notices normally appear. The contents
112
+ of the NOTICE file are for informational purposes only and
113
+ do not modify the License. You may add Your own attribution
114
+ notices within Derivative Works that You distribute, alongside
115
+ or as an addendum to the NOTICE text from the Work, provided
116
+ that such additional attribution notices cannot be construed
117
+ as modifying the License.
118
+
119
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
120
+ any Contribution intentionally submitted for inclusion in the Work
121
+ by You to the Licensor shall be under the terms and conditions of
122
+ this License, without any additional terms or conditions.
123
+ Notwithstanding the above, nothing herein shall supersede or modify
124
+ the terms of any separate license agreement you may have executed
125
+ with Licensor regarding such Contributions.
126
+
127
+ 6. Trademarks. This License does not grant permission to use the trade
128
+ names, trademarks, service marks, or product names of the Licensor,
129
+ except as required for reasonable and customary use in describing the
130
+ origin of the Work and reproducing the content of the NOTICE file.
131
+
132
+ 7. Disclaimer of Warranty. Unless required by applicable law or
133
+ agreed to in writing, Licensor provides the Work (and each
134
+ Contributor provides its Contributions) on an "AS IS" BASIS,
135
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
136
+ implied, including, without limitation, any warranties or conditions
137
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
138
+ PARTICULAR PURPOSE. You are solely responsible for determining the
139
+ appropriateness of using or redistributing the Work and assume any
140
+ risks associated with Your exercise of permissions under this License.
141
+
142
+ 8. Limitation of Liability. In no event and under no legal theory,
143
+ whether in tort (including negligence), contract, or otherwise,
144
+ unless required by applicable law (such as deliberate and grossly
145
+ negligent acts) or agreed to in writing, shall any Contributor be
146
+ liable to You for damages, including any direct, indirect, special,
147
+ incidental, or consequential damages of any character arising as a
148
+ result of this License or out of the use or inability to use the
149
+ Work (including but not limited to damages for loss of goodwill,
150
+ work stoppage, computer failure or malfunction, or any and all
151
+ other commercial damages or losses), even if such Contributor
152
+ has been advised of the possibility of such damages.
153
+
154
+ 9. Accepting Warranty or Additional Liability. While redistributing
155
+ the Work or Derivative Works thereof, You may choose to offer,
156
+ and charge a fee for, acceptance of support, warranty, indemnity,
157
+ or other liability obligations and/or rights consistent with this
158
+ License. However, in accepting such obligations, You may act only
159
+ on Your own behalf and on Your sole responsibility, not on behalf
160
+ of any other Contributor, and only if You agree to indemnify,
161
+ defend, and hold each Contributor harmless for any liability
162
+ incurred by, or claims asserted against, such Contributor by reason
163
+ of your accepting any such warranty or additional liability.
164
+
165
+ END OF TERMS AND CONDITIONS
166
+
167
+ Copyright 2026 Ayentra
168
+
169
+ Licensed under the Apache License, Version 2.0 (the "License");
170
+ you may not use this file except in compliance with the License.
171
+ You may obtain a copy of the License at
172
+
173
+ http://www.apache.org/licenses/LICENSE-2.0
174
+
175
+ Unless required by applicable law or agreed to in writing, software
176
+ distributed under the License is distributed on an "AS IS" BASIS,
177
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
178
+ See the License for the specific language governing permissions and
179
+ limitations under the License.
180
+
181
+
ayentra-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,260 @@
1
+ Metadata-Version: 2.4
2
+ Name: ayentra
3
+ Version: 1.0.0
4
+ Summary: Invariant-aware verification gate with property-based shrinking, deterministic concurrency checks, and sandbox patch verification.
5
+ Author-email: Ayentra <support@ayentra.dev>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://ayentra-ai.vercel.app/
8
+ Project-URL: Documentation, https://github.com/Somay-Saini/ayentra-ai#readme
9
+ Project-URL: Repository, https://github.com/Somay-Saini/ayentra-ai.git
10
+ Project-URL: Issue Tracker, https://github.com/Somay-Saini/ayentra-ai/issues
11
+ Project-URL: Changelog, https://github.com/Somay-Saini/ayentra-ai/blob/main/CHANGELOG.md
12
+ Keywords: verification,invariants,concurrency,race-conditions,property-testing,hypothesis,auto-repair,testing
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Software Development :: Testing
22
+ Classifier: Topic :: Software Development :: Quality Assurance
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.11
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ Requires-Dist: hypothesis>=6.0.0
28
+ Requires-Dist: pytest>=7.0.0
29
+ Requires-Dist: rich>=13.0.0
30
+ Dynamic: license-file
31
+
32
+ # Ayentra: Invariant-Aware Verification Gate
33
+
34
+ Ayentra checks whether backend code violates explicitly defined behavioral invariants, finds minimal reproducible counterexamples using property-based shrinking and deterministic thread interleaving, and verifies candidate fixes in an isolated sandbox against both the invariant and your existing regression suite before merge (Python reference engine live, Go and TypeScript adapters in preview, Rust on roadmap).
35
+
36
+ [![Live Showcase](https://img.shields.io/badge/Live_Showcase-ayentra--ai.vercel.app-0F766E?style=flat-square)](https://ayentra-ai.vercel.app/)
37
+ [![GitHub Repo](https://img.shields.io/badge/GitHub-Somay--Saini%2Fayentra--ai-1E232A?style=flat-square)](https://github.com/Somay-Saini/ayentra-ai)
38
+ [![Enterprise Pilot](https://img.shields.io/badge/Enterprise_Pilot-docs%2Fdesign__partner__kit.md-2563EB?style=flat-square)](docs/design_partner_kit.md)
39
+ [![Security Policy](https://img.shields.io/badge/Security_Policy-SECURITY.md-166534?style=flat-square)](SECURITY.md)
40
+
41
+ - **Live Public Showcase**: [https://ayentra-ai.vercel.app/](https://ayentra-ai.vercel.app/)
42
+ - **Interactive Verification Studio**: [Live Invariant Inspector & PR Bot Simulator](https://ayentra-ai.vercel.app/#demo)
43
+ - **GitHub Repository**: [https://github.com/Somay-Saini/ayentra-ai](https://github.com/Somay-Saini/ayentra-ai)
44
+ - **Enterprise Design Partner Pilot Guide**: [docs/design_partner_kit.md](docs/design_partner_kit.md)
45
+ - **Design Partner Executive ROI & CI Time-Saved Calculator**: [docs/design_partner_roi_calculator.md](docs/design_partner_roi_calculator.md)
46
+
47
+ ## Design Principles & Technical Boundaries
48
+
49
+ 1. **Explicit Invariants First**: AST analysis cannot guess intended business rules. Invariants are declared explicitly via `@invariant(...)` decorators or workspace `ayentra.toml` contracts. Structural hints extracted by the AST analyzer are always labeled `Candidate Suggestion (Requires Developer Approval)` and never enforced automatically.
50
+ 2. **Exact Verification Reporting, Strategy Synthesis & Async Coroutine Support**: Ayentra synthesizes property strategies from Python type annotations (including primitives, `decimal.Decimal`, `datetime.date`, `datetime.datetime`, `Optional`/`Union`, `list`, `dict`, `tuple`, `set`, `frozenset`, `Literal`, `Enum`, and nested `@dataclass` types), executes both synchronous callables and `async def` coroutine functions and methods (including AST candidate invariant extraction and sandbox guard repair for `async def`, `Decimal` zero-division, and date/datetime order bounds), and reports the exact verification method (`Property-Based Shrinking via Hypothesis` or `Deterministic Thread Interleaving Check`), the exact number of cases or schedules evaluated, the tested input domain bounds, and the deterministic `--seed`.
51
+ 3. **Minimal Reproducible Counterexamples & Concurrency Interleaving**: When an invariant fails, Ayentra shrinks the failing input vector or concurrent schedule to its smallest reproducible form. For `@invariant(..., check_concurrency=True)` class invariants, Ayentra explores barrier-synchronized thread schedules with line-level preemption (`sys.settrace`) across single-argument, multi-argument, and cross-method calls (e.g., concurrent `deposit`/`withdraw` or `reserve`/`release` pairs) to expose TOCTOU race conditions.
52
+ 4. **Non-Destructive Sandbox Patch Verification**: Ayentra never overwrites source files silently. It synthesizes a candidate unified diff, applies it inside an isolated temporary directory copy, and runs three checks:
53
+ - Replay of the exact failing counterexample
54
+ - Full property-based and concurrency invariant sweep
55
+ - The project's existing `pytest` regression suite
56
+ 5. **Deterministic Execution Receipts**: Outputs a `VerificationReport` JSON receipt containing the SHA-256 digest of the source file, seed, domain bounds, pass/fail counts, and actual measured execution time in milliseconds.
57
+
58
+ ## CLI Reference
59
+
60
+ ### `ayentra check <target>`
61
+
62
+ Accepts either a single Python file or a directory (`ayentra check <dir/>`). When passed a directory, Ayentra discovers all non-test `.py` files with explicit `@invariant` decorators or matching `ayentra.toml` rules, runs the verification gate on each target, prints a `Directory Verification Summary` table (`File`, `Explicit Invariants`, `Cases Evaluated`, `Violations`, `Status`, `Time (ms)`), and exits with code `1` if any invariant fails (`0` if all pass). Passing `--json-out <path.json>` with a directory target writes an aggregate JSON receipt containing `"directory"`, `"total_files_checked"`, `"failed_files_count"`, and `"reports"`.
63
+
64
+ ```bash
65
+ # Check a single module with a deterministic seed
66
+ ayentra check examples/scheduler_race.py --seed 42
67
+
68
+ # Check an entire directory of modules and write a JSON receipt
69
+ ayentra check examples/ --seed 42 --json-out report.json
70
+ ```
71
+
72
+ ### `ayentra apply-patch <target> [--yes]`
73
+
74
+ Synthesizes a candidate repair for a failing target, runs the 3-stage sandbox verification gate (counterexample replay, property-based/concurrency sweep, and `pytest` regression suite), and prints the unified diff. By default, `apply-patch` runs in non-destructive preview mode. Pass `--yes` to write the patch to disk only after all three sandbox stages pass (`VERIFIED CANDIDATE FIX`).
75
+
76
+ ```bash
77
+ # Preview the verified unified diff without modifying the file
78
+ ayentra apply-patch examples/inventory_ledger.py --seed 42
79
+
80
+ # Write the patch to disk if and only if all 3 sandbox checks pass
81
+ ayentra apply-patch examples/inventory_ledger.py --seed 42 --yes
82
+ ```
83
+
84
+ ### `ayentra suggest-invariants <target>`
85
+
86
+ Analyzes the module AST and outputs candidate invariant expressions labeled `Candidate Suggestion (Requires Developer Approval)`.
87
+
88
+ ```bash
89
+ ayentra suggest-invariants examples/inventory_ledger.py
90
+ ```
91
+
92
+ ### `ayentra verify-patch <target> [--candidate-file <path>]`
93
+
94
+ Verifies either a user-supplied candidate file (`--candidate-file`) or a synthesized patch inside an isolated sandbox copy without modifying the target file.
95
+
96
+ ### `ayentra studio`
97
+
98
+ Launches the local browser verification inspector in the Soft Neutral Light theme (`#F6F5F2` background, `#FCFCFA` surface, `#FFFFFF` panels, `#1E232A` text).
99
+
100
+ - **Status Filter Bar**: Filter the workspace view across `All Invariants`, `Violations Only`, and `Candidate Suggestions`.
101
+ - **Keyboard Shortcut**: Press `Ctrl+Enter` or `Alt+Enter` from anywhere in the inspector to trigger `Run Verification Gate`.
102
+ - **Copy Unified Diff**: Section 4 (`4. Candidate Patch (Unified Diff)`) includes a one-click `Copy Unified Diff` button to copy the verified patch diff directly to the clipboard.
103
+ - **Apply Verified Patch**: When a candidate patch passes all 3 sandbox verification gates (`VERIFIED CANDIDATE FIX`), Section 4 renders a gated `Apply Verified Patch` button (`POST /api/apply-patch`) to write the verified fix to disk and update the state to `Verified Patch Applied`.
104
+ - **Export JSON Receipt**: Section 5 (`5. Post-Fix Verification Summary & Execution Receipt`) includes a one-click `Export JSON Receipt` button to download `ayentra-receipt.json` directly from the browser.
105
+
106
+ ```bash
107
+ ayentra studio --port 8420
108
+ ```
109
+
110
+ ### `ayentra init [--ci] [--path <dir>]`
111
+
112
+ Scaffolds `ayentra.toml` configuration and optional `.github/workflows/ayentra.yml` for GitHub Actions CI.
113
+
114
+ ```bash
115
+ # Initialize local configuration and GitHub Actions CI workflow
116
+ ayentra init --ci
117
+ ```
118
+
119
+ ### `ayentra pr-mock <target> [--pr-comment <path.md>] [--sarif <path.sarif>]`
120
+
121
+ Generates a structured GitHub pull request review comment with plain-English risk categorization, minimal shrunk counterexample, collapsible unified diff, and 1-click merge command.
122
+
123
+ ```bash
124
+ # Generate simulated PR review comment for customer pilot ledger
125
+ ayentra pr-mock examples/customer_pilot.py --pr-comment pr_review.md
126
+ ```
127
+
128
+ ## Workspace `ayentra.toml` Contract Discovery
129
+
130
+ Invariants can be declared inline with `@invariant(...)` and `@domain(...)` decorators or externally in `ayentra.toml`. When checking a target file, Ayentra checks the target's directory and walks up parent directories (up to the workspace root containing `ayentra.toml` or `pyproject.toml`) to discover `ayentra.toml` contract rules matching the target filename:
131
+
132
+ ```toml
133
+ [[invariants]]
134
+ file = "inventory_ledger.py"
135
+ target = "InventoryLedger"
136
+ kind = "class"
137
+ expression = "self.available >= 0 and self.reserved >= 0"
138
+ check_concurrency = false
139
+ domain = { qty = { min = 1, max = 500 } }
140
+ ```
141
+
142
+ ## Enterprise Design Partner Pilot Guide
143
+
144
+ Grounded in `examples/customer_pilot.py`, this workflow demonstrates how engineering teams catch domain-level invariant violations before code reaches production.
145
+
146
+ ### 1. Two-Command Zero-Config CI Onboarding
147
+
148
+ ```bash
149
+ pip install ayentra
150
+ ayentra init --ci
151
+ ```
152
+
153
+ Scaffolds `.github/workflows/ayentra.yml` and workspace `ayentra.toml`, running verification on push and pull request without cloud account setup.
154
+
155
+ ### 2. Automated PR Review Comments and Collapsible Unidiff Workflow
156
+
157
+ ```bash
158
+ ayentra pr-mock examples/customer_pilot.py --pr-comment pr_review.md
159
+ ```
160
+
161
+ Generates a GitHub-native review comment with:
162
+ - Plain-English bug explanation
163
+ - Business risk rating (for example: `Critical risk: Financial balance corruption`)
164
+ - Shrunk minimal counterexample (`amount = -1`)
165
+ - Collapsible interactive unidiff `<details open><summary>View Unified Patch Diff</summary>...`
166
+ - Single-command remediation: `ayentra apply-patch examples/customer_pilot.py --yes`
167
+
168
+ ### 3. GitHub Advanced Security SARIF 2.1.0 Code Scanning
169
+
170
+ ```bash
171
+ ayentra check examples/customer_pilot.py --ci --sarif ayentra-report.sarif
172
+ ```
173
+
174
+ Exports OASIS SARIF 2.1.0 compliant findings to GitHub Advanced Security code scanning, pinpointing the failing line and attaching the verified fix.
175
+
176
+ For the full enterprise pilot kit, ledger walkthrough, and direct outreach templates, see [docs/design_partner_kit.md](docs/design_partner_kit.md).
177
+
178
+ ## Quickstart Benchmarks & Production Verification Metrics
179
+
180
+ Ayentra was verified against 7 real-world architectural patterns spanning financial ledgers, distributed rate limiters, thread barriers, and worker queues (`dogfood_receipt.json`).
181
+
182
+ | Target Architecture | Target Module | Evaluated Cases | Caught Violation | Sandbox Status |
183
+ | :--- | :--- | :--- | :--- | :--- |
184
+ | **Financial Escrow Ledger** | `examples/customer_pilot.py` | 69 cases | Negative balance drift | `VERIFIED CANDIDATE FIX` (100%) |
185
+ | **Distributed Rate Limiter** | `redis_token_bucket.py` | 37 cases | Token underflow DoS | `VERIFIED CANDIDATE FIX` (100%) |
186
+ | **Thread Task Scheduler** | `examples/scheduler_race.py` | 1 schedule | TOCTOU preemption race | `VERIFIED CANDIDATE FIX` (100%) |
187
+ | **Inventory Ledger** | `examples/inventory_ledger.py` | 23 cases | Negative stock overdraft | `VERIFIED CANDIDATE FIX` (100%) |
188
+ | **Async Task Pipeline** | `celery_task_queue.py` | 25 cases | Dropped active tasks | `VERIFIED CANDIDATE FIX` (100%) |
189
+ | **HTTP Connection Pool** | `requests_connection_pool.py` | 6 cases | Socket exhaustion leak | `VERIFIED CANDIDATE FIX` (100%) |
190
+ | **Telemetry Sensor Parser** | `examples/data_parser.py` | 12 cases | NaN / Inf float pass-through | `VERIFIED CANDIDATE FIX` (100%) |
191
+
192
+ **Summary**: 7 production targets scanned, 173 adversarial property cases evaluated, 7 invariant violations detected, and 7 candidate AST repairs verified through all 3 sandbox gates (replay, sweep, and pytest) with zero regressions.
193
+
194
+ Explore the interactive metrics directly on the [Live Public Showcase](https://ayentra-ai.vercel.app/#dogfood).
195
+
196
+ ## Quickstart
197
+
198
+ ```bash
199
+ # 1. Run existing unit tests (passes on standard happy-path inputs)
200
+ pytest examples/test_existing_suite.py
201
+
202
+ # 2. Run Ayentra verification gate across the examples directory or individual files
203
+ ayentra check examples/ --seed 42
204
+ ayentra check examples/scheduler_race.py --seed 42
205
+ ayentra check examples/inventory_ledger.py --seed 42
206
+ ayentra check examples/data_parser.py --seed 42
207
+
208
+ # 3. Preview or apply a sandbox-verified patch
209
+ ayentra apply-patch examples/data_parser.py --seed 42
210
+
211
+ # 4. Inspect AST candidate invariant suggestions
212
+ ayentra suggest-invariants examples/inventory_ledger.py
213
+
214
+ # 5. Launch the local browser verification inspector
215
+ ayentra studio --port 8420
216
+ ```
217
+
218
+ ## Public Showcase & Enterprise Documentation Suite
219
+
220
+ ### Live Showcase & Demonstrations
221
+
222
+ - **Live Web Showcase**: [https://ayentra-ai.vercel.app/](https://ayentra-ai.vercel.app/)
223
+ - **Interactive Verification Demo**: [Ayentra Studio & PR Review Bot Simulator](https://ayentra-ai.vercel.app/#demo)
224
+ - **Production Wheel & Smoke Test Benchmarks**: [docs/benchmarks.md](docs/benchmarks.md)
225
+ - **Real-World Repair Benchmark & Latency Matrix**: [docs/repair_benchmark_matrix.md](docs/repair_benchmark_matrix.md)
226
+ - **Open-Source Trojan Horse Invariant Audit Pack**: [docs/oss_trojan_horse_audits.md](docs/oss_trojan_horse_audits.md)
227
+ - **Ground Truth Customer Pilot Ledger**: [examples/customer_pilot.py](examples/customer_pilot.py)
228
+
229
+ ### Enterprise Security & Architecture
230
+
231
+ - **Security Policy & Vulnerability Reporting**: [SECURITY.md](SECURITY.md)
232
+ - **Enterprise Security Pack & CISO Architecture Review**: [docs/enterprise_security_pack.md](docs/enterprise_security_pack.md)
233
+ - **Security Audit & Invariant Verification Review**: [docs/security_audit.md](docs/security_audit.md)
234
+ - **SARIF 2.1.0 & GitHub Code Scanning Guide**: [docs/sarif_github_security_guide.md](docs/sarif_github_security_guide.md)
235
+ - **Software Bill of Materials (SBOM) & Provenance Manifest**: [docs/sbom_and_provenance_manifest.md](docs/sbom_and_provenance_manifest.md)
236
+ - **Enterprise Air-Gapped & Self-Hosted Runner Hardening**: [docs/airgapped_runner_hardening.md](docs/airgapped_runner_hardening.md)
237
+ - **Pre-Release Code Review Sign-Off**: [docs/code_review_signoff.md](docs/code_review_signoff.md)
238
+ - **Human-Craft & UI/UX Taste Audit Report**: [docs/taste_and_ui_audit_report.md](docs/taste_and_ui_audit_report.md)
239
+ - **Human-Craft, Voice & Zero-Buzzword Audit**: [docs/human_craft_voice_audit.md](docs/human_craft_voice_audit.md)
240
+
241
+ ### Enterprise Pilot & Operations
242
+
243
+ - **Enterprise Design Partner Pilot Guide**: [docs/design_partner_kit.md](docs/design_partner_kit.md)
244
+ - **Design Partner Executive ROI & CI Time-Saved Calculator**: [docs/design_partner_roi_calculator.md](docs/design_partner_roi_calculator.md)
245
+ - **Pilot Onboarding Service Level Agreement**: [docs/pilot_onboarding_sla.md](docs/pilot_onboarding_sla.md)
246
+ - **Founding Team 30-60-90 Day Onboarding & Performance Scorecard**: [docs/onboarding_30_60_90_scorecard.md](docs/onboarding_30_60_90_scorecard.md)
247
+ - **Master Release Readiness & Go/No-Go Sign-Off Dossier**: [docs/release_go_no_go_dossier.md](docs/release_go_no_go_dossier.md)
248
+ - **Post-Launch 30-Day Engineering & GTM Execution Roadmap**: [docs/post_launch_30_day_roadmap.md](docs/post_launch_30_day_roadmap.md)
249
+ - **Launch Day Technical FAQ**: [docs/launch_day_faq.md](docs/launch_day_faq.md)
250
+ - **Launch War Room Incident Runbook**: [docs/launch_war_room_runbook.md](docs/launch_war_room_runbook.md)
251
+ - **Open-Source Maintainer PR Templates & Outreach**: [docs/oss_maintainer_pr_templates.md](docs/oss_maintainer_pr_templates.md)
252
+
253
+ ### Engineering Hiring & Calibration
254
+
255
+ - **Hiring Committee Decision & Debrief Protocol**: [docs/hiring_committee_decision_protocol.md](docs/hiring_committee_decision_protocol.md)
256
+ - **Candidate Calibration & Assessment Packet**: [docs/candidate_calibration_packet.md](docs/candidate_calibration_packet.md)
257
+ - **Engineering Hiring Kit & Interview Rubrics**: [docs/hiring_kit.md](docs/hiring_kit.md)
258
+ - **Live Work-Sample & Pair-Debugging Facilitator Guide**: [docs/work_sample_facilitator_guide.md](docs/work_sample_facilitator_guide.md)
259
+ - **Founding Team Offer Letter, Equity & Reference Playbook**: [docs/founding_offer_and_reference_kit.md](docs/founding_offer_and_reference_kit.md)
260
+ - **Public Launch Kit & Outreach Strategy**: [docs/public_launch_kit.md](docs/public_launch_kit.md)