dsh-github-copilot 0.4.0-alpha.132 → 0.4.0-alpha.133

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 CHANGED
@@ -115,7 +115,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
115
115
  accounting. Historical counts never become current occupancy; Core pressure,
116
116
  billing and durable events stay under Core ownership.
117
117
  - `src/current-provider.ts`: selected DSH route plus installed pi-ai catalog facts.
118
- - `src/account-model-catalog.ts`, `src/preview-provider.ts`: validated account endpoint/capability descriptors and published adapter composition. Explicit supplier `supports.thinking` metadata controls only managed Responses temperature compatibility; unknown/malformed metadata never authorizes guessed omission.
118
+ - `src/account-model-catalog.ts`, `src/preview-provider.ts`: validated account endpoint/capability descriptors and published adapter composition. `responsesOmitTemperature` is an explicit default-off compatibility override for every managed Responses request; no supplier capability metadata is treated as temperature evidence.
119
119
  - `src/temporary-models.ts`: exact, account-gated corrections with semantic protocol/capability retirement.
120
120
  - `src/model-protocol.ts`: explicit Core capability detection and conservative legacy fallback.
121
121
  - `src/responses-reasoning.ts`, `src/responses-reasoning-text.ts`: selected-model effort mapping and public summary assembly.
@@ -141,7 +141,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
141
141
 
142
142
  - Do not implement a second general wire adapter or independently maintained static Copilot model catalog. The account-scoped route composes the published adapter and SDK with validated supplier metadata.
143
143
  - Protocol and capability corrections must follow authenticated, current account metadata; new model IDs must not need new implementation tables. Native pi metadata may be reused only where it agrees with advertised endpoints and capabilities. Matching IDs alone do not prove correctness or authorize migration back into another Core catalog. Preserve old bounded ownership journals solely for verified restoration of legacy writes, never for new global protocol overrides.
144
- - Native Auto review compatibility must preserve Core's frozen request and strict fail-closed verdict ownership. Omit temperature only from a new plugin-owned managed Responses options object when current supplier metadata explicitly marks it unsupported; never match reviewer prompts, model names or errors, intercept the canonical Core route, retry/resend, rewrite a verdict or change permission policy.
144
+ - Native Auto review compatibility must preserve Core's frozen request and strict fail-closed verdict ownership. `github-copilot.responsesOmitTemperature` defaults off; when explicitly enabled, omit temperature from every plugin-owned managed Responses options object, independently of model metadata. This is a compatibility override, not a capability claim. Never match reviewer prompts, model names or errors, intercept the canonical Core route, retry/resend, auto-enable/migrate the setting, rewrite a verdict or change permission policy.
145
145
  - Solve protocol gaps inside the plugin using existing published extension points. Do not require a new Core capability/service or patch Core to keep a single route. The managed account-model route reuses the published adapter with one shared OAuth grant; label multiple routes honestly. Keep canonical Core models/configuration under their existing owner instead of rewriting them from the companion's pi catalog.
146
146
  - Preserve public Responses summaries and the effective selected-model reasoning effort. Never synthesize raw reasoning replay from summaries or read/decrypt opaque replay data; assistant reasoning/replay histories delegate to Core before probing.
147
147
  - Do not require or silently support `copilot2api`, an external gateway, a pasted GitHub token, a placeholder key, or `dsh-web-search-provider`.
package/CHANGELOG.md CHANGED
@@ -1,15 +1,20 @@
1
1
  # Changelog
2
2
 
3
- ## 0.4.0-alpha.132 (prepared)
3
+ ## 0.4.0-alpha.133 (prepared)
4
4
 
5
- - Publish the reviewed #374 native Auto-review compatibility update and its complete exact-Core descriptor fixtures under a fresh immutable version.
6
- - Preserve the unused `v0.4.0-alpha.131` tag after its noncanonical manual annotation was rejected by the protected publication workflow; that version was not published to GitHub Releases or npm and is never moved, reused or repacked.
5
+ - Correct the #374 temperature-compatibility claim: `supports.thinking` does not establish temperature support. Replace inferred omission with the explicit, default-off `github-copilot.responsesOmitTemperature` override.
6
+ - When explicitly enabled, omit temperature from every account-discovered managed Responses request, independent of model metadata or native transport selection. Document the all-request scope and tradeoff; preserve native reviewer fail-closed behavior, frozen options, cancellation and one-attempt semantics. The Core-owned canonical route remains outside scope.
7
+ - Add default-preservation coverage for thinking true/false/absent, opt-in omission coverage for each, dynamic-config/lazy-dispatch and account/cancellation fences, plus unchanged-source native reviewer verdict cases. Synthetic fixtures do not establish supplier semantics or live endpoint success.
8
+ - Preserve the immutable published `0.4.0-alpha.132`; this correction uses a new release version.
9
+
10
+ ## 0.4.0-alpha.132 (published; inference superseded)
7
11
 
