dsh-github-copilot 0.4.0-alpha.121 → 0.4.0-alpha.123
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 +14 -5
- package/CHANGELOG.md +6 -0
- package/README.md +16 -7
- package/README.zh.md +14 -7
- package/deployment-baseline.json +28 -2
- package/docs/auto-high-cost.md +22 -0
- package/docs/manual-compaction-recovery.md +3 -1
- package/docs/plugin-diagnostics.md +388 -0
- package/docs/session-continuation.md +23 -4
- package/lib/client.js +1341 -404
- package/lib/client.js.map +1 -1
- package/lib/index.js +1737 -919
- package/lib/manual-compaction-recovery.js +15 -2
- package/lib/remote.js +211 -9
- package/lib/request-budget-Cui2hCi1.js +268 -0
- package/lib/routed-web.js +1 -1
- package/lib/{search-routing-CHyF6TbO.js → search-routing-CV2hs8as.js} +35 -35
- package/lib/types/client.d.ts +3 -0
- package/lib/types/compaction-continuation-ui.d.ts +11 -0
- package/lib/types/compaction-continuation.d.ts +48 -0
- package/lib/types/config.d.ts +6 -2
- package/lib/types/copilot-accounts-host.d.ts +1 -0
- package/lib/types/diagnostics-card.d.ts +10 -0
- package/lib/types/diagnostics-client.d.ts +13 -0
- package/lib/types/diagnostics-collector.d.ts +36 -0
- package/lib/types/diagnostics-host.d.ts +72 -0
- package/lib/types/diagnostics-remote.d.ts +109 -0
- package/lib/types/diagnostics-types.d.ts +431 -0
- package/lib/types/remote.d.ts +1 -1
- package/lib/types/session-accounts-host.d.ts +1 -1
- package/lib/types/session-continuation-host.d.ts +4 -1
- package/lib/types/session-continuation-types.d.ts +27 -0
- package/package.json +6 -2
- package/lib/request-budget-DLY_aRq0.js +0 -87
package/AGENTS.md
CHANGED
|
@@ -31,7 +31,7 @@ Use native DSH tools for goals, background jobs and scoped subagents. Use local
|
|
|
31
31
|
|
|
32
32
|
`dsh-github-copilot` currently admits and targets only official DSH and Windows Desktop `0.2.0-rc.2`. Ten earlier DSH pins remain in `deployment-baseline.json` as historical evidence, not current support or CI release gates. It does not own a general Copilot chat adapter. DSH's built-in `llm-pi-ai` mount owns the GitHub Copilot provider, catalog, OAuth method and grant format, token exchange, refresh, and normal model transport.
|
|
33
33
|
|
|
34
|
-
This repository owns
|
|
34
|
+
This repository owns twelve narrow surfaces:
|
|
35
35
|
|
|
36
36
|
1. A conditional authorization-service bootstrap plus Host controller that joins DSH authorization, credentials, and settings.
|
|
37
37
|
2. A Client Models provider-card contribution with one shared account-state owner, Client-safe Remote descriptors and a nested plugin-owned model-preferences disclosure; embed in an existing configured canonical row, suppress its separate footer controller, and retain footer/old-Core section fallback when no such row is mounted.
|
|
@@ -44,16 +44,25 @@ This repository owns eleven narrow surfaces:
|
|
|
44
44
|
9. Compatibility-only policy restoration and request recovery for existing dedicated planner/executor Sessions. Model roles UI, settings writes and new dedicated roots are retired (#158); never reintroduce them or migrate histories implicitly.
|
|
45
45
|
10. Managed-route estimated input/output admission, optional exact-request pressure signalling through official compaction recovery, and supported low summary effort only when no effort is already resolved. See [compaction budgets](./docs/copilot-compaction.md). Preserve truthful capacities, requested output caps, native errors/replay and transaction ownership; no hidden history trimming, wire chunking, competing compaction service or automatic model switch. The separately selected, single-service [recovery engine](./docs/manual-compaction-recovery.md) defaults to automatic segmented recovery for known oversized summaries or one typed native capacity failure through the public subclass hook. Preserve `automaticRecovery: false`, native `auto: false`, scopes and custom engines; at most 16 physical calls including a failed first attempt, no recursive retry or 408/network/auth/quota fallback. Installation alone never selects or migrates an engine.
|
|
46
46
|
11. Optional account quota reads and a session-scoped composer usage control through public credentials, strict Remotes and additive slots. Keep account billing-cycle credits separate from context tokens and session cost. Missing, pooled, legacy and stale data must retain their real semantics; never infer credits from token estimates or account deltas. A separate plugin-owned historical context projection may diagnose failed-zero readings, never filter shared native usage, replace Core's meter, infer current occupancy/percentages or rewrite history. See [quota boundaries](./docs/copilot-usage.md).
|
|
47
|
+
12. Default-off local account/Checking/compaction diagnostics through public storage-domain and strict additive Remotes. Keep fixed-dimension Client/Host and logical/physical populations separate, with bounded handles/rows, 14-day retention, explicit loss/uncertainty and native commit evidence. Isolate the home-wide backend by public profile context, never account/Session identity; one writer per profile is required. No content, raw errors, identities/hashes, credential/history reads, ad-hoc files, Settings logs, upload, daily task or automatic repair. Enable/pause uses only the hidden volatile `diagnosticsEnabled` CAS leaf; clear is a separately confirmed epoch fence. Missing/corrupt storage remains unavailable, never healthy empty data. Publication does not enable collection. See [local diagnostics](./docs/plugin-diagnostics.md).
|
|
47
48
|
|
|
48
|
-
##
|
|
49
|
+
## Session-policy compaction replay consent (#349, #352)
|
|
49
50
|
|
|
50
51
|
`/copilot-compact visible-history` explicitly authorizes one lossy managed Responses
|
|
51
52
|
summary operation through the separately selected recovery engine. Scope consent
|
|
52
53
|
to the native summarizer signal, Session and account-proven model protocol; revoke
|
|
53
|
-
on settlement/cancellation/teardown.
|
|
54
|
+
on settlement/cancellation/teardown. The persistent visible-history Session policy
|
|
55
|
+
also authorizes managed Responses automatic/manual summaries inside an observed
|
|
56
|
+
native compaction bracket. Freeze the active turn's persistent policy, or capture
|
|
57
|
+
the idle Session policy before summary dispatch; legacy next-turn-only consent is
|
|
58
|
+
not summary consent. Bind native Agent/Session, summary model and exact signals.
|
|
59
|
+
Remove historical reasoning and its embedded
|
|
54
60
|
summaries only from outgoing payloads, preserve visible tool relations and native
|
|
55
|
-
source/transaction ownership
|
|
56
|
-
|
|
61
|
+
source/transaction ownership. Other protocols stay native; explicit one-time
|
|
62
|
+
commands still fail for unsupported routes. Never silently enable a disabled or
|
|
63
|
+
unknown persistent policy. Show actual filtering and native commit/failure/cancel
|
|
64
|
+
status through strict bounded ephemeral evidence and an additive composer notice;
|
|
65
|
+
only a verified replay-scope failure offers the same enable control when off.
|
|
57
66
|
Safe background diagnostics use bounded Error cause chains and fixed allowlisted
|
|
58
67
|
codes, never raw errors. Installation alone neither selects nor invokes recovery.
|
|
59
68
|
See `src/compaction-replay.ts` and `docs/manual-compaction-recovery.md` (#349).
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.123 (prepared)
|
|
4
|
+
|
|
5
|
+
- Add default-off local account/Checking/compaction diagnostics with strict fixed-dimension counts, elapsed/unfinished age bins, separate Client/Host populations and explicit cancellation, rejection, interruption and reporting gaps (#347, #356).
|
|
6
|
+
- Persist a 14-day, 4,096-row/2 MiB aggregate snapshot through the public storage-domain service, isolating profiles on the home-wide backend. Add enable/pause, separately confirmed clear and aggregate-only JSON review; preserve restart interruption, control epochs, business ownership and named storage failures.
|
|
7
|
+
- No account/Session identity, content, replay, raw errors or credentials enter aggregates. No automatic uploads, daily tasks, repair, retries, live-profile install or activation; native/custom-engine and other unwrapped paths remain explicit coverage gaps.
|
|
8
|
+
|
|
3
9
|
## 0.4.0-alpha.121 (prepared)
|
|
4
10
|
|
|
5
11
|
- Add explicit `/copilot-compact visible-history` consent for one lossy managed Responses summary operation after replay-scope rejection (#349). Preserve visible messages/tool pairs, native directive, route/cap, cancellation, source history and single transactional commit; no automatic retry, hidden settings change or live execution.
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Visible Models and Credits resolve missing names for saved accounts without acti
|
|
|
25
25
|
|
|
26
26
|
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.
|
|
27
27
|
|
|
28
|
-
**
|
|
28
|
+
**Package version: `0.4.0-alpha.123`. 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. Verify the published Release and assets before using the versioned commands below; these instructions do not prove publication or installation.
|
|
29
29
|
|
|
30
30
|
## What you can do
|
|
31
31
|
|
|
@@ -46,6 +46,15 @@ prefers unmarked eligible Lightweight models separately. Advisor calls are not
|
|
|
46
46
|
implemented. See [requirements](./docs/auto-high-cost.md) and the
|
|
47
47
|
[required iteration review](./docs/evidence-driven-iteration.md).
|
|
48
48
|
|
|
49
|
+
The [local diagnostics pilot](./docs/plugin-diagnostics.md) records bounded
|
|
50
|
+
account/Checking and compaction aggregates, **default off**. After installing
|
|
51
|
+
and loading the published build, open the plugin detail settings page →
|
|
52
|
+
**Local diagnostics → Read status → Enable local collection**. This enables
|
|
53
|
+
local persistence, not uploads or daily analysis. Pause preserves evidence;
|
|
54
|
+
Clear requires separate confirmation. Client/Host populations, uncovered paths
|
|
55
|
+
and reporting/storage gaps remain explicit. Normal use supplies future evidence,
|
|
56
|
+
not reconstructed history or proof of an improvement.
|
|
57
|
+
|
|
49
58
|
| Task | Where to start |
|
|
50
59
|
|---|---|
|
|
51
60
|
| Sign in and manage account models | **Settings → Models → GitHub Copilot → Sign in** |
|
|
@@ -82,10 +91,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
82
91
|
For a **standalone named profile**:
|
|
83
92
|
|
|
84
93
|
```sh
|
|
85
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
94
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.123/dsh-github-copilot-0.4.0-alpha.123.tgz
|
|
86
95
|
```
|
|
87
96
|
|
|
88
|
-
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.
|
|
97
|
+
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.123` 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.
|
|
89
98
|
|
|
90
99
|
After an approved reload/restart:
|
|
91
100
|
|
|
@@ -162,7 +171,7 @@ Managed request admission preserves truthful input/output limits and native tran
|
|
|
162
171
|
|
|
163
172
|
For continuing steps with a committed managed route and no pending model change, known input pressure is reduced before Core opens the next model attempt. Successful native reduction avoids an unsampled local-pressure attempt that would make whole-turn Usage unavailable. First steps, pending selections, new fixed-prefix growth and final hard-budget refusals retain existing admission; this does not repair historical totals or invent missing usage.
|
|
164
173
|
|
|
165
|
-
|
|
174
|
+
**Visible-history continuation also covers this Session's native managed Responses compaction**, including automatic summaries: no extra manual recovery command or failure-first retry is required when enabled. Old encrypted reasoning and embedded summaries are omitted from outgoing input; hidden context may be lost. Visible messages/tool pairs and source history remain intact, and only the native transaction commits a smaller checkpoint. A composer notice identifies degradation and distinguishes committed, failed and cancelled outcomes. When off, an exact replay-scope rejection offers the same loss-disclosed enable control; unknown failures do not authorize loss. `/copilot-compact visible-history` remains a one-time alternative through the selected recovery engine. Read [recovery consent and limits](./docs/manual-compaction-recovery.md#explicit-visible-history-summary-recovery); this does not enable an absent engine or repair capacity, quota or timeout failures.
|
|
166
175
|
|
|
167
176
|
For exact verified `408 / user_request_timeout`, diagnostics describe bounded request composition and observable timing, not a proven payload limit or root cause. Image counts include native Responses tool outputs; older stored diagnostics may have counted those images as residual history. Bytes are not tokens; timing is not upload duration. Small, image-free requests can also time out. Follow [request-budget and timeout guidance](./docs/copilot-compaction.md); do not automatically trim history, disable proof, switch models or add retries.
|
|
168
177
|
|
|
@@ -249,14 +258,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
249
258
|
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.
|
|
250
259
|
|
|
251
260
|
```sh
|
|
252
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
253
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
261
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.123/dsh-github-copilot-0.4.0-alpha.123.tgz
|
|
262
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.123/SHA256SUMS
|
|
254
263
|
sha256sum --check SHA256SUMS
|
|
255
264
|
```
|
|
256
265
|
|
|
257
266
|
```powershell
|
|
258
267
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
259
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
268
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.123.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
260
269
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
261
270
|
```
|
|
262
271
|
|
package/README.zh.md
CHANGED
|
@@ -22,7 +22,7 @@ Models 和 Chat 共用不透明、随主题适配的账号下拉层;原生菜
|
|
|
22
22
|
|
|
23
23
|
添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
**包版本:`0.4.0-alpha.123`。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。执行下方带版本的命令前须核验正式发布与资产;这些说明不证明已发布或已安装。
|
|
26
26
|
|
|
27
27
|
## 你可以做什么
|
|
28
28
|
|
|
@@ -38,6 +38,13 @@ Models 和 Chat 共用不透明、随主题适配的账号下拉层;原生菜
|
|
|
38
38
|
合格 Lightweight 模型。顾问求助尚未实现。参见[完整需求](./docs/auto-high-cost.md)
|
|
39
39
|
与[强制迭代评审流程](./docs/evidence-driven-iteration.md)。
|
|
40
40
|
|
|
41
|
+
[本地诊断试点](./docs/plugin-diagnostics.md)记录有界的账号/Checking 与压缩
|
|
42
|
+
汇总,**默认关闭**。安装并加载已发布版本后,进入插件详情设置页 →
|
|
43
|
+
**Local diagnostics → Read status → Enable local collection**,开启本地持久化;
|
|
44
|
+
不上传,不启用每日分析。暂停保留证据,清除需单独确认。Client/Host 分开统计,
|
|
45
|
+
未覆盖路径、报告丢失与存储故障明确显示。正常使用产生后续优化所需的证据,
|
|
46
|
+
不会重建历史错误率,也不表示优化效果已被验证。
|
|
47
|
+
|
|
41
48
|
| 任务 | 入口 |
|
|
42
49
|
|---|---|
|
|
43
50
|
| 登录并管理账号模型 | **设置 → 模型 → GitHub Copilot → Sign in** |
|
|
@@ -74,10 +81,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
74
81
|
**独立具名 profile**:
|
|
75
82
|
|
|
76
83
|
```sh
|
|
77
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
84
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.123/dsh-github-copilot-0.4.0-alpha.123.tgz
|
|
78
85
|
```
|
|
79
86
|
|
|
80
|
-
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.
|
|
87
|
+
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.123`。官方 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 或删除配置。
|
|
81
88
|
|
|
82
89
|
经批准 reload/restart 后:
|
|
83
90
|
|
|
@@ -154,7 +161,7 @@ Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallba
|
|
|
154
161
|
|
|
155
162
|
同一轮后续步骤已有托管路由、且没有待切换模型时,已知输入压力会在 Core 开始下次模型尝试之前压缩。原生压缩成功可避免一次无 usage 样本的本地压力拒绝导致整轮 Usage 不可用。首次步骤、待切换模型、新增固定前缀膨胀与最终硬预算拒绝仍保留原有准入;不会修复历史总量或虚构缺失用量。
|
|
156
163
|
|
|
157
|
-
|
|
164
|
+
**“降级续聊”也覆盖本 Session 的原生托管 Responses 压缩,包括自动摘要**:开启后不需要额外手动恢复命令,也不必先失败再重试。发出的输入省略旧加密 reasoning 及其内嵌摘要,隐藏上下文可能丢失;可见消息、工具调用/结果关系和原历史保留,仅由原生事务提交更小的检查点。输入区提示降级,并区分已提交、失败和取消。关闭时,明确的回放作用域拒绝提供同一个带损失说明的开启入口;未知错误不授权降级。`/copilot-compact visible-history` 保留为已选用恢复引擎的一次性高级入口。参见[授权与恢复限制](./docs/manual-compaction-recovery.md#explicit-visible-history-summary-recovery);这不启用缺失的引擎,也不修复容量、额度或超时问题。
|
|
158
165
|
|
|
159
166
|
严格核验的 `408 / user_request_timeout`诊断给出有界请求构成和可观察耗时,不证明供应方 payload 上限或根因。图片统计包括原生 Responses 工具输出中的图片;旧的已存诊断可能把这些图片算作剩余历史。字节不是 tokens,耗时不是上传时长;小型无图请求也可能超时。参见[预算与超时指导](./docs/copilot-compaction.md),不要自动裁剪历史、禁用 proof、切换模型或增加重试。
|
|
160
167
|
|
|
@@ -241,14 +248,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
241
248
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
242
249
|
|
|
243
250
|
```sh
|
|
244
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
245
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
251
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.123/dsh-github-copilot-0.4.0-alpha.123.tgz
|
|
252
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.123/SHA256SUMS
|
|
246
253
|
sha256sum --check SHA256SUMS
|
|
247
254
|
```
|
|
248
255
|
|
|
249
256
|
```powershell
|
|
250
257
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
251
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
258
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.123.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
252
259
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
253
260
|
```
|
|
254
261
|
|
package/deployment-baseline.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.4.0-alpha.
|
|
11
|
+
"version": "0.4.0-alpha.123"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"piAi": "0.87.1",
|
|
253
253
|
"runtimeDependencies": {
|
|
254
254
|
"@earendil-works/pi-ai": "0.87.1",
|
|
255
|
-
"zod": "
|
|
255
|
+
"zod": "4.6.5"
|
|
256
256
|
},
|
|
257
257
|
"sharedPeerDependencies": {
|
|
258
258
|
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
@@ -288,6 +288,28 @@
|
|
|
288
288
|
]
|
|
289
289
|
},
|
|
290
290
|
"capabilities": [
|
|
291
|
+
{
|
|
292
|
+
"id": "copilot-local-diagnostics",
|
|
293
|
+
"required": true,
|
|
294
|
+
"evidenceScope": "synthetic-collector-ui-native-gateway-storage-and-settings-not-live-reliability",
|
|
295
|
+
"activation": "default-off-explicit-profile-local-enable",
|
|
296
|
+
"sourceMarkers": [
|
|
297
|
+
{"file": "src/diagnostics-types.ts", "marker": "DIAGNOSTICS_MAX_BYTES = 2 * 1024 * 1024"},
|
|
298
|
+
{"file": "src/diagnostics-collector.ts", "marker": "noteClientGaps"},
|
|
299
|
+
{"file": "src/diagnostics-host.ts", "marker": "diagnosticsDomainForProfile"},
|
|
300
|
+
{"file": "src/diagnostics-client.ts", "marker": "createClientDiagnosticsScope"},
|
|
301
|
+
{"file": "src/remote.ts", "marker": "...diagnosticsRemote.descriptors"},
|
|
302
|
+
{"file": "src/config.ts", "marker": "diagnosticsEnabled:"},
|
|
303
|
+
{"file": "AGENTS.md", "marker": "Default-off local account/Checking/compaction diagnostics"}
|
|
304
|
+
],
|
|
305
|
+
"tests": [
|
|
306
|
+
{"file": "tests/diagnostics-collector.spec.ts", "name": "is disabled until enabled, records success denominators and settles once"},
|
|
307
|
+
{"file": "tests/diagnostics-client.spec.ts", "name": "rejects stale status responses and settles an unmounted Checking operation once"},
|
|
308
|
+
{"file": "tests/diagnostics-card.spec.ts", "name": "requires a confirmed durable enable and a separate destructive clear confirmation"},
|
|
309
|
+
{"file": "tests/fixtures/diagnostics-storage-core.fixture.ts", "name": "isolates profiles on the home-wide backend and preserves memory on a real publish failure"},
|
|
310
|
+
{"file": "tests/fixtures/diagnostics-gateway-core.fixture.ts", "name": "binds diagnostics through actual strict Client and Host gateways with durable enable and clear fences"}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
291
313
|
{
|
|
292
314
|
"id": "copilot-session-accounts",
|
|
293
315
|
"required": true,
|
|
@@ -577,6 +599,8 @@
|
|
|
577
599
|
{"file": "src/manual-compaction-recovery.ts", "marker": "COPILOT_MANUAL_RECOVERY_"},
|
|
578
600
|
{"file": "src/background-compaction.ts", "marker": "copilot-compact"},
|
|
579
601
|
{"file": "src/compaction-replay.ts", "marker": "request.purpose !== 'compaction'"},
|
|
602
|
+
{"file": "src/compaction-continuation.ts", "marker": "COPILOT_CONTINUATION_COMPACTION_BOUNDARY_UNAVAILABLE"},
|
|
603
|
+
{"file": "src/compaction-continuation-ui.ts", "marker": "Compacting with visible history"},
|
|
580
604
|
{"file": "src/background-compaction.ts", "marker": "visible-history"},
|
|
581
605
|
{"file": "src/background-compaction.ts", "marker": "this.jobs.wait(jobId"},
|
|
582
606
|
{"file": "src/preview-route.ts", "marker": "recoveryLimits(modelId)"},
|
|
@@ -588,6 +612,8 @@
|
|
|
588
612
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "rejects unmatched tool calls before dispatch instead of splitting a call and result"},
|
|
589
613
|
{"file": "tests/background-compaction.spec.ts", "name": "acknowledges before completion and outlives a five-minute caller deadline"},
|
|
590
614
|
{"file": "tests/compaction-replay.spec.ts", "name": "authorizes only the exact manual summary operation and preserves visible tool content"},
|
|
615
|
+
{"file": "tests/session-continuation-host.spec.ts", "name": "applies persisted continuation before a native summary and reports only native replacement success"},
|
|
616
|
+
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "persistent policy restores automatic replay-blocked compaction without a command, recovery engine=%s"},
|
|
591
617
|
{"file": "tests/background-compaction.spec.ts", "name": "reports only allowlisted causes through native error wrappers"},
|
|
592
618
|
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "recovers only an explicitly authorized manual job through one native transaction"},
|
|
593
619
|
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "commits beyond the carrier deadline without a model wakeup and keeps status owner-scoped"},
|
package/docs/auto-high-cost.md
CHANGED
|
@@ -20,6 +20,28 @@ global default. Unknown preference state is read-only, not an empty marking
|
|
|
20
20
|
list. Fixed selection is unaffected. An admitted Auto turn retains its captured
|
|
21
21
|
decision across steps, retries and subsequent preference changes.
|
|
22
22
|
|
|
23
|
+
The snapshot is taken when Auto allocates a model, after bounded assessment and
|
|
24
|
+
model loading, not necessarily at `turn/start`. Once allocated, the same turn
|
|
25
|
+
cannot be reweighted by a later save. The current checkbox/configuration is not
|
|
26
|
+
historical evidence of a previous decision. A retained observation window can
|
|
27
|
+
contain several different turns and models; its end timestamp is not the
|
|
28
|
+
timestamp of the selected message's decision.
|
|
29
|
+
|
|
30
|
+
For #348, read-only native header evidence identifies the reported Astra
|
|
31
|
+
selection at 06:25:58 local time, while the second allocation around 06:42:18
|
|
32
|
+
selected a different model. The retained pre-install configuration had no mark,
|
|
33
|
+
and a later configuration contains it. Whole-file modification time does not
|
|
34
|
+
prove the high-cost leaf's save time. No decision-time saved revision or exact
|
|
35
|
+
save receipt was retained, so the historical cause remains unconfirmed.
|
|
36
|
+
|
|
37
|
+
`tests/fixtures/copilot-accounts-persistence-core.fixture.ts` now exercises the
|
|
38
|
+
native SettingsForms save, preserved volatile configuration, the production Auto
|
|
39
|
+
Host's captured candidate weight/share, and profile restart using synthetic
|
|
40
|
+
models and settings only. It proves saved marks reach new allocations in that
|
|
41
|
+
unchanged official Core fixture, not that the affected live Host read the mark
|
|
42
|
+
before the historical Astra decision. Do not hardcode a model, change live
|
|
43
|
+
preferences or rewrite a frozen explanation to manufacture a repair.
|
|
44
|
+
|
|
23
45
|
## Routing policy v1
|
|
24
46
|
|
|
25
47
|
1. Account ownership, metadata validity, exclusion, input modality and input
|
|
@@ -39,7 +39,9 @@ Status and cancellation apply only to the invoking Agent's latest job. Duplicate
|
|
|
39
39
|
|
|
40
40
|
### Explicit visible-history summary recovery
|
|
41
41
|
|
|
42
|
-
For a verified `COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH`, repeating the same summary cannot repair supplier-scoped encrypted replay.
|
|
42
|
+
For a verified `COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH`, repeating the same summary cannot repair supplier-scoped encrypted replay. The existing **Visible-history continuation** Session policy now authorizes managed Responses summaries as well as chat: ordinary `/compact`, `/copilot-compact` and automatic compaction apply it before dispatch, without a failure-first retry or extra command. The active turn retains its captured persistent policy; idle summaries capture the Session policy. Disabled/unknown policy never silently enables loss, and legacy next-turn-only consent does not authorize summaries. Stock and selected recovery engines remain independently owned. An additive composer notice reports filtering and distinguishes native commit, failure and cancellation; exact scope rejection when off offers the same persistent enable control. This is not a capacity/timeout/quota cure or permission to enable an absent engine.
|
|
43
|
+
|
|
44
|
+
`/copilot-compact visible-history` remains explicit consent for **one lossy manual compaction operation** through the selected engine, without changing the persistent checkbox. Managed Responses summary requests omit historical encrypted reasoning items **and their embedded summaries**, while retaining visible messages, tool calls/results, the system head and native final directive. Hidden reasoning may contain details absent from visible messages. Review this loss before enabling the policy or issuing the one-time command.
|
|
43
45
|
|
|
44
46
|
Consent is local to the native summarizer's exact cancellation signal, Session and summary model, including its bounded segments. It is revoked on completion, failure, cancellation or teardown. No unrelated request, subsequent command or automatic retry inherits it. Unknown or incomplete reasoning fails closed. No replay is decrypted, fabricated or written back; original source events remain unchanged and only Core can commit the final smaller checkpoint. The command adds no retry or model/account switch, and does not repair supplier scope. Missing managed integration or an unsupported summary route fails explicitly.
|
|
45
47
|
|