dsh-github-copilot 0.4.0-alpha.87 → 0.4.0-alpha.91
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 -0
- package/CHANGELOG.md +12 -0
- package/README.md +109 -406
- package/README.zh.md +109 -417
- package/deployment-baseline.json +8 -1
- package/docs/agent-readiness.md +5 -0
- package/docs/auto-task-routing.md +79 -2
- package/docs/automatic-model-routing.md +168 -379
- package/docs/copilot-compaction.md +8 -0
- package/docs/copilot-usage.md +7 -9
- package/docs/dual-model.md +60 -46
- package/docs/image-input-compatibility.md +50 -79
- package/docs/images/copilot-model-preferences.png +0 -0
- package/docs/images/copilot-search-routing.png +0 -0
- package/docs/model-compatibility-acceptance.md +41 -0
- package/docs/npm-distribution.md +129 -178
- package/docs/official-first-016-alpha2.md +4 -0
- package/docs/official-first-020-rc1.md +4 -0
- package/docs/session-search-routing.md +123 -65
- package/docs/single-route-migration.md +112 -97
- package/lib/client.js +71 -17
- package/lib/client.js.map +1 -1
- package/lib/index.js +243 -45
- package/lib/remote.js +40 -1
- package/lib/types/auto-assessment-evidence.d.ts +46 -0
- package/lib/types/auto-model-host.d.ts +2 -2
- package/lib/types/auto-selection-explanation.d.ts +1 -0
- package/lib/types/auto-task-assessment.d.ts +5 -3
- package/lib/types/auto-task-classifier.d.ts +3 -1
- package/lib/types/pre-step-pressure.d.ts +8 -0
- package/lib/types/turn-selection.d.ts +26 -1
- package/package.json +1 -1
|
@@ -28,6 +28,14 @@ The pinned SDK already has its own context-dependent output clamp. This plugin p
|
|
|
28
28
|
|
|
29
29
|
## Earlier pressure and transaction ownership
|
|
30
30
|
|
|
31
|
+
For [#280](https://github.com/cloga/dsh-github-copilot/issues/280), a public `agent/pre-step` listener additionally prevents known continuing-step pressure before Core appends `step/start`. It awaits downstream decisions, delegates rejection/cancellation, and requires a committed plugin-owned managed route, no model-selection notice, and a readable native `modelSelection` projection with `pending: null`. First steps and unknown/pending selections delegate: a prior request header is not proof of the next selected route.
|
|
32
|
+
|
|
33
|
+
The account callback supplies only a current capacity threshold; an empty message array used for this lookup is not an input estimate. The public native token meter measures the existing surface. Above that threshold, the initiating Agent's currently bound engine runs one `compactIfNeeded(agent, 'context-overflow', signal)` transaction, respecting disabled auto and the effective zero/invalid overflow policy. Native failures and cancellation propagate before model-attempt admission; a null/no-progress result delegates to the retained final protections. The next native request is built from the replacement surface. No retry counter, history, usage sample or selected model is rewritten.
|
|
34
|
+
|
|
35
|
+
This is **partial prevention**, not general accounting repair. In the unchanged rc.2 synthetic AgentLoop fixture, the existing post-start pressure refusal creates an unsampled attempt and the strict native turn aggregate is unavailable, even after successful recovery. With pre-step reduction, the same two real model steps retain their complete native total without that attempt. Native turn-tail matches events by their recorded turn; compaction replacements for an earlier turn are not samples of the current turn. No samples are suppressed to produce the total.
|
|
36
|
+
|
|
37
|
+
Cold/first-step routes, pending model changes, later system/tool-prefix growth, unavailable evidence, indivisible oversized units and final converted hard-admission errors can still produce missing native turn Usage. Already-recorded totals remain unchanged. The plugin does not fabricate zero usage, display partial sums as full totals, or reinterpret transport failures as compaction pressure.
|
|
38
|
+
|
|
31
39
|
The public `llm/stream` listener sees a committed, frozen loop request. It requires:
|
|
32
40
|
|
|
33
41
|
- The exact plugin-owned managed route and an ordinary marked agent-loop call, not an auxiliary purpose.
|
package/docs/copilot-usage.md
CHANGED
|
@@ -86,15 +86,13 @@ The internal client observes per-turn `copilot_usage.total_nano_aiu`, but existe
|
|
|
86
86
|
|
|
87
87
|
Synthetic tests cover parsing, lifecycle, failure states, strict transport and UI. They do not establish production quota permissions, billing latency, live OAuth/model transport, installed Desktop bytes or loaded plugin state. No real account calls are made merely to generate test evidence.
|
|
88
88
|
|
|
89
|
-
## Session
|
|
89
|
+
## Current Session and responsive presentation
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
## Responsive statistics presentation (alpha.35)
|
|
91
|
+
The control uses public `useSession(selector)` for only the current open,
|
|
92
|
+
non-removed Session, with public `useProjection('modelSelection')`. Acceptance
|
|
93
|
+
must include positive rendering on canonical and managed routes, reactive
|
|
94
|
+
provider/Session changes and disposal. A registered or hidden signed-out entry
|
|
95
|
+
alone proves neither rendering nor live account permission.
|
|
98
96
|
|
|
99
97
|
The unavailable Session credits section is omitted rather than permanently displaying a placeholder. Reset metadata is optional and independent from validated quota amounts: missing, malformed, zero or elapsed values are ignored. Select a supplier-reported next reset later than the snapshot observation, preferring the snapshot timestamp before valid UTC account, account or limited-user dates; never invent the next billing date. Invalid optional date metadata does not discard otherwise valid account amounts. The Client also hides reset rows without a known observation time or a later reset.
|
|
100
98
|
|
|
@@ -102,7 +100,7 @@ The compact control uses the native secondary font-size and line-height tokens,
|
|
|
102
100
|
|
|
103
101
|
The host owns placement of the existing public dock entries. On a shared-row host, the usage entry follows the native statistics group and can appear immediately after Cache hit; on an older stacked host, it retains that host's placement. The plugin neither relocates native DOM nor overrides native statistics styles, and it does not require a modified Core to activate. A separately authorized Desktop Client layout task owns wrapping and actual assembled native-statistics geometry checks.
|
|
104
102
|
|
|
105
|
-
Official
|
|
103
|
+
Official rc.2 retains the shared dock row in [`InputBar.module.css`](https://github.com/deepseek-ai/deepseek-harness/blob/639ed015397290b3745d163aafe02ffee4aa3f84/packages/client/ui-conversation/src/client/skeleton/InputBar.module.css) and intrinsic native statistics group in [`StatsPills.module.css`](https://github.com/deepseek-ai/deepseek-harness/blob/639ed015397290b3745d163aafe02ffee4aa3f84/packages/client/ui-chat/src/client/chat/StatsPills.module.css). Reuse that official presentation primitive rather than inventing another statistics Slot or copying its token calculations. Wide/narrow layout and popup acceptance must use actual native components alongside the released Client; standalone plugin tests or a synthetic sibling label are not proof of native Cache hit alignment.
|
|
106
104
|
|
|
107
105
|
## Official-first retirement
|
|
108
106
|
|
package/docs/dual-model.md
CHANGED
|
@@ -1,52 +1,66 @@
|
|
|
1
1
|
# Retired Copilot model roles
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
- Policy restrictions are workflow controls, not a
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
3
|
+
Compatibility guide for existing planner/executor histories. **Model roles**
|
|
4
|
+
and dedicated-root creation are retired; they are not current setup features.
|
|
5
|
+
Use ordinary Sessions and native subagents for new work. The separate
|
|
6
|
+
[Follow parent model](./parent-model-follow.md) policy supports ordinary children
|
|
7
|
+
without restoring role UI or depending on upstream native rules/settings UI.
|
|
8
|
+
|
|
9
|
+
## Existing histories
|
|
10
|
+
|
|
11
|
+
- Saved `github-copilot-dual-model` settings stay intact but are not writable
|
|
12
|
+
through the retired role Remote. No migration/deletion runs on activation.
|
|
13
|
+
- Existing dedicated roots/children retain captured policy, routes and history.
|
|
14
|
+
Their `copilot_execute` tool is compatibility for existing work, not a way to
|
|
15
|
+
create new roots or enroll ordinary Sessions.
|
|
16
|
+
- Policy restrictions are workflow controls, not a shell-code sandbox.
|
|
17
|
+
Uninstalling the plugin is not a supported conversion to ordinary Sessions.
|
|
18
|
+
- Do not use the ordinary picker to change a dedicated role:
|
|
19
|
+
`DUAL_MODEL_SELECTION_LOCKED` remains. Start an ordinary Session rather than
|
|
20
|
+
stripping policy from history, replaying work or substituting another model.
|
|
21
|
+
|
|
22
|
+
## Legacy Remotes
|
|
23
|
+
|
|
24
|
+
Three strict descriptors retain their identities:
|
|
25
|
+
|
|
26
|
+
| Method | Current behavior |
|
|
27
|
+
|---|---|
|
|
28
|
+
| `view()` | Read-only `supported: false`, `writable: false`, `DUAL_MODEL_RETIRED`; no account discovery |
|
|
29
|
+
| `save()` | Validates input, then rejects `DUAL_MODEL_RETIRED`; no write |
|
|
30
|
+
| `create()` | Recovers only an already-created root matching original UUID, workspace and revision |
|
|
31
|
+
|
|
32
|
+
Conflicting/uncertain recovery is not evidence of absence or permission to
|
|
33
|
+
retry with another UUID. Exact recovery can complete the original attachment;
|
|
34
|
+
it creates no new root and is not automatic browser replay.
|
|
35
|
+
|
|
36
|
+
Native `subagent/descriptor` v3 is required; the old v1 assumption was a plugin
|
|
37
|
+
bug, not a history migration. Projection `stateVersion: 2` refolds without
|
|
38
|
+
conversion. Unknown/v1/v2, invalid or conflicting descriptors fail closed.
|
|
39
|
+
Never relabel them or fabricate policy provenance. Strict `create()` codec
|
|
40
|
+
factories and the retained `schema` bridge use the same parser.
|
|
41
|
+
|
|
42
|
+
## Evidence and historical material
|
|
43
|
+
|
|
44
|
+
Client tests prove removed role dependencies/slots alongside preserved account,
|
|
45
|
+
search and usage cleanup. Host/Gateway fixtures prove rejected new roots/writes,
|
|
46
|
+
original-request recovery and historical policy restoration. Synthetic tests
|
|
47
|
+
do not prove a particular Desktop's loaded state or live inference.
|
|
48
|
+
|
|
49
|
+
The [retirement issue](https://github.com/cloga/dsh-github-copilot/issues/158),
|
|
50
|
+
[original design](https://github.com/cloga/dsh-github-copilot/issues/127) and
|
|
51
|
+
[historical official-first review](./official-first-016-alpha2.md) retain context.
|
|
52
|
+
Old role images/provenance under `docs/images` are historical artifacts, not
|
|
53
|
+
current screenshots or installation instructions.
|
|
43
54
|
|
|
44
55
|
## 中文摘要
|
|
45
56
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
模型分工与新建专用根会话已退役;新工作使用普通 Session。独立的父模型跟随
|
|
58
|
+
开关不恢复旧角色界面,也不依赖上游原生规则 UI。已有专用历史、固定策略和
|
|
59
|
+
旧设置原样保留;旧 Remote 只读/拒绝保存,仅允许凭完全匹配原请求恢复已有根。
|
|
60
|
+
不转换历史、不静默换模型、不用新 UUID 绕过未知恢复,也不将卸载当作迁移。
|
|
61
|
+
发布、安装、加载和真实模型调用须分别验证。
|
|
62
|
+
## Alpha.25 descriptor and Remote compatibility
|
|
51
63
|
|
|
52
|
-
|
|
64
|
+
Retained native child compatibility uses descriptor v3 and strict Remote codecs.
|
|
65
|
+
Unknown/v1/v2 or invalid child descriptors fail closed without relabeling.
|
|
66
|
+
Projection `stateVersion: 2` refolds evidence; it does not convert history.
|
|
@@ -1,93 +1,64 @@
|
|
|
1
|
-
# Image input compatibility
|
|
1
|
+
# Image input compatibility
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Baseline: official DSH / Windows Desktop 0.2.0-rc.2. Plugin-only.
|
|
3
|
+
Target: official DSH / Windows Desktop `0.2.0-rc.2`. Plugin-only.
|
|
5
4
|
|
|
6
|
-
##
|
|
5
|
+
## Current behavior
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
opaque replay references are included here.
|
|
7
|
+
Auto checks actual typed image blocks in **all entered messages**, including
|
|
8
|
+
historical user/tool content after a text-only continuation. It does not inspect
|
|
9
|
+
tool arguments or infer images from filenames/textual offload placeholders.
|
|
10
|
+
Core's `offloaded: true` marker means projected text, not image bytes.
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
documents image input, but is not evidence of GitHub Copilot endpoint format
|
|
18
|
-
acceptance. Do not exclude a model by name to conceal this error.
|
|
12
|
+
The picker advertises aggregate image input only with an eligible account image
|
|
13
|
+
model. Auto filters text-only candidates before task preferences; no eligible
|
|
14
|
+
image model fails explicitly rather than sending content to an unverified route.
|
|
19
15
|
|
|
20
|
-
|
|
16
|
+
For fixed and Auto managed calls, the account-bound public `inspectRequest`
|
|
17
|
+
hook checks the native transcript's **projected MIME** before wire dispatch:
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
| Diagnostic | Meaning |
|
|
20
|
+
|---|---|
|
|
21
|
+
| `COPILOT_IMAGE_INPUT_UNSUPPORTED` | Current account model does not admit image input |
|
|
22
|
+
| `COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE` | Actual projected MIME evidence is unavailable |
|
|
23
|
+
| `COPILOT_IMAGE_MEDIA_TYPE_UNSUPPORTED` | Explicit account MIME restrictions reject that projection |
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
Omitted account MIME lists preserve existing verified vision behavior but do
|
|
26
|
+
not prove universal format acceptance. The plugin neither invents a list nor
|
|
27
|
+
converts images itself. Native error/finish behavior, historical attachments,
|
|
28
|
+
turn freezing and existing cancellation/retry policy stay unchanged.
|
|
31
29
|
|
|
32
|
-
##
|
|
30
|
+
## Evidence layers and recovery limits
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
turn-frozen selection. Do not recursively interpret tool arguments, file
|
|
39
|
-
names or textual offload placeholders as image blocks. Honor Core's explicit
|
|
40
|
-
`offloaded: true` marker, which projects the image to text rather than bytes.
|
|
41
|
-
3. At the existing account-bound `inspectRequest` hook, validate the native
|
|
42
|
-
transcript's actual image `mimeType` after Core projection and before wire.
|
|
43
|
-
Restore failures as request-local `INVALID_REQUEST` errors:
|
|
44
|
-
`COPILOT_IMAGE_INPUT_UNSUPPORTED`, `COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE`,
|
|
45
|
-
or `COPILOT_IMAGE_MEDIA_TYPE_UNSUPPORTED`.
|
|
46
|
-
4. Honor explicit account MIME restrictions. If the account omits its MIME list,
|
|
47
|
-
preserve existing vision behavior; absence is neither proof of universal
|
|
48
|
-
format support nor permission to invent an allowlist.
|
|
49
|
-
5. Cover a synthetic native projection that changes durable WebP into PNG:
|
|
50
|
-
advertised PNG is admitted; JPEG-only evidence rejects before model fetch.
|
|
51
|
-
Keep original attachments unchanged.
|
|
32
|
+
Source filename, durable attachment MIME and outgoing projected MIME are
|
|
33
|
+
different facts. Native rc.2 prepares images through public attachment services
|
|
34
|
+
and may re-encode them. A `.png` display name can belong to durable WebP; that
|
|
35
|
+
alone does not establish what the provider received.
|
|
52
36
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
37
|
+
Do not exclude a model by name to conceal a format failure. A supplier/model
|
|
38
|
+
card's general vision claim is not GitHub endpoint format proof. Exact-format
|
|
39
|
+
Auto filtering from durable MIME can reject a model whose native projection
|
|
40
|
+
would be accepted; candidate-specific projection would require another public
|
|
41
|
+
contract and reviewed tests.
|
|
57
42
|
|
|
58
|
-
|
|
43
|
+
The current fix diagnoses explicit incompatibility, not every provider 400.
|
|
44
|
+
When advertised restrictions and outgoing projection agree but the endpoint
|
|
45
|
+
rejects it, retain the native error. Do not invent capability corrections,
|
|
46
|
+
reselect mid-turn, add a fallback wire or replay the request automatically.
|
|
47
|
+
An explicit smaller [native image budget](./copilot-compaction.md) changes
|
|
48
|
+
outgoing visibility through Core offload; it is not a supplier JSON threshold.
|
|
59
49
|
|
|
60
|
-
|
|
61
|
-
a model even when native projection produces a format it accepts. Exact-format
|
|
62
|
-
candidate selection or conversion requires a public, candidate-specific
|
|
63
|
-
projection contract and its own tests. The current fix diagnoses explicit
|
|
64
|
-
incompatibility; it does not rescue every image request.
|
|
50
|
+
## Verification
|
|
65
51
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
52
|
+
Historical tool-image continuation first reproduced the old missed-image
|
|
53
|
+
requirement. Regressions now cover all Auto preferences, historical user/tool
|
|
54
|
+
images, no vision candidate and native WebP-to-PNG projection against explicit
|
|
55
|
+
PNG/JPEG restrictions. A mismatch emits native `finish(error)` with zero model
|
|
56
|
+
requests.
|
|
71
57
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
- Strict targeted TypeScript check passed:
|
|
80
|
-
`node node_modules\typescript\bin\tsc --noEmit --strict --skipLibCheck --target es2023 --module nodenext --moduleResolution nodenext --allowImportingTsExtensions src\auto-model-routing.ts src\image-input-admission.ts`.
|
|
81
|
-
- `pnpm install --frozen-lockfile --ignore-scripts --fetch-retries=0 --fetch-timeout=20000`
|
|
82
|
-
failed: the configured enterprise registry returned HTTP 404 for
|
|
83
|
-
`@deepseek-ai/dsh-util-crypto@0.2.0-rc.2`. Full local validation is blocked.
|
|
84
|
-
- [CI run 36966798814](https://github.com/cloga/dsh-github-copilot/actions/runs/36966798814)
|
|
85
|
-
passed on Windows and Linux using unchanged official rc.2 dependencies:
|
|
86
|
-
the published-adapter fixture, tagged-source native runtime, full `pnpm verify`,
|
|
87
|
-
`pnpm pack --pack-destination artifacts`, and exact tarball verification.
|
|
88
|
-
The full gate includes 1990 passing Vitest tests (2 expected skips) and
|
|
89
|
-
310 passing tooling tests. Native MIME admission preserves Core's streamed
|
|
90
|
-
`finish(error)` contract and sends zero model requests for the mismatch case.
|
|
91
|
-
- This authorized CI path mitigates the local registry blocker without changing
|
|
92
|
-
dependencies or bypassing local registry policy. Publication and live
|
|
93
|
-
acceptance remain separate; no installed or published fix is claimed here.
|
|
58
|
+
The [delivery CI](https://github.com/cloga/dsh-github-copilot/actions/runs/36966798814)
|
|
59
|
+
passed exact unchanged rc.2 Windows/Linux source and published-adapter fixtures,
|
|
60
|
+
full verification and archive gates. Local synthetic transport demonstrates
|
|
61
|
+
admission/ownership, not live endpoint acceptance or a particular Desktop's
|
|
62
|
+
loaded version. The original [investigation #236](https://github.com/cloga/dsh-github-copilot/issues/236)
|
|
63
|
+
retains the bounded observation and delivery evidence; old local registry
|
|
64
|
+
failures are not a permanent unsupported/shipping-pending claim.
|
|
Binary file
|
|
Binary file
|
|
@@ -48,3 +48,44 @@ Follow the [plugin-only boundary](../AGENTS.md#plugin-only-implementation-bounda
|
|
|
48
48
|
- [pi v0.87.1 release](https://github.com/earendil-works/pi/releases/tag/v0.87.1)
|
|
49
49
|
|
|
50
50
|
These references guide parsing and tests; they are not a guarantee that the upstream discovery schema will never change. Schema drift must be surfaced rather than silently guessed.
|
|
51
|
+
|
|
52
|
+
## Authentication, replay and request diagnostics
|
|
53
|
+
|
|
54
|
+
These failures have different owners; do not repair every rejection by signing out.
|
|
55
|
+
|
|
56
|
+
| Diagnostic | Boundary and safe action |
|
|
57
|
+
|---|---|
|
|
58
|
+
| `COPILOT_AUTHORIZATION_BEGIN_FAILED` | Sign-in did not complete; interaction milestones are not a credential commit or root-cause proof |
|
|
59
|
+
| `COPILOT_ROUTE_REPAIR_FAILED` | Authentication is retained; review legacy configuration and use explicit repair |
|
|
60
|
+
| Native AUTH / HTTP 401 | Exact managed proof may be retired; a later explicit request/discovery can renew natively, not replay the failed message |
|
|
61
|
+
| `COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH` | Exact uncoded item-scope rejection is request-local INVALID_REQUEST, without invalidating shared proof/other requests |
|
|
62
|
+
| `COPILOT_RESPONSES_REPLAY_UNSUPPORTED` | Incomplete/reference-only historical payload lacks safe reconstruction evidence |
|
|
63
|
+
| `COPILOT_REQUEST_BODY_TIMEOUT` | Strict verified request-body 408; composition/timing is not proof of overflow or network cause |
|
|
64
|
+
|
|
65
|
+
HTTP auth recovery is bounded by account cooldown, including forced discovery.
|
|
66
|
+
An old late response cannot invalidate a newer sign-in. HTTP 403, network errors
|
|
67
|
+
and strings mentioning 401 are not auth evidence; malformed/ambiguous/oversized
|
|
68
|
+
bodies retain native handling. HTTP tests do not prove WebSocket recovery.
|
|
69
|
+
|
|
70
|
+
### Responses replay compatibility
|
|
71
|
+
|
|
72
|
+
The public SDK payload hook normalizes only direct IDs on complete assistant
|
|
73
|
+
messages, function calls and encrypted reasoning items. A narrowly recognized
|
|
74
|
+
empty completed reasoning shell can be omitted from outgoing requests only with
|
|
75
|
+
empty summary/content, no encrypted content and no unknown fields. Durable
|
|
76
|
+
history, public summaries, opaque bytes, nested IDs, phase and `call_id` pairing
|
|
77
|
+
stay unchanged.
|
|
78
|
+
|
|
79
|
+
After actual HTTP 408, a newly prepared attempt in the same native step can
|
|
80
|
+
reuse exact normalized payload only when transcript/every other field agree,
|
|
81
|
+
with matching references and no conflicts. Evidence is bound to Session/model/
|
|
82
|
+
account proof and original signal, expires in 60 seconds, is limited to 2 MiB
|
|
83
|
+
and clears on next step/turn, concurrency, cancellation or account discontinuity.
|
|
84
|
+
This creates no retry or cold-history reconstruction. Canonical/other routes,
|
|
85
|
+
protocols and native retry policy stay unchanged. Synthetic adapter tests are
|
|
86
|
+
not acceptance proof for an old conversation. Never discard opaque reasoning,
|
|
87
|
+
rewrite history, replay business work or reset credentials automatically.
|
|
88
|
+
|
|
89
|
+
For TLS/quota, see [trust boundaries](./copilot-usage.md#account-data-boundary).
|
|
90
|
+
For HTTP 408 and oversized summaries, see
|
|
91
|
+
[budget and recovery limits](./copilot-compaction.md#existing-oversized-history-and-recovery-limits).
|