8
- ## 0.4.0-alpha.131 (not published)
12
+ - This release inferred temperature incompatibility from `capabilities.supports.thinking`. That mapping is unsupported by a verified supplier contract and must not be treated as validated or automatically capability-derived mitigation. The default-off explicit override in alpha.133 replaces it.
9
13
 
10
- - Make native rc.2 Auto authorization review compatible with managed Copilot Responses models that explicitly advertise `capabilities.supports.thinking`: omit the unsupported `temperature` field only at the plugin-owned native transport boundary (#374).
11
- - Preserve the frozen reviewer request, supported or unknown temperature behavior, other protocols/providers, account and cancellation fences, and native allow/deny/malformed/error handling. No prompt matching, model-name rule, retry, permission bypass or canonical-route interception is added.
12
- - Add exact tagged-source and published-artifact reviewer fixtures with synthetic metadata, credentials and responses. These tests do not attest a live selected model, provider endpoint, Desktop activation, installation or restart.
14
+ ## 0.4.0-alpha.131 (not published; superseded)
15
+
16
+ - Earlier draft proposed temperature omission based on `capabilities.supports.thinking`; the inference is not supported and was withdrawn in alpha.133.
17
+ - Preserve the unused `v0.4.0-alpha.131` tag after its noncanonical manual annotation was rejected by the protected publication workflow; that version was not published to GitHub Releases or npm and is never moved, reused or repacked.
13
18
 
14
19
  ## 0.4.0-alpha.130 (prepared)
15
20
 
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  GitHub Copilot account discovery, contextual Auto routing and hosted search for DSH. The plugin reuses DSH's published native adapter, retaining a profile-wide account default with independent Session next-turn choices; it does not patch Core or maintain a second model catalog.
10
10
 
11
- **Current release: [`0.4.0-alpha.132`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.0-alpha.132). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** This is still an alpha release, not a stable-channel promotion. Earlier DSH pins are historical evidence, not supported installation targets. Published, installed in a profile and loaded by a running Host are separate states.
11
+ **Current release: [`0.4.0-alpha.133`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.0-alpha.133). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** This is still an alpha release, not a stable-channel promotion. Earlier DSH pins are historical evidence, not supported installation targets. Published, installed in a profile and loaded by a running Host are separate states.
12
12
 
13
13
  ## What you can do
14
14
 
@@ -85,10 +85,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
85
85
  For a **standalone named profile**:
86
86
 
87
87
  ```sh
88
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/dsh-github-copilot-0.4.0-alpha.132.tgz
88
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.133/dsh-github-copilot-0.4.0-alpha.133.tgz
89
89
  ```
90
90
 
91
- For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.132` after publication. Official rc.2's **Desktop-bundled CLI** also supports reserved-profile plugin management; a global/generic `dsh` shim is not equivalent. Qualify the installed entry before use. See [Desktop CLI qualification](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2) and the distinct [standalone offline procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles). Neither path authorizes registry-policy bypass, peer patches or configuration deletion.
91
+ For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.133` after publication. Official rc.2's **Desktop-bundled CLI** also supports reserved-profile plugin management; a global/generic `dsh` shim is not equivalent. Qualify the installed entry before use. See [Desktop CLI qualification](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2) and the distinct [standalone offline procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles). Neither path authorizes registry-policy bypass, peer patches or configuration deletion.
92
92
 
93
93
  After an approved reload/restart:
94
94
 
@@ -179,7 +179,7 @@ The same failure can include request-scoped native local body-write/header miles
179
179
 
180
180
  HTTP/SSE liveness separates five-minute byte idle from bounded ten-minute assistant-output silence by default. Consumer work is excluded; WebSocket/explicit `auto` stays native-only. This does not cure supplier HTTP 408s. Images are admitted against actual native-projected MIME evidence; the plugin does not own conversion or infer format support from filenames. [Image compatibility](./docs/image-input-compatibility.md).
181
181
 
182
- Native rc.2 Auto authorization review always asks its selected route with `temperature: 0`. On the managed account-discovered Responses route, the plugin now follows the supplier's explicit `capabilities.supports.thinking` fact and omits that unsupported field at the plugin-owned native transport boundary. An explicit `false` or absent capability preserves the caller's setting; other protocols/providers remain unchanged. The frozen reviewer request, strict verdict parser, cancellation and fail-closed tool denial are untouched, and no failed request is retried. Existing canonical Core-owned Copilot profiles are outside this mitigation because the plugin cannot intercept them without taking over another owner's adapter.
182
+ Native rc.2 Auto authorization review asks its selected route with `temperature: 0`. No verified supplier contract establishes that `capabilities.supports.thinking` determines temperature support; that metadata is not used for this decision. The explicit compatibility override `github-copilot.responsesOmitTemperature` defaults to `false`. Set it to `true` only when you choose to omit temperature from **all** account-discovered managed OpenAI Responses requests, regardless of native transport; it may address the reported reviewer 400 but also changes temperature semantics for ordinary chat and other requests on that managed protocol. It has no effect on Chat Completions, Anthropic Messages or the canonical Core-owned Copilot route. The plugin does not enable or migrate this setting automatically. The frozen reviewer request, strict verdict parser, cancellation and fail-closed tool denial remain unchanged; errors are not retried. See [model compatibility acceptance](./docs/model-compatibility-acceptance.md).
183
183
 
184
184
  ## Settings and troubleshooting
185
185
 
@@ -195,6 +195,7 @@ Configuration is under `github-copilot`. Credentials, endpoint definitions and a
195
195
  | `chatStreamLiveness` | `true` | Managed HTTP/SSE byte observation |
196
196
  | `chatStreamIdleTimeoutMs` | `300000` | Byte-idle deadline; separate from search |
197
197
  | `responsesRequestCompression` | `false` | Experimental lossless gzip for eligible managed HTTP Responses requests |
198
+ | `responsesOmitTemperature` | `false` | Explicitly omit temperature from every managed Responses request |
198
199
  | `chatMaxRequestImageBytes` | `20971520` | Native 20 MiB outgoing-image budget, not a total JSON limit |
199
200
  | `requestBudgetSafetyTokens` | `4096` | Estimated input safety allowance |
200
201
  | `requestBudgetPressureRatio` | `0.9` | Early pressure with supported enabled recovery |
@@ -261,14 +262,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
261
262
  GitHub Releases and npm distribute the same original verified tarball. Pin a version; verify Release SHA-256 or npm `dist.integrity`. Never repack an immutable release or move/reuse its tag.
262
263
 
263
264
  ```sh
264
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/dsh-github-copilot-0.4.0-alpha.132.tgz
265
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/SHA256SUMS
265
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.133/dsh-github-copilot-0.4.0-alpha.133.tgz
266
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.133/SHA256SUMS
266
267
  sha256sum --check SHA256SUMS
267
268
  ```
268
269
 
269
270
  ```powershell
270
271
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
271
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.132.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
272
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.133.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
272
273
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
273
274
  ```
274
275
 
package/README.zh.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  为 DSH 提供 GitHub Copilot 账号模型发现、上下文 Auto 选模和 hosted search。插件复用 DSH 公开的原生适配器,保留 profile 全局默认账号,并支持 Session 后续 turn 指定独立账号;不修改 Core,也不维护第二套模型目录。
10
10
 
11
- **当前发布:[`0.4.0-alpha.132`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.0-alpha.132)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 仍为 alpha 版本,未升级为稳定发布通道。较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。
11
+ **当前发布:[`0.4.0-alpha.133`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.0-alpha.133)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 仍为 alpha 版本,未升级为稳定发布通道。较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。
12
12
 
13
13
  ## 你可以做什么
14
14
 
@@ -76,10 +76,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
76
76
  **独立具名 profile**:
77
77
 
78
78
  ```sh
79
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/dsh-github-copilot-0.4.0-alpha.132.tgz
79
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.133/dsh-github-copilot-0.4.0-alpha.133.tgz
80
80
  ```
81
81
 
82
- **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.132`。官方 rc.2 **Desktop 随附的专属 CLI**也支持管理保留 profile;全局/普通 `dsh` shim 不等价。使用前核验实际安装入口,参见[Desktop CLI 核验](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及独立的[具名 profile 离线流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)。两种路径都不授权绕过包源政策、修改 peer 或删除配置。
82
+ **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.133`。官方 rc.2 **Desktop 随附的专属 CLI**也支持管理保留 profile;全局/普通 `dsh` shim 不等价。使用前核验实际安装入口,参见[Desktop CLI 核验](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及独立的[具名 profile 离线流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)。两种路径都不授权绕过包源政策、修改 peer 或删除配置。
83
83
 
84
84
  经批准 reload/restart 后:
85
85
 
@@ -170,7 +170,7 @@ Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallba
170
170
 
171
171
  HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手输出静默,排除消费者工作;WebSocket/显式 `auto`仍仅使用原生路径。这不修复供应方 HTTP 408。图片按原生实际投影 MIME 证据准入;插件不负责转换,也不按文件名猜格式支持。[图片兼容](./docs/image-input-compatibility.md)。
172
172
 
173
- 原生 rc.2 Auto 授权审查始终以 `temperature: 0` 请求所选路由。对账号发现的托管 Responses 路由,插件现在只依据供应方明确的 `capabilities.supports.thinking` 事实,在插件所有的原生传输边界省略这个不受支持字段。明确为 `false` 或缺失时保留调用方设置;其它协议/provider 不变。冻结的审查请求、严格 verdict 解析、取消与失败关闭的工具拒绝均不变,也不会重试失败请求。现有 Core 所有的 canonical Copilot profile 不在此缓解范围内,因为插件不能在不接管其它 owner adapter 的情况下拦截它。
173
+ 原生 rc.2 Auto 授权审查以 `temperature: 0` 请求所选路由。没有经验证的供应方契约能证明 `capabilities.supports.thinking` 决定 temperature 是否受支持;此元数据不会用于该判断。显式兼容覆盖项 `github-copilot.responsesOmitTemperature` 默认 `false`。只有在用户接受影响范围时才设为 `true`:无论原生传输方式如何,它都会从**所有**账号发现的托管 OpenAI Responses 请求中省略 temperature,可能解决已报告的 reviewer 400,但也会改变该托管协议上普通聊天及其它请求的 temperature 语义。它不影响 Chat Completions、Anthropic Messages 或 Core 所有的 canonical Copilot 路由。插件不会自动启用或迁移该设置。冻结的 reviewer 请求、严格 verdict 解析、取消和失败关闭的工具拒绝保持不变;错误不会重试。参见[模型兼容性验收](./docs/model-compatibility-acceptance.md)。
174
174
 
175
175
  ## 设置与排障
176
176
 
@@ -186,6 +186,7 @@ HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手
186
186
  | `chatStreamLiveness` | `true` | 托管 HTTP/SSE 字节观察 |
187
187
  | `chatStreamIdleTimeoutMs` | `300000` | 字节 idle 期限,与搜索独立 |
188
188
  | `responsesRequestCompression` | `false` | 实验性托管 HTTP Responses 无损 gzip |
189
+ | `responsesOmitTemperature` | `false` | 从每个托管 Responses 请求显式省略 temperature |
189
190
  | `chatMaxRequestImageBytes` | `20971520` | 原生 20 MiB 出站图片预算,非总 JSON 上限 |
190
191
  | `requestBudgetSafetyTokens` | `4096` | 估算输入安全余量 |
191
192
  | `requestBudgetPressureRatio` | `0.9` | 启用受支持恢复时的提前压力 |
@@ -252,14 +253,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
252
253
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
253
254
 
254
255
  ```sh
255
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/dsh-github-copilot-0.4.0-alpha.132.tgz
256
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/SHA256SUMS
256
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.133/dsh-github-copilot-0.4.0-alpha.133.tgz
257
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.133/SHA256SUMS
257
258
  sha256sum --check SHA256SUMS
258
259
  ```
259
260
 
260
261
  ```powershell
261
262
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
262
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.132.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
263
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.133.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
263
264
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
264
265
  ```
265
266
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.132"
11
+ "version": "0.4.0-alpha.133"
12
12
  },
13
13
  "evidence": {
14
14
  "kind": "source-and-synthetic-test-inventory",
@@ -717,7 +717,7 @@
717
717
  {"file": "tests/config.spec.ts", "name": "keeps managed Responses request compression default-off and boolean-only"},
718
718
  {"file": "tests/preview-provider.spec.ts", "name": "preserves published-adapter JSON and usage across identity and gzip encoding"},
719
719
  {"file": "tests/preview-provider.spec.ts", "name": "keeps caller-owned Fetch unchanged and does not resend a gzip 415 response"},
720
- {"file": "tests/preview-provider.spec.ts", "name": "rechecks the request/account fence after compression and never dispatches revoked work"},
720
+ {"file": "tests/preview-provider.spec.ts", "name": "rechecks the request/account fence with both opt-ins and never dispatches revoked work"},
721
721
  {"file": "tests/preview-provider.spec.ts", "name": "keeps native %s transport when the option is enabled"},
722
722
  {"file": "tests/preview-provider.spec.ts", "name": "sends gzip with correct framing through Node Fetch"},
723
723
  {"file": "tests/preview-provider.spec.ts", "name": "keeps original JSON for replay-scope checks after gzip without retiring the account"},
@@ -920,18 +920,19 @@
920
920
  ]
921
921
  },
