patchwise 0.9.4__tar.gz → 0.9.5__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.
- {patchwise-0.9.4 → patchwise-0.9.5}/PKG-INFO +7 -7
- {patchwise-0.9.4 → patchwise-0.9.5}/README.md +5 -5
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/default_config.yaml +2 -2
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/docker.py +2 -1
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/__init__.py +5 -2
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_agent/agent.py +3 -1
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/ai_code_review.py +50 -84
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/patch_review.py +4 -1
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise.egg-info/PKG-INFO +7 -7
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise.egg-info/requires.txt +1 -1
- {patchwise-0.9.4 → patchwise-0.9.5}/pyproject.toml +2 -2
- {patchwise-0.9.4 → patchwise-0.9.5}/LICENSE.txt +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/__init__.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/dockerfiles/AiCodeReview.Dockerfile +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/dockerfiles/Checkpatch.Dockerfile +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/dockerfiles/Coccicheck.Dockerfile +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/dockerfiles/CrashdumpAgent.Dockerfile +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/dockerfiles/DtCheck.Dockerfile +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/dockerfiles/DtbsCheck.Dockerfile +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/dockerfiles/LLMCommitAudit.Dockerfile +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/dockerfiles/Sparse.Dockerfile +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/dockerfiles/base.Dockerfile +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/logger_setup.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/mail_handler/__init__.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/mail_handler/ai_models.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/mail_handler/cli.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/mail_handler/config.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/mail_handler/handler.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/mail_handler/mail_client.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/mail_handler/utils.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/main.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_agent/__init__.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_agent/tool_definitions.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_fix/__init__.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_fix/ai_fix.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_fix/ai_patch_fix.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_fix/checkpatch_fixer.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_fix/kernel_docs_rag.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_fix/sparse_fixer.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/__init__.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/ai_review.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/fetch_reviewer_comment.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/llm_commit_audit.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/review_prompts.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/root_cause_analysis.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/ts_cache.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/ts_indexer.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/decorators.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/kernel_tree.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/static_analysis/__init__.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/static_analysis/checkpatch.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/static_analysis/coccicheck.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/static_analysis/dt_check.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/static_analysis/dtbs_check.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/static_analysis/sparse.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/static_analysis/static_analysis.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/stats/__init__.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/stats/dashboard.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/ui/__init__.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/ui/dashboard.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/ui/events.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/ui/screen.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/utils/config.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/utils/decorators.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/utils/lru_cache.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/utils/repo_workspace.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise/utils/tui.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise.egg-info/SOURCES.txt +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise.egg-info/dependency_links.txt +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise.egg-info/entry_points.txt +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/patchwise.egg-info/top_level.txt +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/setup.cfg +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/tests/test_mail_handler_series_refs.py +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/false-positive-guide.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/alignment.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/arm64.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/ata.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/block.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/bluetooth.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/boot-params.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/bpf.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/btf.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/btrfs.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/build.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/cleanup.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/cxl.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/dax.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/drm.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/dt-bindings.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/fscrypt.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/gic-v3.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/gic-v5.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/hid.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/hyp-arm64.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/i2c.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/input.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/io-accessors.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/io_uring.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/kconfig.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/kho.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/kvm-arm64.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/kvm.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/libbpf.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/locking.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mips.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mm-alloc.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mm-folio.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mm-largepage.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mm-pagetable.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mm-reclaim.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mm-vma.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/netlink.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/networking-core.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/networking-drivers.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/nfsd.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/objtool.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/of.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/pci.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/perf.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/pm.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/pmdomain.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/rcu.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/rust.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/scheduler.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/selftests.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/smb-ksmbd.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/subjective-review.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/subsystem-template.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/subsystem.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/sunrpc.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/syscall.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/sysfs.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/timers.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/tracing.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/tty.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/usb-storage.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/vfs.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/wireless.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/workqueue.md +0 -0
- {patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/technical-patterns.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: patchwise
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: AI Code Review, Root Cause Analysis and Static Analysis for the Linux kernel
|
|
5
5
|
Author-email: "Qualcomm Technologies, Inc." <qc.opensource@qti.qualcomm.com>
|
|
6
6
|
Maintainer-email: Aditya Chillara <achillar@qti.qualcomm.com>
|
|
@@ -10,7 +10,7 @@ Requires-Python: >=3.10
|
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE.txt
|
|
12
12
|
Requires-Dist: Sphinx>=8.1.3
|
|
13
|
-
Requires-Dist: litellm<=1.105.4,>=1.
|
|
13
|
+
Requires-Dist: litellm<=1.105.4,>=1.103.0
|
|
14
14
|
Requires-Dist: cachetools>=5.5.2
|
|
15
15
|
Requires-Dist: chromadb>=0.4.0
|
|
16
16
|
Requires-Dist: yamllint>=1.26.3
|
|
@@ -167,8 +167,8 @@ Dynamic: license-file
|
|
|
167
167
|
### AI Code Review
|
|
168
168
|
|
|
169
169
|
`AiCodeReview` reviews a patch in three phases: **PLAN** (a planner ↔ critic
|
|
170
|
-
loop splits the diff into analysis angles), **EXEC** (a
|
|
171
|
-
|
|
170
|
+
loop splits the diff into analysis angles), **EXEC** (a single reviewer covers
|
|
171
|
+
all the angles in one pass against the real code), and **FILTER** (drops
|
|
172
172
|
proven false positives) before rendering the final inline review.
|
|
173
173
|
|
|
174
174
|
```bash
|
|
@@ -186,7 +186,7 @@ flowchart TD
|
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
B(( )) --> P
|
|
189
|
-
C -->|converged| D["EXEC\n(
|
|
189
|
+
C -->|converged| D["EXEC\n(review)"]
|
|
190
190
|
D --> E["FILTER\n(drop false positives)"]
|
|
191
191
|
E --> F(["Inline review"])
|
|
192
192
|
```
|
|
@@ -195,7 +195,7 @@ Each phase has its own iteration budget, each overridable via env:
|
|
|
195
195
|
|
|
196
196
|
| Phase | Default cap | Override env |
|
|
197
197
|
|-------|-------------|---------------|
|
|
198
|
-
| Critic loop | `MAX_PLAN_ITERATIONS =
|
|
198
|
+
| Critic loop | `MAX_PLAN_ITERATIONS = 5` rounds | `PATCHWISE_MAX_PLAN_ITERATIONS` |
|
|
199
199
|
| Critic (per round) | `CRITIC_ITER_CAP = 10` | `PATCHWISE_CRITIC_ITER_CAP` |
|
|
200
200
|
| Execution | `EXEC_ITER_CAP = 100` | `PATCHWISE_EXEC_ITER_CAP` |
|
|
201
201
|
| FP filter | `FP_ITER_CAP = 50` | `PATCHWISE_FP_ITER_CAP` |
|
|
@@ -377,7 +377,7 @@ PatchWise merges [`patchwise/default_config.yaml`](patchwise/default_config.yaml
|
|
|
377
377
|
|
|
378
378
|
### Ai Review Options
|
|
379
379
|
|
|
380
|
-
- `--model`: Specify the AI model to use for code review. (default: `openai/Pro`).
|
|
380
|
+
- `--model`: Specify the AI model to use for code review. (default: `openai/responses/Pro`). Use the `openai/responses/` prefix for OpenAI models, e.g. `openai/responses/gpt-6.1-sol`, which routes requests through the `/v1/responses`.
|
|
381
381
|
- `--provider`: The base URL for the AI model API. (default: `https://api.openai.com/v1`)
|
|
382
382
|
- `--reasoning-effort`: Reasoning-effort hint for reasoning models, e.g. `low`/`medium`/`high`. Unset uses the model default.
|
|
383
383
|
- `--additional-context`: Extra text injected into the review/analysis prompt (e.g. a known reproducer or debugging notes). Shared across review and `--rca` modes.
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
### AI Code Review
|
|
131
131
|
|
|
132
132
|
`AiCodeReview` reviews a patch in three phases: **PLAN** (a planner ↔ critic
|
|
133
|
-
loop splits the diff into analysis angles), **EXEC** (a
|
|
134
|
-
|
|
133
|
+
loop splits the diff into analysis angles), **EXEC** (a single reviewer covers
|
|
134
|
+
all the angles in one pass against the real code), and **FILTER** (drops
|
|
135
135
|
proven false positives) before rendering the final inline review.
|
|
136
136
|
|
|
137
137
|
```bash
|
|
@@ -149,7 +149,7 @@ flowchart TD
|
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
B(( )) --> P
|
|
152
|
-
C -->|converged| D["EXEC\n(
|
|
152
|
+
C -->|converged| D["EXEC\n(review)"]
|
|
153
153
|
D --> E["FILTER\n(drop false positives)"]
|
|
154
154
|
E --> F(["Inline review"])
|
|
155
155
|
```
|
|
@@ -158,7 +158,7 @@ Each phase has its own iteration budget, each overridable via env:
|
|
|
158
158
|
|
|
159
159
|
| Phase | Default cap | Override env |
|
|
160
160
|
|-------|-------------|---------------|
|
|
161
|
-
| Critic loop | `MAX_PLAN_ITERATIONS =
|
|
161
|
+
| Critic loop | `MAX_PLAN_ITERATIONS = 5` rounds | `PATCHWISE_MAX_PLAN_ITERATIONS` |
|
|
162
162
|
| Critic (per round) | `CRITIC_ITER_CAP = 10` | `PATCHWISE_CRITIC_ITER_CAP` |
|
|
163
163
|
| Execution | `EXEC_ITER_CAP = 100` | `PATCHWISE_EXEC_ITER_CAP` |
|
|
164
164
|
| FP filter | `FP_ITER_CAP = 50` | `PATCHWISE_FP_ITER_CAP` |
|
|
@@ -340,7 +340,7 @@ PatchWise merges [`patchwise/default_config.yaml`](patchwise/default_config.yaml
|
|
|
340
340
|
|
|
341
341
|
### Ai Review Options
|
|
342
342
|
|
|
343
|
-
- `--model`: Specify the AI model to use for code review. (default: `openai/Pro`).
|
|
343
|
+
- `--model`: Specify the AI model to use for code review. (default: `openai/responses/Pro`). Use the `openai/responses/` prefix for OpenAI models, e.g. `openai/responses/gpt-6.1-sol`, which routes requests through the `/v1/responses`.
|
|
344
344
|
- `--provider`: The base URL for the AI model API. (default: `https://api.openai.com/v1`)
|
|
345
345
|
- `--reasoning-effort`: Reasoning-effort hint for reasoning models, e.g. `low`/`medium`/`high`. Unset uses the model default.
|
|
346
346
|
- `--additional-context`: Extra text injected into the review/analysis prompt (e.g. a known reproducer or debugging notes). Shared across review and `--rca` modes.
|
|
@@ -17,7 +17,7 @@ git_committer:
|
|
|
17
17
|
name: "Patchwise"
|
|
18
18
|
email: "patchwise@qualcomm.com"
|
|
19
19
|
ai:
|
|
20
|
-
model: "openai/Pro"
|
|
20
|
+
model: "openai/responses/Pro"
|
|
21
21
|
provider: "https://api.openai.com/v1"
|
|
22
22
|
# API key for the AI model API. Leave empty to fall back to the provider's
|
|
23
23
|
# usual environment variable (e.g. OPENAI_API_KEY). Override in
|
|
@@ -28,7 +28,7 @@ ai:
|
|
|
28
28
|
# ~/.config/patchwise_config.yaml, e.g.:
|
|
29
29
|
# ai:
|
|
30
30
|
# models:
|
|
31
|
-
# openai/Pro: "
|
|
31
|
+
# openai/responses/Pro: "The Pro model"
|
|
32
32
|
models: {}
|
|
33
33
|
# Accepts: "inline" or "gerrit".
|
|
34
34
|
output_format: "inline"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
2
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
3
3
|
|
|
4
|
+
import os
|
|
4
5
|
import logging
|
|
5
6
|
import subprocess
|
|
6
7
|
import sys
|
|
@@ -564,7 +565,7 @@ class DockerManager:
|
|
|
564
565
|
|
|
565
566
|
# Create a temporary base container to initialize the volume
|
|
566
567
|
base_image_tag = "patchwise-base:latest"
|
|
567
|
-
init_container_name = f"patchwise-init-{current_commit_sha[:8]}"
|
|
568
|
+
init_container_name = f"patchwise-init-{current_commit_sha[:8]}-{os.getpid()}"
|
|
568
569
|
|
|
569
570
|
try:
|
|
570
571
|
# Start container with the shared volume mounted
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import argparse
|
|
5
5
|
import atexit
|
|
6
6
|
import logging
|
|
7
|
+
import os
|
|
7
8
|
import signal
|
|
8
9
|
from typing import Any, Iterable
|
|
9
10
|
|
|
@@ -56,7 +57,7 @@ def prepare_containers_and_build_volume(
|
|
|
56
57
|
# Always ensure base container is built first
|
|
57
58
|
base_dockerfile = DOCKERFILES_PATH / "base.Dockerfile"
|
|
58
59
|
base_image_tag = "patchwise-base:latest"
|
|
59
|
-
base_container_name = f"patchwise-base-latest-{commit.hexsha}"
|
|
60
|
+
base_container_name = f"patchwise-base-latest-{commit.hexsha}-{os.getpid()}"
|
|
60
61
|
|
|
61
62
|
base_manager = DockerManager(
|
|
62
63
|
base_image_tag, base_container_name, Path(repo_path), commit.hexsha
|
|
@@ -76,7 +77,9 @@ def prepare_containers_and_build_volume(
|
|
|
76
77
|
image_tag = f"patchwise-{review_class.__name__.lower()}"
|
|
77
78
|
|
|
78
79
|
if image_tag not in built_images:
|
|
79
|
-
container_name =
|
|
80
|
+
container_name = (
|
|
81
|
+
f"{image_tag.replace(':', '-')}-{commit.hexsha}-{os.getpid()}"
|
|
82
|
+
)
|
|
80
83
|
manager = DockerManager(
|
|
81
84
|
image_tag, container_name, Path(repo_path), commit.hexsha
|
|
82
85
|
)
|
|
@@ -41,7 +41,7 @@ urllib3.disable_warnings()
|
|
|
41
41
|
# the console, repeatedly, and corrupts the live dashboard.
|
|
42
42
|
litellm.suppress_debug_info = True
|
|
43
43
|
|
|
44
|
-
DEFAULT_MODEL = "openai/Pro"
|
|
44
|
+
DEFAULT_MODEL = "openai/responses/Pro"
|
|
45
45
|
DEFAULT_API_BASE = "https://api.openai.com/v1"
|
|
46
46
|
AGENT_MAX_ITERATIONS = 50
|
|
47
47
|
|
|
@@ -228,6 +228,8 @@ class Agent:
|
|
|
228
228
|
def _mark_openai(kwargs: dict, marked: List[dict]) -> None:
|
|
229
229
|
if not marked:
|
|
230
230
|
return
|
|
231
|
+
# TODO: LiteLLM's openai/responses/ bridge drops these markers as of
|
|
232
|
+
# 1.105.4. Remove this note once upstream preserves the breakpoints.
|
|
231
233
|
for block in marked:
|
|
232
234
|
# OpenAI honors a per-block breakpoint only if the request opts in.
|
|
233
235
|
block["prompt_cache_breakpoint"] = {"mode": "explicit"}
|
|
@@ -53,11 +53,10 @@ class AiCodeReview(AiReview):
|
|
|
53
53
|
the plan: it adds a unit for any missed defect class or uncovered
|
|
54
54
|
subsystem concern.
|
|
55
55
|
2. EXEC — the planned angles are folded into one combined unit
|
|
56
|
-
(_merge_units) that a single reviewer
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
findings.
|
|
56
|
+
(_merge_units) that a single reviewer takes as the planner's
|
|
57
|
+
survey, an incomplete map of what to cover in one pass. It loads
|
|
58
|
+
the matching subsystem guide(s) itself, then emits free-form,
|
|
59
|
+
evidence-bearing findings.
|
|
61
60
|
3. FILTER— one pass proves-or-drops each finding against the false-positive
|
|
62
61
|
guide, emitting the survivors unchanged. A separate cleanup pass
|
|
63
62
|
(format_chat_response) renders them into the inline review.
|
|
@@ -196,10 +195,10 @@ robustness, and quality expectations of the kernel. You enumerate the dimensions
|
|
|
196
195
|
the reviewer finds the bugs.
|
|
197
196
|
|
|
198
197
|
Read the diff and decide which dimensions this change calls for. Create one unit
|
|
199
|
-
per dimension the change exercises,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
198
|
+
per dimension the change exercises, and name that dimension in its `dimension`
|
|
199
|
+
field. A single function may warrant several dimensions, and one dimension may
|
|
200
|
+
span several functions. Each unit is a dimension the reviewer investigates
|
|
201
|
+
exhaustively.
|
|
203
202
|
|
|
204
203
|
Treat the patch's decisions as open questions, not settled facts. Beyond
|
|
205
204
|
dimensions covering whether the change is implemented correctly, create a unit
|
|
@@ -213,14 +212,12 @@ right one.
|
|
|
213
212
|
|
|
214
213
|
Emit only a fenced ```json array of units. `dimension` names the single
|
|
215
214
|
analysis angle this unit covers (a short noun phrase you choose — the lens a
|
|
216
|
-
reviewer applies
|
|
215
|
+
reviewer applies, not a specific bug):
|
|
217
216
|
|
|
218
217
|
```json
|
|
219
218
|
[ { "id": "t1",
|
|
220
219
|
"dimension": "the analysis angle this unit covers",
|
|
221
220
|
"focus": "what this reviewer should examine",
|
|
222
|
-
"files": ["drivers/x/y.c"],
|
|
223
|
-
"symbols": ["foo_get", "foo_put"],
|
|
224
221
|
"rationale": "why this is its own unit" } ]
|
|
225
222
|
```
|
|
226
223
|
"""
|
|
@@ -310,33 +307,35 @@ name the concern, do not write the analysis.
|
|
|
310
307
|
EXECUTION_INSTRUCTIONS = """
|
|
311
308
|
# Patch Reviewer
|
|
312
309
|
|
|
313
|
-
You are a Linux kernel maintainer. Review this patch
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
310
|
+
You are a Linux kernel maintainer. Review this patch exhaustively and report
|
|
311
|
+
every issue you can ground in the code. A planner surveyed the areas this patch
|
|
312
|
+
puts at risk; its survey is below. The planner saw only the diff and had no
|
|
313
|
+
tools, so its survey is incomplete. Your review covers these areas and
|
|
314
|
+
everything else the patch affects. The issues a patch introduces can lie
|
|
315
|
+
anywhere in the kernel, in the diff or in the code it affects, under any kernel
|
|
316
|
+
configuration. Every question you raise during the review carries the same
|
|
317
|
+
weight as the planner's areas: pursue it to its end in the code it reaches.
|
|
318
|
+
Hold the code the patch affects to the same standard as the diff.
|
|
319
|
+
|
|
320
|
+
## Planner's survey
|
|
322
321
|
"""
|
|
323
322
|
|
|
324
323
|
EXECUTION_METHOD_BLOCK = """
|
|
325
|
-
##
|
|
324
|
+
## References and reporting
|
|
326
325
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
`Documentation/` sections when a contract is relevant.
|
|
330
|
-
path through the real code
|
|
331
|
-
|
|
326
|
+
Load the guide for each subsystem the review touches from the Subsystem Review
|
|
327
|
+
Guide Index above with `get_subsystem_review_guide(<file>)`. Read kernel
|
|
328
|
+
`Documentation/` sections when a contract is relevant. Ground each issue in a
|
|
329
|
+
concrete execution path through the real code: the actual implementation behind
|
|
330
|
+
every behaviour the issue relies on.
|
|
332
331
|
|
|
333
332
|
The Kernel Technical Patterns above catalog common kernel defect classes.
|
|
334
333
|
|
|
335
334
|
Report every issue you can ground in the code by calling `record_finding(location,
|
|
336
335
|
finding)` as you confirm it. Record findings as you go rather than saving them all
|
|
337
336
|
for a final message — a recorded finding is preserved even if the review is cut
|
|
338
|
-
short, and lets you move on
|
|
339
|
-
|
|
337
|
+
short, and lets you move on without carrying it. Recording a finding does not
|
|
338
|
+
end the review; continue until you have reviewed everything the patch affects.
|
|
340
339
|
"""
|
|
341
340
|
|
|
342
341
|
# Phase 3 (FALSE-POSITIVE FILTER) prompt
|
|
@@ -404,8 +403,8 @@ A plan critic reviewed your work-list and raised these points:
|
|
|
404
403
|
{feedback}
|
|
405
404
|
|
|
406
405
|
Revise your work-list to address them — add, merge, split, or rescope subtasks
|
|
407
|
-
as needed, keeping them disjoint
|
|
408
|
-
|
|
406
|
+
as needed, keeping them disjoint. Output the full updated JSON array in the
|
|
407
|
+
same format as before.
|
|
409
408
|
"""
|
|
410
409
|
|
|
411
410
|
CRITIC_RESUME_TEMPLATE = """
|
|
@@ -574,18 +573,7 @@ finding with record_verdict as you work through them.
|
|
|
574
573
|
)
|
|
575
574
|
|
|
576
575
|
def _execution_system_prompt(self, task: Dict[str, Any]) -> tuple[str, ...]:
|
|
577
|
-
|
|
578
|
-
vals = task.get(key) or []
|
|
579
|
-
if isinstance(vals, str):
|
|
580
|
-
vals = [vals]
|
|
581
|
-
return ", ".join(str(v) for v in vals) if vals else "(none specified)"
|
|
582
|
-
|
|
583
|
-
assignment = (
|
|
584
|
-
f"{task.get('prose', '(unspecified)')}\n\n"
|
|
585
|
-
f"Full scope across all angles:\n"
|
|
586
|
-
f"- Files: {_fmt_list('files')}\n"
|
|
587
|
-
f"- Symbols: {_fmt_list('symbols')}\n"
|
|
588
|
-
)
|
|
576
|
+
assignment = f"{task.get('prose', '(unspecified)')}\n"
|
|
589
577
|
return (
|
|
590
578
|
self._system_prompt_header(),
|
|
591
579
|
self._static_guides(),
|
|
@@ -960,7 +948,9 @@ finding with record_verdict as you work through them.
|
|
|
960
948
|
),
|
|
961
949
|
)
|
|
962
950
|
|
|
963
|
-
def _plan_phase(
|
|
951
|
+
def _plan_phase(
|
|
952
|
+
self, shared_user: str, commit_text: str
|
|
953
|
+
) -> Tuple[List[Dict[str, Any]], int, bool, List[str]]:
|
|
964
954
|
# Planner: split the diff into units, with no taxonomy/subsystem priors.
|
|
965
955
|
# The conversation is reused across rounds so the planner revises its own
|
|
966
956
|
# plan in light of the critic's feedback (planner -> critic -> planner).
|
|
@@ -1037,7 +1027,7 @@ finding with record_verdict as you work through them.
|
|
|
1037
1027
|
|
|
1038
1028
|
final = self._normalize_tasks(tasks)
|
|
1039
1029
|
events.emit(events.PLAN, tasks=final)
|
|
1040
|
-
return final, plan_rounds, plan_converged
|
|
1030
|
+
return final, plan_rounds, plan_converged, list(preloaded_guides)
|
|
1041
1031
|
|
|
1042
1032
|
# Phase 2: EXECUTION
|
|
1043
1033
|
|
|
@@ -1047,44 +1037,18 @@ finding with record_verdict as you work through them.
|
|
|
1047
1037
|
return int(raw) if raw and raw.isdigit() and int(raw) > 0 else self.EXEC_ITER_CAP
|
|
1048
1038
|
|
|
1049
1039
|
@staticmethod
|
|
1050
|
-
def _merge_units(
|
|
1040
|
+
def _merge_units(
|
|
1041
|
+
tasks: List[Dict[str, Any]], guides: List[str]
|
|
1042
|
+
) -> Dict[str, Any]:
|
|
1051
1043
|
"""Collapse all planned units into one combined unit for a single worker."""
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
for t in tasks:
|
|
1061
|
-
for v in _vals(t, key):
|
|
1062
|
-
seen.setdefault(v, None)
|
|
1063
|
-
return list(seen.keys())
|
|
1064
|
-
|
|
1065
|
-
# Each angle keeps the planner's own scope so the reviewer knows which
|
|
1066
|
-
# files/symbols belong to which dimension; a flat union would lose that.
|
|
1067
|
-
blocks = []
|
|
1068
|
-
for i, t in enumerate(tasks, 1):
|
|
1069
|
-
scope = ", ".join(_vals(t, "files") + _vals(t, "symbols"))
|
|
1070
|
-
block = f"{i}. {t.get('dimension', '?')}: {t.get('focus', '(unspecified)')}"
|
|
1071
|
-
if scope:
|
|
1072
|
-
block += f"\n Scope: {scope}"
|
|
1073
|
-
blocks.append(block)
|
|
1074
|
-
angles = "\n".join(blocks)
|
|
1075
|
-
prose = (
|
|
1076
|
-
"Review the entire patch exhaustively. Investigate EVERY one of the "
|
|
1077
|
-
"following analysis angles thoroughly and independently — treat each "
|
|
1078
|
-
"as a separate pass, do not stop early once you have found one issue:\n"
|
|
1079
|
-
f"{angles}"
|
|
1080
|
-
)
|
|
1081
|
-
return {
|
|
1082
|
-
"id": "t1",
|
|
1083
|
-
"prose": prose,
|
|
1084
|
-
"files": _union("files"),
|
|
1085
|
-
"symbols": _union("symbols"),
|
|
1086
|
-
"source": "merged",
|
|
1087
|
-
}
|
|
1044
|
+
notes = [
|
|
1045
|
+
f"{t.get('dimension', '?')}: {t.get('focus', '(unspecified)')}"
|
|
1046
|
+
for t in tasks
|
|
1047
|
+
]
|
|
1048
|
+
if guides:
|
|
1049
|
+
notes.append(f"Suggested subsystem guides: {', '.join(guides)}")
|
|
1050
|
+
prose = "\n".join(f"{i}. {note}" for i, note in enumerate(notes, 1))
|
|
1051
|
+
return {"id": "t1", "prose": prose, "source": "merged"}
|
|
1088
1052
|
|
|
1089
1053
|
def _run_unit(
|
|
1090
1054
|
self, idx: int, n: int, task: Dict[str, Any], shared_user: str
|
|
@@ -1619,7 +1583,9 @@ finding with record_verdict as you work through them.
|
|
|
1619
1583
|
|
|
1620
1584
|
# Phase 1: PLAN (planner splits, critic refines with taxonomy + guides).
|
|
1621
1585
|
events.emit(events.PHASE, name="plan")
|
|
1622
|
-
tasks, plan_rounds, plan_converged = self._plan_phase(
|
|
1586
|
+
tasks, plan_rounds, plan_converged, guides = self._plan_phase(
|
|
1587
|
+
shared_user, self.commit_message
|
|
1588
|
+
)
|
|
1623
1589
|
self._dump("plan.json", json.dumps(tasks, indent=2))
|
|
1624
1590
|
# Count the dimensions in the final plan before they are merged into the
|
|
1625
1591
|
# single execution unit below (else len(tasks) would always read 1).
|
|
@@ -1631,7 +1597,7 @@ finding with record_verdict as you work through them.
|
|
|
1631
1597
|
# design, not an option — fanning out one reviewer per unit fragments
|
|
1632
1598
|
# the review and multiplies tokens for no recall gain.
|
|
1633
1599
|
if tasks:
|
|
1634
|
-
tasks = [self._merge_units(tasks)]
|
|
1600
|
+
tasks = [self._merge_units(tasks, guides)]
|
|
1635
1601
|
self.logger.debug("[plan] collapsed to 1 combined execution unit.")
|
|
1636
1602
|
|
|
1637
1603
|
# Context-window guard: bound the worker's per-request INPUT size so it
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import abc
|
|
5
5
|
import logging
|
|
6
|
+
import os
|
|
6
7
|
import subprocess
|
|
7
8
|
import sys
|
|
8
9
|
import time
|
|
@@ -47,7 +48,9 @@ class PatchReview(abc.ABC):
|
|
|
47
48
|
image_tag = "patchwise-base:latest"
|
|
48
49
|
else:
|
|
49
50
|
image_tag = f"{PACKAGE_NAME.lower()}-{self.__class__.__name__.lower()}"
|
|
50
|
-
container_name =
|
|
51
|
+
container_name = (
|
|
52
|
+
f"{image_tag.replace(':', '-')}-{self.commit.hexsha}-{os.getpid()}"
|
|
53
|
+
)
|
|
51
54
|
|
|
52
55
|
self.docker_manager = DockerManager(
|
|
53
56
|
image_tag=image_tag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: patchwise
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: AI Code Review, Root Cause Analysis and Static Analysis for the Linux kernel
|
|
5
5
|
Author-email: "Qualcomm Technologies, Inc." <qc.opensource@qti.qualcomm.com>
|
|
6
6
|
Maintainer-email: Aditya Chillara <achillar@qti.qualcomm.com>
|
|
@@ -10,7 +10,7 @@ Requires-Python: >=3.10
|
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE.txt
|
|
12
12
|
Requires-Dist: Sphinx>=8.1.3
|
|
13
|
-
Requires-Dist: litellm<=1.105.4,>=1.
|
|
13
|
+
Requires-Dist: litellm<=1.105.4,>=1.103.0
|
|
14
14
|
Requires-Dist: cachetools>=5.5.2
|
|
15
15
|
Requires-Dist: chromadb>=0.4.0
|
|
16
16
|
Requires-Dist: yamllint>=1.26.3
|
|
@@ -167,8 +167,8 @@ Dynamic: license-file
|
|
|
167
167
|
### AI Code Review
|
|
168
168
|
|
|
169
169
|
`AiCodeReview` reviews a patch in three phases: **PLAN** (a planner ↔ critic
|
|
170
|
-
loop splits the diff into analysis angles), **EXEC** (a
|
|
171
|
-
|
|
170
|
+
loop splits the diff into analysis angles), **EXEC** (a single reviewer covers
|
|
171
|
+
all the angles in one pass against the real code), and **FILTER** (drops
|
|
172
172
|
proven false positives) before rendering the final inline review.
|
|
173
173
|
|
|
174
174
|
```bash
|
|
@@ -186,7 +186,7 @@ flowchart TD
|
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
B(( )) --> P
|
|
189
|
-
C -->|converged| D["EXEC\n(
|
|
189
|
+
C -->|converged| D["EXEC\n(review)"]
|
|
190
190
|
D --> E["FILTER\n(drop false positives)"]
|
|
191
191
|
E --> F(["Inline review"])
|
|
192
192
|
```
|
|
@@ -195,7 +195,7 @@ Each phase has its own iteration budget, each overridable via env:
|
|
|
195
195
|
|
|
196
196
|
| Phase | Default cap | Override env |
|
|
197
197
|
|-------|-------------|---------------|
|
|
198
|
-
| Critic loop | `MAX_PLAN_ITERATIONS =
|
|
198
|
+
| Critic loop | `MAX_PLAN_ITERATIONS = 5` rounds | `PATCHWISE_MAX_PLAN_ITERATIONS` |
|
|
199
199
|
| Critic (per round) | `CRITIC_ITER_CAP = 10` | `PATCHWISE_CRITIC_ITER_CAP` |
|
|
200
200
|
| Execution | `EXEC_ITER_CAP = 100` | `PATCHWISE_EXEC_ITER_CAP` |
|
|
201
201
|
| FP filter | `FP_ITER_CAP = 50` | `PATCHWISE_FP_ITER_CAP` |
|
|
@@ -377,7 +377,7 @@ PatchWise merges [`patchwise/default_config.yaml`](patchwise/default_config.yaml
|
|
|
377
377
|
|
|
378
378
|
### Ai Review Options
|
|
379
379
|
|
|
380
|
-
- `--model`: Specify the AI model to use for code review. (default: `openai/Pro`).
|
|
380
|
+
- `--model`: Specify the AI model to use for code review. (default: `openai/responses/Pro`). Use the `openai/responses/` prefix for OpenAI models, e.g. `openai/responses/gpt-6.1-sol`, which routes requests through the `/v1/responses`.
|
|
381
381
|
- `--provider`: The base URL for the AI model API. (default: `https://api.openai.com/v1`)
|
|
382
382
|
- `--reasoning-effort`: Reasoning-effort hint for reasoning models, e.g. `low`/`medium`/`high`. Unset uses the model default.
|
|
383
383
|
- `--additional-context`: Extra text injected into the review/analysis prompt (e.g. a known reproducer or debugging notes). Shared across review and `--rca` modes.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "patchwise"
|
|
7
|
-
version = "0.9.
|
|
7
|
+
version = "0.9.5"
|
|
8
8
|
description = "AI Code Review, Root Cause Analysis and Static Analysis for the Linux kernel"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Qualcomm Technologies, Inc.", email = "qc.opensource@qti.qualcomm.com" }
|
|
@@ -15,7 +15,7 @@ maintainers = [
|
|
|
15
15
|
requires-python = ">=3.10"
|
|
16
16
|
dependencies = [
|
|
17
17
|
"Sphinx>=8.1.3",
|
|
18
|
-
"litellm>=1.
|
|
18
|
+
"litellm>=1.103.0,<=1.105.4",
|
|
19
19
|
"cachetools>=5.5.2",
|
|
20
20
|
"chromadb>=0.4.0",
|
|
21
21
|
# "dtschema>=2025.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/ai_review/fetch_reviewer_comment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/patchwise/patch_review/static_analysis/static_analysis.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/false-positive-guide.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/boot-params.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/dt-bindings.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/io-accessors.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mm-largepage.md
RENAMED
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mm-pagetable.md
RENAMED
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/mm-reclaim.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/networking-core.md
RENAMED
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/networking-drivers.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/subjective-review.md
RENAMED
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/subsystem-template.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{patchwise-0.9.4 → patchwise-0.9.5}/thirdparty/review-prompts/kernel/subsystem/usb-storage.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|