opencode-azure-devops-pr-review 0.2.2 → 0.3.0

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/docs/DEBUGGING.md CHANGED
@@ -6,12 +6,13 @@ acceptance, Azure source validity or report quality.
6
6
 
7
7
  ## A startup slash command becomes an ordinary prompt
8
8
 
9
- On OpenCode 2.1.2, `opencode --prompt "/pr-review ..."` can submit before a
10
- native Git package's command catalog has loaded. The host then treats the text
11
- as an ordinary model prompt; AZPR has not received the command. This was observed
12
- in local native-package TUI acceptance failures and matches the host's
13
- [startup submission](https://github.com/anomalyco/opencode/blob/v2.1.2/packages/tui/src/routes/home.tsx#L62)
14
- and [command classification](https://github.com/anomalyco/opencode/blob/v2.1.2/packages/tui/src/component/prompt/index.tsx#L1153).
9
+ On OpenCode 2.1.2 through 2.1.4, `opencode --prompt "/pr-review ..."` can
10
+ submit before a native Git package's command catalog has loaded. The host then
11
+ treats the text as an ordinary model prompt; AZPR has not received the command.
12
+ This was observed in local native-package TUI acceptance failures on 2.1.2 and
13
+ matches the host's
14
+ [startup submission](https://github.com/anomalyco/opencode/blob/v2.1.4/packages/tui/src/routes/home.tsx#L62)
15
+ and [command classification](https://github.com/anomalyco/opencode/blob/v2.1.4/packages/tui/src/component/prompt/index.tsx#L1153).
15
16
 
16
17
  Start the TUI normally and wait for `/pr-review` to appear in slash-command
17
18
  completion before submitting it. A command admitted by AZPR emits its own
package/docs/DEMO.md CHANGED
@@ -1,6 +1,50 @@
1
1
  # See a review before installing
2
2
 
3
- ## A real review, preview and publication
3
+ ## Adjust findings before publishing
4
+
5
+ ![Real OpenCode terminal recording: a preview with three verified findings, the command that excludes F-3 and lowers F-2 to low, the new preview, and publication read back from Azure DevOps.](assets/adjust-findings-teaser.gif)
6
+
7
+ The 15-second teaser uses a **real OpenCode 2.1.4 session, real configured
8
+ model calls and real Azure DevOps publication** on the same dedicated test PR
9
+ as the earlier recording below: one `fulfillment.py` file with three
10
+ deliberately seeded regressions. It demonstrates the workflow; it is not a
11
+ benchmark of review accuracy or a promise about the time or cost of another PR.
12
+
13
+ Recorded on **2026-10-26**, on Ubuntu 22.04 under WSL2, using
14
+ `openai/gpt-6-luna` for the functional reviewer, risk reviewer, verifier and
15
+ comment planner. The installed plugin matched all 27 runtime and prompt files
16
+ in public Git commit [`dfba561`](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/commit/dfba561840c0d61be6f8fc2e921507da8bbcbb11)
17
+ of the 0.3.0 release candidate. Model IDs identify the configured selection,
18
+ not an independently attested provider backend.
19
+
20
+ The recording follows one conversation:
21
+
22
+ 1. `/pr-review <test-pr-url> --preview` completes the review in 66 seconds. The
23
+ verifier confirms three medium findings and merges two duplicate candidates.
24
+ The automatic preview, 14 seconds later, prepares a summary and three inline
25
+ comments; nothing is posted.
26
+ 2. `/pr-comment 63f7d3d6 --exclude F-3 --severity F-2=low` plans a new preview
27
+ in 8 seconds. F-3 is left out, F-2 is listed as low in the summary with no
28
+ inline comment, and the preview names both adjustments.
29
+ 3. `/pr-comment 63f7d3d6 --publish` posts the summary and the F-1 comment; both
30
+ are read back from Azure DevOps as `VERIFIED`.
31
+ 4. Repeating the command reports `ALREADY_PRESENT=2`; nothing is posted twice.
32
+ The two demonstration comments are retained on the test PR.
33
+
34
+ ![Actual new preview after excluding F-3 and lowering F-2 to low: the adjustments, the summary counts and the index with F-1 as medium and F-2 as low.](assets/adjust-preview.png)
35
+
36
+ ![Actual publication receipt: F-2 is skipped as a low finding, and the summary and the F-1 comment are read back as VERIFIED.](assets/adjust-publication.png)
37
+
38
+ These are faithful rendered frames from one terminal capture, **not Azure
39
+ DevOps browser screenshots**. Commands were submitted through OpenCode's native
40
+ command API to the session shown in the attached TUI, so they appear as AZPR
41
+ notices and segment captions rather than as typed input. The TUI sidebar was
42
+ hidden before the segments shown, and the bottom seven rows (the empty input
43
+ box with the conversation's chat model, and the status/path bar) are cropped.
44
+ Segments that showed the local debug directory were left out. The original
45
+ private cast is unchanged.
46
+
47
+ ## Earlier recording: review, preview and publication
4
48
 
5
49
  [Watch the 73-second walkthrough (MP4)](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/download/v0.2.0/azpr-live-demo.mp4)
6
50
 
@@ -6,7 +6,7 @@ MCP dependency. Start with the [quickstart](QUICKSTART.md), then use
6
6
  this page to understand access, data flow and local retention before reviewing
7
7
  your team's repositories.
8
8
 
9
- The tested environment is **OpenCode V2 `@opencode/cli` 2.1.2 on Ubuntu
9
+ The tested environment is **OpenCode V2 `@opencode/cli` 2.1.4 on Ubuntu
10
10
  22.04**. Azure DevOps Server URLs are not supported. See
11
11
  [current validation](VALIDATION.md) for the distinction between isolated tests
12
12
  with fake services and runs against real Azure DevOps and model providers.
@@ -5,7 +5,7 @@ Use a small, active Azure DevOps Services PR for the first run.
5
5
 
6
6
  ## 1. Check the prerequisites
7
7
 
8
- - **OpenCode CLI 2.1.2** (`@opencode/cli`, V2 plugin API), tested on **Ubuntu
8
+ - **OpenCode CLI 2.1.4** (`@opencode/cli`, V2 plugin API), tested on **Ubuntu
9
9
  22.04.5 LTS (WSL2)**. Other host versions and operating systems are not
10
10
  validated; see [validation](VALIDATION.md). OpenCode 1.x is not supported.
11
11
  - An authenticated OpenCode model with tool support. Copy its exact
@@ -24,15 +24,15 @@ Check the host version:
24
24
  opencode --version
25
25
  ```
26
26
 
27
- ## 2. Install v0.2.2
27
+ ## 2. Install v0.3.0
28
28
 
29
- Already using an earlier version? Follow the [upgrade instructions](releases/v0.2.2.md#upgrading)
29
+ Already using an earlier version? Follow the [upgrade instructions](releases/v0.3.0.md#upgrading)
30
30
  to preserve your current configuration and use one AZPR installation.
31
31
 
32
32
  In your terminal:
33
33
 
34
34
  ```sh
35
- opencode plugin add opencode-azure-devops-pr-review@0.2.2
35
+ opencode plugin add opencode-azure-devops-pr-review@0.3.0
36
36
  ```
37
37
 
38
38
  Restart OpenCode and open an ordinary conversation. This is the host's native
@@ -40,7 +40,7 @@ package installation; no npm account or separate build is needed. The
40
40
  plugin exposes `/pr-setup` even before its review configuration exists.
41
41
 
42
42
  To install the same release from Git instead of the npm registry, use
43
- `opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.2'`.
43
+ `opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.3.0'`.
44
44
  Add only one of the two.
45
45
 
46
46
  For an existing source installation, keep using `install.sh --replace`, or
@@ -48,7 +48,7 @@ follow the migration notes in [installation](../README.md#native-package-npm-or-
48
48
  Do not load both copies in the same OpenCode profile.
49
49
 
50
50
  Prefer a source archive? Download and extract the
51
- [v0.2.2 archive](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/archive/refs/tags/v0.2.2.tar.gz),
51
+ [v0.3.0 archive](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/archive/refs/tags/v0.3.0.tar.gz),
52
52
  then run `sh install.sh --config-dir /absolute/path/to/your/opencode-config`
53
53
  inside it. That directory must be the one your OpenCode actually loads. The
54
54
  source installer creates starter settings; add `--replace` to the setup
@@ -135,7 +135,7 @@ row says whether `/pr-deep` is set up (see below).
135
135
 
136
136
  On a host without `permission.hook`, **Project boundary WARNING** means the
137
137
  host's own permission rules control where native read tools can read; reviews
138
- remain available. The tested OpenCode 2.1.2 host has that hook. `READY` is an
138
+ remain available. The tested OpenCode 2.1.4 host has that hook. `READY` is an
139
139
  access check, not a security audit or an approval of the PR.
140
140
 
141
141
  ## 5. Run a review and preview its comments
@@ -171,6 +171,26 @@ and cost. Refreshing a preview with `/pr-comment <review-id>` runs planning
171
171
  again. Use the displayed `/pr-stop <run-id>` to cancel an active command; no
172
172
  cost cap is configured by default.
173
173
 
174
+ ## Optional: adjust findings before publishing
175
+
176
+ Use finding IDs from your report to leave findings out or change their severity:
177
+
178
+ ```text
179
+ /pr-comment 1a2b3c4d --exclude F-1 --severity F-2=low
180
+ ```
181
+
182
+ In this example, F-1 is excluded from the new preview; F-2 appears as low in the
183
+ summary, with no new inline comment. The original review is preserved. A changed
184
+ severity does not verify the finding again; exclude a finding when it is wrong.
185
+
186
+ AZPR uses a model to plan the comments again without rerunning the review, so
187
+ read the whole new preview. Each option replaces its own saved list:
188
+ `--exclude F-1` followed by `--exclude F-2` excludes only F-2; use
189
+ `--exclude F-1,F-2` to keep both out. `--reset` clears both adjustment lists
190
+ and plans again; `--show` displays the saved preview without a model or Azure
191
+ request. See [adjusting findings](COMMENTING.md#adjusting-findings-after-a-preview)
192
+ for the full rules.
193
+
174
194
  ## Optional: publish after inspecting the preview
175
195
 
176
196
  ```text
@@ -180,8 +200,14 @@ cost cap is configured by default.
180
200
  This explicit command posts the saved preview through your PAT after checking
181
201
  the PR is active and its source commit is unchanged. Existing markers are
182
202
  skipped. Check the publication receipt for failures or incomplete read-back.
183
- If no preview exists, this command plans before publishing; use
184
- `/pr-comment <review-id>` to prepare and inspect a preview first. See
203
+ An adjusted review needs a saved preview planned after its latest adjustment,
204
+ also after `--reset`; `--publish` refuses if that preview is missing. Once
205
+ publication starts, its adjustments and preview are fixed, and `--publish`
206
+ retries the saved content. Earlier comments on the PR are never edited; the
207
+ receipt names those whose text differs from an adjusted preview.
208
+
209
+ For a review that has never been adjusted, `--publish` plans first if no preview
210
+ exists; use `/pr-comment <review-id>` to prepare and inspect a preview first. See
185
211
  [automatic comments](COMMENTING.md#automatic-comments-after-a-review) for
186
212
  `afterReview` and the flags that override it for one review.
187
213
 
package/docs/RELEASING.md CHANGED
@@ -11,8 +11,8 @@ source tree and contain the same runtime.
11
11
  and download links to that version.
12
12
  2. Run `npm run check` and `npm test`. Follow `AGENTS.md` for required host
13
13
  checks. Release validation includes fresh and replacement source installs,
14
- `host-v2-smoke.mjs --native`, and `host-v2-comment-scale.mjs` on the exact
15
- documented host. Keep simulated services and live model/Azure results distinct.
14
+ `host-v2-smoke.mjs --native`, `host-v2-comment-scale.mjs` and
15
+ `host-v2-background-compaction.mjs` on the exact documented host. Keep simulated services and live model/Azure results distinct.
16
16
  3. Inspect `npm pack --dry-run --json`: the entry, runtime modules, prompts,
17
17
  configuration example and license must be present; private settings, `.local/`,
18
18
  credentials, diagnostics and temporary recordings must be absent. The native
package/docs/ROADMAP.md CHANGED
@@ -1,11 +1,19 @@
1
1
  # Roadmap
2
2
 
3
- Tested with OpenCode CLI 2.1.2, the Azure DevOps Services REST API
3
+ Tested with OpenCode CLI 2.1.4, the Azure DevOps Services REST API
4
4
  (api-version 7.1) and Ubuntu 22.04. [Current validation](VALIDATION.md) records what this revision was tested
5
5
  with; [validation history](VALIDATION_HISTORY.md) keeps earlier results.
6
6
 
7
7
  ## Implemented (stability revision)
8
8
 
9
+ - **Adjust findings before publishing.** After reading a preview, use
10
+ `/pr-comment <review-id> --exclude` or `--severity` to choose which findings
11
+ to publish and at what severity. The model plans a new preview while the
12
+ original review stays intact. Each list replaces the saved one; `--reset`
13
+ clears both, and `--show` displays the saved preview without a model or Azure
14
+ request. Adjusted reviews require a saved preview and cannot be adjusted or
15
+ planned again once publication starts. Earlier PR comments keep their text;
16
+ the receipt reports differences. See [commenting](COMMENTING.md#adjusting-findings-after-a-preview).
9
17
  - **Optional automatic comments.** `afterReview` selects `none` (default),
10
18
  `preview` or `publish` for each mode; a flag after the PR URL overrides it
11
19
  for one review. A COMPLETE review hands off to a separate, cancellable
@@ -42,8 +50,10 @@ with; [validation history](VALIDATION_HISTORY.md) keeps earlier results.
42
50
  is STALE. Publication rechecks the head before writing.
43
51
  - **Sharded reviews.** Initial reviews run per file shard with disjoint finding-ID
44
52
  ranges; verification runs per finding shard; parallelism is bounded.
45
- - **Context overflow is recovered.** A refused compaction marks the stage as
46
- overflow and the shard is split and rerun (validated on the real host).
53
+ - **Context overflow is recovered.** A compaction the host attempts in a
54
+ reviewer's turn is refused, which ends the turn as overflow, and the shard is
55
+ split and rerun (validated on the real host). A refused background summary
56
+ (`experimental.background_compaction`) leaves the turn's own failure to decide.
47
57
  - **Correction turns.** Answers that break the output contract are corrected in
48
58
  the same session (`workflow.repairAttempts`); remaining problems degrade per
49
59
  item (UNREVIEWED, NEEDS_INFO, skipped comments) instead of failing the review.
@@ -1,12 +1,205 @@
1
1
  # Validation
2
2
 
3
3
  This page records validation of the Azure DevOps REST implementation and the
4
- 0.1.0, 0.2.0, 0.2.1 and 0.2.2 distributions. Host integration, provider
4
+ 0.1.0, 0.2.0, 0.2.1, 0.2.2 and 0.2.3 distributions, and the 0.3.0 release
5
+ candidate. Host 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.0 release candidate acceptance (2026-10-26)
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 finding-adjustment workflow merged in
39
+ PR #29, including the final fixes in `d4fd8dd`. Release preparation changes
40
+ the package version, description, documentation and recording tool, and adds
41
+ the code of conduct and a recorded demonstration to the npm package; the
42
+ runtime, prompts, settings and installers are unchanged from that reviewed
43
+ revision.
44
+
45
+ - `npm run check` and **417 offline tests** passed, including the adjustment
46
+ save failure, the final summary's excluded-ID check, and an earlier comment
47
+ read back after a refused write without a local publication record.
48
+ - All five real-host fixtures passed with isolated profiles and fake model
49
+ and Azure services: fresh source installation, replacement installation,
50
+ native packed package installation, comment scale and background compaction.
51
+ Fresh and native runs cover the authenticating proxy, custom CA, external
52
+ settings, restart and idempotent publication. The scale fixture reviewed
53
+ 120 files with one overflow split and eight planning sessions, at most two
54
+ in flight; its largest provider request was 33,419 characters. The
55
+ background-compaction fixture classified the failure as permanent and ran
56
+ one functional session.
57
+ - `npm pack --dry-run --json` lists **75 files**, including the entry, runtime,
58
+ prompts, configuration example and schema, license, code of conduct, 0.3.0
59
+ release notes and the new demonstration media. Tests, private settings and
60
+ `.local/` records are excluded.
61
+ - These release fixtures make no paid-model request or real Azure publication.
62
+ The live adjustment runs below used the earlier `cbbed6b` implementation;
63
+ the subsequent persistence, read-back and final-summary fixes have offline
64
+ regression tests. Host fixtures exercise the surrounding workflow.
65
+ - A live run on the candidate's runtime was recorded for the
66
+ [demonstration](DEMO.md): OpenCode 2.1.4 with `openai/gpt-6-luna`, the plugin
67
+ installed from public Git commit `dfba561`, on the 1-file test PR. The review
68
+ completed in 66 seconds with three confirmed findings and two merged
69
+ duplicates, and its automatic preview took 14 seconds. `--exclude F-3
70
+ --severity F-2=low` planned a new preview in 8 seconds with one inline
71
+ comment and F-2 in the summary only. Publication posted the summary and that
72
+ comment, both read back as `VERIFIED`, and a repeated publication reported
73
+ `ALREADY_PRESENT=2`. This run took the normal adjustment and publication
74
+ path; the failure paths of the later fixes are covered by the offline tests.
75
+
76
+ This is a pre-publication record. Public Git installation and clean-source
77
+ archive acceptance are checked on the release candidate; registry integrity
78
+ and installation from npm are checked only after publication, following the
79
+ [releasing guide](RELEASING.md). This record does not claim a published 0.3.0
80
+ package has been tested.
81
+
82
+ ## Adjusting findings after a preview (2026-10-25)
83
+
84
+ Commit `cbbed6b` (branch `comment-adjustments`) was installed through
85
+ OpenCode's plugin manager as `github:WTLAIB/opencode-azure-devops-pr-review-v2#cbbed6b…`
86
+ on the OpenCode 2.1.4 service (its 29 installed files equal the commit), with
87
+ gpt-6-luna for every review and quick role, gpt-6.1-sol for every deep role,
88
+ output in zh-TW and `afterReview` none for every mode; the service was restored to the published 0.2.3 package
89
+ afterwards. Every command ran in the conversation of its review unless noted.
90
+ Before the runs that publish, the earlier AZPR comments of the 1-file PR were
91
+ deleted and the local publication records of the 1-file and 316-file PRs were
92
+ moved aside, so that comments on the same lines were posted again instead of
93
+ being reported as `DELETED`.
94
+
95
+ **Preview only, with the earlier comments still on the 1-file PR.** Its four
96
+ AZPR threads made the planner skip all three findings as already discussed, so
97
+ these previews had no inline comment.
98
+
99
+ | Command | Planner input | Result | Planning |
100
+ | --- | --- | --- | --- |
101
+ | `/pr-review <URL>` | — | COMPLETE in 89 s: 6 candidates, 3 confirmed medium findings F-1, F-2, F-3 (the 3 known defects) | — |
102
+ | `/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 |
103
+ | `/pr-comment <id> --show` | — | The saved preview; no model or Azure DevOps request | — |
104
+ | `/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 |
105
+ | `/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 |
106
+ | The same adjustments again | — | "already has these adjustments; nothing was planned"; no model | — |
107
+ | `/pr-comment <id> --reset` | F-1, F-2, F-3; no `adjustments` field | Index medium 3, as before the adjustments | 1 request, 8 s |
108
+
109
+ **The 1-file PR without earlier comments** (three reviews, each COMPLETE in
110
+ 86–93 s):
111
+
112
+ - Review A: excluding all three findings answered `NOTHING_TO_POST` in 3 s
113
+ without a model, and `--publish` posted nothing. `--exclude none` stopped
114
+ with `/pr-stop` while it was planned ended `CANCELLED` with the adjustment
115
+ saved and no preview: `--publish` was refused ("was adjusted and has no
116
+ preview planned since") and `--show` reported no saved preview. Setting all
117
+ three to low then planned a summary without inline comments, which was posted.
118
+ - Review B, of the same commit: excluding one finding and setting the other two
119
+ to low gave a summary with the marker of review A's summary. Publication
120
+ skipped it as `ALREADY_PRESENT`, and the receipt said that the PR keeps its
121
+ earlier text, which may still list findings you excluded. Afterwards
122
+ `--exclude none` and a plain `/pr-comment <id>` were refused, `--show` said
123
+ that publication had started, and `--publish` again changed nothing.
124
+ - Review C confirmed five medium findings, two pairs of them the same defects
125
+ from both reviewers (F-1 and R-1, F-2 and R-3). `--exclude R-1,R-3 --severity
126
+ R-2=high,F-2=low` planned 2 inline comments (R-2 high, F-1 medium) and a
127
+ summary with high 1, medium 1, low 1; all three were posted and read back,
128
+ and no posted text names R-1 or R-3. They were deleted again before the deep
129
+ run below.
130
+ - `/pr-deep` COMPLETE in 116 s: 6 candidates, 3 confirmed medium findings
131
+ (the verifier merged the duplicates). `--exclude F-3 --severity F-1=high`,
132
+ planned by gpt-6.1-sol in 19 s (1 request, no correction turn), gave 2 inline
133
+ comments (F-1 high, F-2 medium) and a summary with high 1, medium 1; all
134
+ three were posted and read back with the gpt-6.1-sol disclosure, and no
135
+ posted text names F-3. Afterwards an adjustment was refused and `--publish`
136
+ again reported `ALREADY_PRESENT` for all three. These comments are kept on
137
+ the PR.
138
+
139
+ **The 316-file PR** (no comments before):
140
+
141
+ - `/pr-quick` COMPLETE in 186 s (48 findings reported), preview with 25 inline
142
+ comments, 13 of them combining findings of two shards. `--exclude Q-11001
143
+ --severity Q-12014=medium,Q-1013=low` (preview only, 102 s): Q-1001, combined
144
+ with Q-11001 before, got a comment of its own; Q-12014, raised from low, was
145
+ combined with Q-1022 on the same line; Q-1013 stayed in the summary only; the
146
+ disclosure still says the review was not independently verified, and the
147
+ preview names Q-11001 nowhere.
148
+ - `/pr-review` COMPLETE in 333 s: 27 confirmed (37 merged), preview with 26
149
+ inline comments and 1 low finding in the summary. R-1009, R-1010 and R-1011
150
+ repeat F-1009, F-1010 and F-1011 from the other reviewer.
151
+ - Refused without a change: the same command from another conversation ("No
152
+ completed review is available for this conversation"), `--exclude F-9999`
153
+ ("not a finding of review …", listing the IDs that can be adjusted) and
154
+ `--exclude R-1001` ("was merged into F-1001; adjust F-1001 instead").
155
+ - `--exclude R-1009` with the OpenCode service restarted while it was planned:
156
+ the service reloaded in 7 s; `--show` reported no saved preview and
157
+ `--publish` was refused. A plain `/pr-comment <id>` then planned the preview
158
+ with R-1009 still excluded (85 s).
159
+ - `--exclude R-1009,R-1010,R-1011 --severity F-1013=high,F-1016=low,F-1022=medium`
160
+ (63 s) planned 23 inline comments and a summary with high 5, medium 18, low 1:
161
+ F-1013 titled high, F-1022 (raised from low) with an inline comment, F-1016
162
+ in the summary only. All 24 items were posted and read back; the three
163
+ repeated defects have one comment each, and no posted text names R-1009,
164
+ R-1010 or R-1011. After publication, adjustments and a plain re-plan were
165
+ refused and `--publish` again reported `ALREADY_PRESENT` for all 24 items.
166
+ These comments are kept on the PR.
167
+
168
+ No planning stage of these runs needed a correction turn, and the runtime's
169
+ check for published text that names an excluded finding never had to act: the
170
+ model left excluded findings out of its text. That check, and the receipt line
171
+ that counts other AZPR comments of the PR, are covered by the offline tests
172
+ only.
173
+
174
+ ## 0.2.3 release acceptance (2026-10-24)
175
+
176
+ Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3 and OpenCode CLI 2.1.4.
177
+ This release carries the OpenCode 2.1.4 changes recorded
178
+ [below](#opencode-214-the-tested-host-2026-10-24): the refused-tunnel mapping,
179
+ the Azure DevOps call timeout and the overflow classification after a refused
180
+ background summary. Prompts, settings and installers are unchanged from 0.2.2.
181
+
182
+ - `npm run check` and **394 offline tests** passed.
183
+ - All five real-host fixture runs passed with isolated profiles and fake model
184
+ and Azure services: fresh source installation, replacement installation,
185
+ native packed package installation, comment scale, and background
186
+ compaction followed by a permanent failure. The fresh and native runs
187
+ include the authenticating proxy, the untrusted certificate and the 407. The
188
+ scale fixture split the overflowing shard and used eight planning sessions
189
+ with at most two in flight; its largest provider request was 33,419
190
+ characters. The background-compaction fixture ran one functional session,
191
+ classified permanent.
192
+ - `npm pack --dry-run --json` lists **70 files** (about 882 KB), including the
193
+ entry, runtime, prompts, configuration example and schema, license and the
194
+ new release notes. It excludes tests, private settings and `.local/` records.
195
+ - The release notes use absolute HTTPS links; the relative links and anchors
196
+ of the README, quickstart, changelog and the changed guides resolve.
197
+ - These fixtures make no paid-model request or real Azure publication. The
198
+ live reviews on 2.1.4 preceded the call-timeout and background-summary
199
+ changes. Public Git installation, archive acceptance, and post-publication
200
+ registry integrity and native installation are checked on the pushed commit
201
+ and the published package as the [releasing guide](RELEASING.md) describes.
202
+
10
203
  ## 0.2.2 release acceptance (2026-10-23)
11
204
 
12
205
  Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3 and OpenCode CLI 2.1.2.
@@ -265,7 +458,7 @@ problem messages were added on top of 0.1.0; review prompts were unchanged.
265
458
  and all but 0 to 6 of them render no active markup. Those few contain
266
459
  `<!X…>` or `<?…>`, which browsers turn into comments and no rule checks;
267
460
  the previous revision held them only because of code elsewhere in the
268
- text. The same run found the gaps listed under Not yet validated.
461
+ text. The same run found the gaps closed below.
269
462
  - All four real-host fixtures passed on OpenCode 2.1.2. The 15 previews
270
463
  saved from real reviews still have no held item. No live run: real
271
464
  comment text has not contained the held constructs, in code or not.
@@ -438,8 +631,9 @@ acceptance above for the subsequent native package and recorded live run.
438
631
  Ubuntu 22.04.5 LTS (WSL2, kernel 6.18), Node 22.23.3, OpenCode CLI 2.0.22,
439
632
  Azure DevOps Services REST api-version 7.1. Date: 2026-10-10. From
440
633
  2026-10-17 the tested host was OpenCode CLI 2.0.32
441
- ([below](#opencode-2032-2026-10-17)); since 2026-10-22 it is 2.1.2
442
- ([below](#opencode-212-the-tested-host-2026-10-22)).
634
+ ([below](#opencode-2032-2026-10-17)), from 2026-10-22 2.1.2
635
+ ([below](#opencode-212-2026-10-22)); since 2026-10-24 it is 2.1.4
636
+ ([below](#opencode-214-the-tested-host-2026-10-24)).
443
637
 
444
638
  ## Offline tests
445
639
 
@@ -578,6 +772,19 @@ provider's own text, classified as permanent, and, end to end, a 429 quota
578
772
  failure that starts no second session and says why in the receipt; and the
579
773
  tested host version. Removing the quota rule from a copy of the code made
580
774
  these tests fail.
775
+ The move to OpenCode 2.1.4 (2026-10-24) adds tests for a proxy that refuses
776
+ the CONNECT tunnel as Bun 1.4.4 reports it, a rejection with
777
+ `ERR_PROXY_TUNNEL` and the proxy's status: 407, 403 and 502 keep the messages
778
+ and retry rules of the answers Bun 1.4.2 returned, and a refused tunnel never
779
+ makes a write uncertain. Removing the mapping, the not-sent code or the
780
+ not-forwarded flag from a copy of the code made these tests fail. Every Azure
781
+ DevOps request now also asks the runtime for no idle limit of its own
782
+ (`timeout: false`), so `azure.callTimeoutSeconds` alone ends a silent call;
783
+ removing the option made its test fail. A refused background summary no longer
784
+ marks a stage as overflow: tests cover it followed by an HTTP 401 in the first
785
+ turn and in a follow-up (permanent, no split, the earlier answer stands) and a
786
+ failed turn with and without the host's compaction message. The previous code
787
+ failed them.
581
788
 
582
789
  ## REST API version check
583
790
 
@@ -631,10 +838,85 @@ rule so the offline runtime tests catch a regression.
631
838
  | Largest provider request | 31,136 characters (27,185 before the duplicate rules and the diff and search tools) |
632
839
  | REST calls | 74 |
633
840
 
634
- ## OpenCode 2.1.2, the tested host (2026-10-22)
841
+ ## OpenCode 2.1.4, the tested host (2026-10-24)
842
+
843
+ Since 2026-10-24 the tested host is OpenCode CLI 2.1.4 (`TESTED_HOST_VERSION`;
844
+ CI runs the exact-host fixtures with it). 2.1.3 was not tested on its own.
845
+ Reviewing the 137 commits from `v2.1.2` to `v2.1.4` of the OpenCode source and
846
+ running the fixtures found one change AZPR had to absorb, in the proxy
847
+ behaviour of the embedded runtime:
848
+
849
+ | Area | 2.1.2 → 2.1.4 |
850
+ | --- | --- |
851
+ | Plugin context | Every method AZPR calls is unchanged; the plugin package changed only its types. |
852
+ | Hooks AZPR uses | `prompt`, `context`, `model.request` (kinds `primary`, `compaction`, `generate` and `title`), `retry`, `permission.evaluate` and the tool hooks keep their shapes, as do the token counts on assistant messages. |
853
+ | Host constants | The continuation text, the streamed event names and the permission defaults are unchanged. |
854
+ | Runtime | The embedded Bun moved from 1.4.2 to 1.4.4. When a proxy refuses the CONNECT tunnel, for example with HTTP 407, `fetch` now rejects with `ERR_PROXY_TUNNEL` and the proxy's status instead of returning the proxy's answer, and it resets the proxy connection. AZPR maps the rejection to the same proxy messages and retry rules as before, and a refused tunnel never makes a write uncertain. A refused connection is now `ECONNREFUSED` rather than `ConnectionRefused`; AZPR already recognized both. |
855
+ | Compaction | `experimental.background_compaction` (off by default) prepares summaries through the same `compaction` request, which AZPR refuses for private reviewers before anything is sent; the turn goes on. A compaction the host attempts in the turn opens its message first and ends the turn, so overflow is now read from the failed turn's messages (see below). More provider context-overflow errors now reach AZPR as compaction attempts and therefore split the shard. |
856
+ | Models | With a ChatGPT sign-in, the OpenAI context caps moved into a built-in plugin with the same input limits (272,000 tokens; 500,000 for gpt-6.1-sol). A session without its own model now uses its agent's model; AZPR always sets both. |
857
+ | New tools | The experimental TUI terminal tools and client-hosted MCP tools are outside the private roles' allowlist, so reviewers neither see nor run them. |
858
+
859
+ - Exact-host fixtures with 2.1.4 installed into a disposable prefix: with only
860
+ the tested version changed, the fresh and native runs failed in the proxy
861
+ step. The 407 check received `ERR_PROXY_TUNNEL`, AZPR retried it as a
862
+ network error, and the fixture proxy stopped on the reset connection; the
863
+ replacement and comment-scale runs passed. With the mapping and a fixture
864
+ proxy that tolerates a reset, all four passed: fresh, replacement, native
865
+ and comment scale.
866
+ - An external review of this revision found that a refused background summary
867
+ still marked its stage as overflow. On the exact host with background
868
+ compaction on, a functional reviewer whose first response passed the
869
+ background threshold and whose next request failed with HTTP 401 was split
870
+ into new sessions that failed the same way: 7 functional sessions for 4
871
+ files. Overflow is now read from the failed turn's messages. The new
872
+ `host-v2-background-compaction.mjs` fixture passes with one functional
873
+ session classified permanent and fails with the previous code; the other
874
+ four fixtures still pass, including the refused foreground compaction and
875
+ split at scale, whose failed turn holds the host's compaction message (still
876
+ `running` when the turn ended).
877
+ - A probe in each runtime (`BUN_BE_BUN=1 opencode`) showed the difference: for
878
+ 407, 403 and 502 answers to CONNECT, Bun 1.4.2 resolves with that status and
879
+ Bun 1.4.4 rejects with `ERR_PROXY_TUNNEL` carrying it; a proxy that closes
880
+ without an answer gives ECONNRESET in both.
881
+ - The same probe found that `fetch` in both runtimes ends a request that
882
+ receives nothing after about 370 seconds unless it passes `timeout: false`.
883
+ `azure.callTimeoutSeconds` accepts up to 1,800 seconds, so a longer setting
884
+ used to end at that point with a retried network error. AZPR now passes
885
+ `timeout: false`, and its own per-call timeout decides. In 2.1.4's runtime,
886
+ AZPR's client sent one comment write to a silent server with a 400-second
887
+ timeout: without the option it ended at 372 seconds with `network error (23)`,
888
+ with it through AZPR's per-call timeout (413 seconds by the wall clock).
889
+ - Upgrade: `npm install -g @opencode/cli@2.1.4`; the background service,
890
+ still running 2.1.2, was then stopped and its database copied before 2.1.4
891
+ first opened it, and the service was started on 2.1.4. With this revision
892
+ `/pr-check` on the 1-file PR was READY without a host notice.
635
893
 
636
- Since 2026-10-22 the tested host is OpenCode CLI 2.1.2, which the user's
637
- company runs (`TESTED_HOST_VERSION`; CI runs the exact-host fixtures with it).
894
+ Live on the upgraded background service with this revision (gpt-6-luna for
895
+ quick and review, `workflow.parallelSessions` 8, each review followed by a
896
+ comment preview; nothing was posted):
897
+
898
+ | PR | Mode | Review | Sessions / requests | Input (cached) | Findings | Preview (inline) |
899
+ | --- | --- | --- | --- | --- | --- | --- |
900
+ | PR #2, 1 file | quick | COMPLETE, 48 s | 1 / 6 | 39 K (60 %) | the 3 known defects | 7 s (0; the PR's threads already discuss all 3) |
901
+ | | review | COMPLETE, 75 s | 3 / 12 | 84 K (52 %) | the 3 known defects | 7 s (0; already discussed) |
902
+ | PR #4, 35 files | quick | COMPLETE, 36 s | 2 / 7 | 167 K (52 %) | no candidate for either seeded regression | 3 s (0) |
903
+ | | review | COMPLETE, 75 s | 5 / 15 | 309 K (55 %) | the seeded regression in the diff | 10 s (1) |
904
+ | PR #3, 316 files | quick | COMPLETE, 136 s | 13 / 51 | 1.81 M (66 %) | all 24 seeded policy defects | 74 s (23) |
905
+ | | review | COMPLETE, 297 s | 30 / 128, 1 correction | 4.45 M (72 %) | all 24 seeded policy defects, no other finding | 98 s (30) |
906
+
907
+ All six reviews and previews completed with no AZPR retry, failed stage,
908
+ inactivity stop, tool timeout, blocked tool, host retry, rejected model request
909
+ or Azure DevOps retry; one reviewer once called a diff tool without its path
910
+ and got the host's argument error. The results stay within gpt-6-luna's range
911
+ on 2.1.2: which of the two seeded regressions in the 35-file PR a run finds
912
+ still varies between runs. These live runs preceded the `timeout: false`
913
+ change, which the fixtures and the probe above cover.
914
+
915
+ ## OpenCode 2.1.2 (2026-10-22)
916
+
917
+ From 2026-10-22 to 2026-10-24 the tested host was OpenCode CLI 2.1.2, which
918
+ the user's company ran then (`TESTED_HOST_VERSION`; CI ran the exact-host
919
+ fixtures with it).
638
920
  2.1.0 and 2.1.1 were not tested. Reviewing the 146 commits from `v2.0.32` to
639
921
  `v2.1.2` of the OpenCode source found nothing AZPR depends on changed:
640
922
 
@@ -1758,38 +2040,27 @@ So host retries needed no change. The watchdog's default of 600 s is four
1758
2040
  times the longest quiet stretch observed; a stopped stage is retried like a
1759
2041
  transient failure, and its error names the last activity.
1760
2042
 
1761
- ## Not yet validated
1762
-
1763
- - Automatic publication from the setting (`afterReview: publish`) with a
1764
- real model: the live publications above used the `--publish` flag, which
1765
- differs only in where the step comes from. The item checks did not trigger
1766
- in any live run, since real comment text had none of the held constructs;
1767
- they were validated with the fixture services and the saved live previews
1768
- only. A quick review's automatic publication has not run live. The
1769
- repeated-summary rule did trigger live (above).
1770
- - Azure DevOps's own rendering and sanitizing of comments was not tested
1771
- against the content checks of automatic publication: the fuzzing rendered
1772
- with commonmark.js and markdown-it and read the HTML with parse5.
1773
- - A defect whose evidence spans a test and unchanged code in different shards
1774
- is found by gpt-6.1-sol (2 of 2 runs on PR #4) and missed by gpt-5.6-luna and
1775
- gpt-6-luna; other PRs are not yet measured.
1776
- - Azure DevOps Server, and repository files that are not UTF-8 text.
1777
- - `azure.caFile` with a real proxy: the corporate network above ran with
1778
- `verifyTls: false`; whether its proxy inspects TLS, and trusting its root CA
1779
- instead, were not checked. `azure.caFile` was validated with the fixture
1780
- proxy and CA above only. Proxies that require NTLM or Kerberos are not
1781
- supported directly.
1782
- - The stage inactivity watchdog with a real provider: no live stall has
1783
- occurred since it was added. It was validated with the fixture provider's
1784
- stalled HTTP stream; a stalled OpenAI WebSocket stream was not produced on
1785
- purpose.
1786
- - Streamed reasoning from a real reasoning model: the fixture streams answer
1787
- text only. A model that thinks without streaming anything looks silent to
1788
- the watchdog for that time.
1789
- - Planning more than two pages at a time (not measured), and `/pr-stop` while
1790
- pages are planned side by side with a real provider (only the fixtures and
1791
- offline tests cancel running pages).
1792
- - `/pr-quick` beyond these runs on three test PRs with one model: its
1793
- false-positive rate and misses on other PRs and models, a published quick
1794
- review of a multi-shard PR (only the 1-file PR's was posted), and combining
1795
- duplicates on a real multi-shard PR other than the test PR.
2043
+ ## Known limitations
2044
+
2045
+ - **Tested environment.** OpenCode CLI 2.1.4 (V2 plugin API) on Ubuntu 22.04
2046
+ under WSL2. Other OpenCode 2.x versions add a host notice to receipts and
2047
+ are not validated; OpenCode 1.x is not supported. Other operating systems
2048
+ are not validated yet.
2049
+ - **Azure DevOps Services only.** Azure DevOps Server (on-premises) is not
2050
+ supported by the current URL handling.
2051
+ - **File encoding and size.** Files are read as UTF-8, so text in another
2052
+ encoding, such as Big5 or Shift_JIS, reaches the reviewers with replacement
2053
+ characters. Binary files and files over 10 MB are reported but not shown,
2054
+ and content search covers a commit archive of at most
2055
+ `azure.archiveMegabytes` (100 MB by default).
2056
+ - **Corporate proxies.** AZPR has run live through a company HTTP proxy with
2057
+ `azure.verifyTls: false`. Trusting an inspecting proxy's root CA with
2058
+ `azure.caFile` is verified with a test proxy only, and proxies that require
2059
+ NTLM or Kerberos authentication are not supported directly.
2060
+ - **Quick reviews are not independently verified.** `/pr-quick` reports what
2061
+ one reviewer per shard found and says so in its report and comments; use
2062
+ `/pr-review` when findings need a second check.
2063
+ - **Findings depend on the model.** Results vary between models and between
2064
+ runs of the same model. On the 35-file test PR, gpt-6.1-sol found a defect
2065
+ whose evidence spans a test and unchanged code in another shard, which
2066
+ gpt-6-luna missed; `/pr-deep` runs the same review with stronger models.