922
922
  {
923
- "id": "managed-auto-review-sampling-compatibility",
923
+ "id": "managed-auto-review-temperature-override",
924
924
  "required": true,
925
925
  "sourceMarkers": [
926
- {"file": "src/account-model-catalog.ts", "marker": "temperature: thinking === true ? 'unsupported'"},
927
- {"file": "src/preview-provider.ts", "marker": "entry.temperatureCompatibility === 'unsupported'"},
926
+ {"file": "src/config.ts", "marker": "responsesOmitTemperature: z.boolean().default(false)"},
927
+ {"file": "src/preview-provider.ts", "marker": "guard.responsesOmitTemperature === true"},
928
928
  {"file": "scripts/verify-tagged-core.mjs", "marker": "tests/fixtures/auto-review-copilot-core.fixture.ts"}
929
929
  ],
930
930
  "tests": [
931
- {"file": "tests/account-model-catalog.spec.ts", "name": "preserves explicit supplier temperature compatibility for thinking=%j"},
932
- {"file": "tests/preview-provider.spec.ts", "name": "uses explicit Responses temperature compatibility without mutating frozen caller options, thinking=%j"},
933
- {"file": "tests/preview-provider.spec.ts", "name": "does not change temperature on native %s when thinking is supported"},
934
- {"file": "tests/fixtures/auto-review-copilot-core.fixture.ts", "name": "omits unsupported temperature without weakening the %s verdict boundary"}
931
+ {"file": "tests/config.spec.ts", "name": "keeps managed Responses temperature omission default-off and boolean-only"},
932
+ {"file": "tests/preview-provider.spec.ts", "name": "applies explicit Responses omission=%s independently of thinking metadata %j"},
933
+ {"file": "tests/preview-provider.spec.ts", "name": "preserves default Responses temperature regardless of thinking metadata %j"},
934
+ {"file": "tests/preview-route.spec.ts", "name": "reads temperature omission from dynamic config at lazy native stream dispatch"},
935
+ {"file": "tests/fixtures/auto-review-copilot-core.fixture.ts", "name": "omits temperature with explicit opt-in without weakening the %s verdict boundary"}
935
936
  ]
936
937
  },
