aildv 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.
- aildv-1.0.0/LICENSE +21 -0
- aildv-1.0.0/PKG-INFO +220 -0
- aildv-1.0.0/README.md +206 -0
- aildv-1.0.0/pyproject.toml +31 -0
- aildv-1.0.0/setup.cfg +4 -0
- aildv-1.0.0/src/aildv/__init__.py +0 -0
- aildv-1.0.0/src/aildv/adapters.py +265 -0
- aildv-1.0.0/src/aildv/api_db.py +323 -0
- aildv-1.0.0/src/aildv/cache.py +87 -0
- aildv-1.0.0/src/aildv/ci_reader.py +554 -0
- aildv-1.0.0/src/aildv/cli.py +655 -0
- aildv-1.0.0/src/aildv/component_classifier.py +430 -0
- aildv-1.0.0/src/aildv/config_reader.py +105 -0
- aildv-1.0.0/src/aildv/diagnosis.py +178 -0
- aildv-1.0.0/src/aildv/environment.py +193 -0
- aildv-1.0.0/src/aildv/feature.py +271 -0
- aildv-1.0.0/src/aildv/inspector.py +288 -0
- aildv-1.0.0/src/aildv/onboarding.py +222 -0
- aildv-1.0.0/src/aildv/orchestration.py +230 -0
- aildv-1.0.0/src/aildv/project_reader.py +408 -0
- aildv-1.0.0/src/aildv/redaction.py +97 -0
- aildv-1.0.0/src/aildv/results.py +17 -0
- aildv-1.0.0/src/aildv/traceability.py +178 -0
- aildv-1.0.0/src/aildv/verification.py +257 -0
- aildv-1.0.0/src/aildv.egg-info/PKG-INFO +220 -0
- aildv-1.0.0/src/aildv.egg-info/SOURCES.txt +46 -0
- aildv-1.0.0/src/aildv.egg-info/dependency_links.txt +1 -0
- aildv-1.0.0/src/aildv.egg-info/entry_points.txt +2 -0
- aildv-1.0.0/src/aildv.egg-info/requires.txt +5 -0
- aildv-1.0.0/src/aildv.egg-info/top_level.txt +1 -0
- aildv-1.0.0/tests/test_agents.py +70 -0
- aildv-1.0.0/tests/test_api_db.py +139 -0
- aildv-1.0.0/tests/test_ci_categories.py +237 -0
- aildv-1.0.0/tests/test_ci_reader.py +105 -0
- aildv-1.0.0/tests/test_component_classifier.py +181 -0
- aildv-1.0.0/tests/test_config_reader.py +141 -0
- aildv-1.0.0/tests/test_diagnosis.py +104 -0
- aildv-1.0.0/tests/test_environment.py +106 -0
- aildv-1.0.0/tests/test_feature.py +104 -0
- aildv-1.0.0/tests/test_hardening.py +102 -0
- aildv-1.0.0/tests/test_inspector.py +210 -0
- aildv-1.0.0/tests/test_orchestration.py +128 -0
- aildv-1.0.0/tests/test_project_reader.py +163 -0
- aildv-1.0.0/tests/test_redaction.py +77 -0
- aildv-1.0.0/tests/test_reliability.py +135 -0
- aildv-1.0.0/tests/test_traceability.py +123 -0
- aildv-1.0.0/tests/test_verification.py +316 -0
- aildv-1.0.0/tests/test_workflows.py +147 -0
aildv-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AILDV contributors
|
|
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.
|
aildv-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aildv
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: AI-Assisted Local Development and Verification
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: PyYAML<7,>=6
|
|
10
|
+
Provides-Extra: dev
|
|
11
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
12
|
+
Requires-Dist: ruff>=0.9; extra == "dev"
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# AILDV — AI-Assisted Local Development & Verification
|
|
16
|
+
|
|
17
|
+
A read-only-first, cross-language CLI that **inspects existing repositories** and creates **tool-neutral, short AI collaboration instructions** without replacing your framework, tests, deployment tooling, or repository conventions.
|
|
18
|
+
|
|
19
|
+
Current release: **1.0.0**. Supported inspection patterns include Flutter/Dart, Go, Java/Maven/Gradle, .NET/C#/ASP.NET Core, Python, and Node.js/React/Vite, validated against real repositories (see `docs/VALIDATION.md`). This is heuristic inspection, not universal language/framework proof. Two release-gate items are still outstanding and are documented, not claimed: the with/without-AILDV benchmark and three coding-agent integrations — see `docs/BENCHMARKS.md` and `docs/VALIDATION.md`.
|
|
20
|
+
|
|
21
|
+
## Prerequisites
|
|
22
|
+
|
|
23
|
+
- Python 3.11 or newer
|
|
24
|
+
- A repository to inspect
|
|
25
|
+
- Optional: the relevant language SDK and test runner to execute checks
|
|
26
|
+
|
|
27
|
+
### Installation (Windows PowerShell)
|
|
28
|
+
|
|
29
|
+
```powershell
|
|
30
|
+
cd D:\faiz-personal\aildv
|
|
31
|
+
py -3.13 -m venv .venv
|
|
32
|
+
.\.venv\Scripts\Activate.ps1
|
|
33
|
+
python -m pip install -e ".[dev]"
|
|
34
|
+
python -m pytest -q
|
|
35
|
+
python -m ruff check src tests
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
macOS/Linux: use `python3 -m venv .venv` and `source .venv/bin/activate`.
|
|
39
|
+
|
|
40
|
+
## Commands
|
|
41
|
+
|
|
42
|
+
```powershell
|
|
43
|
+
# Read-only discovery
|
|
44
|
+
aildv inspect D:\repo\project
|
|
45
|
+
aildv inspect D:\repo\project --json
|
|
46
|
+
|
|
47
|
+
# Preview six generated files, no writes
|
|
48
|
+
aildv init D:\repo\project --dry-run
|
|
49
|
+
|
|
50
|
+
# Write only missing AI docs, preserving all pre-existing files
|
|
51
|
+
aildv init D:\repo\project
|
|
52
|
+
|
|
53
|
+
# Optional thin per-agent pointer files (canonical guidance stays in AGENTS.md)
|
|
54
|
+
aildv init D:\repo\project --agents claude,gemini,cursor
|
|
55
|
+
|
|
56
|
+
# Explicitly replace those generated document paths (review first)
|
|
57
|
+
aildv init D:\repo\project --force
|
|
58
|
+
|
|
59
|
+
# Preview detected unit/lint checks, no commands are executed
|
|
60
|
+
aildv verify D:\repo\project
|
|
61
|
+
aildv verify D:\repo\project --json
|
|
62
|
+
|
|
63
|
+
# Explicit opt-in to execute the detected commands locally
|
|
64
|
+
aildv verify D:\repo\project --run --timeout 300
|
|
65
|
+
|
|
66
|
+
# Deterministic feature impact analysis (no network, no LLM)
|
|
67
|
+
aildv feature plan "add caching to the order service" D:\repo\project
|
|
68
|
+
aildv feature plan "add caching to the order service" D:\repo\project --json
|
|
69
|
+
aildv feature context "add caching to the order service" D:\repo\project
|
|
70
|
+
|
|
71
|
+
# Read-only local toolchain discovery (never installs anything)
|
|
72
|
+
aildv env D:\repo\project
|
|
73
|
+
aildv env D:\repo\project --json
|
|
74
|
+
|
|
75
|
+
# Discover Compose services and running state (read-only)
|
|
76
|
+
aildv services D:\repo\project
|
|
77
|
+
# Start/stop only with explicit approval; never starts a duplicate
|
|
78
|
+
aildv services D:\repo\project --start --approve
|
|
79
|
+
|
|
80
|
+
# Discover OpenAPI endpoints and match a request to affected endpoints
|
|
81
|
+
aildv api D:\repo\project --request "update the orders endpoint"
|
|
82
|
+
# Diff two OpenAPI contracts (exit 1 when breaking changes exist)
|
|
83
|
+
aildv api D:\repo\project --base old-openapi.yml --head new-openapi.yml
|
|
84
|
+
|
|
85
|
+
# Discover database tech and migrations (local 127.0.0.1 probes only)
|
|
86
|
+
aildv db D:\repo\project
|
|
87
|
+
|
|
88
|
+
# Diagnose a saved verification results file (nothing executed)
|
|
89
|
+
aildv verify D:\repo\project --run --json --output results.json
|
|
90
|
+
aildv diagnose results.json
|
|
91
|
+
|
|
92
|
+
# Requirement -> files -> evidence traceability, with doc-impact suggestions
|
|
93
|
+
aildv trace "add caching to the order service" D:\repo\project --results results.json
|
|
94
|
+
# Local run history (recorded with `verify --run --history`)
|
|
95
|
+
aildv history D:\repo\project
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
`verify --run` **does** execute project tests/scripts, which may have side effects of their own. Review the preview before running it; use a safe, isolated development environment. The CLI itself never automatically starts Docker, runs deployments, creates test databases, or launches load/security tests. Executed steps report a preserved argument array, exit code, duration, capped and redacted output, and — when the runner reports one — a parsed test summary (counts and detail line, never invented). `approval-required` steps are never executed.
|
|
99
|
+
|
|
100
|
+
### Feature impact analysis
|
|
101
|
+
|
|
102
|
+
`aildv feature plan "<request>"` reports the repository evidence a request is
|
|
103
|
+
likely to touch — components, source files, tests, config, API definitions,
|
|
104
|
+
docs, contracts to preserve, and local verification commands — plus an explicit
|
|
105
|
+
**Unknowns** section. `aildv feature context "<request>"` emits a smaller,
|
|
106
|
+
deterministic bundle for an agent to read first. Both are heuristic
|
|
107
|
+
(path/keyword/manifest matching over inspected metadata): no network, no LLM
|
|
108
|
+
calls, and no invented requirements. Repeated runs are identical.
|
|
109
|
+
|
|
110
|
+
### Generated files
|
|
111
|
+
|
|
112
|
+
`aildv init` creates:
|
|
113
|
+
|
|
114
|
+
| File | Purpose |
|
|
115
|
+
| --- | --- |
|
|
116
|
+
| `AGENTS.md` | concise, tool-neutral agent rules |
|
|
117
|
+
| `ai/workflow.md` | reuse-first development loop |
|
|
118
|
+
| `ai/repository.md` | detected languages, infrastructure, component map |
|
|
119
|
+
| `ai/test-matrix.md` | discovered check commands, explicitly *not run* |
|
|
120
|
+
| `ai/qa-test-guide.md` | reusable functional/E2E QA checklist |
|
|
121
|
+
| `ai/report-template.md` | actual pass/fail/skip evidence template |
|
|
122
|
+
| `ai/handoff.md` | standard handoff format (observed vs claimed evidence) |
|
|
123
|
+
|
|
124
|
+
The CLI does not overwrite these files unless `--force` is explicitly supplied.
|
|
125
|
+
|
|
126
|
+
### Current detection behavior
|
|
127
|
+
|
|
128
|
+
- Inspects filenames, small known manifests, and package scripts; avoids reading arbitrary application code.
|
|
129
|
+
- Detects primary application candidates conservatively; a single recognized ASP.NET Core Web SDK project can be selected over unrelated console/test projects.
|
|
130
|
+
- Treats Flutter Android Gradle modules as supporting the root Flutter app.
|
|
131
|
+
- Excludes known generated Flutter plugin sources and vendored ASP.NET `wwwroot/lib` assets.
|
|
132
|
+
- Preserves `.NET projects` as a list of paths, with `project_details` exposing SDK/framework/test/reference metadata.
|
|
133
|
+
- Detects existing Go, Flutter, pytest, npm, Gradle, Maven, and `.NET` tests (subject to repository evidence).
|
|
134
|
+
- Provides a `project_map` alongside raw component evidence in JSON.
|
|
135
|
+
|
|
136
|
+
### Limitations
|
|
137
|
+
|
|
138
|
+
- Language discovery is based on manifest/file patterns. Monorepos, dynamic MSBuild imports, nonstandard project layouts, nested frontend workspaces, and custom scripts can require manual interpretation.
|
|
139
|
+
- Primary project remains unknown if multiple plausible applications exist without strong evidence.
|
|
140
|
+
- The inspector caps matched examples per label and the overall file scan. Truncated scans warn you; a tool not detected is not proof it does not exist.
|
|
141
|
+
- Docker Compose service discovery and approved start/stop are implemented (`aildv services`), but AILDV never deploys, destroys, or switches traffic. API-level test *generation*, authentication fixtures, performance/security testing, and autonomous repair loops are **not implemented**; AILDV discovers and classifies these but does not run them. The QA guide documents how to handle them manually.
|
|
142
|
+
- Automatic test execution is intentionally limited to test runners detected from evidence and never implies those checks passed until actually run.
|
|
143
|
+
- Do not run against untrusted repositories with `--run`: npm and other test scripts can execute arbitrary repository code.
|
|
144
|
+
|
|
145
|
+
## Validate common stacks
|
|
146
|
+
|
|
147
|
+
```powershell
|
|
148
|
+
$repositories = [ordered]@{
|
|
149
|
+
"Flutter" = "D:\repo\flutterproject"
|
|
150
|
+
"Go" = "D:\repo\GOproject"
|
|
151
|
+
"Java" = "D:\repo\javaproject"
|
|
152
|
+
".NET" = "D:\repo\DotNETproject"
|
|
153
|
+
"React" = "D:\repo\Reactproject"
|
|
154
|
+
}
|
|
155
|
+
foreach ($repo in $repositories.GetEnumerator()) {
|
|
156
|
+
Write-Host "`n========== $($repo.Key) ==========" -ForegroundColor Cyan
|
|
157
|
+
aildv inspect $repo.Value
|
|
158
|
+
aildv verify $repo.Value
|
|
159
|
+
aildv init $repo.Value --dry-run
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
For maintainers: tests are under `tests/`; local CLI entry point is `aildv.cli:main`; the packaged Agent Skill guidance is in `skills/aildv-onboard/SKILL.md`. Verify the CLI in a fresh environment with `python -m pytest -q` before releasing.
|
|
164
|
+
|
|
165
|
+
## Documentation
|
|
166
|
+
|
|
167
|
+
Detailed docs live in `docs/`: `ARCHITECTURE.md`, `CLI.md` (the output
|
|
168
|
+
contract), `CONFIGURATION.md`, `SAFETY.md`, `SUPPORT_MATRIX.md`,
|
|
169
|
+
`EXTENDING.md`, `TESTING.md`, `WORKFLOWS.md`, `TROUBLESHOOTING.md`,
|
|
170
|
+
`LIMITATIONS.md`, `VALIDATION.md`, `BENCHMARKS.md`, `DECISIONS.md`, and
|
|
171
|
+
`CONTRIBUTING_WITH_AI.md`. `AGENTS.md` is the concise entry point for a coding
|
|
172
|
+
agent.
|
|
173
|
+
|
|
174
|
+
## Feedback and support (post-release process)
|
|
175
|
+
|
|
176
|
+
AILDV is honest about what it does not do, so feedback that names a wrong
|
|
177
|
+
detection, a missed verification command, or a false pass is the most useful
|
|
178
|
+
kind. Please include:
|
|
179
|
+
|
|
180
|
+
1. The exact command and the AILDV version (`aildv --version`).
|
|
181
|
+
2. The repository type (language/framework) and its rough shape — not a
|
|
182
|
+
private repository's contents.
|
|
183
|
+
3. The output, with anything sensitive removed. Never paste secrets.
|
|
184
|
+
|
|
185
|
+
Use the bug-report issue template. Reported false passes and any secret that
|
|
186
|
+
reaches output are treated as release-blocking. See `docs/VALIDATION.md` for
|
|
187
|
+
the two gate items that are still outstanding, and `docs/LIMITATIONS.md` for
|
|
188
|
+
what is out of scope.
|
|
189
|
+
|
|
190
|
+
## License and third-party notices
|
|
191
|
+
|
|
192
|
+
AILDV is released under the MIT License (see `LICENSE`). Its single runtime
|
|
193
|
+
dependency is **PyYAML** (`PyYAML>=6,<7`), also MIT-licensed. Development
|
|
194
|
+
extras are `pytest` (MIT) and `ruff` (MIT). No other third-party code is
|
|
195
|
+
bundled. Redaction is best-effort and is not a security boundary; see
|
|
196
|
+
`docs/SAFETY.md`.
|
|
197
|
+
|
|
198
|
+
### GitLab CI verification discovery
|
|
199
|
+
|
|
200
|
+
`aildv verify .` now also reads a repository's `.gitlab-ci.yml` or
|
|
201
|
+
`.gitlab-ci.yaml` (up to 512 KB), without executing CI scripts during
|
|
202
|
+
inspection. It recognizes literal local test-runner commands including
|
|
203
|
+
`python -m unittest`, `python -m pytest`, coverage-wrapped Python tests,
|
|
204
|
+
`go test`, `dotnet test`, `flutter test`, basic Maven/Gradle test commands,
|
|
205
|
+
and `npm/pnpm/yarn/bun run test`. A literal `cd app` sets the command's working
|
|
206
|
+
directory. Discovered commands include their CI job and file origin.
|
|
207
|
+
|
|
208
|
+
Unsupported, dynamic, inherited and shell-chained commands are shown as
|
|
209
|
+
`unsupported` and are **not executable** by AILDV. Setup statements are
|
|
210
|
+
listed as prerequisites, not run automatically. Every CI job is classified
|
|
211
|
+
(`local-unit`, `integration`, `api`, `smoke`, `performance`, `external-scan`,
|
|
212
|
+
`deployment`, `setup`, `unknown`) and none is silently dropped; each
|
|
213
|
+
non-runnable job carries a human-readable reason. Jobs needing Docker,
|
|
214
|
+
external APIs, or AWS are `approval-required` (or `blocked` when the tool is
|
|
215
|
+
missing) and are never auto-run. `verify` remains a side-effect-free preview
|
|
216
|
+
unless `--run` is explicitly supplied. Executing a local test may invoke
|
|
217
|
+
repository-controlled scripts, so review the plan before opting in. GitLab
|
|
218
|
+
`include`, `extends`, conditional `rules`, shell expansion, and CI-only
|
|
219
|
+
environments are not fully resolved by M2. The original v0.1.0 commands and
|
|
220
|
+
JSON keys remain available.
|
aildv-1.0.0/README.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# AILDV — AI-Assisted Local Development & Verification
|
|
2
|
+
|
|
3
|
+
A read-only-first, cross-language CLI that **inspects existing repositories** and creates **tool-neutral, short AI collaboration instructions** without replacing your framework, tests, deployment tooling, or repository conventions.
|
|
4
|
+
|
|
5
|
+
Current release: **1.0.0**. Supported inspection patterns include Flutter/Dart, Go, Java/Maven/Gradle, .NET/C#/ASP.NET Core, Python, and Node.js/React/Vite, validated against real repositories (see `docs/VALIDATION.md`). This is heuristic inspection, not universal language/framework proof. Two release-gate items are still outstanding and are documented, not claimed: the with/without-AILDV benchmark and three coding-agent integrations — see `docs/BENCHMARKS.md` and `docs/VALIDATION.md`.
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
- Python 3.11 or newer
|
|
10
|
+
- A repository to inspect
|
|
11
|
+
- Optional: the relevant language SDK and test runner to execute checks
|
|
12
|
+
|
|
13
|
+
### Installation (Windows PowerShell)
|
|
14
|
+
|
|
15
|
+
```powershell
|
|
16
|
+
cd D:\faiz-personal\aildv
|
|
17
|
+
py -3.13 -m venv .venv
|
|
18
|
+
.\.venv\Scripts\Activate.ps1
|
|
19
|
+
python -m pip install -e ".[dev]"
|
|
20
|
+
python -m pytest -q
|
|
21
|
+
python -m ruff check src tests
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
macOS/Linux: use `python3 -m venv .venv` and `source .venv/bin/activate`.
|
|
25
|
+
|
|
26
|
+
## Commands
|
|
27
|
+
|
|
28
|
+
```powershell
|
|
29
|
+
# Read-only discovery
|
|
30
|
+
aildv inspect D:\repo\project
|
|
31
|
+
aildv inspect D:\repo\project --json
|
|
32
|
+
|
|
33
|
+
# Preview six generated files, no writes
|
|
34
|
+
aildv init D:\repo\project --dry-run
|
|
35
|
+
|
|
36
|
+
# Write only missing AI docs, preserving all pre-existing files
|
|
37
|
+
aildv init D:\repo\project
|
|
38
|
+
|
|
39
|
+
# Optional thin per-agent pointer files (canonical guidance stays in AGENTS.md)
|
|
40
|
+
aildv init D:\repo\project --agents claude,gemini,cursor
|
|
41
|
+
|
|
42
|
+
# Explicitly replace those generated document paths (review first)
|
|
43
|
+
aildv init D:\repo\project --force
|
|
44
|
+
|
|
45
|
+
# Preview detected unit/lint checks, no commands are executed
|
|
46
|
+
aildv verify D:\repo\project
|
|
47
|
+
aildv verify D:\repo\project --json
|
|
48
|
+
|
|
49
|
+
# Explicit opt-in to execute the detected commands locally
|
|
50
|
+
aildv verify D:\repo\project --run --timeout 300
|
|
51
|
+
|
|
52
|
+
# Deterministic feature impact analysis (no network, no LLM)
|
|
53
|
+
aildv feature plan "add caching to the order service" D:\repo\project
|
|
54
|
+
aildv feature plan "add caching to the order service" D:\repo\project --json
|
|
55
|
+
aildv feature context "add caching to the order service" D:\repo\project
|
|
56
|
+
|
|
57
|
+
# Read-only local toolchain discovery (never installs anything)
|
|
58
|
+
aildv env D:\repo\project
|
|
59
|
+
aildv env D:\repo\project --json
|
|
60
|
+
|
|
61
|
+
# Discover Compose services and running state (read-only)
|
|
62
|
+
aildv services D:\repo\project
|
|
63
|
+
# Start/stop only with explicit approval; never starts a duplicate
|
|
64
|
+
aildv services D:\repo\project --start --approve
|
|
65
|
+
|
|
66
|
+
# Discover OpenAPI endpoints and match a request to affected endpoints
|
|
67
|
+
aildv api D:\repo\project --request "update the orders endpoint"
|
|
68
|
+
# Diff two OpenAPI contracts (exit 1 when breaking changes exist)
|
|
69
|
+
aildv api D:\repo\project --base old-openapi.yml --head new-openapi.yml
|
|
70
|
+
|
|
71
|
+
# Discover database tech and migrations (local 127.0.0.1 probes only)
|
|
72
|
+
aildv db D:\repo\project
|
|
73
|
+
|
|
74
|
+
# Diagnose a saved verification results file (nothing executed)
|
|
75
|
+
aildv verify D:\repo\project --run --json --output results.json
|
|
76
|
+
aildv diagnose results.json
|
|
77
|
+
|
|
78
|
+
# Requirement -> files -> evidence traceability, with doc-impact suggestions
|
|
79
|
+
aildv trace "add caching to the order service" D:\repo\project --results results.json
|
|
80
|
+
# Local run history (recorded with `verify --run --history`)
|
|
81
|
+
aildv history D:\repo\project
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
`verify --run` **does** execute project tests/scripts, which may have side effects of their own. Review the preview before running it; use a safe, isolated development environment. The CLI itself never automatically starts Docker, runs deployments, creates test databases, or launches load/security tests. Executed steps report a preserved argument array, exit code, duration, capped and redacted output, and — when the runner reports one — a parsed test summary (counts and detail line, never invented). `approval-required` steps are never executed.
|
|
85
|
+
|
|
86
|
+
### Feature impact analysis
|
|
87
|
+
|
|
88
|
+
`aildv feature plan "<request>"` reports the repository evidence a request is
|
|
89
|
+
likely to touch — components, source files, tests, config, API definitions,
|
|
90
|
+
docs, contracts to preserve, and local verification commands — plus an explicit
|
|
91
|
+
**Unknowns** section. `aildv feature context "<request>"` emits a smaller,
|
|
92
|
+
deterministic bundle for an agent to read first. Both are heuristic
|
|
93
|
+
(path/keyword/manifest matching over inspected metadata): no network, no LLM
|
|
94
|
+
calls, and no invented requirements. Repeated runs are identical.
|
|
95
|
+
|
|
96
|
+
### Generated files
|
|
97
|
+
|
|
98
|
+
`aildv init` creates:
|
|
99
|
+
|
|
100
|
+
| File | Purpose |
|
|
101
|
+
| --- | --- |
|
|
102
|
+
| `AGENTS.md` | concise, tool-neutral agent rules |
|
|
103
|
+
| `ai/workflow.md` | reuse-first development loop |
|
|
104
|
+
| `ai/repository.md` | detected languages, infrastructure, component map |
|
|
105
|
+
| `ai/test-matrix.md` | discovered check commands, explicitly *not run* |
|
|
106
|
+
| `ai/qa-test-guide.md` | reusable functional/E2E QA checklist |
|
|
107
|
+
| `ai/report-template.md` | actual pass/fail/skip evidence template |
|
|
108
|
+
| `ai/handoff.md` | standard handoff format (observed vs claimed evidence) |
|
|
109
|
+
|
|
110
|
+
The CLI does not overwrite these files unless `--force` is explicitly supplied.
|
|
111
|
+
|
|
112
|
+
### Current detection behavior
|
|
113
|
+
|
|
114
|
+
- Inspects filenames, small known manifests, and package scripts; avoids reading arbitrary application code.
|
|
115
|
+
- Detects primary application candidates conservatively; a single recognized ASP.NET Core Web SDK project can be selected over unrelated console/test projects.
|
|
116
|
+
- Treats Flutter Android Gradle modules as supporting the root Flutter app.
|
|
117
|
+
- Excludes known generated Flutter plugin sources and vendored ASP.NET `wwwroot/lib` assets.
|
|
118
|
+
- Preserves `.NET projects` as a list of paths, with `project_details` exposing SDK/framework/test/reference metadata.
|
|
119
|
+
- Detects existing Go, Flutter, pytest, npm, Gradle, Maven, and `.NET` tests (subject to repository evidence).
|
|
120
|
+
- Provides a `project_map` alongside raw component evidence in JSON.
|
|
121
|
+
|
|
122
|
+
### Limitations
|
|
123
|
+
|
|
124
|
+
- Language discovery is based on manifest/file patterns. Monorepos, dynamic MSBuild imports, nonstandard project layouts, nested frontend workspaces, and custom scripts can require manual interpretation.
|
|
125
|
+
- Primary project remains unknown if multiple plausible applications exist without strong evidence.
|
|
126
|
+
- The inspector caps matched examples per label and the overall file scan. Truncated scans warn you; a tool not detected is not proof it does not exist.
|
|
127
|
+
- Docker Compose service discovery and approved start/stop are implemented (`aildv services`), but AILDV never deploys, destroys, or switches traffic. API-level test *generation*, authentication fixtures, performance/security testing, and autonomous repair loops are **not implemented**; AILDV discovers and classifies these but does not run them. The QA guide documents how to handle them manually.
|
|
128
|
+
- Automatic test execution is intentionally limited to test runners detected from evidence and never implies those checks passed until actually run.
|
|
129
|
+
- Do not run against untrusted repositories with `--run`: npm and other test scripts can execute arbitrary repository code.
|
|
130
|
+
|
|
131
|
+
## Validate common stacks
|
|
132
|
+
|
|
133
|
+
```powershell
|
|
134
|
+
$repositories = [ordered]@{
|
|
135
|
+
"Flutter" = "D:\repo\flutterproject"
|
|
136
|
+
"Go" = "D:\repo\GOproject"
|
|
137
|
+
"Java" = "D:\repo\javaproject"
|
|
138
|
+
".NET" = "D:\repo\DotNETproject"
|
|
139
|
+
"React" = "D:\repo\Reactproject"
|
|
140
|
+
}
|
|
141
|
+
foreach ($repo in $repositories.GetEnumerator()) {
|
|
142
|
+
Write-Host "`n========== $($repo.Key) ==========" -ForegroundColor Cyan
|
|
143
|
+
aildv inspect $repo.Value
|
|
144
|
+
aildv verify $repo.Value
|
|
145
|
+
aildv init $repo.Value --dry-run
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
For maintainers: tests are under `tests/`; local CLI entry point is `aildv.cli:main`; the packaged Agent Skill guidance is in `skills/aildv-onboard/SKILL.md`. Verify the CLI in a fresh environment with `python -m pytest -q` before releasing.
|
|
150
|
+
|
|
151
|
+
## Documentation
|
|
152
|
+
|
|
153
|
+
Detailed docs live in `docs/`: `ARCHITECTURE.md`, `CLI.md` (the output
|
|
154
|
+
contract), `CONFIGURATION.md`, `SAFETY.md`, `SUPPORT_MATRIX.md`,
|
|
155
|
+
`EXTENDING.md`, `TESTING.md`, `WORKFLOWS.md`, `TROUBLESHOOTING.md`,
|
|
156
|
+
`LIMITATIONS.md`, `VALIDATION.md`, `BENCHMARKS.md`, `DECISIONS.md`, and
|
|
157
|
+
`CONTRIBUTING_WITH_AI.md`. `AGENTS.md` is the concise entry point for a coding
|
|
158
|
+
agent.
|
|
159
|
+
|
|
160
|
+
## Feedback and support (post-release process)
|
|
161
|
+
|
|
162
|
+
AILDV is honest about what it does not do, so feedback that names a wrong
|
|
163
|
+
detection, a missed verification command, or a false pass is the most useful
|
|
164
|
+
kind. Please include:
|
|
165
|
+
|
|
166
|
+
1. The exact command and the AILDV version (`aildv --version`).
|
|
167
|
+
2. The repository type (language/framework) and its rough shape — not a
|
|
168
|
+
private repository's contents.
|
|
169
|
+
3. The output, with anything sensitive removed. Never paste secrets.
|
|
170
|
+
|
|
171
|
+
Use the bug-report issue template. Reported false passes and any secret that
|
|
172
|
+
reaches output are treated as release-blocking. See `docs/VALIDATION.md` for
|
|
173
|
+
the two gate items that are still outstanding, and `docs/LIMITATIONS.md` for
|
|
174
|
+
what is out of scope.
|
|
175
|
+
|
|
176
|
+
## License and third-party notices
|
|
177
|
+
|
|
178
|
+
AILDV is released under the MIT License (see `LICENSE`). Its single runtime
|
|
179
|
+
dependency is **PyYAML** (`PyYAML>=6,<7`), also MIT-licensed. Development
|
|
180
|
+
extras are `pytest` (MIT) and `ruff` (MIT). No other third-party code is
|
|
181
|
+
bundled. Redaction is best-effort and is not a security boundary; see
|
|
182
|
+
`docs/SAFETY.md`.
|
|
183
|
+
|
|
184
|
+
### GitLab CI verification discovery
|
|
185
|
+
|
|
186
|
+
`aildv verify .` now also reads a repository's `.gitlab-ci.yml` or
|
|
187
|
+
`.gitlab-ci.yaml` (up to 512 KB), without executing CI scripts during
|
|
188
|
+
inspection. It recognizes literal local test-runner commands including
|
|
189
|
+
`python -m unittest`, `python -m pytest`, coverage-wrapped Python tests,
|
|
190
|
+
`go test`, `dotnet test`, `flutter test`, basic Maven/Gradle test commands,
|
|
191
|
+
and `npm/pnpm/yarn/bun run test`. A literal `cd app` sets the command's working
|
|
192
|
+
directory. Discovered commands include their CI job and file origin.
|
|
193
|
+
|
|
194
|
+
Unsupported, dynamic, inherited and shell-chained commands are shown as
|
|
195
|
+
`unsupported` and are **not executable** by AILDV. Setup statements are
|
|
196
|
+
listed as prerequisites, not run automatically. Every CI job is classified
|
|
197
|
+
(`local-unit`, `integration`, `api`, `smoke`, `performance`, `external-scan`,
|
|
198
|
+
`deployment`, `setup`, `unknown`) and none is silently dropped; each
|
|
199
|
+
non-runnable job carries a human-readable reason. Jobs needing Docker,
|
|
200
|
+
external APIs, or AWS are `approval-required` (or `blocked` when the tool is
|
|
201
|
+
missing) and are never auto-run. `verify` remains a side-effect-free preview
|
|
202
|
+
unless `--run` is explicitly supplied. Executing a local test may invoke
|
|
203
|
+
repository-controlled scripts, so review the plan before opting in. GitLab
|
|
204
|
+
`include`, `extends`, conditional `rules`, shell expansion, and CI-only
|
|
205
|
+
environments are not fully resolved by M2. The original v0.1.0 commands and
|
|
206
|
+
JSON keys remain available.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "aildv"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "AI-Assisted Local Development and Verification"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
dependencies = ["PyYAML>=6,<7"]
|
|
13
|
+
|
|
14
|
+
[project.optional-dependencies]
|
|
15
|
+
dev = [
|
|
16
|
+
"pytest>=8",
|
|
17
|
+
"ruff>=0.9"
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.scripts]
|
|
21
|
+
aildv = "aildv.cli:main"
|
|
22
|
+
|
|
23
|
+
[tool.setuptools.packages.find]
|
|
24
|
+
where = ["src"]
|
|
25
|
+
|
|
26
|
+
[tool.pytest.ini_options]
|
|
27
|
+
testpaths = ["tests"]
|
|
28
|
+
|
|
29
|
+
[tool.ruff]
|
|
30
|
+
line-length = 100
|
|
31
|
+
target-version = "py311"
|
aildv-1.0.0/setup.cfg
ADDED
|
File without changes
|