dsh-github-copilot 0.4.0-alpha.105 → 0.4.0-alpha.107

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
@@ -293,7 +293,7 @@ Model preferences must survive the Client's owned-field projection before strict
293
293
 
294
294
  Capture the traced `remote.githubCopilot` namespace once per account UI registration, shared by provider/footer/section renders. Native namespace property reads create fresh proxy identities; rereading during parent renders resets the mounted account controller and can block exclusion changes on redundant status/discovery work. Actual registration teardown and credential/connection invalidation retain their existing safety semantics.
295
295
 
296
- Auto history compatibility (alpha.54, #204): official rc.2 `Session.append()` has no public ignorable-envelope option. Do not emit optional `github-copilot/auto-model-decision` events or borrow another event type; retain native real-model provenance and durable Auto selection without new durable decision recording. The assistant-actions selection footer reads bounded Host-lifetime decisions through native agent-scoped lookup and compatible historical events. Explicit captured fixed selection alone proves Manual; missing evidence is unknown, never reconstructed from today's picker. Do not repeat model names, add Model details, change native Usage/context metering or modify parent DOM. `scripts/repair-auto-model-history.mjs` is explicit source-checkout maintenance, not a runtime hook: strict pinned official v4 validation, check-only by default, optional detached repaired copy plus byte-exact backup. It never replaces live history. Applying a copy requires separately approved stopped writers and a fresh source-hash check. See `docs/automatic-model-routing.md`.
296
+ Auto history compatibility (alpha.54, #204): official rc.2 `Session.append()` has no public ignorable-envelope option. Do not emit optional `github-copilot/auto-model-decision` events or borrow another event type; retain native real-model provenance and durable Auto selection without new durable decision recording. The assistant-actions selection footer reads bounded Host-lifetime decisions through native agent-scoped lookup and compatible historical events. Explicit captured fixed selection alone proves Manual; missing evidence is unknown, never reconstructed from today's picker. User-approved #310 permits model evidence only inside the existing selection dialog when native Usage lacks complete routes: successful same-turn assistant/message sources are Recorded models; public request/header snapshots inside a recorded same-turn open step are Requested model, never dispatch/execution/billing proof. Preserve multiple routes and incomplete failed-attempt attribution. Missing/invalid/paged evidence is unknown, read failures remain separate and Retry rereads the same Session/turn. Do not add a Model details/footer button, change native Usage/context metering or modify parent DOM; complete native routes avoid redundant model presentation. No closing message means no assistant-actions anchor. The independent bounded public Session projection refolds existing native events only, never emits events or inherits adjacent headers. `scripts/repair-auto-model-history.mjs` is explicit source-checkout maintenance, not a runtime hook: strict pinned official v4 validation, check-only by default, optional detached repaired copy plus byte-exact backup. It never replaces live history. Applying a copy requires separately approved stopped writers and a fresh source-hash check. See `docs/automatic-model-routing.md`.
297
297
 
298
298
  Auto intent continuity (#293) uses the strict `githubCopilotAutoModelIntent` public Session projection of existing owner-explicit `model/selection` events. Execution headers cannot erase intent; fixed/other-provider choices replace it for future turns. Ignore copied fork/child prefixes, retain native pending and parent-follow precedence, and diagnose missing/invalid evidence. Freeze admitted Auto route configuration across late choices without writing history, settings or historical reasons. Projection disposal must remove only its own registration.
299
299
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.107 (prepared)
4
+
5
+ - Present an in-flight multi-account device authorization as progress with the verification URL, one-time code, copy action and cancel together; distinguish Host-confirmed post-OAuth identity/model verification from pending authorization. Adding an account never changes the global default.
6
+ - Keep technical account diagnostics secondary, show only supported blocker evidence, and clarify that account-information refresh is identity-only.
7
+ - Show turn identity only when captured for that turn and replace opaque unknown account IDs in Credits selectors with localized readable authorization labels (#313).
8
+
9
+ ## 0.4.0-alpha.106 (prepared)
10
+
11
+ - Show truthful failed-turn model evidence inside the existing Auto/Manual info dialog, with selection reasons disclosed below (#310). Preserve successful same-turn models/providers and explicit incomplete failed-attempt attribution without changing native Usage.
12
+ - Add bounded public same-turn request-header evidence as Requested model, never dispatch, execution or billing proof. Missing/invalid evidence remains unknown; read-only Retry stays on the viewed Session/turn. No new footer button, durable events, history writes or entry for turns lacking a closing assistant-actions anchor.
13
+
3
14
  ## 0.4.0-alpha.105 (prepared)
4
15
 
5
16
  - Renew expired account identity from visible Models and Credits through nonforcing, account-scoped ensure reads. Fresh ten-minute cache avoids requests; concurrent consumers share one bounded request and failed renewals retain a thirty-second cooldown (#309).
package/README.md CHANGED
@@ -17,7 +17,9 @@ Identity display accepts GitHub Enterprise Managed User names, including their u
17
17
 
18
18
  Visible Models and Credits renew expired identity without forcing fresh reads on every mount: ten-minute identity cache, shared per-account requests and a thirty-second failure cooldown. Explicit refresh retries immediately; quota can settle while identity renews. Unknown or revoked identity is never shown as current, and Session account isolation is unchanged. See [account lifecycle](./docs/copilot-accounts.md).
19
19
 
20
- **Source candidate: `0.4.0-alpha.105` (unreleased). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** Earlier DSH pins are historical evidence, not supported installation targets. Publication, profile installation and the version loaded by a running Host are separate states. The versioned commands below are for this candidate after publication, not evidence that its assets exist.
20
+ Adding an account now keeps the device-authorization link, selectable URL, one-time code, Copy code action and Cancel together while authorization is pending. After GitHub authorizes, identity and model verification are shown as a separate phase. Adding never changes the global default; use the existing explicit **Switch** action when ready. Technical diagnostics are secondary, and account/turn identity fallbacks never expose opaque account IDs or infer historical identity from today's settings.
21
+
22
+ **Source candidate: `0.4.0-alpha.107` (unreleased). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** Earlier DSH pins are historical evidence, not supported installation targets. Publication, profile installation and the version loaded by a running Host are separate states. The versioned commands below are for this candidate after publication, not evidence that its assets exist.
21
23
 
22
24
  ## What you can do
23
25
 
@@ -57,10 +59,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
57
59
  For a **standalone named profile**:
58
60
 
59
61
  ```sh
60
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.105/dsh-github-copilot-0.4.0-alpha.105.tgz
62
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/dsh-github-copilot-0.4.0-alpha.107.tgz
61
63
  ```
62
64
 
63
- For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.105` 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.
65
+ For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.107` 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.
64
66
 
65
67
  After an approved reload/restart:
66
68
 
@@ -70,13 +72,13 @@ After an approved reload/restart:
70
72
 
71
73
  Sign-out requires an explicit action and removes only the active account's authorization, not other saved grants or route settings. Upgrades preserve existing native Copilot profiles; two groups can remain until [explicit single-route migration](./docs/single-route-migration.md). Installation never migrates conversations or defaults.
72
74
 
73
- In **Manage → GitHub accounts**, adding an account never replaces the global default. A confirmed switch changes future inherited turns, not running turns or explicit Session overrides. **Credits → Switch account** persists a choice only for this Session's subsequent turns; **Follow global default** clears it. Explicitly choosing today's default still remains a Session override. Native-route or incomplete evidence blocks account switching. The new account may not offer your selected model, and old encrypted replay may be account-bound: no automatic model substitution or history removal occurs. **Reauthorize** renews the same saved identity; **Remove** deletes only an inactive saved authorization and cannot mutate a running turn's pinned account. Missing/revoked accounts never fall back.
75
+ In **Manage → GitHub accounts**, adding an account never replaces the global default. During device authorization, the card keeps the verification link and selectable URL, one-time code, **Copy authorization code**, and **Cancel adding account** together. Once authorization succeeds, the card separately verifies identity and available models; a completed addition is still not a default switch. Diagnostic codes remain in a collapsed technical-details disclosure. **Refresh account information** renews identity only; it does not complete or cancel authorization. A confirmed switch changes future inherited turns, not running turns or explicit Session overrides. **Credits → Switch account** persists a choice only for this Session's subsequent turns; **Follow global default** clears it. Explicitly choosing today's default still remains a Session override. Native-route or incomplete evidence blocks account switching. The new account may not offer your selected model, and old encrypted replay may be account-bound: no automatic model substitution or history removal occurs. **Reauthorize** renews the same saved identity; **Remove** deletes only an inactive saved authorization and cannot mutate a running turn's pinned account. Missing/revoked accounts never fall back.
74
76
 
75
- Completed managed turns show **Account** beside native Usage. It records the request account, not billing or subagent totals. Evidence is bounded to the Host lifetime; restart, cold history or missing delivery displays unknown, never reconstructed from the current picker/default.
77
+ Completed managed turns show **Account** beside native Usage. It records the request account, not billing or subagent totals. A GitHub login is shown only if captured for that turn; otherwise identity is unavailable, never reconstructed from current settings. Evidence is bounded to the Host lifetime; restart, cold history or missing delivery displays unknown, never reconstructed from the current picker/default. Credits labels an unidentified original or saved authorization without displaying opaque account IDs.
76
78
 
77
79
  Account eligibility reads official rc.2 SettingsForms values, without requiring the retired settings `get()` API. Missing or malformed configuration remains incomplete evidence; upgrading does not bypass native-route or activity restrictions.
78
80
 
79
- `COPILOT_ACCOUNTS_BUSY` is reevaluated from current activity, not retained after work ends. Use **Refresh account information** to update the open card after relevant work settles. If only the active account is listed, first **Add GitHub account**; **Switch** appears beside another saved account.
81
+ `COPILOT_ACCOUNTS_BUSY` is reevaluated from current activity, not retained after work ends. The authorization-in-progress state is presented as progress rather than a terminal busy error; unrelated unknown blockers remain unknown. Use **Refresh account information** to update the open card after relevant work settles. If only the active account is listed, first **Add GitHub account**; **Switch** appears beside another saved account.
80
82
 
81
83
  **Desktop lifecycle:** disable/remove/upgrade can require a full cold restart for Web service recomposition. If the plugin is Off and the native manager reports only `pending (waiting for service: web)`, do not repeatedly toggle or reinstall. Obtain restart approval and follow [rc.2 lifecycle guidance](./docs/web-lifecycle-rc2.md).
82
84
 
@@ -99,6 +101,8 @@ The deadline is checked against a monotonic clock at preparation, native request
99
101
 
100
102
  The reply's selection disclosure shows captured reasons and optional content-free auxiliary milestones. `uncertain` and `insufficient-evidence` do not mean the conversation is empty. **Selection unknown** means no retained record; **Selection unavailable → Retry** means the read failed. Retry rereads that turn, not inference. Evidence is bounded and Host-local, so restart/eviction can lose it.
101
103
 
104
+ When a failed/incomplete turn has no native Usage model row, the existing ⓘ opens **Turn model and selection evidence**: successful same-turn sources show **Recorded models** with incomplete failed-attempt attribution; reliable same-turn recorded request configuration shows **Requested model**, not dispatch, execution or billing proof. Missing evidence stays **Unknown**, never inferred from today's picker/default or adjacent turns. Selection reasons remain in a disclosure underneath. Complete native routes avoid repeated model UI; turns without a closing message have no existing assistant-actions entry. Native Usage and retries are unchanged. [Evidence boundaries](./docs/automatic-model-routing.md#attribution-and-explanation).
105
+
102
106
  **Model exclusions** remove exact IDs from the managed picker and new Auto pools. Selected models are excludable: an admitted turn keeps its model, but a new turn/direct request cannot use an excluded ID. A fixed selection is never silently replaced. Unknown preference settings leave controls read-only, not falsely enabled. Saves use narrow native CAS without credentials, discovery or Session scans.
103
107
 
104
108
  See [task assessment](./docs/auto-task-routing.md) and [routing contracts, exclusions and history recovery](./docs/automatic-model-routing.md).
@@ -206,14 +210,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
206
210
  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.
207
211
 
208
212
  ```sh
209
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.105/dsh-github-copilot-0.4.0-alpha.105.tgz
210
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.105/SHA256SUMS
213
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/dsh-github-copilot-0.4.0-alpha.107.tgz
214
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/SHA256SUMS
211
215
  sha256sum --check SHA256SUMS
212
216
  ```
213
217
 
214
218
  ```powershell
215
219
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
216
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.105.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
220
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.107.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
217
221
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
218
222
  ```
219
223
 
package/README.zh.md CHANGED
@@ -15,7 +15,9 @@
15
15
 
16
16
  可见的 Models 和 Credits 会续期已过期身份,不会在每次挂载时强制请求:身份缓存十分钟,同账号共享请求,失败冷却三十秒。显式刷新可立即重试;额度可先于身份续期完成展示。未知或已撤销身份不会作为当前用户名展示,Session 账号隔离保持不变。参见[账号生命周期](./docs/copilot-accounts.md)。
17
17
 
18
- **源码候选版本:`0.4.0-alpha.105`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
18
+ 添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
19
+
20
+ **源码候选版本:`0.4.0-alpha.107`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
19
21
 
20
22
  ## 你可以做什么
21
23
 
@@ -55,10 +57,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
55
57
  **独立具名 profile**:
56
58
 
57
59
  ```sh
58
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.105/dsh-github-copilot-0.4.0-alpha.105.tgz
60
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/dsh-github-copilot-0.4.0-alpha.107.tgz
59
61
  ```
60
62
 
61
- **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.105`。官方 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 或删除配置。
63
+ **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.107`。官方 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 或删除配置。
62
64
 
63
65
  经批准 reload/restart 后:
64
66
 
@@ -68,13 +70,13 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
68
70
 
69
71
  退出须显式操作,只删除活动账号的授权,保留其它授权与路由设置。升级保留已有原生 Copilot profile;在[显式单路由迁移](./docs/single-route-migration.md)前,仍可能存在两个分组。安装不迁移会话或默认模型。
70
72
 
71
- 在 **Manage → GitHub accounts**添加账号不会替换全局默认。确认切换只影响后续跟随默认的 turn,不影响正在运行的 turn 或 Session 已指定账号。**Credits → 切换账号**只为本 Session 后续 turn 保存选择;**跟随全局默认**清除该选择。即使显式选中的账号恰好等于全局默认,也仍是 Session 覆盖。原生路由尚存或证据不完整时会阻止账号切换。新账号可能没有已选模型,旧加密 replay 也可能绑定原账号;不会自动替换模型或删除历史。**Reauthorize**仅更新同一已存身份的授权;**Remove**仅删除非全局活动授权,正在运行 turn 锁定的授权不能修改。账号缺失/失效不会自动回退到其它账号。
73
+ 在 **Manage → GitHub accounts**添加账号不会替换全局默认。设备授权期间,卡片会同时保留验证链接、可选择的网址、一次性授权码、**复制授权码**和**取消添加账号**。GitHub 授权成功后,卡片会单独验证身份和可用模型;完成添加仍不会切换默认账号。诊断码位于折叠的技术详情中。**刷新账号信息**只更新身份,不会完成或取消授权。确认切换只影响后续跟随默认的 turn,不影响正在运行的 turn 或 Session 已指定账号。**Credits → 切换账号**只为本 Session 后续 turn 保存选择;**跟随全局默认**清除该选择。即使显式选中的账号恰好等于全局默认,也仍是 Session 覆盖。原生路由尚存或证据不完整时会阻止账号切换。新账号可能没有已选模型,旧加密 replay 也可能绑定原账号;不会自动替换模型或删除历史。**Reauthorize**仅更新同一已存身份的授权;**Remove**仅删除非全局活动授权,正在运行 turn 锁定的授权不能修改。账号缺失/失效不会自动回退到其它账号。
72
74
 
73
- 已完成的托管 turn 在原生 Usage 旁显示 **Account**,记录实际请求账号,不是计费归因或子 Agent 汇总。证据仅在 Host 生命周期内有界保留;重启、冷历史或没有原生流返回时显示未知,不从当前选择或全局默认反推历史。
75
+ 已完成的托管 turn 在原生 Usage 旁显示 **Account**,记录实际请求账号,不是计费归因或子 Agent 汇总。只有该 turn 捕获了 GitHub 登录名时才显示;否则身份不可用,不从当前设置反推。证据仅在 Host 生命周期内有界保留;重启、冷历史或没有原生流返回时显示未知,不从当前选择或全局默认反推历史。Credits 对身份未知的原始/已保存授权显示可读标签,不显示不透明账号 ID。
74
76
 
75
77
  切换资格通过官方 rc.2 SettingsForms 的配置值读取,不再依赖已退役的 Settings `get()` API。缺失或无效配置仍视为证据不完整;升级不会绕过原生路由或运行中工作的限制。
76
78
 
77
- `COPILOT_ACCOUNTS_BUSY` 根据当前活动重新判断,不会在工作结束后保留旧拒绝。相关工作结束后,点击 **Refresh account information** 更新已打开的卡片。如果只列出活动账号,需先 **Add GitHub account**;另一个已保存账号旁才会出现 **Switch**。
79
+ `COPILOT_ACCOUNTS_BUSY` 根据当前活动重新判断,不会在工作结束后保留旧拒绝。授权进行中会显示为进度状态,而不是终止性 busy 错误;其它未知阻塞因素仍明确保持未知。相关工作结束后,点击 **Refresh account information** 更新已打开的卡片。如果只列出活动账号,需先 **Add GitHub account**;另一个已保存账号旁才会出现 **Switch**。
78
80
 
79
81
  **Desktop 生命周期:**停用、移除、升级后的 Web 服务重组可能需要完整冷重启。若插件已 Off,而原生 manager 仅提示 `pending (waiting for service: web)`,不要反复切换或重装。先取得重启许可,遵循[rc.2 生命周期说明](./docs/web-lifecycle-rc2.md)。
80
82
 
@@ -97,6 +99,8 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
97
99
 
98
100
  回复的选模说明展示捕获的理由和可选的不含内容的辅助里程碑。`uncertain`、`insufficient-evidence` 不等于会话没有上下文。**Selection unknown**表示记录未保留,**Selection unavailable → Retry**表示读取失败;Retry 只重读该 turn,不重新推理。证据有界且仅限 Host 生命周期,重启/淘汰可能丢失。
99
101
 
102
+ 失败/不完整轮次的原生 Usage 没有模型行时,沿用现有 ⓘ 打开**本轮模型与选择记录**:本轮成功消息来源显示**已记录模型**并提示失败尝试归属不完整;可靠的本轮已记录请求配置仅显示**请求模型**,不证明发送、执行或计费。缺失证据显示**未知**,不从当前选择、全局默认或相邻轮次倒推。原选模说明折叠在下方;原生完整模型记录不重复展示,没有关闭消息的轮次没有现有入口。原生 Usage 与重试保持不变。[证据边界](./docs/automatic-model-routing.md#attribution-and-explanation)。
103
+
100
104
  **模型排除**将精确 ID 移出托管 picker 与新 turn 的 Auto 候选。已选模型也能排除:已准入 turn 保持原模型,但新 turn/直接调用不得使用;固定选择不会静默替换。偏好状态未知时只读,不伪装为已启用。保存采用窄范围原生 CAS,不读凭据、不发现模型、不扫描会话。
101
105
 
102
106
  详见[任务判断](./docs/auto-task-routing.md)与[路由合同、排除和历史恢复](./docs/automatic-model-routing.md)。
@@ -204,14 +208,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
204
208
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
205
209
 
206
210
  ```sh
207
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.105/dsh-github-copilot-0.4.0-alpha.105.tgz
208
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.105/SHA256SUMS
211
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/dsh-github-copilot-0.4.0-alpha.107.tgz
212
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/SHA256SUMS
209
213
  sha256sum --check SHA256SUMS
210
214
  ```
211
215
 
212
216
  ```powershell
213
217
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
214
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.105.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
218
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.107.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
215
219
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
216
220
  ```
217
221
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.105"
11
+ "version": "0.4.0-alpha.107"
12
12
  },
13
13
  "evidence": {
14
14
  "kind": "source-and-synthetic-test-inventory",
@@ -1217,6 +1217,11 @@
1217
1217
  {"file": "src/auto-model-presentation.ts", "marker": "installAutoModelProjections"},
1218
1218
  {"file": "src/auto-model-presentation.ts", "marker": "turnModelProvenanceDefinition"},
1219
1219
  {"file": "src/turn-model-provenance.ts", "marker": "assistant/message"},
1220
+ {"file": "src/turn-request-models.ts", "marker": "stateVersion: 1"},
1221
+ {"file": "src/turn-request-models.ts", "marker": "active.step === null"},
1222
+ {"file": "src/turn-selection-card.ts", "marker": "Turn model and selection evidence"},
1223
+ {"file": "src/turn-selection-card.ts", "marker": "Recorded models"},
1224
+ {"file": "src/turn-selection-remote.ts", "marker": "RequestedModelsSchema"},
1220
1225
  {"file": "src/turn-selection-card.ts", "marker": "Selection unknown"},
1221
1226
  {"file": "src/turn-selection-remote.ts", "marker": "lookup: 'agent'"},
1222
1227
  {"file": "src/turn-selection-host.ts", "marker": "extends TypertRemoteService"},
@@ -1253,6 +1258,9 @@
1253
1258
  {"file": "tests/client.spec.ts", "name": "registers and disposes Auto actions while the optional conversation fiber remains pending"},
1254
1259
  {"file": "tests/fixtures/reasoning-presentation-core.fixture.ts", "name": "renders retained Auto evidence without optional projections through native %s and slots"},
1255
1260
  {"file": "tests/turn-model-provenance.spec.ts", "name": "retains known models around zero-usage failed attempts without reading payloads"},
1261
+ {"file": "tests/turn-request-models.spec.ts", "name": "captures only headers inside a recorded step, never inherits adjacent or current selections"},
1262
+ {"file": "tests/turn-request-models-runtime.spec.ts", "name": "cold-folds same-turn requested models through the native public registry without changing events"},
1263
+ {"file": "tests/turn-selection-card.spec.ts", "name": "keeps model evidence first inside the existing dialog with multiple routes and overflow (%s)"},
1256
1264
  {"file": "tests/preview-route.spec.ts", "name": "publishes Auto as a virtual picker entry but refuses unresolved adapter dispatch"},
1257
1265
  {"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "shrinks durable history and rebuilds the switched model request without sending the oversized original"}
1258
1266
  ]
@@ -90,9 +90,33 @@ successful read has no record. Failed reads show **Selection unavailable → Ret
90
90
  Retry rereads the same Session/turn; it never runs inference.
91
91
 
92
92
  The public assistant-actions slot adds the plugin item after native Usage/time.
93
- It cannot change the native fixed-height parent row, repeats no model name and
94
- adds no Model details button. A turn without a closing message has no such
95
- anchor. Optional conversation projections do not control selection mounting.
93
+ It cannot change the native fixed-height parent row and adds no Model details
94
+ or footer button. The existing info dialog is **Turn model and selection evidence**.
95
+ When native Usage lacks complete model routes, model evidence comes first and the
96
+ original selection explanation remains in a collapsed disclosure below:
97
+
98
+ - **Recorded models** lists independent successful same-turn `assistant/message`
99
+ sources, preserving multiple models/providers. Failed attempts, retries and
100
+ paged/missing history retain an explicit incomplete-attribution warning; known
101
+ sources do not prove which models every failed attempt used.
102
+ - **Requested model** is the fallback when no successful source exists. An
103
+ independent public Session projection folds native `turn/start`, `step/start`,
104
+ `request/header`, `step/end` and `turn/end`; only headers inside a recorded open
105
+ step bind to that turn. Native headers have no turn field and are not emitted
106
+ for every unchanged request. Therefore absent headers stay unknown, never
107
+ inherited from an earlier turn or today's `Session.requestHeader()`. Configuration
108
+ proves neither dispatch nor execution, usage or billing.
109
+ - Missing/invalid evidence stays **Unknown**. Requested-model read failures are
110
+ distinct from missing evidence and have same-Session/turn read-only Retry.
111
+ Selection mode and model evidence remain independent.
112
+
113
+ Complete native Usage routes avoid redundant model presentation. A turn without
114
+ a closing message has no assistant-actions anchor; pure failed turns without one
115
+ are not promised an injected entry. Optional conversation projections do not
116
+ control selection mounting. The request projection has its own `stateVersion: 1`,
117
+ retains at most 128 turns and 32 distinct routes per turn (overflow invalidates
118
+ that turn), and stores no message/tool/replay/credential content. Cold folding
119
+ uses existing recorded events only, not custom events or history conversion.
96
120
 
97
121
  The bounded Host store retains 64 Agents and 128 turns per Agent. Disposal,
98
122
  eviction and restart lose new records. Compatible historical Auto events remain
@@ -103,7 +127,8 @@ official rc.2 `Session.append()` has no public ignorable-envelope option.
103
127
  `TurnSelectionController` extends public `TypertRemoteService` with `@Remote get`.
104
128
  Client calls carry explicit viewed Session ID and turn, with no automatic
105
129
  Client scope projection that would remove the ID. Native Host Agent lookup,
106
- access checks and strict codecs remain. Actual Client/Host gateway regressions
130
+ access checks and strict codecs remain. Additive `requestedModels` preserves the
131
+ existing `get` descriptor and strict selection codec unchanged. Actual Client/Host gateway regressions
107
132
  cover reachability, bound contexts and missing/denied identities; mock RPC
108
133
  success is not sufficient evidence.
109
134
 
@@ -5,7 +5,7 @@
5
5
  This document records the approved requirements and implementation design for
6
6
  issues #297 and #305. Candidate behavior is not released or installed until the
7
7
  acceptance gates below complete. The existing single-account behavior remains
8
- the compatibility baseline. The current source candidate is `0.4.0-alpha.104`;
8
+ the compatibility baseline. The current source candidate is `0.4.0-alpha.107`;
9
9
  publication, installation and loaded runtime state are separate evidence.
10
10
 
11
11
  ## Requirements
@@ -122,6 +122,17 @@ overwrite or change the active account. Identity and model metadata validation
122
122
  must complete before the new slot can be selected. Partial authorization is
123
123
  reported truthfully and can be retried or explicitly removed.
124
124
 
125
+ The Models card keeps the GitHub verification link, selectable manual URL,
126
+ one-time authorization code, copy action and cancellation together while
127
+ device authorization is pending. A confirmed OAuth completion is followed by
128
+ a separately reported identity-and-model verification phase; neither phase
129
+ changes the global default. The Host's operation state, not a Client guess,
130
+ proves when that verification phase begins. Normal pending authorization is
131
+ progress, not a terminal busy error; technical diagnostics remain available in
132
+ a collapsed disclosure. Unknown blockers are not replaced with a speculative
133
+ list. **Refresh account information** remains an identity refresh only and
134
+ does not complete or cancel authorization.
135
+
125
136
  Switching has a preparation phase and a commit phase:
126
137
 
127
138
  Route eligibility reads official rc.2 SettingsForms through redacted
@@ -222,6 +233,11 @@ most 64 Sessions and 128 turns per Session. Restart, cold history, eviction or a
222
233
  request with no native delivery is unknown. Failed reads are distinct from
223
234
  unknown evidence; Retry rereads the same turn without inference. Official rc.2
224
235
  has no ignorable account-history event seam: no new durable event is emitted.
236
+ Only a login captured for that turn is shown; otherwise identity is explicitly
237
+ unavailable, never inferred from current settings or today's account selector.
238
+ Credits selector labels unknown original/saved authorizations without exposing
239
+ opaque record identifiers; these presentation labels do not fetch identity or
240
+ change account selection.
225
241
 
226
242
  Identity and quota have separate error states but must share account evidence.
227
243
  Models account mutations invalidate mounted Credits presentation before the