dsh-github-copilot 0.4.2-alpha.3 → 0.4.2-alpha.4

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
@@ -52,7 +52,7 @@ projection may diagnose concrete failed-zero or invalid-sample incidents; ordina
52
52
  request progress and absent fresh sampling stay quiet. Never filter shared native
53
53
  usage, replace Core's meter, infer current occupancy/percentages or rewrite history.
54
54
  See [quota boundaries](./docs/copilot-usage.md).
55
- 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).
55
+ 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. Aggregate and Auto controls remain independent. Separately consented `requestDiagnosticsEnabled` collects at most 128 content-free managed-adapter physical requests for 24 hours within the shared 2 MiB cap. Random stream groups/dispatch indices are not Session/turn identity or Core retry counts. Local body-write completion does not prove supplier receipt; abort attribution needs actual signal evidence, not EOF text. Never change transport/retries/Usage to obtain diagnostics. All controls use hidden volatile CAS leaves with exact readback; 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).
56
56
 
57
57
  ## Session-policy compaction replay consent (#349, #352)
58
58
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.2-alpha.4 (prepared)
4
+
5
+ - Add independently opt-in, content-free managed-adapter physical request
6
+ observations to Local diagnostics: model/protocol, JSON/wire byte counts,
7
+ bounded composition, local transport timings, HTTP status and strict terminal
8
+ categories. Existing aggregate collection does not enable this scope.
9
+ - Retain at most 128 request rows for 24 hours within the shared 2 MiB snapshot.
10
+ Expose dropped/expired/pending/reopen gaps, independent pause and confirmed
11
+ clear, a native-style request table and explicit reviewed-JSON scope.
12
+ - Preserve native request bytes, retry decisions, stream results and accounting.
13
+ Body-write completion is not supplier receipt; missing terminal text is not
14
+ abort evidence. This improves investigation, not HTTP408/EOF/context recovery.
15
+ - Keep the offline account/compaction analyzer aggregate-only, with an explicit
16
+ gap when separately collected request observations are omitted.
17
+
3
18
  ## 0.4.2-alpha.3 (prepared)
4
19
 
