dsh-github-copilot 0.4.0-alpha.96 → 0.4.0-alpha.98
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 +3 -1
- package/CHANGELOG.md +12 -0
- package/README.md +10 -6
- package/README.zh.md +10 -6
- package/deployment-baseline.json +22 -1
- package/docs/automatic-model-routing.md +13 -2
- package/docs/copilot-compaction.md +4 -0
- package/lib/index.js +328 -121
- package/lib/types/auto-model-intent.d.ts +36 -0
- package/lib/types/request-body-evidence.d.ts +2 -0
- package/lib/types/request-upload-evidence.d.ts +23 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -73,7 +73,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
|
|
|
73
73
|
- `src/wire.ts`, `src/wire-anthropic.ts`: inline hosted-search streaming.
|
|
74
74
|
- `src/traditional-search.ts`: `github-copilot-hosted` `ctx.web` provider.
|
|
75
75
|
- `src/serialize.ts`, `src/sse.ts`, `src/failure.ts`: protocol conversion and bounded error handling.
|
|
76
|
-
- `src/response-error-body.ts`, `src/request-body-timeout.ts`: bounded clone-only HTTP error evidence and safe managed upload-timeout guidance.
|
|
76
|
+
- `src/response-error-body.ts`, `src/request-body-timeout.ts`, `src/request-upload-evidence.ts`: bounded clone-only HTTP error evidence and safe managed upload-timeout guidance. Request-scoped public Node diagnostic events supply numeric local body-write/header/ALPN evidence only after an exact verified `408/user_request_timeout`; absent events, multiple native requests and work limits stay explicit. Always dispose subscriptions when Fetch settles, without changing its arguments, Response/errors, dispatcher, proxy or retry owner. Local body-write completion is not upload duration, kernel ACK, supplier receipt or execution; its absence does not prove incomplete upload. Native failure classification/retry metadata stay unchanged; final JSON bytes are not tokens or a payload limit. Never infer overflow, auto-compact, trim history, switch models or add retries from a 408.
|
|
77
77
|
- `src/request-body-evidence.ts`: verified-408-only, bounded numeric original-JSON span accounting through the existing fetch hook. Conversation/tool definitions/top-level system/residual partition total bytes; structural image and opaque replay spans are disjoint conversation subsets, never decoded contents. Unknown/limited evidence stays explicit. Fetch-to-header time excludes clone inspection and is not upload duration. No success-path analysis, retained body, automatic mitigation or supplier-limit claim.
|
|
78
78
|
- `src/copilot-stream-liveness.ts`: request-local HTTP/SSE byte-idle observation, paired with the public native adapter's bounded assistant-chunk deadline. Default five-minute byte idle and ten-minute semantic silence; no fake assistant output, private watchdog access, new retry or Core patch. Consumer think time is excluded; explicit WebSocket/auto stays native-only. `chatStreamLiveness: false` restores native-only timing. `chatMaxRequestImageBytes` retains Core's 20 MiB default; smaller explicit settings authorize only native image offload, not hidden history trimming or a guessed supplier limit. Synthetic heartbeat evidence is not production heartbeat proof.
|
|
79
79
|
- `tests/`: unit and integration evidence; mirror the source area being changed.
|
|
@@ -285,6 +285,8 @@ Capture the traced `remote.githubCopilot` namespace once per account UI registra
|
|
|
285
285
|
|
|
286
286
|
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`.
|
|
287
287
|
|
|
288
|
+
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.
|
|
289
|
+
|
|
288
290
|
1. Identify the owning seam using `agent-contract.json`; do not duplicate an upstream owner.
|
|
289
291
|
2. Add or update focused tests before changing deployment claims.
|
|
290
292
|
3. Update both READMEs when user behavior, setup, migration, or boundaries change.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.98 (prepared)
|
|
4
|
+
|
|
5
|
+
- Retain owner-explicit Auto intent through a strict public Session projection when a native virtual request header consumes pending selection (#293).
|
|
6
|
+
- Preserve intent across concrete execution headers and cold replay; later fixed/other-provider choices replace it for future turns. Admitted Auto requests keep their route through late picker changes.
|
|
7
|
+
- Ignore copied fork/child prefixes as owner-explicit evidence; keep native pending/parent-follow precedence and named missing/invalid diagnostics. No Core changes, new durable events, settings/history rewrite or fabricated historical reasons.
|
|
8
|
+
|
|
9
|
+
## 0.4.0-alpha.97 (prepared)
|
|
10
|
+
|
|
11
|
+
- Add request-scoped public native body-write/header timing and optional TLS ALPN/Node buffer observations to exact verified Copilot request-body timeout diagnostics (#291).
|
|
12
|
+
- Keep unavailable, ambiguous and bounded-work evidence explicit; dispose subscriptions when Fetch settles. Local submission is not upload duration, kernel ACK or supplier receipt.
|
|
13
|
+
- Preserve Fetch arguments, Response/errors, payload/replay/history, connection/proxy/dispatcher and native retry behavior. This supplies future failure evidence, not a demonstrated supplier 408 cure.
|
|
14
|
+
|
|
3
15
|
## 0.4.0-alpha.96 (prepared)
|
|
4
16
|
|
|
5
17
|
- Surface verified replay-recovery evidence automatically when an eligible Session opens or its native turn settles; ordinary conversations remain uncluttered (#289).
|
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 and one Host-owned OAuth account; it does not patch Core or maintain a second model catalog.
|
|
10
10
|
|
|
11
|
-
**Source candidate: `0.4.0-alpha.
|
|
11
|
+
**Source candidate: `0.4.0-alpha.98` (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.
|
|
12
12
|
|
|
13
13
|
## What you can do
|
|
14
14
|
|
|
@@ -40,10 +40,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
40
40
|
For a **standalone named profile**:
|
|
41
41
|
|
|
42
42
|
```sh
|
|
43
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
43
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.98/dsh-github-copilot-0.4.0-alpha.98.tgz
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.
|
|
46
|
+
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.98` 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.
|
|
47
47
|
|
|
48
48
|
After an approved reload/restart:
|
|
49
49
|
|
|
@@ -76,6 +76,8 @@ The reply's selection disclosure shows captured reasons and optional content-fre
|
|
|
76
76
|
|
|
77
77
|
See [task assessment](./docs/auto-task-routing.md) and [routing contracts, exclusions and history recovery](./docs/automatic-model-routing.md).
|
|
78
78
|
|
|
79
|
+
Explicit Auto intent survives native pending-selection consumption and cold restore through a plugin-owned projection of existing selection events. Later explicit fixed choices still win for future turns; admitted turns keep their route. This does not backfill historical selection reasons or turn unknown evidence into guessed Auto.
|
|
80
|
+
|
|
79
81
|
## Subagents and search
|
|
80
82
|
|
|
81
83
|

|
|
@@ -102,6 +104,8 @@ For continuing steps with a committed managed route and no pending model change,
|
|
|
102
104
|
|
|
103
105
|
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.
|
|
104
106
|
|
|
107
|
+
The same failure can include request-scoped native local body-write/header milestones, negotiated TLS ALPN and a Node writable-buffer count. These are local submission observations, not kernel ACK or supplier receipt; missing events do not prove an incomplete upload. Unsupported or ambiguous transports report unavailable evidence. No request contents are logged and no connection, proxy, dispatcher or retry is changed.
|
|
108
|
+
|
|
105
109
|
HTTP/SSE liveness separates five-minute byte idle from bounded ten-minute assistant-output silence by default. Consumer work is excluded; WebSocket/explicit `auto` stays native-only. This does not cure supplier HTTP 408s. Images are admitted against actual native-projected MIME evidence; the plugin does not own conversion or infer format support from filenames. [Image compatibility](./docs/image-input-compatibility.md).
|
|
106
110
|
|
|
107
111
|
## Settings and troubleshooting
|
|
@@ -175,14 +179,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
175
179
|
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.
|
|
176
180
|
|
|
177
181
|
```sh
|
|
178
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
179
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
182
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.98/dsh-github-copilot-0.4.0-alpha.98.tgz
|
|
183
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.98/SHA256SUMS
|
|
180
184
|
sha256sum --check SHA256SUMS
|
|
181
185
|
```
|
|
182
186
|
|
|
183
187
|
```powershell
|
|
184
188
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
185
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
189
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.98.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
186
190
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
187
191
|
```
|
|
188
192
|
|
package/README.zh.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
为 DSH 提供 GitHub Copilot 账号模型发现、上下文 Auto 选模和 hosted search。插件复用 DSH 公开的原生适配器与一个 Host 端 OAuth 账号,不修改 Core,也不维护第二套模型目录。
|
|
10
10
|
|
|
11
|
-
**源码候选版本:`0.4.0-alpha.
|
|
11
|
+
**源码候选版本:`0.4.0-alpha.98`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
|
|
12
12
|
|
|
13
13
|
## 你可以做什么
|
|
14
14
|
|
|
@@ -40,10 +40,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
40
40
|
**独立具名 profile**:
|
|
41
41
|
|
|
42
42
|
```sh
|
|
43
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
43
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.98/dsh-github-copilot-0.4.0-alpha.98.tgz
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.
|
|
46
|
+
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.98`。官方 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 或删除配置。
|
|
47
47
|
|
|
48
48
|
经批准 reload/restart 后:
|
|
49
49
|
|
|
@@ -76,6 +76,8 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
76
76
|
|
|
77
77
|
详见[任务判断](./docs/auto-task-routing.md)与[路由合同、排除和历史恢复](./docs/automatic-model-routing.md)。
|
|
78
78
|
|
|
79
|
+
显式 Auto 意图通过插件对现有选择事件的独立投影保留,不因原生 pending 被消费或冷恢复而丢失。后续显式固定选择仍从未来轮次生效,已准入轮次保持原路由。不会补写历史选择理由,也不会把未知证据猜成 Auto。
|
|
80
|
+
|
|
79
81
|
## 子代理与搜索
|
|
80
82
|
|
|
81
83
|

|
|
@@ -102,6 +104,8 @@ Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallba
|
|
|
102
104
|
|
|
103
105
|
严格核验的 `408 / user_request_timeout`诊断给出有界请求构成和可观察耗时,不证明供应方 payload 上限或根因。图片统计包括原生 Responses 工具输出中的图片;旧的已存诊断可能把这些图片算作剩余历史。字节不是 tokens,耗时不是上传时长;小型无图请求也可能超时。参见[预算与超时指导](./docs/copilot-compaction.md),不要自动裁剪历史、禁用 proof、切换模型或增加重试。
|
|
104
106
|
|
|
107
|
+
同一失败还可包含请求级原生客户端的本地请求体写入/响应头里程碑、协商出的 TLS ALPN 与 Node 写缓冲字节数。这些只是本地提交观测,不是内核 ACK 或供应方接收证明;缺失事件不代表上传未完成。不支持或存在歧义的传输会明确报告证据不可用。不记录请求内容,也不改变连接、代理、dispatcher 或重试。
|
|
108
|
+
|
|
105
109
|
HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手输出静默,排除消费者工作;WebSocket/显式 `auto`仍仅使用原生路径。这不修复供应方 HTTP 408。图片按原生实际投影 MIME 证据准入;插件不负责转换,也不按文件名猜格式支持。[图片兼容](./docs/image-input-compatibility.md)。
|
|
106
110
|
|
|
107
111
|
## 设置与排障
|
|
@@ -175,14 +179,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
175
179
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
176
180
|
|
|
177
181
|
```sh
|
|
178
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
179
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
182
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.98/dsh-github-copilot-0.4.0-alpha.98.tgz
|
|
183
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.98/SHA256SUMS
|
|
180
184
|
sha256sum --check SHA256SUMS
|
|
181
185
|
```
|
|
182
186
|
|
|
183
187
|
```powershell
|
|
184
188
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
185
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
189
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.98.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
186
190
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
187
191
|
```
|
|
188
192
|
|
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.98"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -586,6 +586,7 @@
|
|
|
586
586
|
{"file": "src/auto-assessment-evidence.ts", "marker": "SemanticAssessmentEvidenceSchema"},
|
|
587
587
|
{"file": "src/request-body-timeout-marker.ts", "marker": "COPILOT_REQUEST_BODY_TIMEOUT"},
|
|
588
588
|
{"file": "src/request-body-evidence.ts", "marker": "REQUEST_BODY_EVIDENCE_LIMITS"},
|
|
589
|
+
{"file": "src/request-upload-evidence.ts", "marker": "createRequestUploadObserver"},
|
|
589
590
|
{"file": "src/copilot-stream-liveness.ts", "marker": "COPILOT_STREAM_IDLE_TIMEOUT"},
|
|
590
591
|
{"file": "src/preview-route.ts", "marker": "Math.min(idle * 2, 2_147_483_647)"},
|
|
591
592
|
{"file": "src/response-error-body.ts", "marker": "readResponseErrorJson"},
|
|
@@ -605,6 +606,9 @@
|
|
|
605
606
|
{"file": "tests/preview-route.spec.ts", "name": "enriches only a verified 408 while preserving native failure classification and retry ownership"},
|
|
606
607
|
{"file": "tests/preview-provider.spec.ts", "name": "observes verified %s timeout without changing bytes, Response, native retries or credential ownership"},
|
|
607
608
|
{"file": "tests/request-body-timeout.spec.ts", "name": "bounds stalled response observation and gives cancellation priority"},
|
|
609
|
+
{"file": "tests/request-upload-evidence.spec.ts", "name": "observes real Node Fetch without changing body, signal, Response, or installing a dispatcher"},
|
|
610
|
+
{"file": "tests/request-upload-evidence.spec.ts", "name": "keeps simultaneous scopes independent and ignores foreign broadcasts"},
|
|
611
|
+
{"file": "tests/preview-provider.spec.ts", "name": "records real local Fetch stages on a verified native timeout and disposes the observer on settlement"},
|
|
608
612
|
{"file": "tests/auto-task-assessment.spec.ts", "name": "captures bounded phase evidence for a timed-out partial result without treating it as a validated task"},
|
|
609
613
|
{"file": "tests/auto-task-evidence.spec.ts", "name": "captures monotonic auxiliary phases without text, accounting or late mutation"},
|
|
610
614
|
{"file": "tests/request-body-evidence.spec.ts", "name": "measures a nine MiB native-style inline image without exposing or decoding it"},
|
|
@@ -1118,6 +1122,23 @@
|
|
|
1118
1122
|
{"file": "tests/client-no-model-roles.spec.ts", "name": "does not resurrect a role entry when a retained legacy Remote arrives later"}
|
|
1119
1123
|
]
|
|
1120
1124
|
},
|
|
1125
|
+
{
|
|
1126
|
+
"id": "managed-copilot-auto-intent-continuity",
|
|
1127
|
+
"required": true,
|
|
1128
|
+
"sourceMarkers": [
|
|
1129
|
+
{"file": "src/auto-model-intent.ts", "marker": "githubCopilotAutoModelIntent"},
|
|
1130
|
+
{"file": "src/auto-model-intent.ts", "marker": "state.inherited"},
|
|
1131
|
+
{"file": "src/auto-model-host.ts", "marker": "COPILOT_AUTO_INTENT_UNAVAILABLE"},
|
|
1132
|
+
{"file": "src/auto-model-host.ts", "marker": "removeIntentProjection"},
|
|
1133
|
+
{"file": "docs/automatic-model-routing.md", "marker": "Cold refolding restores intent"}
|
|
1134
|
+
],
|
|
1135
|
+
"tests": [
|
|
1136
|
+
{"file": "tests/auto-model-intent.spec.ts", "name": "retains explicit intent across virtual and concrete execution headers and cold replay"},
|
|
1137
|
+
{"file": "tests/auto-model-intent.spec.ts", "name": "does not infer intent from execution or copied fork/child prefixes"},
|
|
1138
|
+
{"file": "tests/auto-model-host.spec.ts", "name": "diagnoses unavailable continuity evidence ($error) without blocking a new explicit fixed choice"},
|
|
1139
|
+
{"file": "tests/fixtures/session-context-core.fixture.ts", "name": "retains explicit Auto after native virtual-header consumption without relabeling prior turns"}
|
|
1140
|
+
]
|
|
1141
|
+
},
|
|
1121
1142
|
{
|
|
1122
1143
|
"id": "managed-copilot-auto-model-routing",
|
|
1123
1144
|
"required": true,
|
|
@@ -17,8 +17,19 @@ turn can choose differently. Transport, replay, native Usage and billing retain
|
|
|
17
17
|
the actual model identity. Auto never crosses providers/accounts or changes an
|
|
18
18
|
explicit real-model selection.
|
|
19
19
|
|
|
20
|
-
The virtual preference remains the Session's pending selection while actual
|
|
21
|
-
request headers record real models.
|
|
20
|
+
The virtual preference normally remains the Session's pending selection while actual
|
|
21
|
+
request headers record real models. A strict plugin-owned public Session projection
|
|
22
|
+
also retains the latest owner-explicit native `model/selection`: if a virtual
|
|
23
|
+
request header consumes native pending, later concrete headers cannot erase that
|
|
24
|
+
Auto intent. Cold refolding restores intent, not old decisions or reasons.
|
|
25
|
+
Copied fork/child prefixes alone do not establish an owner-explicit choice;
|
|
26
|
+
native pending and the existing parent-following rules remain independent.
|
|
27
|
+
Missing or malformed continuity evidence produces a named diagnostic instead of
|
|
28
|
+
guessing Auto from a real model. A new explicit fixed or other-provider selection
|
|
29
|
+
replaces intent for future turns, even after its native pending is consumed.
|
|
30
|
+
Already admitted Auto turns retain their real route through late picker changes.
|
|
31
|
+
This projection neither writes history/settings nor changes native projection ownership.
|
|
32
|
+
For an otherwise unselected Session that
|
|
22
33
|
inherits default Auto, the first request persists the exact virtual
|
|
23
34
|
`model/selection` intent. A later explicit selection wins. Existing fixed
|
|
24
35
|
Sessions are not converted because the global default changes.
|
|
@@ -77,6 +77,10 @@ HTTP `408 / user_request_timeout` is separate from input-budget overflow. For th
|
|
|
77
77
|
|
|
78
78
|
For [#263](https://github.com/cloga/dsh-github-copilot/issues/263), the same public final-body fetch hook additionally captures a monotonic fetch-invocation-to-response-header duration, before clone observation. This is round-trip latency, not measured upload progress, throughput or time spent reading the body. Only a verified exact error triggers numeric composition analysis; successful requests are not analyzed or retained.
|
|
79
79
|
|
|
80
|
+
For #291, request-scoped public Node/Undici diagnostic channels also observe local body-write completion and native response-header timing, negotiated TLS ALPN when exposed, and a public Node writable-buffer count at body-write completion. Exactly one matching native request is required; no matching event, multiple requests (such as redirects), and more than eight request identities yield explicit unavailable, ambiguous or work-limited evidence, never combined partial timings. H2 connection evidence does not depend on H1-only header-write events; reused H2 sockets or custom transports may leave ALPN unavailable. Subscriptions stop when Fetch settles, including errors, before bounded response-clone analysis. Only an exact verified timeout emits these numeric observations; no request fields, headers, URLs, content, replay or credentials are retained or logged. The original Fetch arguments, signal, Response/error, dispatcher, proxy, connections and retries remain native-owned.
|
|
81
|
+
|
|
82
|
+
Local `bodySent` means the client reported body-write completion, **not** measured upload duration, kernel acknowledgement, supplier receipt or model execution. No completion event is not proof that upload was incomplete. A zero Node writable buffer is likewise not proof of remote receipt. This can correlate later real failures without changing their classification, but does not establish a supplier cause or cure recurring 408s; synthetic healthy requests are not live failure acceptance.
|
|
83
|
+
|
|
80
84
|
Original serialized value spans partition total bytes into `input`/`messages`, tool definitions, protocol-owned top-level `instructions`/`system` and residual keys/framing. Within conversation only, supported structural image blocks and opaque replay string spans form disjoint subsets; the rest includes text/tool history, framing and unknown representations. Completions system/developer messages stay in conversation. Image URLs and file references are counted as wire blocks, not fetched/decoded file sizes. Responses encrypted content and Anthropic signature/redacted data are counted without interpreting or decrypting replay; no raw contents, IDs, hashes or credentials are reported.
|
|
81
85
|
|
|
82
86
|
Responses tool pictures are also image blocks: the native SDK serializes them under `function_call_output.output[]`, separately from ordinary message `content[]`. Older plugin diagnostics incorrectly classified those spans as remaining history, so an old report of zero image bytes does not establish an image-free request. The corrected diagnostic applies only to newly observed failures; stored failures and history are not rewritten. Unknown output arrays remain residual, and the fix changes neither total bytes nor native image admission, offload budgets, replay or transport.
|