opencode-azure-devops-pr-review 0.2.3 → 0.3.1
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.
- package/AGENTS.md +12 -0
- package/CHANGELOG.md +50 -0
- package/CODE_OF_CONDUCT.md +83 -0
- package/README.md +136 -56
- package/docs/ARCHITECTURE.md +34 -3
- package/docs/AZURE_DEVOPS.md +17 -14
- package/docs/COMMENTING.md +79 -0
- package/docs/DEBUGGING.md +7 -5
- package/docs/DEMO.md +45 -1
- package/docs/ENTERPRISE.md +37 -6
- package/docs/QUICKSTART.md +113 -68
- package/docs/ROADMAP.md +8 -0
- package/docs/VALIDATION.md +252 -38
- package/docs/VALIDATION_HISTORY.md +42 -2
- package/docs/assets/RECORDING.md +9 -2
- package/docs/assets/adjust-findings-teaser.gif +0 -0
- package/docs/assets/adjust-preview.png +0 -0
- package/docs/assets/adjust-publication.png +0 -0
- package/docs/assets/render-terminal-demo.py +1 -1
- package/docs/releases/v0.3.0.md +125 -0
- package/docs/releases/v0.3.1.md +87 -0
- package/package.json +3 -2
- package/src/attribution.mjs +1 -1
- package/src/azure.mjs +33 -3
- package/src/comment-work.mjs +30 -9
- package/src/comments.mjs +184 -4
- package/src/config.mjs +5 -0
- package/src/host.mjs +44 -0
- package/src/output.mjs +71 -0
- package/src/plugin.js +2 -1
- package/src/runtime.mjs +128 -25
- package/src/setup.mjs +49 -21
package/docs/VALIDATION.md
CHANGED
|
@@ -1,12 +1,237 @@
|
|
|
1
1
|
# Validation
|
|
2
2
|
|
|
3
|
-
This page records validation of the Azure DevOps REST implementation
|
|
4
|
-
0.1.0
|
|
3
|
+
This page records validation of the Azure DevOps REST implementation, the
|
|
4
|
+
0.1.0 through 0.3.0 distributions and the 0.3.1 release candidate. Host
|
|
5
|
+
integration, provider
|
|
5
6
|
admission, source fidelity, model quality and publication are separate claims; a
|
|
6
7
|
passing fixture establishes only the first. Earlier revisions and their live
|
|
7
8
|
acceptance runs, including the MCP-based runs, are preserved in
|
|
8
9
|
[validation history](VALIDATION_HISTORY.md).
|
|
9
10
|
|
|
11
|
+
## Summary
|
|
12
|
+
|
|
13
|
+
- **Every change, in CI.** `npm run check` and the offline test suite, then
|
|
14
|
+
five runs on the real OpenCode 2.1.4 host with isolated profiles and fake
|
|
15
|
+
model and Azure DevOps services: fresh, replacement and native installation
|
|
16
|
+
(including an authenticating proxy and a custom CA certificate), a 120-file
|
|
17
|
+
review in shards with a context-overflow split and idempotent publication,
|
|
18
|
+
and a refused background summary followed by a permanent failure.
|
|
19
|
+
- **Live, with real models on Azure DevOps Services.** Reviews, comment
|
|
20
|
+
previews and publication on three test PRs with 1, 35 and 316 changed
|
|
21
|
+
files. On OpenCode 2.1.4 with gpt-6-luna, all six quick and review runs
|
|
22
|
+
completed without a retry or a failed stage; both modes found all 24 seeded
|
|
23
|
+
policy defects of the 316-file PR and the 3 known defects of the 1-file PR.
|
|
24
|
+
Live automatic publication on the 35-file PR (OpenCode 2.1.2) posted and
|
|
25
|
+
read back its comments, and a second run on the unchanged PR wrote nothing.
|
|
26
|
+
- **Every release.** Following the [releasing guide](RELEASING.md), the
|
|
27
|
+
candidate is installed from a clean source archive and from its public Git
|
|
28
|
+
commit before it is tagged, and the published npm package is installed from
|
|
29
|
+
the registry; its integrity must match the package built from the tag.
|
|
30
|
+
|
|
31
|
+
These checks show that the workflow works and what it found on these test
|
|
32
|
+
PRs. Findings vary between models and runs, so they are not a general
|
|
33
|
+
accuracy score; see [known limitations](#known-limitations).
|
|
34
|
+
|
|
35
|
+
## 0.3.1 release candidate acceptance (2026-10-27)
|
|
36
|
+
|
|
37
|
+
Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3, npm 10.9.9 and OpenCode
|
|
38
|
+
CLI 2.1.4. The candidate contains the installation, setup and upgrade changes
|
|
39
|
+
of PR #31 and the fixes from its review (commits `6e2c71e` and `4b3b6af`).
|
|
40
|
+
Release preparation changes the package version, changelog, release notes,
|
|
41
|
+
version pins and documentation; the runtime, prompts, settings and installers
|
|
42
|
+
are those of the reviewed commits.
|
|
43
|
+
|
|
44
|
+
- `npm run check` and **420 offline tests** passed, including the `/pr-check`
|
|
45
|
+
AZPR row, masked package specifications and the `/pr-setup` defaults.
|
|
46
|
+
- All five real-host fixtures passed with isolated profiles and fake model and
|
|
47
|
+
Azure services: fresh source installation, replacement installation, native
|
|
48
|
+
packed package installation, comment scale and background compaction. The
|
|
49
|
+
native run also covers setup with the default PAT file and a PR URL, the
|
|
50
|
+
AZPR row and a second AZPR entry that stays unloaded. The scale fixture's
|
|
51
|
+
largest provider request was 33,419 characters, as for 0.3.0.
|
|
52
|
+
- `npm pack --dry-run --json` lists **76 files**, adding the 0.3.1 release
|
|
53
|
+
notes. Tests, private settings and `.local/` records are excluded.
|
|
54
|
+
- No paid-model request or real Azure publication was made: setup and the
|
|
55
|
+
AZPR row make neither, and reviews and publication are unchanged from 0.3.0.
|
|
56
|
+
|
|
57
|
+
This is a pre-publication record. Public Git installation and clean-source
|
|
58
|
+
archive acceptance are checked on the release candidate; registry integrity
|
|
59
|
+
and installation from npm are checked only after publication, following the
|
|
60
|
+
[releasing guide](RELEASING.md).
|
|
61
|
+
|
|
62
|
+
## Installation, setup and upgrades on OpenCode 2.1.4 (2026-10-27)
|
|
63
|
+
|
|
64
|
+
Environment: Ubuntu 22.04.5 under WSL2, OpenCode CLI 2.1.4 and the published
|
|
65
|
+
packages 0.2.2, 0.2.3 and 0.3.0 from npm. Each probe used an isolated profile
|
|
66
|
+
(its own `XDG_*` directories and `OPENCODE_CONFIG_DIR`) with `opencode serve`
|
|
67
|
+
and OpenCode's file watcher on, as in a normal installation. Where a proxy was
|
|
68
|
+
set, a loopback proxy recorded and refused every request. No model or Azure
|
|
69
|
+
DevOps request was made.
|
|
70
|
+
|
|
71
|
+
| Step | Observed |
|
|
72
|
+
| --- | --- |
|
|
73
|
+
| `opencode plugin add …@0.2.3` while the server runs | Installed in 1.2 s; the running server listed the seven commands 0.5 s later, without a restart. |
|
|
74
|
+
| `opencode plugin add …@0.3.0` with 0.2.3 configured | A second entry: 0.2.3 kept running and 0.3.0 was listed as failed with `Duplicate plugin ID: azpr`. |
|
|
75
|
+
| `opencode plugin remove …@0.2.3` | 0.3.0 was running 0.5 s later, without a restart. |
|
|
76
|
+
| `/pr-setup` saved settings | The commands still answered `SETUP REQUIRED` until the plugin was loaded again. |
|
|
77
|
+
| Changing the version in the `plugins` entry | The running server switched versions within 0.5 s. A long-running managed service on the same machine had likewise loaded each of three earlier entry changes before its planned restart. |
|
|
78
|
+
| The same change to a version not yet installed, with the server behind the refusing proxy | The server downloaded it itself (`CONNECT registry.npmjs.org:443` through its proxy). AZPR's commands disappeared, and installing the package from the terminal did not bring them back until the server restarted. |
|
|
79
|
+
| `plugin add` with `HTTPS_PROXY`, `npm_config_https_proxy` or `https-proxy` in `~/.npmrc` | Each sent `CONNECT registry.npmjs.org:443` to the proxy, and the refusal failed the command (HTTP 403). `plugin add` writes the configuration only after a successful download. |
|
|
80
|
+
|
|
81
|
+
`tests/host-v2-smoke.mjs --native` now also checks on the exact host that
|
|
82
|
+
`/pr-setup` takes the organization from a PR URL and uses the default PAT file
|
|
83
|
+
without `--pat-file`, that `/pr-check` names the running package, and that a
|
|
84
|
+
second AZPR entry stays unloaded (`Duplicate plugin ID: azpr`) while
|
|
85
|
+
`/pr-check` warns about it. The fresh and replacement runs check that the row
|
|
86
|
+
names a local source installation.
|
|
87
|
+
|
|
88
|
+
Not covered: the terminal UI's command list after a reload, what a reload does
|
|
89
|
+
to a command that is running, authenticating or NTLM proxies and company CAs
|
|
90
|
+
for package downloads, Git-package downloads through a proxy, and proxy
|
|
91
|
+
inheritance between Windows and WSL.
|
|
92
|
+
|
|
93
|
+
## 0.3.0 release candidate acceptance (2026-10-26)
|
|
94
|
+
|
|
95
|
+
Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3, npm 10.9.9 and OpenCode
|
|
96
|
+
CLI 2.1.4. The candidate contains the finding-adjustment workflow merged in
|
|
97
|
+
PR #29, including the final fixes in `d4fd8dd`. Release preparation changes
|
|
98
|
+
the package version, description, documentation and recording tool, and adds
|
|
99
|
+
the code of conduct and a recorded demonstration to the npm package; the
|
|
100
|
+
runtime, prompts, settings and installers are unchanged from that reviewed
|
|
101
|
+
revision.
|
|
102
|
+
|
|
103
|
+
- `npm run check` and **417 offline tests** passed, including the adjustment
|
|
104
|
+
save failure, the final summary's excluded-ID check, and an earlier comment
|
|
105
|
+
read back after a refused write without a local publication record.
|
|
106
|
+
- All five real-host fixtures passed with isolated profiles and fake model
|
|
107
|
+
and Azure services: fresh source installation, replacement installation,
|
|
108
|
+
native packed package installation, comment scale and background compaction.
|
|
109
|
+
Fresh and native runs cover the authenticating proxy, custom CA, external
|
|
110
|
+
settings, restart and idempotent publication. The scale fixture reviewed
|
|
111
|
+
120 files with one overflow split and eight planning sessions, at most two
|
|
112
|
+
in flight; its largest provider request was 33,419 characters. The
|
|
113
|
+
background-compaction fixture classified the failure as permanent and ran
|
|
114
|
+
one functional session.
|
|
115
|
+
- `npm pack --dry-run --json` lists **75 files**, including the entry, runtime,
|
|
116
|
+
prompts, configuration example and schema, license, code of conduct, 0.3.0
|
|
117
|
+
release notes and the new demonstration media. Tests, private settings and
|
|
118
|
+
`.local/` records are excluded.
|
|
119
|
+
- These release fixtures make no paid-model request or real Azure publication.
|
|
120
|
+
The live adjustment runs below used the earlier `cbbed6b` implementation;
|
|
121
|
+
the subsequent persistence, read-back and final-summary fixes have offline
|
|
122
|
+
regression tests. Host fixtures exercise the surrounding workflow.
|
|
123
|
+
- A live run on the candidate's runtime was recorded for the
|
|
124
|
+
[demonstration](DEMO.md): OpenCode 2.1.4 with `openai/gpt-6-luna`, the plugin
|
|
125
|
+
installed from public Git commit `dfba561`, on the 1-file test PR. The review
|
|
126
|
+
completed in 66 seconds with three confirmed findings and two merged
|
|
127
|
+
duplicates, and its automatic preview took 14 seconds. `--exclude F-3
|
|
128
|
+
--severity F-2=low` planned a new preview in 8 seconds with one inline
|
|
129
|
+
comment and F-2 in the summary only. Publication posted the summary and that
|
|
130
|
+
comment, both read back as `VERIFIED`, and a repeated publication reported
|
|
131
|
+
`ALREADY_PRESENT=2`. This run took the normal adjustment and publication
|
|
132
|
+
path; the failure paths of the later fixes are covered by the offline tests.
|
|
133
|
+
|
|
134
|
+
This is a pre-publication record. Public Git installation and clean-source
|
|
135
|
+
archive acceptance are checked on the release candidate; registry integrity
|
|
136
|
+
and installation from npm are checked only after publication, following the
|
|
137
|
+
[releasing guide](RELEASING.md). This record does not claim a published 0.3.0
|
|
138
|
+
package has been tested. After publication on 2026-10-26, the registry
|
|
139
|
+
package's integrity matched the package built from the tag, and installing
|
|
140
|
+
`opencode-azure-devops-pr-review@0.3.0` and the `v0.3.0` Git tag passed
|
|
141
|
+
`host-v2-smoke.mjs --native --package`.
|
|
142
|
+
|
|
143
|
+
## Adjusting findings after a preview (2026-10-25)
|
|
144
|
+
|
|
145
|
+
Commit `cbbed6b` (branch `comment-adjustments`) was installed through
|
|
146
|
+
OpenCode's plugin manager as `github:WTLAIB/opencode-azure-devops-pr-review-v2#cbbed6b…`
|
|
147
|
+
on the OpenCode 2.1.4 service (its 29 installed files equal the commit), with
|
|
148
|
+
gpt-6-luna for every review and quick role, gpt-6.1-sol for every deep role,
|
|
149
|
+
output in zh-TW and `afterReview` none for every mode; the service was restored to the published 0.2.3 package
|
|
150
|
+
afterwards. Every command ran in the conversation of its review unless noted.
|
|
151
|
+
Before the runs that publish, the earlier AZPR comments of the 1-file PR were
|
|
152
|
+
deleted and the local publication records of the 1-file and 316-file PRs were
|
|
153
|
+
moved aside, so that comments on the same lines were posted again instead of
|
|
154
|
+
being reported as `DELETED`.
|
|
155
|
+
|
|
156
|
+
**Preview only, with the earlier comments still on the 1-file PR.** Its four
|
|
157
|
+
AZPR threads made the planner skip all three findings as already discussed, so
|
|
158
|
+
these previews had no inline comment.
|
|
159
|
+
|
|
160
|
+
| Command | Planner input | Result | Planning |
|
|
161
|
+
| --- | --- | --- | --- |
|
|
162
|
+
| `/pr-review <URL>` | — | COMPLETE in 89 s: 6 candidates, 3 confirmed medium findings F-1, F-2, F-3 (the 3 known defects) | — |
|
|
163
|
+
| `/pr-comment` | F-1, F-2, F-3; no `adjustments` field | Index medium 3; the review note named the snapshot, reservation and ordering contracts | 1 request, 9 s |
|
|
164
|
+
| `/pr-comment <id> --show` | — | The saved preview; no model or Azure DevOps request | — |
|
|
165
|
+
| `/pr-comment <id> --exclude f1` | F-2, F-3; `adjustments.excludedFindings` F-1 | Index medium 2; F-1 named nowhere, and the note no longer mentioned the snapshot contract | 1 request, 12 s |
|
|
166
|
+
| `/pr-comment <id> --severity F-2=low,F-3=high` | F-2 low, F-3 high; F-1 still excluded; `severityChanges` | Index high 1, low 1; F-2 skipped as low severity | 1 request, 5 s |
|
|
167
|
+
| The same adjustments again | — | "already has these adjustments; nothing was planned"; no model | — |
|
|
168
|
+
| `/pr-comment <id> --reset` | F-1, F-2, F-3; no `adjustments` field | Index medium 3, as before the adjustments | 1 request, 8 s |
|
|
169
|
+
|
|
170
|
+
**The 1-file PR without earlier comments** (three reviews, each COMPLETE in
|
|
171
|
+
86–93 s):
|
|
172
|
+
|
|
173
|
+
- Review A: excluding all three findings answered `NOTHING_TO_POST` in 3 s
|
|
174
|
+
without a model, and `--publish` posted nothing. `--exclude none` stopped
|
|
175
|
+
with `/pr-stop` while it was planned ended `CANCELLED` with the adjustment
|
|
176
|
+
saved and no preview: `--publish` was refused ("was adjusted and has no
|
|
177
|
+
preview planned since") and `--show` reported no saved preview. Setting all
|
|
178
|
+
three to low then planned a summary without inline comments, which was posted.
|
|
179
|
+
- Review B, of the same commit: excluding one finding and setting the other two
|
|
180
|
+
to low gave a summary with the marker of review A's summary. Publication
|
|
181
|
+
skipped it as `ALREADY_PRESENT`, and the receipt said that the PR keeps its
|
|
182
|
+
earlier text, which may still list findings you excluded. Afterwards
|
|
183
|
+
`--exclude none` and a plain `/pr-comment <id>` were refused, `--show` said
|
|
184
|
+
that publication had started, and `--publish` again changed nothing.
|
|
185
|
+
- Review C confirmed five medium findings, two pairs of them the same defects
|
|
186
|
+
from both reviewers (F-1 and R-1, F-2 and R-3). `--exclude R-1,R-3 --severity
|
|
187
|
+
R-2=high,F-2=low` planned 2 inline comments (R-2 high, F-1 medium) and a
|
|
188
|
+
summary with high 1, medium 1, low 1; all three were posted and read back,
|
|
189
|
+
and no posted text names R-1 or R-3. They were deleted again before the deep
|
|
190
|
+
run below.
|
|
191
|
+
- `/pr-deep` COMPLETE in 116 s: 6 candidates, 3 confirmed medium findings
|
|
192
|
+
(the verifier merged the duplicates). `--exclude F-3 --severity F-1=high`,
|
|
193
|
+
planned by gpt-6.1-sol in 19 s (1 request, no correction turn), gave 2 inline
|
|
194
|
+
comments (F-1 high, F-2 medium) and a summary with high 1, medium 1; all
|
|
195
|
+
three were posted and read back with the gpt-6.1-sol disclosure, and no
|
|
196
|
+
posted text names F-3. Afterwards an adjustment was refused and `--publish`
|
|
197
|
+
again reported `ALREADY_PRESENT` for all three. These comments are kept on
|
|
198
|
+
the PR.
|
|
199
|
+
|
|
200
|
+
**The 316-file PR** (no comments before):
|
|
201
|
+
|
|
202
|
+
- `/pr-quick` COMPLETE in 186 s (48 findings reported), preview with 25 inline
|
|
203
|
+
comments, 13 of them combining findings of two shards. `--exclude Q-11001
|
|
204
|
+
--severity Q-12014=medium,Q-1013=low` (preview only, 102 s): Q-1001, combined
|
|
205
|
+
with Q-11001 before, got a comment of its own; Q-12014, raised from low, was
|
|
206
|
+
combined with Q-1022 on the same line; Q-1013 stayed in the summary only; the
|
|
207
|
+
disclosure still says the review was not independently verified, and the
|
|
208
|
+
preview names Q-11001 nowhere.
|
|
209
|
+
- `/pr-review` COMPLETE in 333 s: 27 confirmed (37 merged), preview with 26
|
|
210
|
+
inline comments and 1 low finding in the summary. R-1009, R-1010 and R-1011
|
|
211
|
+
repeat F-1009, F-1010 and F-1011 from the other reviewer.
|
|
212
|
+
- Refused without a change: the same command from another conversation ("No
|
|
213
|
+
completed review is available for this conversation"), `--exclude F-9999`
|
|
214
|
+
("not a finding of review …", listing the IDs that can be adjusted) and
|
|
215
|
+
`--exclude R-1001` ("was merged into F-1001; adjust F-1001 instead").
|
|
216
|
+
- `--exclude R-1009` with the OpenCode service restarted while it was planned:
|
|
217
|
+
the service reloaded in 7 s; `--show` reported no saved preview and
|
|
218
|
+
`--publish` was refused. A plain `/pr-comment <id>` then planned the preview
|
|
219
|
+
with R-1009 still excluded (85 s).
|
|
220
|
+
- `--exclude R-1009,R-1010,R-1011 --severity F-1013=high,F-1016=low,F-1022=medium`
|
|
221
|
+
(63 s) planned 23 inline comments and a summary with high 5, medium 18, low 1:
|
|
222
|
+
F-1013 titled high, F-1022 (raised from low) with an inline comment, F-1016
|
|
223
|
+
in the summary only. All 24 items were posted and read back; the three
|
|
224
|
+
repeated defects have one comment each, and no posted text names R-1009,
|
|
225
|
+
R-1010 or R-1011. After publication, adjustments and a plain re-plan were
|
|
226
|
+
refused and `--publish` again reported `ALREADY_PRESENT` for all 24 items.
|
|
227
|
+
These comments are kept on the PR.
|
|
228
|
+
|
|
229
|
+
No planning stage of these runs needed a correction turn, and the runtime's
|
|
230
|
+
check for published text that names an excluded finding never had to act: the
|
|
231
|
+
model left excluded findings out of its text. That check, and the receipt line
|
|
232
|
+
that counts other AZPR comments of the PR, are covered by the offline tests
|
|
233
|
+
only.
|
|
234
|
+
|
|
10
235
|
## 0.2.3 release acceptance (2026-10-24)
|
|
11
236
|
|
|
12
237
|
Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3 and OpenCode CLI 2.1.4.
|
|
@@ -294,7 +519,7 @@ problem messages were added on top of 0.1.0; review prompts were unchanged.
|
|
|
294
519
|
and all but 0 to 6 of them render no active markup. Those few contain
|
|
295
520
|
`<!X…>` or `<?…>`, which browsers turn into comments and no rule checks;
|
|
296
521
|
the previous revision held them only because of code elsewhere in the
|
|
297
|
-
text. The same run found the gaps
|
|
522
|
+
text. The same run found the gaps closed below.
|
|
298
523
|
- All four real-host fixtures passed on OpenCode 2.1.2. The 15 previews
|
|
299
524
|
saved from real reviews still have no held item. No live run: real
|
|
300
525
|
comment text has not contained the held constructs, in code or not.
|
|
@@ -1876,38 +2101,27 @@ So host retries needed no change. The watchdog's default of 600 s is four
|
|
|
1876
2101
|
times the longest quiet stretch observed; a stopped stage is retried like a
|
|
1877
2102
|
transient failure, and its error names the last activity.
|
|
1878
2103
|
|
|
1879
|
-
##
|
|
1880
|
-
|
|
1881
|
-
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
purpose.
|
|
1904
|
-
- Streamed reasoning from a real reasoning model: the fixture streams answer
|
|
1905
|
-
text only. A model that thinks without streaming anything looks silent to
|
|
1906
|
-
the watchdog for that time.
|
|
1907
|
-
- Planning more than two pages at a time (not measured), and `/pr-stop` while
|
|
1908
|
-
pages are planned side by side with a real provider (only the fixtures and
|
|
1909
|
-
offline tests cancel running pages).
|
|
1910
|
-
- `/pr-quick` beyond these runs on three test PRs with one model: its
|
|
1911
|
-
false-positive rate and misses on other PRs and models, a published quick
|
|
1912
|
-
review of a multi-shard PR (only the 1-file PR's was posted), and combining
|
|
1913
|
-
duplicates on a real multi-shard PR other than the test PR.
|
|
2104
|
+
## Known limitations
|
|
2105
|
+
|
|
2106
|
+
- **Tested environment.** OpenCode CLI 2.1.4 (V2 plugin API) on Ubuntu 22.04
|
|
2107
|
+
under WSL2. Other OpenCode 2.x versions add a host notice to receipts and
|
|
2108
|
+
are not validated; OpenCode 1.x is not supported. Other operating systems
|
|
2109
|
+
are not validated yet.
|
|
2110
|
+
- **Azure DevOps Services only.** Azure DevOps Server (on-premises) is not
|
|
2111
|
+
supported by the current URL handling.
|
|
2112
|
+
- **File encoding and size.** Files are read as UTF-8, so text in another
|
|
2113
|
+
encoding, such as Big5 or Shift_JIS, reaches the reviewers with replacement
|
|
2114
|
+
characters. Binary files and files over 10 MB are reported but not shown,
|
|
2115
|
+
and content search covers a commit archive of at most
|
|
2116
|
+
`azure.archiveMegabytes` (100 MB by default).
|
|
2117
|
+
- **Corporate proxies.** AZPR has run live through a company HTTP proxy with
|
|
2118
|
+
`azure.verifyTls: false`. Trusting an inspecting proxy's root CA with
|
|
2119
|
+
`azure.caFile` is verified with a test proxy only, and proxies that require
|
|
2120
|
+
NTLM or Kerberos authentication are not supported directly.
|
|
2121
|
+
- **Quick reviews are not independently verified.** `/pr-quick` reports what
|
|
2122
|
+
one reviewer per shard found and says so in its report and comments; use
|
|
2123
|
+
`/pr-review` when findings need a second check.
|
|
2124
|
+
- **Findings depend on the model.** Results vary between models and between
|
|
2125
|
+
runs of the same model. On the 35-file test PR, gpt-6.1-sol found a defect
|
|
2126
|
+
whose evidence spans a test and unchanged code in another shard, which
|
|
2127
|
+
gpt-6-luna missed; `/pr-deep` runs the same review with stronger models.
|
|
@@ -23,6 +23,46 @@ is implied by the source audit or offline checks. Record any later host smoke
|
|
|
23
23
|
result with its exact scope instead of promoting it to full service acceptance.
|
|
24
24
|
|
|
25
25
|
|
|
26
|
+
## Open items as of 2026-10-23 (archived 2026-10-24)
|
|
27
|
+
|
|
28
|
+
Until 2026-10-24 the current validation page listed the following items under
|
|
29
|
+
"Not yet validated". It now keeps a shorter list of known limitations for
|
|
30
|
+
users; the items are preserved here as written.
|
|
31
|
+
|
|
32
|
+
- Automatic publication from the setting (`afterReview: publish`) with a
|
|
33
|
+
real model: the live publications above used the `--publish` flag, which
|
|
34
|
+
differs only in where the step comes from. The item checks did not trigger
|
|
35
|
+
in any live run, since real comment text had none of the held constructs;
|
|
36
|
+
they were validated with the fixture services and the saved live previews
|
|
37
|
+
only. A quick review's automatic publication has not run live. The
|
|
38
|
+
repeated-summary rule did trigger live (above).
|
|
39
|
+
- Azure DevOps's own rendering and sanitizing of comments was not tested
|
|
40
|
+
against the content checks of automatic publication: the fuzzing rendered
|
|
41
|
+
with commonmark.js and markdown-it and read the HTML with parse5.
|
|
42
|
+
- A defect whose evidence spans a test and unchanged code in different shards
|
|
43
|
+
is found by gpt-6.1-sol (2 of 2 runs on PR #4) and missed by gpt-5.6-luna and
|
|
44
|
+
gpt-6-luna; other PRs are not yet measured.
|
|
45
|
+
- Azure DevOps Server, and repository files that are not UTF-8 text.
|
|
46
|
+
- `azure.caFile` with a real proxy: the corporate network above ran with
|
|
47
|
+
`verifyTls: false`; whether its proxy inspects TLS, and trusting its root CA
|
|
48
|
+
instead, were not checked. `azure.caFile` was validated with the fixture
|
|
49
|
+
proxy and CA above only. Proxies that require NTLM or Kerberos are not
|
|
50
|
+
supported directly.
|
|
51
|
+
- The stage inactivity watchdog with a real provider: no live stall has
|
|
52
|
+
occurred since it was added. It was validated with the fixture provider's
|
|
53
|
+
stalled HTTP stream; a stalled OpenAI WebSocket stream was not produced on
|
|
54
|
+
purpose.
|
|
55
|
+
- Streamed reasoning from a real reasoning model: the fixture streams answer
|
|
56
|
+
text only. A model that thinks without streaming anything looks silent to
|
|
57
|
+
the watchdog for that time.
|
|
58
|
+
- Planning more than two pages at a time (not measured), and `/pr-stop` while
|
|
59
|
+
pages are planned side by side with a real provider (only the fixtures and
|
|
60
|
+
offline tests cancel running pages).
|
|
61
|
+
- `/pr-quick` beyond these runs on three test PRs with one model: its
|
|
62
|
+
false-positive rate and misses on other PRs and models, a published quick
|
|
63
|
+
review of a multi-shard PR (only the 1-file PR's was posted), and combining
|
|
64
|
+
duplicates on a real multi-shard PR other than the test PR.
|
|
65
|
+
|
|
26
66
|
## Previous current validation — stability revision fd604a8 (archived 2026-10-10)
|
|
27
67
|
|
|
28
68
|
This section is the validation page as it stood before AZPR replaced the Azure DevOps MCP server with its own REST client. It describes the MCP-based runtime calls and is kept unchanged below.
|
|
@@ -420,7 +460,7 @@ lost advice across stages, unjustified defect severity and filler topic sections
|
|
|
420
460
|
|
|
421
461
|
A release report distinguishes offline checks, exact-host fixtures, live service
|
|
422
462
|
behavior, factual/presentation quality and remote publication. Mark unexercised
|
|
423
|
-
cases explicitly. See [comment acceptance](COMMENTING.md#acceptance-test-before-real-use),
|
|
463
|
+
cases explicitly. See [comment acceptance](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/c450fddef5c90d16dac03373052d89febdb8f2fd/docs/COMMENTING.md#acceptance-test-before-real-use),
|
|
424
464
|
[project verification](VERIFICATION.md) and [debugging](DEBUGGING.md) for details.
|
|
425
465
|
|
|
426
466
|
## 2026-10-06 prompt-only BASE/HEAD direction acceptance
|
|
@@ -611,7 +651,7 @@ change that historical run, recreate its cache, or verify live publication.
|
|
|
611
651
|
|
|
612
652
|
No additional live model review or publication tested these post-comparison
|
|
613
653
|
changes. Cold MCP tool-registration timing remains unresolved; see
|
|
614
|
-
[startup diagnostics](DEBUGGING.md#connected-mcp-before-tool-registration).
|
|
654
|
+
[startup diagnostics](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/c450fddef5c90d16dac03373052d89febdb8f2fd/docs/DEBUGGING.md#connected-mcp-before-tool-registration).
|
|
615
655
|
|
|
616
656
|
## 2026-10-05 remote-source guidance and provider diagnostics
|
|
617
657
|
|
package/docs/assets/RECORDING.md
CHANGED
|
@@ -74,8 +74,15 @@ emoji-capable font with `--emoji-font /absolute/path/to/font.ttf`; fonts are not
|
|
|
74
74
|
copied into the media or distributed with this project. Use `--crop-bottom 2`
|
|
75
75
|
when the last two terminal rows contain only the local status/path bar and a
|
|
76
76
|
blank margin. This crops the rendered viewport, adds a visible crop disclosure,
|
|
77
|
-
and leaves the original cast untouched
|
|
78
|
-
|
|
77
|
+
and leaves the original cast untouched; the rendered image omits the cropped
|
|
78
|
+
rows. Crop the empty input box too when it names a chat model that the AZPR run
|
|
79
|
+
did not use. Inspect the rows first; never crop a finding or result.
|
|
80
|
+
|
|
81
|
+
OpenCode 2.1.4's TUI shows a sidebar on wide terminals. Hide it before the
|
|
82
|
+
segments you show by sending its toggle through the control file
|
|
83
|
+
(`{"text":"\u0018"}`, then `{"text":"b"}`). Receipts name the private debug
|
|
84
|
+
directory, which includes the local path; leave frames that show it out of the
|
|
85
|
+
edit.
|
|
79
86
|
|
|
80
87
|
Create an edit manifest describing the portions of the original recording to
|
|
81
88
|
show. `start` and `end` are seconds in the cast. `seconds` is the output duration.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -45,7 +45,7 @@ small_font = ImageFont.truetype(str(args.font), 12)
|
|
|
45
45
|
cell_width, cell_height = font.getlength('M'), 21
|
|
46
46
|
padding, top, bottom = 24, 88, 45
|
|
47
47
|
width = round(header['width'] * cell_width + padding * 2)
|
|
48
|
-
height =
|
|
48
|
+
height = visible_rows * cell_height + top + bottom
|
|
49
49
|
width += width % 2
|
|
50
50
|
height += height % 2
|
|
51
51
|
palette = {'black': '#1c2028', 'red': '#ec7279', 'green': '#9dd39b',
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Azure DevOps PR Review for OpenCode — 0.3.0
|
|
2
|
+
|
|
3
|
+
AI reviews. You decide what gets posted. This release lets you exclude findings
|
|
4
|
+
or change their severity after reading a comment preview. AZPR prepares a new
|
|
5
|
+
preview without rerunning the review, while keeping the original findings and
|
|
6
|
+
report intact.
|
|
7
|
+
|
|
8
|
+
## Try it after a preview
|
|
9
|
+
|
|
10
|
+
Use your review ID and finding IDs from its report:
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
/pr-comment <review-id> --exclude F-1 --severity F-2=low
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
F-1 is excluded from the new preview; F-2 appears as low in the summary, with no
|
|
17
|
+
new inline comment. Comment planning uses a model again, so other wording may
|
|
18
|
+
change. Read the whole new preview, then publish from the same conversation:
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
/pr-comment <review-id> --publish
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## What changed
|
|
25
|
+
|
|
26
|
+
- **Choose the findings and severity.** `--exclude` and `--severity` each
|
|
27
|
+
replace their own saved list; `none` empties that list. For example,
|
|
28
|
+
`--exclude F-1` followed by `--exclude F-2` excludes only F-2. Name both to
|
|
29
|
+
keep both out. `--reset` clears both lists and plans again. A changed
|
|
30
|
+
severity changes publication, not the evidence or verification of a finding.
|
|
31
|
+
Excluding every finding plans and posts nothing (`NOTHING_TO_POST`).
|
|
32
|
+
- **Reopen the saved preview.** `/pr-comment [review-id] --show` displays it
|
|
33
|
+
without a model or Azure DevOps request. It includes the saved adjustments.
|
|
34
|
+
- **Read the new preview before publishing.** An adjusted review, including
|
|
35
|
+
one reset since, needs a saved preview planned after its latest adjustment.
|
|
36
|
+
Adjustments are saved together with dropping the earlier preview; a failed
|
|
37
|
+
save changes nothing. A new preview whose save fails is dropped. After a
|
|
38
|
+
stop or restart during planning, prepare a new preview before publishing.
|
|
39
|
+
Once publication starts, the review cannot be adjusted or planned again;
|
|
40
|
+
`--publish` retries the same saved content.
|
|
41
|
+
- **Excluded IDs stay out of new comments.** The planner receives the adjusted
|
|
42
|
+
findings, and the assembled preview is checked too. When a retained
|
|
43
|
+
finding's summary names an excluded ID, publication is held until you
|
|
44
|
+
exclude that finding as well or restore the other. References without the
|
|
45
|
+
ID cannot be detected by this check.
|
|
46
|
+
- **Earlier PR comments keep their text.** AZPR still skips comments it already
|
|
47
|
+
posted and never edits them. An adjusted review's receipt names items whose
|
|
48
|
+
actual text differs from the preview, including comments that appear only
|
|
49
|
+
when AZPR reads the threads back. It also counts other AZPR comments on the
|
|
50
|
+
PR, where an excluded finding may still be visible.
|
|
51
|
+
- The README opens with a real OpenCode 2.1.4 recording of adjusting findings
|
|
52
|
+
and publishing, and the README and quickstart show the adjustment workflow.
|
|
53
|
+
The npm package includes the code of conduct. CI actions are pinned by commit
|
|
54
|
+
and updated with Dependabot.
|
|
55
|
+
|
|
56
|
+
The options work with review, deep and quick results. Quick findings remain
|
|
57
|
+
not independently verified. Without adjustments, comment planning and
|
|
58
|
+
publication retain their existing behavior. See the
|
|
59
|
+
[commenting guide](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.3.0/docs/COMMENTING.md#adjusting-findings-after-a-preview)
|
|
60
|
+
for the complete rules.
|
|
61
|
+
|
|
62
|
+
## Installation
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
opencode plugin add opencode-azure-devops-pr-review@0.3.0
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Alternatively, install the same release from Git:
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.3.0'
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Add only one of them. Follow the
|
|
75
|
+
[quickstart](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.3.0/docs/QUICKSTART.md)
|
|
76
|
+
for a private PAT file, `/pr-setup`, a service restart and the first review.
|
|
77
|
+
|
|
78
|
+
## Upgrading
|
|
79
|
+
|
|
80
|
+
For a native installation, edit its existing entry in the OpenCode
|
|
81
|
+
configuration's `plugins` list:
|
|
82
|
+
|
|
83
|
+
- For npm, change the package specification to
|
|
84
|
+
`opencode-azure-devops-pr-review@0.3.0`.
|
|
85
|
+
- For Git, change the tag suffix to `#v0.3.0`.
|
|
86
|
+
|
|
87
|
+
If the entry is an object, change only `package`; preserve `options.settingsFile`
|
|
88
|
+
and any other options. Keep one AZPR entry and restart the OpenCode service.
|
|
89
|
+
External settings, the PAT file and review records remain in place; a working
|
|
90
|
+
configuration needs no new `/pr-setup`. Exact version pins are not advanced by
|
|
91
|
+
`opencode plugin update`. This release adds no settings or required migration.
|
|
92
|
+
|
|
93
|
+
For a source installation, extract the new archive and run its installer with
|
|
94
|
+
`--replace` to retain settings:
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
sh install.sh --config-dir /absolute/path/to/v2-opencode-config --replace
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Automatic comments remain opt-in through `afterReview` or a review command
|
|
101
|
+
flag. Use `/pr-review <PR URL> --preview` when you want to inspect and adjust
|
|
102
|
+
findings before publication.
|
|
103
|
+
|
|
104
|
+
## Compatibility and validation
|
|
105
|
+
|
|
106
|
+
The tested target remains OpenCode CLI **2.1.4** (V2 plugin API), Node.js
|
|
107
|
+
**22.23.3**, Ubuntu **22.04.5** under WSL2, and Azure DevOps Services REST API
|
|
108
|
+
**7.1**. OpenCode 1.x and Azure DevOps Server are not supported; other operating
|
|
109
|
+
systems remain unvalidated.
|
|
110
|
+
|
|
111
|
+
The [validation record](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.3.0/docs/VALIDATION.md)
|
|
112
|
+
separates release checks with fake services from live runs. The earlier live
|
|
113
|
+
adjustment runs on 1-file and 316-file Azure DevOps test PRs preceded the final
|
|
114
|
+
persistence and read-back fixes; a recorded live run on the 1-file test PR used
|
|
115
|
+
this release's runtime. None of them establish a general review accuracy score.
|
|
116
|
+
|
|
117
|
+
The npm package, Git package and source archive contain the same runtime, with
|
|
118
|
+
no npm dependencies or install scripts. The release source artifact is
|
|
119
|
+
`opencode-azure-devops-pr-review-v2-0.3.0.tar.gz`, with checksums in `SHA256SUMS`.
|
|
120
|
+
The README's 15-second recording of adjusting findings and publishing comes
|
|
121
|
+
from that live run. The earlier walkthrough of the review, preview and
|
|
122
|
+
publication workflow remains attached to
|
|
123
|
+
[v0.2.0](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/tag/v0.2.0).
|
|
124
|
+
The [demo guide](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.3.0/docs/DEMO.md)
|
|
125
|
+
describes both recordings.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Azure DevOps PR Review for OpenCode — 0.3.1
|
|
2
|
+
|
|
3
|
+
This release makes installation, first-run setup and upgrades easier to
|
|
4
|
+
follow on OpenCode 2.1.4, and lets `/pr-check` show which AZPR is running.
|
|
5
|
+
Reviews, comment previews, adjustments and publication work as in 0.3.0.
|
|
6
|
+
|
|
7
|
+
## What changed
|
|
8
|
+
|
|
9
|
+
- **Shorter setup.** `/pr-setup --organization YOUR_ORGANIZATION --model
|
|
10
|
+
PROVIDER/MODEL` uses the PAT file the quickstart creates,
|
|
11
|
+
`${XDG_CONFIG_HOME:-~/.config}/azpr/pat`, and `--organization` also accepts
|
|
12
|
+
your PR's URL. With `--replace`, setup keeps the PAT file already set unless
|
|
13
|
+
you name another one. The receipt names the organization and the PAT file.
|
|
14
|
+
- **See what runs.** `/pr-check` has an **AZPR** row that names the running
|
|
15
|
+
package and version. When another AZPR entry is configured but not running,
|
|
16
|
+
for example after `opencode plugin add` with a new version, which leaves the
|
|
17
|
+
old one running, the row is a WARNING. User names, passwords and query
|
|
18
|
+
strings in package specifications are masked.
|
|
19
|
+
- **Restart only for settings.** On OpenCode 2.1.4, adding or changing the
|
|
20
|
+
plugin entry loads it into the running service within seconds. Saved
|
|
21
|
+
settings still need a restart, and AZPR's messages now name
|
|
22
|
+
`opencode service restart`.
|
|
23
|
+
- **Documentation.** The quickstart runs the terminal steps first. The README
|
|
24
|
+
has an Upgrading section. The team guide explains proxies and certificates
|
|
25
|
+
for package downloads, model providers and Azure DevOps separately, and the
|
|
26
|
+
Azure DevOps guide names the actual settings locations.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
opencode plugin add opencode-azure-devops-pr-review@0.3.1
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Alternatively, install the same release from Git:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.3.1'
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Add only one of them. Follow the
|
|
41
|
+
[quickstart](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.3.1/docs/QUICKSTART.md)
|
|
42
|
+
for a private PAT file, `/pr-setup`, a service restart and the first review.
|
|
43
|
+
|
|
44
|
+
## Upgrading
|
|
45
|
+
|
|
46
|
+
For an entry that `opencode plugin add` created, add 0.3.1 and remove the
|
|
47
|
+
previous version only when the download succeeded. Replace `PREVIOUS_VERSION`
|
|
48
|
+
with the version in your `plugins` entry, such as 0.3.0:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
opencode plugin add opencode-azure-devops-pr-review@0.3.1 &&
|
|
52
|
+
opencode plugin remove opencode-azure-devops-pr-review@PREVIOUS_VERSION
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Run them when no AZPR command is running: OpenCode 2.1.4 switches the running
|
|
56
|
+
service to 0.3.1 within seconds, without a restart, and `opencode plugin list`
|
|
57
|
+
should then show a single `azpr` row with 0.3.1. Running only the first command
|
|
58
|
+
leaves the previous version running. For an entry with options, change only
|
|
59
|
+
its `package` value; the OpenCode service then downloads 0.3.1 with its own
|
|
60
|
+
network settings. See
|
|
61
|
+
[upgrading](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.3.1/README.md#upgrading)
|
|
62
|
+
for the details. External settings, the PAT file and review records remain in
|
|
63
|
+
place, and this release adds no settings or required migration.
|
|
64
|
+
|
|
65
|
+
For a source installation, extract the new archive and run its installer with
|
|
66
|
+
`--replace` to retain settings:
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
sh install.sh --config-dir /absolute/path/to/v2-opencode-config --replace
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Compatibility and validation
|
|
73
|
+
|
|
74
|
+
The tested target remains OpenCode CLI **2.1.4** (V2 plugin API), Node.js
|
|
75
|
+
**22.23.3**, Ubuntu **22.04.5** under WSL2, and Azure DevOps Services REST API
|
|
76
|
+
**7.1**. OpenCode 1.x and Azure DevOps Server are not supported; other operating
|
|
77
|
+
systems remain unvalidated.
|
|
78
|
+
|
|
79
|
+
The [validation record](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.3.1/docs/VALIDATION.md)
|
|
80
|
+
describes the installation and upgrade behaviour measured on OpenCode 2.1.4
|
|
81
|
+
and the release checks with fake services. Setup and the AZPR row make no model
|
|
82
|
+
or Azure request, and reviews and publication are unchanged, so this release
|
|
83
|
+
needed no live model run.
|
|
84
|
+
|
|
85
|
+
The npm package, Git package and source archive contain the same runtime, with
|
|
86
|
+
no npm dependencies or install scripts. The release source artifact is
|
|
87
|
+
`opencode-azure-devops-pr-review-v2-0.3.1.tar.gz`, with checksums in `SHA256SUMS`.
|