5
20
  - Put daily Auto allocation aggregate rows in the primary Local diagnostics view, with UTC date, policy, model, decision cohort, opportunities, expected selections, selected counts and no-fit decisions. Keep cohorts distinct and state that these counts do not prove execution, quality or billing.
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
- **Stable release: [`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1); prepared prerelease: `0.4.2-alpha.3`.** `0.4.2-alpha.1` was not published: its release preflight failed, and its immutable tag will not be reused. Supported host: official DSH / Windows Desktop `0.2.0-rc.2`. The stable version is also published on npm's `latest` dist-tag; prereleases remain on their channel tags. Stability-channel promotion does not expand the qualified host baseline or prove live account, model, search or Desktop health. 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
+ **Stable release: [`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1); prepared prerelease: `0.4.2-alpha.4`.** `0.4.2-alpha.1` was not published: its release preflight failed, and its immutable tag will not be reused. Supported host: official DSH / Windows Desktop `0.2.0-rc.2`. The stable version is also published on npm's `latest` dist-tag; prereleases remain on their channel tags. Stability-channel promotion does not expand the qualified host baseline or prove live account, model, search or Desktop health. 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
  **Upgrade from 0.4.0:** that first stable release can interrupt concurrent managed requests with `COPILOT_PREVIEW_CREDENTIAL_CHANGED` during normal same-account native OAuth renewal. In 0.4.1, a proven plugin-owned refresh with unchanged account, endpoint and entitlements preserves already-dispatched HTTP streams; subsequent requests use freshly validated auth and metadata. Unknown/external credential notifications, revocation, cancellation and provider rejections remain explicit—not a promise of invisible recovery or automatic retry. See [the refresh boundary](./docs/copilot-accounts.md#native-oauth-refresh-and-dispatched-requests-385).
14
14
 
@@ -43,7 +43,13 @@ and loading the published build, open the plugin detail settings page →
43
43
  **Local diagnostics → Read status → Enable local collection**. This enables
44
44
  local account/Checking and compaction persistence, not uploads or scheduled
45
45
  analysis. Enable **Auto allocation observation** separately to collect only
46
- Auto allocation aggregates. The package also has an explicit offline analyzer
46
+ Auto allocation aggregates. **Enable request observations** is a third, independent,
47
+ default-off control: up to 128 content-free managed-adapter physical requests
48
+ for 24 hours, with model, JSON/wire byte counts, timings, HTTP status and terminal
49
+ categories. No bodies, headers, credentials or Session/turn IDs are collected.
50
+ Local body-write completion does not prove supplier receipt; these diagnostics
51
+ do not fix timeouts or alter retry/Usage behavior.
52
+ The package also has an explicit offline analyzer
47
53
  for a caller-selected persisted unit or reviewed aggregate view; it writes only
48
54
  to a new local report file and never scans, uploads or changes collection. Pause
49
55
  preserves evidence; Clear requires separate confirmation. Client/Host
@@ -105,10 +111,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
105
111
  For a **standalone named profile**:
106
112
 
107
113
  ```sh
108
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.3/dsh-github-copilot-0.4.2-alpha.3.tgz
114
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/dsh-github-copilot-0.4.2-alpha.4.tgz
109
115
  ```
110
116
 
111
- For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.3`; stable versions publish on npm's `latest` dist-tag and prereleases on their channel tags. The official rc.2 **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.
117
+ For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.4`; stable versions publish on npm's `latest` dist-tag and prereleases on their channel tags. The official rc.2 **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.
112
118
 
113
119
  After an approved reload/restart:
114
120
 
@@ -284,14 +290,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
284
290
  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.
285
291
 
286
292
  ```sh
287
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.3/dsh-github-copilot-0.4.2-alpha.3.tgz
288
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.3/SHA256SUMS
293
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/dsh-github-copilot-0.4.2-alpha.4.tgz
294
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/SHA256SUMS
289
295
  sha256sum --check SHA256SUMS
290
296
  ```
291
297
 
292
298
  ```powershell
293
299
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
294
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.3.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
300
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.4.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
295
301
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
296
302
  ```
297
303
 
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.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1);待发布预览版:`0.4.2-alpha.3`。** `0.4.2-alpha.1` 的发布预检失败,因此未发布;其不可变 tag 不会复用。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。稳定版也发布到 npm 的 `latest` dist-tag;预发布版本仍使用各自渠道 tag。稳定渠道不扩大已验证的宿主基线,也不证明实时账号、模型、搜索或 Desktop 健康状态。较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。
11
+ **稳定版:[`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1);待发布预览版:`0.4.2-alpha.4`。** `0.4.2-alpha.1` 的发布预检失败,因此未发布;其不可变 tag 不会复用。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。稳定版也发布到 npm 的 `latest` dist-tag;预发布版本仍使用各自渠道 tag。稳定渠道不扩大已验证的宿主基线,也不证明实时账号、模型、搜索或 Desktop 健康状态。较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。
12
12
 
13
13
  **从 0.4.0 升级:**首个正式版在同账号正常原生 OAuth 刷新时,可能以 `COPILOT_PREVIEW_CREDENTIAL_CHANGED` 中止并行托管请求。0.4.1 仅在插件拥有的原生刷新被精确验证,且账号、端点与权限连续时,保留已发出的 HTTP 流;后续请求重新验证认证与模型元数据。未知/外部凭据通知、撤销、取消与供应商拒绝仍明确报错,不承诺所有刷新无感,也不自动重试。参见[刷新边界](./docs/copilot-accounts.md#native-oauth-refresh-and-dispatched-requests-385)。
14
14
 
@@ -34,7 +34,11 @@ Session/turn ID、对话内容,也不推断执行/结果,不自动调参
34
34
  汇总,**默认关闭**。安装并加载已发布版本后,进入插件详情设置页 →
35
35
  **Local diagnostics → Read status → Enable local collection**,开启本地持久化;
36
36
  仅用于账号/Checking 与压缩汇总,不上传或启用每日分析。另行启用
37
- **Auto allocation observation** 才会单独收集 Auto 分配汇总。包内另提供显式离线分析器,
37
+ **Auto allocation observation** 才会单独收集 Auto 分配汇总。第三个独立、默认关闭的
38
+ **Enable request observations** 开关保留最多 128 条托管适配器的物理请求观测,保留 24 小时:
39
+ 仅包含模型、JSON/传输字节数、耗时、HTTP 状态和终止分类,不记录正文、headers、
40
+ 凭据或 Session/turn ID。本地写出完成不证明供应方收到了请求;诊断不会修复超时,
41
+ 也不改变重试或 Usage。包内另提供显式离线分析器,
38
42
  只处理调用者指定的持久化单元或经审阅的聚合视图,并且只新建本地报告文件;不会扫描、
39
43
  上传或更改采集设置。暂停保留证据,清除需单独确认。Client/Host 分开统计,未覆盖路径、
40
44
  报告丢失与存储故障明确显示。描述性计数不是历史重建、错误率,也不表示优化效果已被验证。诊断页默认显示按 UTC 日期、
@@ -91,10 +95,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
91
95
  **独立具名 profile**:
92
96
 
93
97
  ```sh
94
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.3/dsh-github-copilot-0.4.2-alpha.3.tgz
98
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/dsh-github-copilot-0.4.2-alpha.4.tgz
95
99
  ```
96
100
 
97
- **Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.3`;稳定版发布到 npm `latest` dist-tag,预发布版使用对应渠道 tag。官方 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 或删除配置。
101
+ **Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.4`;稳定版发布到 npm `latest` dist-tag,预发布版使用对应渠道 tag。官方 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 或删除配置。
98
102
 
99
103
  经批准 reload/restart 后:
100
104
 
@@ -270,14 +274,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
270
274
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
271
275
 
272
276
  ```sh
273
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.3/dsh-github-copilot-0.4.2-alpha.3.tgz
274
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.3/SHA256SUMS
277
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/dsh-github-copilot-0.4.2-alpha.4.tgz
278
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/SHA256SUMS
275
279
  sha256sum --check SHA256SUMS
276
280
  ```
277
281
 
278
282
  ```powershell
279
283
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
280
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.3.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
284
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.4.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
281
285
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
282
286
  ```
283
287
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.2-alpha.3"
11
+ "version": "0.4.2-alpha.4"
12
12
  },
13
13
  "evidence": {
14
14
  "kind": "source-and-synthetic-test-inventory",
@@ -296,6 +296,9 @@
296
296
  "sourceMarkers": [
297
297
  {"file": "src/diagnostics-types.ts", "marker": "DIAGNOSTICS_MAX_BYTES = 2 * 1024 * 1024"},
298
298
  {"file": "src/diagnostics-collector.ts", "marker": "noteClientGaps"},
299
+ {"file": "src/request-diagnostics.ts", "marker": "REQUEST_DIAGNOSTICS_MAX_ROWS = 128"},
300
+ {"file": "src/request-diagnostics.ts", "marker": "REQUEST_DIAGNOSTICS_RETENTION_MS = 24 * 60 * 60 * 1000"},
301
+ {"file": "src/config.ts", "marker": "requestDiagnosticsEnabled: z.boolean().default(false).hidden().volatile()"},
299
302
  {"file": "src/diagnostics-host.ts", "marker": "diagnosticsDomainForProfile"},
300
303
  {"file": "src/diagnostics-client.ts", "marker": "createClientDiagnosticsScope"},
301
304
  {"file": "src/remote.ts", "marker": "...diagnosticsRemote.descriptors"},
@@ -304,6 +307,8 @@
304
307
  ],
305
308
  "tests": [
306
309
  {"file": "tests/diagnostics-collector.spec.ts", "name": "is disabled until enabled, records success denominators and settles once"},
310
+ {"file": "tests/request-diagnostics.spec.ts", "name": "requires independent consent, captures status/timing and never infers upload or retry count"},
311
+ {"file": "tests/preview-transport-failures.spec.ts", "name": "records verified 408 once without changing the native error, serialized input or dispatch count"},
307
312
  {"file": "tests/diagnostics-client.spec.ts", "name": "rejects stale status responses and settles an unmounted Checking operation once"},
308
313
  {"file": "tests/diagnostics-card.spec.ts", "name": "requires a confirmed durable enable and a separate destructive clear confirmation"},
309
314
  {"file": "tests/fixtures/diagnostics-storage-core.fixture.ts", "name": "isolates profiles on the home-wide backend and preserves memory on a real publish failure"},
@@ -1,4 +1,4 @@
1
- # Local diagnostics: account, compaction and Auto allocation
1
+ # Local diagnostics: account, compaction, Auto allocation and requests
2
2
 
3
3
  Roadmap: [#347](https://github.com/cloga/dsh-github-copilot/issues/347).
4
4
  Phase 0: [#354](https://github.com/cloga/dsh-github-copilot/issues/354).
@@ -45,17 +45,23 @@ not contain Session/turn identifiers, prompts, outcomes, execution or billing
45
45
  attribution. Aggregate rows are capped at 1,024, retained for 14 days and
46
46
  included in the existing 2 MiB snapshot limit; expired, dropped, truncated,
47
47
  saturated and restart evidence remains explicit. There is no per-turn export,
48
- automatic tuning or upload. The two controls can be paused independently;
49
- **Clear local aggregates** clears both diagnostics populations.
50
-
51
- **Read status** returns a strict aggregate snapshot; **Review aggregate-only JSON → Prepare current JSON**
48
+ automatic tuning or upload. The aggregate controls can be paused independently.
49
+ The separate **Enable request observations** control uses the hidden volatile
50
+ `github-copilot.requestDiagnosticsEnabled` leaf with path-level CAS and exact
51
+ readback. Existing aggregate consent never enables request observations.
52
+ **Clear local diagnostics** clears all three populations, including request
53
+ observations, without changing the three enabled/paused controls.
54
+
55
+ **Read status** returns a strict snapshot; **Review aggregate-only JSON → Prepare current JSON**
52
56
  prepares a read-only copy for explicit review/sharing, never a download or upload.
57
+ When retained request observations exist, the disclosure is instead named
58
+ **Review local diagnostics JSON** and includes that separately consented scope.
53
59
  The coding session does not automatically gain access to the running Host.
54
60
  Pause preserves retained evidence and closes active observations as interrupted.
55
61
  It remains available for a configured-on collector when storage is unavailable;
56
62
  enabling still requires ready storage.
57
63
  Clear requires a separate confirmation, advances an epoch and removes this
58
- domain's aggregates without changing the enabled setting, accounts or history.
64
+ domain's aggregates and request observations without changing the enabled settings, accounts or history.
59
65
  An uncertain write is not automatically replayed by the UI.
60
66
 
61
67
  ## Storage and limits
@@ -125,7 +131,8 @@ signal evidence; arbitrary native error text cannot establish cancellation.
125
131
 
126
132
  Stock/custom-engine physical summaries, recovery opt-out/native-only summary
127
133
  branches, OAuth Add/reauthorization/removal, quota, ordinary model refresh,
128
- managed chat/search/classifier transport and unwrapped RPCs remain uncovered.
134
+ canonical/custom transport and unwrapped RPCs remain uncovered. Managed native
135
+ adapter HTTP dispatches have only the separately enabled coverage below.
129
136
  Native checkpoint observation is not filesystem durability evidence. Reporting
130
137
  loss, crashes, disabled intervals and paging/coverage gaps must never be treated
131
138
  as zero failures. No automatic daily analysis, issue creation, account/model
@@ -142,6 +149,54 @@ factory in its own isolated realm, sharing the actual public Cordis identity.
142
149
  It does not substitute tagged source for published bytes or attach to a live
143
150
  Client module registry; factory qualification is not Desktop activation proof.
144
151
 
152
+ ## Content-free physical request observations (#392)
153
+
154
+ This independent, default-off pilot observes physical Fetch dispatches composed
155
+ by the plugin-managed native adapter. It does not intercept canonical routes,
156
+ change request bodies, timeout settings, retry decisions or native accounting.
157
+ It retains at most 128 completed observations and 128 live handles for 24 hours
158
+ within the same 2 MiB snapshot ceiling. Expiry, capacity drops and sampled
159
+ pending counts are explicit. Pause settles live observations as interrupted;
160
+ clear fences late completions. Saved pending counts become interrupted-on-reopen
161
+ counts, not fabricated request rows. Abrupt loss can still lose the unflushed
162
+ tail and requests that began since the last saved sample.
163
+
164
+ Rows contain plugin version, request time, bounded model/protocol metadata,
165
+ original JSON and dispatched wire byte counts, encoding, bounded composition
166
+ partitions, local header/elapsed timing, HTTP status and fixed terminal/reason
167
+ categories. Existing public native upload observations add ALPN, local body-write
168
+ timing and writable-buffer bytes only when available. Unsupported/ambiguous
169
+ transport evidence stays explicitly unavailable. Composition is bounded to
170
+ 16 MiB and fixed parser work limits; larger bodies retain byte counts with
171
+ `size-limit`, never an invented composition or unlimited body parse. These are
172
+ diagnostic work limits, not provider request limits.
173
+
174
+ Random stream UUIDs group only dispatches within one native SDK stream.
175
+ `dispatchIndex` is physical Fetch order, **not** Core's retry number or an
176
+ end-to-end Session/turn correlation. No account/Session/turn IDs or hashes,
177
+ URLs, headers, raw errors, prompts, tool parameters/results, attachment or replay
178
+ content, credentials or token accounting are retained. Review timestamps/model
179
+ metadata before explicit sharing; nothing is uploaded automatically.
180
+
181
+ An exact verified HTTP408 `user_request_timeout` is classified as
182
+ `request-body-timeout`; other provider/transport errors remain fixed unknown
183
+ categories. Real caller, branded plugin-owned and byte-idle abort signals retain
184
+ their strict attribution. Missing terminal/`terminated` text is not reinterpreted
185
+ as a signal abort. `stream-done` means native terminal observation, not execution,
186
+ billing or recovery success. Local body-write completion and zero writable buffer
187
+ do **not** prove TCP acknowledgement, proxy forwarding or supplier receipt.
188
+ These observations can distinguish a repeated large-body timeout from an
189
+ actual cancellation; they do not identify the remote fault owner or fix
190
+ HTTP408, EOF, retries or the native context meter.
191
+
192
+ The collapsed **Physical request observations** table exposes latest retained
193
+ timings/status/bytes. Detailed composition, transport evidence and random group
194
+ IDs remain in reviewed JSON. Capture failures log only the fixed
195
+ `COPILOT_REQUEST_DIAGNOSTICS_FAILED` code and never replace the native result.
196
+ Synthetic native-SDK tests exercise HTTP408, missing terminal, real abort,
197
+ concurrent stream isolation and unchanged request/error delivery without network
198
+ or live account use.
199
+
145
200
  ## Explicit offline analysis (#368)
146
201
 
147
202
  The package provides a separate, read-only analyzer for one explicitly selected
@@ -165,7 +220,11 @@ must identify the file and profile. The tool never searches DSH homes,
165
220
  enumerates storage units, opens a storage-domain writer or RPC, reads Settings,
166
221
  credentials or history, or falls back between modes.
167
222
 
168
- Both modes reuse the collector's strict Zod snapshot/view vocabulary. The
223
+ Both modes reuse the collector's strict Zod snapshot/view vocabulary. Request
224
+ observations are validated but deliberately not included in the account/compaction
225
+ aggregate report; `request-observations-not-analyzed` marks their omission.
226
+ Review the source JSON separately for transport investigation; absence of
227
+ aggregate candidates says nothing about request failures. The
169
228
  reader rejects symlinks and non-files, caps input at 8 MiB, opens only for
170
229
  reading, decodes fatal UTF-8, and checks file identity, size and modification
171
230
  metadata before and after reading. These checks bound and detect ordinary
package/lib/client.js CHANGED
@@ -6524,10 +6524,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6524
6524
  //#region lib/types/auto-allocation-diagnostics.js
6525
6525
  const AUTO_ALLOCATION_DIAGNOSTIC_MAX_ROWS = 1024;
6526
6526
  const dayMs = 864e5;
6527
- const integer$1 = number().int().min(0).max(Number.MAX_SAFE_INTEGER);
6527
+ const integer$2 = number().int().min(0).max(Number.MAX_SAFE_INTEGER);
6528
6528
  const version$2 = string().max(64).regex(/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/);
6529
6529
  const allocationRow = object({
6530
- day: integer$1.multipleOf(dayMs),
6530
+ day: integer$2.multipleOf(dayMs),
6531
6531
  version: version$2,
6532
6532
  policyVersion: string().min(1).max(64),
6533
6533
  modelId: string().min(1).max(512),
@@ -6554,12 +6554,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6554
6554
  highCost: boolean(),
6555
6555
  previous: boolean(),
6556
6556
  weight: number().positive().max(1.5),
6557
- opportunities: integer$1.min(1),
6557
+ opportunities: integer$2.min(1),
6558
6558
  expectedSelections: number().finite().nonnegative().max(Number.MAX_SAFE_INTEGER),
6559
- selections: integer$1
6559
+ selections: integer$2
6560
6560
  }).strict();
6561
6561
  const noFitRow = object({
6562
- day: integer$1.multipleOf(dayMs),
6562
+ day: integer$2.multipleOf(dayMs),
6563
6563
  version: version$2,
6564
6564
  policyVersion: string().min(1).max(64),
6565
6565
  targetCategory: _enum([
@@ -6580,22 +6580,111 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6580
6580
  "unknown"
6581
6581
  ]),
6582
6582
  assessmentSource: _enum(["local", "semantic"]),
6583
- decisions: integer$1.min(1)
6583
+ decisions: integer$2.min(1)
6584
6584
  }).strict();
6585
6585
  const AutoAllocationDiagnosticsSchema = object({
6586
6586
  status: _enum(["observed", "not-collected"]),
6587
6587
  rows: array(allocationRow).max(AUTO_ALLOCATION_DIAGNOSTIC_MAX_ROWS),
6588
6588
  noFitRows: array(noFitRow).max(AUTO_ALLOCATION_DIAGNOSTIC_MAX_ROWS),
6589
- observationStart: integer$1.nullable(),
6590
- observationEnd: integer$1.nullable(),
6589
+ observationStart: integer$2.nullable(),
6590
+ observationEnd: integer$2.nullable(),
6591
6591
  completeHistory: literal(false),
6592
6592
  rowsTruncated: boolean(),
6593
- dropped: integer$1,
6594
- expired: integer$1,
6595
- saturated: integer$1,
6596
- restarts: integer$1
6593
+ dropped: integer$2,
6594
+ expired: integer$2,
6595
+ saturated: integer$2,
6596
+ restarts: integer$2
6597
6597
  }).strict().refine((value) => JSON.stringify(value).length <= 15e5, "Auto allocation diagnostic capacity exceeded").refine((value) => value.rows.length + value.noFitRows.length <= AUTO_ALLOCATION_DIAGNOSTIC_MAX_ROWS, "Auto allocation row capacity exceeded").refine(({ observationStart, observationEnd }) => observationStart === null ? observationEnd === null : observationEnd !== null && observationEnd >= observationStart, "Auto allocation observation window is inconsistent");
6598
6598
  //#endregion
6599
+ //#region lib/types/request-diagnostics.js
6600
+ const integer$1 = number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
6601
+ const composition = discriminatedUnion("state", [object({
6602
+ state: literal("complete"),
6603
+ totalBytes: integer$1,
6604
+ conversationBytes: integer$1,
6605
+ toolSchemaBytes: integer$1,
6606
+ systemBytes: integer$1,
6607
+ otherBytes: integer$1,
6608
+ imageBlockBytes: integer$1,
6609
+ opaqueReplayBytes: integer$1,
6610
+ remainingConversationBytes: integer$1
6611
+ }).strict(), object({
6612
+ state: _enum([
6613
+ "unavailable",
6614
+ "size-limit",
6615
+ "work-limit",
6616
+ "invalid-json",
6617
+ "unsupported-shape"
6618
+ ]),
6619
+ totalBytes: integer$1.optional()
6620
+ }).strict()]);
6621
+ const upload = discriminatedUnion("state", [
6622
+ object({
6623
+ state: literal("observed"),
6624
+ bodyWrite: _enum(["observed", "not-observed"]),
6625
+ bodyWriteCompleteMs: integer$1.optional(),
6626
+ nativeResponseHeadersMs: integer$1.optional(),
6627
+ alpn: _enum([
6628
+ "h2",
6629
+ "http/1.1",
6630
+ "unavailable"
6631
+ ]),
6632
+ nodeWritableBufferBytes: integer$1.optional()
6633
+ }).strict(),
6634
+ object({ state: _enum(["unavailable", "work-limit"]) }).strict(),
6635
+ object({
6636
+ state: literal("ambiguous"),
6637
+ requestCount: integer$1
6638
+ }).strict()
6639
+ ]);
6640
+ const RequestDiagnosticsSchema = object({
6641
+ rows: array(object({
6642
+ streamId: string().uuid(),
6643
+ dispatchIndex: integer$1.min(1),
6644
+ version: string().max(64).regex(/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/),
6645
+ startedAt: integer$1,
6646
+ elapsedMs: integer$1,
6647
+ model: string().max(128).regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/),
6648
+ protocol: _enum([
6649
+ "openai-responses",
6650
+ "openai-completions",
6651
+ "anthropic-messages"
6652
+ ]),
6653
+ composition,
6654
+ encoding: _enum([
6655
+ "identity",
6656
+ "gzip",
6657
+ "unknown"
6658
+ ]),
6659
+ wireBytes: integer$1.optional(),
6660
+ upload: upload.optional(),
6661
+ responseHeadersMs: integer$1.optional(),
6662
+ httpStatus: integer$1.min(100).max(599).optional(),
6663
+ outcome: _enum([
6664
+ "http-error",
6665
+ "transport-error",
6666
+ "stream-done",
6667
+ "stream-error",
6668
+ "cancelled",
6669
+ "interrupted"
6670
+ ]),
6671
+ reason: _enum([
6672
+ "none",
6673
+ "unknown",
6674
+ "request-body-timeout",
6675
+ "caller-abort",
6676
+ "credential-changed",
6677
+ "disposed",
6678
+ "byte-idle-timeout",
6679
+ "signal-abort"
6680
+ ])
6681
+ }).strict()).max(128),
6682
+ dropped: integer$1,
6683
+ evicted: integer$1,
6684
+ pending: integer$1.max(128).optional(),
6685
+ interruptedOnReopen: integer$1.optional()
6686
+ }).strict();
6687
+ //#endregion
6599
6688
  //#region lib/types/diagnostics-types.js
6600
6689
  const DIAGNOSTICS_OPERATIONS = [
6601
6690
  "account-global-switch",
@@ -6703,6 +6792,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6703
6792
  updatedAt: integer,
6704
6793
  rows: array(DiagnosticsRowSchema).max(DIAGNOSTICS_MAX_ROWS),
6705
6794
  autoAllocation: AutoAllocationDiagnosticsSchema.optional(),
6795
+ requests: RequestDiagnosticsSchema.optional(),
6706
6796
  pending: array(DiagnosticsPendingSchema).max(128),
6707
6797
  dropped: integer,
6708
6798
  clientDropped: integer,
@@ -6714,6 +6804,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6714
6804
  const DiagnosticsViewSchema = object({
6715
6805
  enabled: boolean(),
6716
6806
  autoAllocationEnabled: boolean(),
6807
+ requestEnabled: boolean().optional(),
6717
6808
  state: _enum([
6718
6809
  "loading",
6719
6810
  "ready",
@@ -6814,6 +6905,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6814
6905
  codec: strictRemoteCodec("dsh-github-copilot#AutoAllocationDiagnosticsEnabled", boolean())
6815
6906
  }]
6816
6907
  },
6908
+ {
6909
+ method: "setRequestEnabled",
6910
+ parameters: [{
6911
+ name: "enabled",
6912
+ wire: "enabled",
6913
+ source: "json",
6914
+ codec: strictRemoteCodec("dsh-github-copilot#RequestDiagnosticsEnabled", boolean())
6915
+ }]
6916
+ },
6817
6917
  {
6818
6918
  method: "recordClient",
6819
6919
  parameters: [{
@@ -7074,7 +7174,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7074
7174
  };
7075
7175
  //#endregion
7076
7176
  //#region package.json
7077
- var version = "0.4.2-alpha.3";
7177
+ var version = "0.4.2-alpha.4";
7078
7178
  //#endregion
7079
7179
  //#region lib/types/diagnostics-client.js
7080
7180
  let owner;
@@ -7303,6 +7403,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7303
7403
  };
7304
7404
  }, [remote]);
7305
7405
  const rows = view?.snapshot.rows ?? [];
7406
+ const requests = view?.snapshot.requests;
7306
7407
  const auto = view?.snapshot.autoAllocation;
7307
7408
  const autoOpportunities = auto?.rows.reduce((sum, row) => sum + row.opportunities, 0) ?? 0;
7308
7409
  const autoExpected = auto?.rows.reduce((sum, row) => sum + row.expectedSelections, 0) ?? 0;
@@ -7427,7 +7528,46 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7427
7528
  } }, row.noFit ?? "—")))))) : null, auto?.status === "observed" && autoRows.length === 0 ? (0, react.createElement)("p", { style: { margin: 0 } }, "No retained strata in this snapshot; this does not mean there were no decisions.") : !auto ? (0, react.createElement)("p", { style: { margin: 0 } }, "Auto allocation aggregates are unavailable in this snapshot.") : view && auto.status !== "observed" && view.state !== "ready" ? (0, react.createElement)("p", { style: { margin: 0 } }, "Storage is not ready; retained Auto observation status is unknown.") : view && auto.status !== "observed" ? (0, react.createElement)("p", { style: { margin: 0 } }, "No retained observations yet.") : null, autoRows.length ? (0, react.createElement)("p", { style: {
7428
7529
  ...nativeCaptionStyle,
7429
7530
  margin: 0
7430
- } }, `${autoOpportunities} candidate opportunities · ${autoExpected.toFixed(3)} expected selections · ${autoSelections} actual selections · ${autoNoFit} no-fit decisions. Compare expected and selected counts only within matching cohorts; these are not execution, quality or billing evidence.`) : null), view && populations.length ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Account and compaction observations"), (0, react.createElement)("div", { style: {
7531
+ } }, `${autoOpportunities} candidate opportunities · ${autoExpected.toFixed(3)} expected selections · ${autoSelections} actual selections · ${autoNoFit} no-fit decisions. Compare expected and selected counts only within matching cohorts; these are not execution, quality or billing evidence.`) : null), view ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Physical request observations"), (0, react.createElement)("p", { style: { margin: 0 } }, requests ? `${requests.rows.length} retained requests · ${requests.pending ?? 0} sampled pending · ${requests.dropped} dropped · ${requests.evicted} expired/evicted · ${requests.interruptedOnReopen ?? 0} interrupted on reopen` : "No retained request observations. This does not establish zero failures or enabled collection."), (0, react.createElement)("p", { style: {
7532
+ ...nativeCaptionStyle,
7533
+ margin: 0
7534
+ } }, "Managed native adapter dispatches only. Local body-write completion is not supplier receipt. Stream-done is a native terminal observation, not tool execution or billing success. No Core retry count or Session/turn attribution is inferred."), requests?.rows.length ? (0, react.createElement)("div", { style: {
7535
+ overflowX: "auto",
7536
+ minWidth: 0
7537
+ } }, (0, react.createElement)("table", { style: {
7538
+ width: "100%",
7539
+ borderCollapse: "collapse",
7540
+ textAlign: "left",
7541
+ font: "inherit"
7542
+ } }, (0, react.createElement)("caption", { style: {
7543
+ ...nativeCaptionStyle,
7544
+ textAlign: "left",
7545
+ marginBottom: 8
7546
+ } }, "Latest retained physical requests"), (0, react.createElement)("thead", null, (0, react.createElement)("tr", null, ...[
7547
+ "Time (UTC)",
7548
+ "Model",
7549
+ "Outcome / reason",
7550
+ "HTTP",
7551
+ "JSON / wire bytes",
7552
+ "Headers / body-write ms"
7553
+ ].map((label) => (0, react.createElement)("th", {
7554
+ key: label,
7555
+ scope: "col",
7556
+ style: {
7557
+ padding: 6,
7558
+ font: "inherit",
7559
+ fontWeight: 500
7560
+ }
7561
+ }, label)))), (0, react.createElement)("tbody", null, ...requests.rows.slice().sort((left, right) => right.startedAt - left.startedAt).map((row, index) => (0, react.createElement)("tr", { key: `${row.streamId}/${row.dispatchIndex}/${index}` }, (0, react.createElement)("td", { style: {
7562
+ padding: 6,
7563
+ whiteSpace: "nowrap"
7564
+ } }, new Date(row.startedAt).toISOString()), (0, react.createElement)("td", { style: {
7565
+ padding: 6,
7566
+ overflowWrap: "anywhere"
7567
+ } }, row.model), (0, react.createElement)("td", { style: {
7568
+ padding: 6,
7569
+ overflowWrap: "anywhere"
7570
+ } }, `${row.outcome} / ${row.reason}`), (0, react.createElement)("td", { style: { padding: 6 } }, row.httpStatus ?? "—"), (0, react.createElement)("td", { style: { padding: 6 } }, `${row.composition.totalBytes ?? "unknown"} / ${row.wireBytes ?? "unknown"} (${row.encoding}; composition ${row.composition.state})`), (0, react.createElement)("td", { style: { padding: 6 } }, `${row.responseHeadersMs ?? "unknown"} / ${row.upload?.state === "observed" ? row.upload.bodyWriteCompleteMs ?? "unknown" : "unknown"}`)))))) : null) : null, view && populations.length ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Account and compaction observations"), (0, react.createElement)("div", { style: {
7431
7571
  overflowX: "auto",
7432
7572
  minWidth: 0
7433
7573
  } }, (0, react.createElement)("table", { style: {
@@ -7477,7 +7617,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7477
7617
  "revoked",
7478
7618
  "environment-fault",
7479
7619
  "unknown"
7480
- ], population)))))))) : null, view && !populations.length ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Account and compaction observations"), (0, react.createElement)("p", null, "No retained operation observations. This is not evidence of zero failures.")) : null, (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Collection controls"), (0, react.createElement)("p", {
7620
+ ], population)))))))) : null, view && !populations.length ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Account and compaction observations"), (0, react.createElement)("p", null, "No retained operation observations. This is not evidence of zero failures.")) : null, (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Collection controls"), (0, react.createElement)("p", { style: { margin: 0 } }, view?.requestEnabled === void 0 ? "Request observations unavailable in this snapshot." : `Request observations ${view.requestEnabled ? "enabled" : "paused"}. ${requests?.rows.length ?? 0} retained physical requests; ${requests?.dropped ?? 0} dropped; ${requests?.evicted ?? 0} expired/evicted.`), (0, react.createElement)("p", { style: {
7621
+ ...nativeCaptionStyle,
7622
+ margin: 0
7623
+ } }, "Separate opt-in: retain at most 128 content-free physical requests for 24 hours. Includes model, payload byte counts, transport timing, HTTP status and terminal categories, not bodies, credentials, URLs, headers or Session/turn IDs. Random stream IDs correlate native SDK dispatches only; dispatch index is not a Core retry count."), (0, react.createElement)("p", {
7481
7624
  role: "status",
7482
7625
  style: { margin: 0 }
7483
7626
  }, !remote ? "Diagnostics controls are unavailable in this connection." : !view ? busy ? "Reading local collection status…" : "Collection status is unknown." : `${view.enabled ? view.state === "ready" ? "Local collection enabled" : "Local collection configured on; storage not ready" : "Local collection paused"} · Storage ${view.state}` + (view.diagnostic === "none" ? "" : ` · ${view.diagnostic}`) + (view.dirty ? " · Not all observations are persisted yet" : "")), failed ? (0, react.createElement)("p", {
@@ -7496,14 +7639,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7496
7639
  run((value) => value.setEnabled(!view?.enabled));
7497
7640
  }, !remote || !view || !view.enabled && view.state !== "ready"), control(view?.autoAllocationEnabled ? "Pause Auto allocation observation" : "Enable Auto allocation observation", () => {
7498
7641
  run((value) => value.setAutoAllocationEnabled(!view?.autoAllocationEnabled));
7499
- }, !remote || !view || !view.autoAllocationEnabled && view.state !== "ready"), control("Clear local aggregates", () => setConfirmClear(true), !remote || !view || view.state !== "ready")), confirmClear ? (0, react.createElement)("div", {
7642
+ }, !remote || !view || !view.autoAllocationEnabled && view.state !== "ready"), control(view?.requestEnabled ? "Pause request observations" : "Enable request observations", () => {
7643
+ run((value) => value.setRequestEnabled(!view?.requestEnabled));
7644
+ }, !remote || !view || view.requestEnabled === void 0 || !view.requestEnabled && view.state !== "ready"), control("Clear local diagnostics", () => setConfirmClear(true), !remote || !view || view.state !== "ready")), confirmClear ? (0, react.createElement)("div", {
7500
7645
  role: "group",
7501
7646
  "aria-label": "Confirm clearing local diagnostics"
7502
- }, (0, react.createElement)("p", null, "Delete collected aggregates only? Both collection controls keep their current enabled/paused settings. This does not clear account settings or conversation history."), control("Confirm clear", () => {
7647
+ }, (0, react.createElement)("p", null, "Delete collected aggregates and request observations? Collection controls keep their current enabled/paused settings. This does not clear account settings or conversation history."), control("Confirm clear", () => {
7503
7648
  setConfirmClear(false);
7504
7649
  run((value) => value.clear());
7505
- }), control("Cancel", () => setConfirmClear(false))) : null), view ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Data scope, limits and JSON"), (0, react.createElement)("p", { style: { margin: 0 } }, "Observations stay in this profile for 14 days. Auto rows contain policy/model/cohort dimensions and aggregate counts only; no Session or turn IDs, conversation content, upload or automatic tuning. Expired counts are strata, not removed decisions."), (0, react.createElement)("p", { style: { margin: 0 } }, `Host pending: ${view.snapshot.pending.reduce((sum, row) => sum + row.count, 0)}. Host dropped: ${view.snapshot.dropped}; Client dropped: ${view.snapshot.clientDropped}; Client unconfirmed: ${view.snapshot.clientUnconfirmed}; evicted/expired: ${view.snapshot.evicted}; saturated: ${view.snapshot.saturated}. At most 4,096 aggregate rows and 2 MiB. Client pending samples are periodic observations, not a live outstanding count. Other settled includes policy rejection, revocation, environment faults and unknown/no-checkpoint results. Stock/custom-engine physical summaries, native recovery opt-out, OAuth, quota and unwrapped RPCs are not covered.`), (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Review aggregate-only JSON"), (0, react.createElement)("p", { style: { margin: 0 } }, "Review before sharing. This includes build versions, hour windows and fixed diagnostic counts, never account or Session identifiers."), control("Prepare current JSON", () => setExported(true)), exported ? (0, react.createElement)("textarea", {
7506
- "aria-label": "Local diagnostics aggregate JSON",
7650
+ }), control("Cancel", () => setConfirmClear(false))) : null), view ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Data scope, limits and JSON"), (0, react.createElement)("p", { style: { margin: 0 } }, "Aggregates stay in this profile for 14 days; request observations for 24 hours. Auto rows contain policy/model/cohort dimensions and aggregate counts only; no Session or turn IDs, conversation content, upload or automatic tuning. Expired counts are strata, not removed decisions."), (0, react.createElement)("p", { style: { margin: 0 } }, `Host pending: ${view.snapshot.pending.reduce((sum, row) => sum + row.count, 0)}. Host dropped: ${view.snapshot.dropped}; Client dropped: ${view.snapshot.clientDropped}; Client unconfirmed: ${view.snapshot.clientUnconfirmed}; evicted/expired: ${view.snapshot.evicted}; saturated: ${view.snapshot.saturated}. At most 4,096 aggregate rows and 2 MiB. Client pending samples are periodic observations, not a live outstanding count. Other settled includes policy rejection, revocation, environment faults and unknown/no-checkpoint results. Stock/custom-engine physical summaries, native recovery opt-out, OAuth, quota and unwrapped RPCs are not covered.`), (0, react.createElement)("details", null, (0, react.createElement)("summary", null, requests ? "Review local diagnostics JSON" : "Review aggregate-only JSON"), (0, react.createElement)("p", { style: { margin: 0 } }, "Review before sharing. This includes build versions and diagnostic counts; when request observations were enabled it also includes request times, model IDs, byte counts and random stream IDs, never account or Session identifiers. Client timing does not prove supplier receipt or fault ownership."), control("Prepare current JSON", () => setExported(true)), exported ? (0, react.createElement)("textarea", {
7651
+ "aria-label": requests ? "Local diagnostics JSON" : "Local diagnostics aggregate JSON",
7507
7652
  readOnly: true,
7508
7653
  value: JSON.stringify(view, null, 2),
7509
7654
  rows: 12,