937
938
  {
@@ -14,14 +14,14 @@ Follow the [plugin-only boundary](../AGENTS.md#plugin-only-implementation-bounda
14
14
  4. **One credential lifecycle.** All plugin-owned routes share the canonical Host-only Copilot OAuth record. Model discovery, refresh and in-flight requests remain bound to the same account generation. Account switches, entitlement removal, disposal and stale callbacks must fail closed without copying credentials or changing other providers.
15
15
  5. **Thinking is included.** Preserve public summary deltas and final-only summaries without duplicate text. Validate selected effort and keep native default semantics. Empty or encrypted-only responses must not become fabricated explanations. Native replay, images and file projection retain their owning adapter's behavior; opaque replay is not displayed or rewritten into raw reasoning text.
16
16
  6. **Current pi 0.87.1 compatibility.** The original acceptance target was 0.85.1; official DSH rc.2 now depends on `^0.87.1`. Pin and test the exact published SDK version, not just a GitHub release label. Its Copilot GPT-6 catalog protocol must not override contrary provider endpoint evidence. An updated catalog entry is not sufficient grounds to retire a correction if the protocol/capabilities are still wrong.
17
- 7. **Sampling compatibility follows supplier evidence.** Normalize only an explicit boolean `capabilities.supports.thinking` into supported/unsupported/unknown temperature compatibility; malformed metadata rejects the descriptor. For managed Responses only, explicit thinking support omits temperature from a new plugin-owned options object. Preserve Core's frozen request, explicit false/unknown values, other protocols/providers and the Core-owned canonical route. Never identify the native reviewer by prompt, model name or error; never retry a rejection, rewrite a verdict or change permission policy.
17
+ 7. **Do not infer temperature support from reasoning metadata.** No verified supplier contract in this repository establishes that `capabilities.supports.thinking` means temperature is unsupported or supported. Ignore that field for sampling compatibility. `github-copilot.responsesOmitTemperature` is an explicit, default-off plugin compatibility override: when enabled, omit temperature from all account-discovered managed Responses requests, regardless of thinking metadata or native transport. This can address the reported native Auto-review 400, but changes temperature semantics for every request on that managed protocol while enabled. Preserve Core's frozen request, caller options, other protocols/providers and the Core-owned canonical route. Never identify the reviewer by prompt, model name or error; never retry a rejection, rewrite a verdict or change permission policy.
18
18
 
19
19
  ## Regression evidence
20
20
 
21
21
  - Include GPT-6 Astra, Gemini 3.8 Flash and GPT-5.6 Sol Fast metadata fixtures, plus arbitrary unseen IDs on all three supported protocols. The unseen-ID cases must pass without adding those IDs to implementation tables.
22
22
  - Cover missing/conflicting endpoints, missing/invalid limits, duplicate conflicting IDs, explicit denial, stale account snapshots, unsupported reasoning labels, unknown fields and hostile extra getters.
23
23
  - Exercise real published adapter/SDK code against local synthetic HTTP for all supported protocols, including tools, public summaries, two-turn opaque replay, images and interruption/retry paths. Synthetic results are not claims of live account availability.
24
- - The exact pinned rc.2 source trace must retain the reviewer's frozen `temperature: 0` request with no `purpose`/`sessionId`. Run that unchanged native reviewer through the managed route and real pi-ai serializer: explicit supplier thinking support omits temperature only from the Responses body without mutating caller input. Cover allow, deny, malformed verdict, HTTP error and cancellation with one wire attempt; only allow may execute the synthetic tool. Qualify the fixture against tagged source and exact published artifacts.
24
+ - The exact pinned rc.2 source trace must retain the reviewer's frozen `temperature: 0` request with no `purpose`/`sessionId`. Run that unchanged native reviewer through the managed route and real pi-ai serializer: default-off preserves temperature for thinking `true`, `false`, or absent; explicit opt-in omits it for each value without mutating caller input. Cover allow, deny, malformed verdict, HTTP error and cancellation with one wire attempt; only allow may execute the synthetic tool. Qualify the fixture against tagged source and exact published artifacts. Synthetic metadata proves no supplier temperature semantics.
25
25
  - Verify managed request-body timeout guidance only for the observed HTTP `408`, exact `user_request_timeout` code and request-body message. Bound clone reads to 8 KiB/250 ms, retain the original native response, and expose only fixed guidance plus final string-body UTF-8 bytes. Preserve failure code, retry metadata, cancellation, unchanged retry payloads and independent dispatches. Do not reclassify 408 as overflow, invent a safe byte threshold, change client timeouts, refresh OAuth, compact automatically or promise elimination of upstream failures.
26
26
  - Verify byte-aware managed HTTP/SSE liveness through unchanged published and tagged adapters: heartbeat bytes may cross the original semantic deadline before actual output, but endless heartbeat-only output must hit the bounded native deadline. Real header/body stalls retain the original interval and a dispatch-local TIMEOUT; consumer think time, caller/credential cancellation, exact bytes, parser ownership and one native wire attempt remain unchanged. Explicit WebSocket/auto and opt-out retain native-only behavior. Preserve the 20 MiB native image budget by default; explicit smaller budgets must use native offload and retain mapped read-only paths/history, never hidden trimming or a claimed supplier threshold. These synthetic cases do not attest production heartbeat activity or cure HTTP 408.
27
27
  - Run source/test typechecks, complete repository tests, built Host/Client/Remote smoke, archive verification, and relevant unchanged-Core compatibility fixtures. Do not suppress type or test failures to bridge incompatible SDK versions.
@@ -9,7 +9,7 @@ The sole admitted target is official [`dsh-v0.2.0-rc.2`](https://github.com/deep
9
9
  | Surface | Official support / remaining gap | Decision and retirement trigger |
10
10
  |---|---|---|
11
11
  | Native model adapter and SDK | Published [`@deepseek-ai/dsh-llm-pi-ai@0.2.0-rc.2`](https://registry.npmjs.org/@deepseek-ai/dsh-llm-pi-ai/-/dsh-llm-pi-ai-0.2.0-rc.2.tgz) depends on pi-ai `^0.87.1`. The native SDK now passes branded `TranscriptContext` to providers, with prompt and tools folded into system messages. | **Migrate** the plugin-owned provider bridge and estimated admission to exact pi-ai `0.87.1`; count each normalized message as a lower bound even when earlier usage anchors omit changed prefixes. Retain native transport and the same stream object. Retire this bridge only when official account-scoped metadata and admission preserve these contracts. |
12
- | Native Auto authorization review | rc.2 `classifyRisk` is strictly fail-closed but freezes `temperature: 0` into an unscoped public `ctx.llm.stream` request; pi-ai forwards every defined Responses temperature, while some Copilot models explicitly advertise thinking and reject temperature. | **Retain narrow plugin mitigation** on the managed account-discovered Responses route: normalize supplier `capabilities.supports.thinking` into a temperature compatibility fact and clone plugin-owned wire options with temperature omitted only when explicitly unsupported. Preserve the Core request, parser, cancellation, one attempt and nonmanaged routes. Retire when official review/adapters honor sampling compatibility without model-name rules and exact-source qualification preserves deny/malformed/error/cancel behavior. |
12
+ | Native Auto authorization review | rc.2 `classifyRisk` is strictly fail-closed but freezes `temperature: 0` into an unscoped public `ctx.llm.stream` request; pi-ai forwards every defined Responses temperature. No verified supplier contract establishes that `supports.thinking` determines temperature compatibility. | **Retain a default-off explicit plugin override** on the managed account-discovered Responses route: `github-copilot.responsesOmitTemperature` omits temperature from every managed Responses request only when configured true. This can mitigate the reported reviewer error but changes request semantics for all requests on that protocol. Preserve the Core request, parser, cancellation, one attempt and nonmanaged routes. Never auto-enable from metadata; canonical Core-owned routes remain outside scope. Retire when a verified supplier contract or official adapter provides truthful per-request sampling compatibility and exact-source qualification preserves deny/malformed/error/cancel behavior. |
13
13
  | Profile bundle patches | Public `bundlePatchPaths` accepts a bundle's string or ordered array of patches. Signed rc.2 `dsh-web-app` lists five patches, whereas the old plugin preflight accepted only one string. | **Migrate** read-only preflight to the published resolver and compose every patch in order, rejecting malformed manifests and unsupported routing. Retire only after an official installer provides equivalent fail-closed structural admission. |
14
14
  | Models UI, authorization, Remote, Session and search | Published rc.2 package entrypoints and inspected public seams retain the rc.1 forms. The official rc.2 UI-agent-preset removes its `developerTools` injection, which this plugin does not use. | **Retain** the public Host/Client/Remote integrations and their guarded ownership. Retirement requires verified official equivalent behavior plus migration and runtime acceptance; lack of a new public seam is not evidence of complete parity. |
15
15
  | Desktop package graph | Signed descriptor has the current shared peers; pi-ai and Zod are not shared Host packages. The bundled adapter resolves pi-ai 0.87.1 and Zod separately. | **Retain** required Host peers and Client external React; do not copy bundled dependencies or patch Core. Recheck effective profile resolution before Desktop installation because a stale profile-local Host peer may shadow the bundle. |
package/lib/client.js CHANGED
@@ -6988,7 +6988,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6988
6988
  };
6989
6989
  //#endregion
6990
6990
  //#region package.json
6991
- var version = "0.4.0-alpha.132";
6991
+ var version = "0.4.0-alpha.133";
6992
6992
  //#endregion
6993
6993
  //#region lib/types/diagnostics-client.js
6994
6994
  let owner;
package/lib/index.js CHANGED
@@ -311,7 +311,7 @@ const result$1 = strictRemoteCodec("dsh-github-copilot#DiagnosticsView", Diagnos
311
311
  var package_default = {
312
312
  name: "dsh-github-copilot",
313
313
  description: "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
314
- version: "0.4.0-alpha.132",
314
+ version: "0.4.0-alpha.133",
315
315
  publishConfig: {
316
316
  "access": "public",
317
317
  "registry": "https://registry.npmjs.org/",
@@ -2279,8 +2279,6 @@ function normalizeModel(raw, id, options, budget) {
2279
2279
  const efforts = rawEfforts === void 0 ? [] : stringList(rawEfforts, ACCOUNT_MODEL_CATALOG_LIMITS.maxEfforts, ACCOUNT_MODEL_CATALOG_LIMITS.maxEffortLength, "INVALID_REASONING", budget);
2280
2280
  const adaptiveThinking = field(supports, "adaptive_thinking", budget);
2281
2281
  if (adaptiveThinking !== void 0 && typeof adaptiveThinking !== "boolean") fail$1("INVALID_REASONING");
2282
- const thinking = field(supports, "thinking", budget);
2283
- if (thinking !== void 0 && typeof thinking !== "boolean") fail$1("INVALID_REASONING");
2284
2282
  const minThinkingBudget = optionalPositive(supports, "min_thinking_budget", "INVALID_REASONING", budget);
2285
2283
  const maxThinkingBudget = optionalPositive(supports, "max_thinking_budget", "INVALID_REASONING", budget);
2286
2284
  if (minThinkingBudget !== void 0 && maxThinkingBudget !== void 0 && minThinkingBudget > maxThinkingBudget) fail$1("INVALID_REASONING");
@@ -2315,7 +2313,6 @@ function normalizeModel(raw, id, options, budget) {
2315
2313
  ...minThinkingBudget === void 0 ? {} : { minThinkingBudget },
2316
2314
  ...maxThinkingBudget === void 0 ? {} : { maxThinkingBudget }
2317
2315
  }),
2318
- sampling: Object.freeze({ temperature: thinking === true ? "unsupported" : thinking === false ? "supported" : "unknown" }),
2319
2316
  evidence: Object.freeze({
2320
2317
  endpoints: Object.freeze(endpoints),
2321
2318
  unsupportedEndpointCount,
@@ -3702,7 +3699,6 @@ function accountModelFromDescriptor(descriptor, baseURL) {
3702
3699
  reasoning: supported.length > 0,
3703
3700
  thinkingLevelMap: Object.freeze(map),
3704
3701
  unmappedReasoningEfforts: Object.freeze(unmapped),
3705
- temperatureCompatibility: descriptor.sampling.temperature,
3706
3702
  ...descriptor.reasoning.minThinkingBudget === void 0 ? {} : { minThinkingBudget: descriptor.reasoning.minThinkingBudget },
3707
3703
  ...descriptor.reasoning.maxThinkingBudget === void 0 ? {} : { maxThinkingBudget: descriptor.reasoning.maxThinkingBudget },
3708
3704
  headers: copilotPublicHeaders(),
@@ -3930,7 +3926,7 @@ function createAccountProvider(descriptors, guard, baseURL) {
3930
3926
  fetch: observeResponse
3931
3927
  } : {
3932
3928
  ...options,
3933
- ...responses && entry.temperatureCompatibility === "unsupported" ? { temperature: void 0 } : {},
3929
+ ...responses && guard.responsesOmitTemperature === true ? { temperature: void 0 } : {},
3934
3930
  signal: liveness?.signal ?? lease.signal,
3935
3931
  headers,
3936
3932
  fetch: observeResponse,
@@ -6872,6 +6868,7 @@ const Config = z$1.object({
6872
6868
  chatStreamLiveness: z$1.boolean().default(true),
6873
6869
  chatMaxRequestImageBytes: z$1.number().step(1).min(1).max(Number.MAX_SAFE_INTEGER).default(20971520),
6874
6870
  responsesRequestCompression: z$1.boolean().default(false),
6871
+ responsesOmitTemperature: z$1.boolean().default(false),
6875
6872
  probe: z$1.boolean().default(true),
6876
6873
  probeTimeoutMs: z$1.number().step(1).min(1).max(MAX_TIMEOUT_MS).default(3e4),
6877
6874
  accountModelTtlMs: z$1.number().step(1).min(0).max(MAX_TIMEOUT_MS).default(864e5),
@@ -13521,6 +13518,7 @@ function createAccountRuntime(ctx, config, binding, exclusionTurns, replayRecove
13521
13518
  ...lifetime.guard(lease),
13522
13519
  ...hooks,
13523
13520
  responsesRequestCompression: settings?.responsesRequestCompression === true && (template.transport === void 0 || template.transport === "sse"),
13521
+ responsesOmitTemperature: settings?.responsesOmitTemperature === true,
13524
13522
  onReplayFailure(error) {
13525
13523
  if (error.dispatchEvidence !== void 0) ctx.logger.warn(`[github-copilot] ${error.dispatchEvidence}`);
13526
13524
  hooks.onReplayFailure?.(error);
@@ -33,13 +33,6 @@ export interface AccountModelDescriptor {
33
33
  readonly input: readonly ('text' | 'image')[];
34
34
  readonly category?: AccountModelCategory;
35
35
  readonly reasoning: AccountModelReasoning;
36
- readonly sampling: {
37
- /**
38
- * GitHub's explicit thinking capability is the supplier-owned compatibility
39
- * fact used by its official OpenAI endpoint to omit temperature.
40
- */
41
- readonly temperature: 'supported' | 'unsupported' | 'unknown';
42
- };
43
36
  readonly evidence: {
44
37
  /** Recognized endpoint literals only, never arbitrary URLs or query strings. */
45
38
  readonly endpoints: readonly RecognizedEndpoint[];
@@ -35,6 +35,8 @@ export interface InlineConfig {
35
35
  chatMaxRequestImageBytes?: number;
36
36
  /** Default-off lossless gzip for eligible managed Responses HTTP requests. */
37
37
  responsesRequestCompression?: boolean;
38
+ /** Default-off override omitting temperature from all managed Responses requests. */
39
+ responsesOmitTemperature?: boolean;
38
40
  /** Verify the endpoint executes native search before serving. */
39
41
  probe: boolean;
40
42
  /** Bound on one probe request, in milliseconds. */
@@ -37,6 +37,8 @@ export interface PreviewProviderGuard {
37
37
  export interface AccountProviderGuard extends PreviewProviderGuard {
38
38
  /** Explicit lossless HTTP encoding; default-off and independent of context admission. */
39
39
  readonly responsesRequestCompression?: boolean;
40
+ /** Explicit compatibility override for all managed Responses requests. */
41
+ readonly responsesOmitTemperature?: boolean;
40
42
  /** Explicit, request-admitted recovery; absent by default. */
41
43
  recoverReplay?(payload: unknown): unknown;
42
44
  /** Only exact verified scope HTTP failures may offer recovery evidence. */
@@ -56,7 +58,6 @@ export type AccountPiModel = Model<AccountModelApi> & {
56
58
  readonly unmappedReasoningEfforts: readonly string[];
57
59
  readonly minThinkingBudget?: number;
58
60
  readonly maxThinkingBudget?: number;
59
- readonly temperatureCompatibility: AccountModelDescriptor['sampling']['temperature'];
60
61
  };
61
62
  export declare function copilotPublicHeaders(): Readonly<Record<string, string>>;
62
63
  /** Materialize advertised capabilities only; model names and the local static catalog never select the API. */
@@ -9,7 +9,7 @@ import type { RequestBudgetPolicy } from './request-budget.ts';
9
9
  /** Safe request knobs; identities, model tables, endpoints and credentials are not configurable. */
10
10
  export type PreviewRouteConfig = Pick<PiAiProviderProfile, 'reasoning' | 'cacheRetention' | 'transport' | 'timeoutMs' | 'websocketConnectTimeoutMs' | 'streamIdleTimeoutMs' | 'maxRequestImageBytes' | 'requestImagePixelBudget' | 'requestImageMaxBytes' | 'retryPolicy'> & Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs'> & {
11
11
  readonly streamLiveness?: boolean;
12
- readonly chatRequestSettings?: () => Pick<InlineConfig, 'chatStreamIdleTimeoutMs' | 'chatStreamLiveness' | 'chatMaxRequestImageBytes' | 'responsesRequestCompression'>;
12
+ readonly chatRequestSettings?: () => Pick<InlineConfig, 'chatStreamIdleTimeoutMs' | 'chatStreamLiveness' | 'chatMaxRequestImageBytes' | 'responsesRequestCompression' | 'responsesOmitTemperature'>;
13
13
  readonly accountModelSettings?: () => Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs' | 'excludedModelIds' | 'highCostModelIds' | 'parentModelFollow' | 'followParentModel' | 'autoSemanticAssessment' | 'autoAllocationEvidence'>;
14
14
  readonly requestBudget?: Partial<RequestBudgetPolicy>;
15
15
  readonly requestBudgetSettings?: () => Partial<RequestBudgetPolicy>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-github-copilot",
3
3
  "description": "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
4
- "version": "0.4.0-alpha.132",
4
+ "version": "0.4.0-alpha.133",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/",