dsh-agent-team-profile-manager 0.2.2-alpha.2 → 0.2.2-rc.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/CHANGELOG.md +30 -5
- package/NOTICE +1 -1
- package/README.md +20 -110
- package/cordis.patch.yml +1 -6
- package/docs/INVESTIGATION.md +4 -4
- package/docs/RC2-MIGRATION.md +21 -0
- package/docs/RC3-LOCAL-TEST.md +22 -0
- package/docs/VERIFICATION.md +11 -32
- package/lib/client-aliases.js +39 -0
- package/lib/client.js +37 -689
- package/lib/compatibility/dsh-0.2.2-rc.1.js +64 -0
- package/lib/compatibility/dsh-0.2.2-rc.2.js +12 -0
- package/lib/compatibility/dsh-0.2.2-rc.3.js +12 -0
- package/lib/compatibility/dsh-0.2.2-rc.4.js +12 -0
- package/lib/delegation-policy.js +1 -1
- package/lib/index.js +70 -117
- package/lib/routing/model-router.js +45 -76
- package/lib/routing/state.js +3 -4
- package/lib/vendor/model-selection.js +22 -182
- package/package.json +38 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.2.2-
|
|
3
|
+
## 0.2.2-rc.4
|
|
4
|
+
|
|
5
|
+
- Align plugin, declared DSH packages and runtime guard exactly to rc.4.
|
|
6
|
+
- Relevant public APIs and subagent UI source match rc.3; the local integration suite passes.
|
|
7
|
+
- Publish through GitHub Actions OIDC to `latest`; no running-profile changes.
|
|
8
|
+
|
|
9
|
+
## 0.2.2-rc.3 (local work, not published)
|
|
10
|
+
|
|
11
|
+
- Align the plugin and all DSH integrations exactly to rc.3.
|
|
12
|
+
- Validate native creation, runtime model selection and complementary alias display against rc.3.
|
|
13
|
+
- No push, npm publication or live-profile change authorized.
|
|
14
|
+
|
|
15
|
+
## 0.2.2-rc.2 (unreleased, migration in progress)
|
|
16
|
+
|
|
17
|
+
- Begin adapting model routing to the native subagent tree and agent model selection.
|
|
18
|
+
- Visual aliases and the full regression suite are not yet migrated; do not publish.
|
|
4
19
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
20
|
+
## Unreleased
|
|
21
|
+
|
|
22
|
+
- Enable dynamic Team model discovery, spawning and runtime switching for existing and new sessions; preserve session history and model selections across restarts.
|
|
23
|
+
- Discover live provider catalogs, support exact adapter lookup for unlisted models, and report partial catalog failures.
|
|
24
|
+
|
|
25
|
+
## 0.2.2-rc.1
|
|
26
|
+
|
|
27
|
+
- Align the plugin and all DSH peers/dev dependencies exactly to DSH `0.2.2-rc.1`; use Cordis 4.1.0 and Loader 1.1.0.
|
|
28
|
+
- Update compatibility guard and build against the rc.1 browser bundle.
|
|
29
|
+
- Keep npm OIDC publishing on `latest` and enforce version parity in CI.
|
|
30
|
+
|
|
31
|
+
## 0.2.2-alpha.2
|
|
8
32
|
|
|
33
|
+
- Align the plugin with DSH `0.2.2-alpha.2`.
|
|
9
34
|
|
|
10
35
|
## 0.2.1-rc.4
|
|
11
36
|
|
|
@@ -44,7 +69,7 @@
|
|
|
44
69
|
|
|
45
70
|
### Improvements
|
|
46
71
|
- Align the plugin release and all DSH integration dependencies with DSH `0.2.1-alpha.2` (and its matching Cordis alpha releases).
|
|
47
|
-
- Add provider/model/reasoning-effort selection when spawning teammates
|
|
72
|
+
- Add provider/model/reasoning-effort selection when spawning teammates and model discovery through `list_models`.
|
|
48
73
|
- Add teammate model-switch tools that apply the selected route on the next inference without replacing the teammate session.
|
|
49
74
|
- Add Lead-controlled teammate display aliases, persisted with successful tool results and used only for UI labels; stable teammate targets remain unchanged.
|
|
50
75
|
|
package/NOTICE
CHANGED
|
@@ -2,7 +2,7 @@ This plugin contains MIT-licensed code adapted from deepseek-ai/deepseek-harness
|
|
|
2
2
|
|
|
3
3
|
src/vendor/model-selection.js: ivbrajkovic fork commit 30da5c7, packages/subagent/tool-subagent/src/model-selection.ts.
|
|
4
4
|
tests/adapter.mjs and tests/query.mjs: release baseline 639ed01539 test helpers.
|
|
5
|
-
lib/client.js:
|
|
5
|
+
lib/client.js: complementary display-alias footer implemented locally against the DSH 0.2.2-rc.3 slot contracts. It does not copy or override upstream navigation. The browser integration test loads the installed upstream @deepseek-ai/dsh-client-ui-subagent bundle (MIT). vendor/rc2-team-panel.js is retained only as historical source and is not a build input.
|
|
6
6
|
|
|
7
7
|
Copyright (c) 2026 DeepSeek. Upstream contributors include Ivan Brajkovic.
|
|
8
8
|
The upstream MIT license and local plugin MIT license are included in LICENSE.
|
package/README.md
CHANGED
|
@@ -1,128 +1,38 @@
|
|
|
1
1
|
# dsh-agent-team-profile-manager
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
For DSH **`0.2.2-rc.4` only**. Validated with automated integration tests; live-profile and real-provider verification remain pending. See [verification](docs/VERIFICATION.md).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Current scope
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- Restores explicit provider/model/reasoning-effort selection for fresh and fork teammates and runtime model changes without replacing their sessions.
|
|
9
|
-
- Shares both upstream Team policy and the new Team identity context when duplicate tool compositions are enabled, preventing duplicate-registration failures.
|
|
10
|
-
- Builds the alias-aware Web panel from the matching 0.2.2-alpha.2 upstream browser bundle, not the old RC panel. Display aliases preserve stable message/task targets.
|
|
7
|
+
The rc.2 Agent Teams service is a task board over the native subagent tree. This plugin preserves native subagent and Team tools; it no longer mounts `spawn_teammate` or blocks `subagent`/`subagent_fork`. Native delegation tools must be configured with `modelSelection: true` to expose explicit child routes, and the Session must authorize the route. The plugin does not grant route authorization.
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
The plugin hides global `subagent`, `subagent_fork` and `list_subagent_models` tools in Team member scopes. A scoped dispatch guard also rejects those names if a scoped registration bypasses visibility restrictions. Late registration and plugin disposal are handled. This is a tool-level policy, not a sandbox against arbitrary host code or other plugins.
|
|
15
|
-
|
|
16
|
-
**Do not disable the subagent runtime or spawn/fork providers.** Agent Teams uses that shared runtime internally. Only the standard model-facing delegation tools are blocked.
|
|
17
|
-
|
|
18
|
-
A dedicated system-prompt section and spawn-tool description instruct the model to:
|
|
19
|
-
|
|
20
|
-
1. Obtain human authorization to delegate; treat a request for sub-agents as Team-based delegation.
|
|
21
|
-
2. Ask which provider/model to use before delegation: one for all members, a per-responsibility mapping, or explicit inheritance. Reuse the choice for its stated scope.
|
|
22
|
-
3. Discover exact allowed routes via `list_models`; never guess model IDs or consent.
|
|
23
|
-
4. Reuse suitable members with `list_agents` and `send_message` instead of creating one per task.
|
|
24
|
-
5. Use Team runtime switch tools rather than claiming only sub-agents support model selection.
|
|
25
|
-
|
|
26
|
-
**Model-choice confirmation is prompt guidance, not mechanically verified consent.** The plugin cannot reliably infer from arbitrary conversation text that a human chose a model. It does not add a misleading “confirmed” boolean the model could fill itself. Host model authorization remains enforced by code.
|
|
27
|
-
|
|
28
|
-
Operator opt-out in the router's existing config: `disableSubagents: false`. Default is true; the model-choice guidance remains enabled in either mode.
|
|
29
|
-
|
|
30
|
-
## Tools
|
|
31
|
-
|
|
32
|
-
| Tool | Scope / behavior |
|
|
9
|
+
| Tool | Behavior |
|
|
33
10
|
| --- | --- |
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
| set_teammate_display_name | Lead; edit/reset visual names, including cold members. Stable targets do not change. |
|
|
40
|
-
| compact_teammate | Lead; native compaction of a loaded idle teammate; no wake/recreation. Summary may lose detail. |
|
|
11
|
+
| `list_models` | Lists Session-authorized registered routes; metadata availability is not a successful inference. |
|
|
12
|
+
| `get_current_model` | Reports the last-used, pending and next model route for this agent. |
|
|
13
|
+
| `switch_model` | Selects the caller’s authorized route for its next step. |
|
|
14
|
+
| `switch_teammate_model` | Tree root only: selects a loaded reachable descendant’s next route. |
|
|
15
|
+
| `set_teammate_display_name` | Tree root only: sets/resets a durable alias without changing IDs or tool targets. |
|
|
41
16
|
|
|
42
|
-
|
|
17
|
+
An admitted inference is not interrupted by selection. Unloaded targets must be resumed through native controls before model switching. A persistence error after a selection append is reported as uncertain durability, not falsely rolled back; inspect the route before retrying.
|
|
43
18
|
|
|
44
|
-
|
|
19
|
+
Aliases appear in a **complementary footer** in the subagent catalog. Native row labels, breadcrumbs and sidebar remain upstream-owned and unchanged. Only aliases of direct children present in the displayed root catalog are shown. This is not yet equivalent to replacing every visible name.
|
|
45
20
|
|
|
46
|
-
|
|
21
|
+
## Validation
|
|
47
22
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
## Build and validation
|
|
51
|
-
|
|
52
|
-
~~~sh
|
|
23
|
+
```sh
|
|
53
24
|
npm ci --ignore-scripts
|
|
25
|
+
npm run check:versions
|
|
54
26
|
npm run build
|
|
55
27
|
npm test
|
|
56
|
-
|
|
57
|
-
~~~
|
|
58
|
-
|
|
59
|
-
32 tests cover actual 0.2.2-alpha.2 AgentLoop requests through keyless adapters, fresh/fork spawning, repeated switches and same-session history, JSONL restart/resume, invalid/cancelled selections, concurrent routing, real Cordis Loader duplicate composition/toggles, alias persistence/browser DOM navigation, and delegation visibility/dispatch/cleanup/opt-out. Compaction uses a stub backend; real summarization is not tested.
|
|
60
|
-
|
|
61
|
-
The suite does not exercise cloud credentials or install/restart the user's running Web profile. A successful local suite is not a claim of live-profile verification.
|
|
62
|
-
|
|
63
|
-
## Install / update a profile
|
|
64
|
-
|
|
65
|
-
Stop and back up the selected profile first. Upgrade the Host and Agent Teams bundle together to **0.2.2-alpha.2**. Do not mix DSH package versions or force peer resolution.
|
|
66
|
-
|
|
67
|
-
~~~sh
|
|
68
|
-
REPO="$HOME/path/to/dsh-agent-team-profile-manager" # replace
|
|
69
|
-
PROFILE=web # replace with your actual profile
|
|
70
|
-
npm ci --ignore-scripts
|
|
71
|
-
npm run build
|
|
72
|
-
npm test
|
|
73
|
-
dsh --version # must be 0.2.2-alpha.2
|
|
74
|
-
# Install/update the upstream bundle before this plugin:
|
|
75
|
-
dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.2-alpha.2
|
|
76
|
-
dsh plugin --profile "$PROFILE" add "link:$REPO"
|
|
77
|
-
dsh --profile "$PROFILE" --dump-config
|
|
78
|
-
dsh --profile "$PROFILE"
|
|
79
|
-
~~~
|
|
80
|
-
|
|
81
|
-
The bundle patch disables the standalone tool-agent-team row and mounts the same upstream tools below the router decorators. Keep Agent Teams enabled and ordered before this plugin. Do not add a duplicate manual router row. Hot-install over existing live Team tools is deliberately rejected; restart the profile. If link resolution does not share Host packages correctly, install an npm-packed tarball instead.
|
|
82
|
-
|
|
83
|
-
After installing, restart the existing DSH Host and refresh its existing Web URL to load rebuilt client assets. This repository does not automatically modify your profile, global DSH installation, or running server.
|
|
84
|
-
|
|
85
|
-
## Release policy and naming
|
|
86
|
-
|
|
87
|
-
Plugin version and every DSH integration dependency must exactly match the target DSH release. Cordis uses the matching upstream framework range. Prepack rebuilds and runs tests, and release tests reject mismatched DSH pins. Upstream changes still require review and tests; matching version numbers alone do not ensure compatibility.
|
|
88
|
-
|
|
89
|
-
The public package is **`dsh-agent-team-profile-manager`**. It extends the official **`@deepseek-ai/dsh-experimental-agent-team-profile`** bundle; it does not replace or rename that upstream package. Plugin, bundle entry, browser module and locale namespace use the new manager identity. Persisted projection/event keys remain unchanged so existing aliases and routing history survive the rename.
|
|
90
|
-
|
|
91
|
-
For an existing local installation, stop the Host, remove the old plugin bundle/dependency and enable only the new manager entry. Do not load both identities together. Source repository: https://github.com/wads-dev/dsh-agent-team-profile-manager.
|
|
92
|
-
|
|
93
|
-
~~~sh
|
|
94
|
-
npm pack --dry-run
|
|
95
|
-
# Authenticate and verify ownership/availability before the first publication:
|
|
96
|
-
npm whoami
|
|
97
|
-
npm publish --tag alpha --access public
|
|
98
|
-
npm dist-tag ls dsh-agent-team-profile-manager
|
|
99
|
-
~~~
|
|
100
|
-
|
|
101
|
-
Publication follows the Live Voice pattern: one npm dist-tag derived from the version (`alpha` for `0.2.2-alpha.2`, `latest` for stable versions). GitHub Actions uses OIDC trusted publishing with provenance, without an npm token or secondary dist-tag operation.
|
|
102
|
-
|
|
103
|
-
After publication, install using:
|
|
104
|
-
|
|
105
|
-
~~~sh
|
|
106
|
-
PROFILE=web # replace with your actual profile
|
|
107
|
-
dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.2-alpha.2
|
|
108
|
-
dsh plugin --profile "$PROFILE" add dsh-agent-team-profile-manager@0.2.2-alpha.2
|
|
109
|
-
~~~
|
|
110
|
-
|
|
111
|
-
## GitHub Actions CI and publication
|
|
112
|
-
|
|
113
|
-
The workflows follow the Live Voice repository pattern, adapted to this single-package npm repository:
|
|
114
|
-
|
|
115
|
-
- [CI](.github/workflows/ci.yml): every push and PR, Ubuntu, Node 24, cached npm ci, build, tests and package inspection.
|
|
116
|
-
- [Publish to npm](.github/workflows/publish.yml): manual workflow_dispatch on main only, serialized releases, npm environment, OIDC/provenance, metadata/version checks, duplicate npm/Git tag refusal, dry-run, Git tag, OIDC publication and GitHub Release.
|
|
28
|
+
```
|
|
117
29
|
|
|
118
|
-
|
|
30
|
+
Tests use actual rc.4 AgentLoop, subagent providers, native tool execution and JSONL storage with keyless scripted LLM adapters. The browser test mounts the real upstream catalog with fixture primitives/renderer. Live-profile and real-provider verification remain pending.
|
|
119
31
|
|
|
120
|
-
|
|
121
|
-
2. Configure npm Trusted Publisher: GitHub Actions, owner **wads-dev**, repository **dsh-agent-team-profile-manager**, workflow **publish.yml**, environment **npm**. A first manual publication may be required to create the package before configuring its trusted publisher.
|
|
122
|
-
3. Run **Publish to npm** from main. Version **0.2.2-alpha.2** publishes directly to `alpha` via OIDC, without `NPM_TOKEN`. The GitHub Release is marked prerelease.
|
|
32
|
+
## Version and release rules
|
|
123
33
|
|
|
124
|
-
|
|
34
|
+
**The plugin version and all declared DSH dependency versions must match exactly.** CI and the manual publish workflow run `npm run check:versions`. Never invent a plugin-only next prerelease to fix a publishing mistake.
|
|
125
35
|
|
|
126
|
-
|
|
36
|
+
Every publication uses npm **`latest`**, including alpha and RC versions, through GitHub Actions OIDC/provenance without an npm token. Publication requires explicit human approval; this rc.4 release was approved based on automated validation, without a joint live-profile test.
|
|
127
37
|
|
|
128
|
-
MIT. See [NOTICE](NOTICE) and [LICENSE](LICENSE).
|
|
38
|
+
MIT. See [NOTICE](NOTICE) and [LICENSE](LICENSE).
|
package/cordis.patch.yml
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
#
|
|
2
|
-
- id: tool-agent-team
|
|
3
|
-
disabled: true
|
|
1
|
+
# Preserve the native Team and subagent services and their tool registrations.
|
|
4
2
|
- insert:
|
|
5
3
|
- id: agent-team-profile-manager
|
|
6
4
|
name: dsh-agent-team-profile-manager
|
|
7
|
-
config:
|
|
8
|
-
freshProvider: spawn
|
|
9
|
-
forkProvider: fork
|
package/docs/INVESTIGATION.md
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
Installed CLI package and Agent/Session/LLM/Subagent/Tools/Team packages report 0.2.0-rc.2. The installed payload contains bundled ESM and declarations, not a working source checkout. Upstream release baseline: 639ed015397290b3745d163aafe02ffee4aa3f84.
|
|
6
6
|
|
|
7
7
|
- [#8324](https://github.com/deepseek-ai/deepseek-harness/discussions/8324): per-teammate route selection proposal and implementation.
|
|
8
|
-
- [Implementation branch](https://github.com/ivbrajkovic/deepseek-harness/tree/feat/agent-team-teammate-model-selection), inspected at 30da5c7:
|
|
8
|
+
- [Implementation branch](https://github.com/ivbrajkovic/deepseek-harness/tree/feat/agent-team-teammate-model-selection), inspected at 30da5c7: route selection and Team roster integration.
|
|
9
9
|
- [#8035](https://github.com/deepseek-ai/deepseek-harness/discussions/8035): Team provider means spawn/fork, not the LLM provider; roster omits agentOptions.
|
|
10
10
|
|
|
11
|
-
The
|
|
11
|
+
The model-selection helper is adapted from upstream with attribution because rc.2 does not export its model-selection subpath.
|
|
12
12
|
|
|
13
13
|
## Lifecycle findings
|
|
14
14
|
|
|
@@ -24,7 +24,7 @@ Cordis internal/get is a declared framework waterfall. The compatibility layer r
|
|
|
24
24
|
|
|
25
25
|
The bundle disables only the original tool-agent-team composition row and mounts that exact upstream plugin as its child AFTER decoration. All upstream Team tool bodies and ownership checks remain intact. No fork of Team state/service is maintained. Live hot-install into a composition already owning the same scoped tool names is not supported: restart with the bundle patch, then resume.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Model metadata and effort validation are adapter-owned through resolveModelInfo/resolveCallConfig; catalogs remain advisory as in DSH. Existing session history is preserved, and route selections remain resumable across projection updates.
|
|
28
28
|
|
|
29
29
|
## UI naming investigation
|
|
30
30
|
|
|
@@ -32,4 +32,4 @@ The shipped TeamMemberRow renders member.name directly from durable agentTeam pr
|
|
|
32
32
|
|
|
33
33
|
## Verification status
|
|
34
34
|
|
|
35
|
-
The initial six integration tests passed on exact rc.2 packages, using the actual AgentLoop/Team/Subagent/JSONL persistence and keyless scripted LLM adapters. They observe provider stream GenerateOptions (not only metadata): explicit spawn, inheritance, A→B, cold resume with history, A→B→C→A on one session, no-op/invalid effort/invalid route, and
|
|
35
|
+
The initial six integration tests passed on exact rc.2 packages, using the actual AgentLoop/Team/Subagent/JSONL persistence and keyless scripted LLM adapters. They observe provider stream GenerateOptions (not only metadata): explicit spawn, inheritance, A→B, cold resume with history, A→B→C→A on one session, no-op/invalid effort/invalid route, and runtime model discovery. Later verification adds distinct provider adapter registrations, Lead-switch ownership/mailbox preservation, full runtime restart, fork inherited-boundary routing, cancellation, unavailable provider handling, explicit output schemas and packaging/install documentation. See tests/router.test.mjs and README.md for current coverage.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# DSH 0.2.2-rc.2 migration — local prototype, not published
|
|
2
|
+
|
|
3
|
+
## Implemented and locally tested
|
|
4
|
+
|
|
5
|
+
- Native subagent creation with explicit provider/model/reasoning effort under the Session route policy.
|
|
6
|
+
- Runtime self/descendant model switches using `agent.model.select()`: the already admitted inference stays unchanged; the next inference uses the saved route. Session identity and history are retained.
|
|
7
|
+
- Aliases stored via native tool receipts and the existing `agentTeamDisplayNames` projection. Root-only authorization, reset, and stable targets are tested.
|
|
8
|
+
- A complementary footer in the native subagent catalog displays aliases of direct children. It does not replace native row labels, breadcrumbs or sidebar names.
|
|
9
|
+
- JSONL restart tests prove alias and model-choice persistence.
|
|
10
|
+
|
|
11
|
+
## Current evidence
|
|
12
|
+
|
|
13
|
+
`npm run check:versions`, `npm run build`, and `npm test` pass locally (15 tests at this checkpoint). The UI test uses the real upstream rc.2 catalog bundle and SlotCore, with fixture primitives/renderer, not a running-browser end-to-end test. No real-provider billing was used.
|
|
14
|
+
|
|
15
|
+
## Joint test is not ready in this chat
|
|
16
|
+
|
|
17
|
+
The installed DSH was checked on 2026-11-15 and is now `0.2.2-rc.3`. This prototype and its exact peers are `0.2.2-rc.2`. Do not weaken the version guard or mix them. The proposed next step is a separate migration to rc.3 after human confirmation. Do not publish rc.2 or start a replacement server.
|
|
18
|
+
|
|
19
|
+
Before a joint test, align versions, choose the target profile and create a backup, inspect its tool configuration (native spawn/fork modelSelection flags and authorized model routes), install the local build with explicit consent, restart the existing Host and refresh its existing URL. Then choose two authorized routes together: create a child on A, set an alias, switch to B, send another prompt and verify provider/model, stable child ID and history. Check aliases visually and restart persistence. Roll back the profile if any check fails.
|
|
20
|
+
|
|
21
|
+
No profile or running Host has been changed. This work may be committed and pushed as a local-validation checkpoint; no npm publication or joint live test has been performed.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# DSH 0.2.2-rc.3 — local validation and joint test plan
|
|
2
|
+
|
|
3
|
+
No push, publication or running-profile modification is authorized. The rc.2 checkpoint remains on main; these rc.3 changes are local only.
|
|
4
|
+
|
|
5
|
+
## Contract comparison
|
|
6
|
+
|
|
7
|
+
Public entry declarations for agent, subagent, tool-subagent, tools, agent-team and UI-subagent match rc.2 byte-for-byte. Native model-selection source and UI-subagent mount source also match. Tests use the installed rc.3 packages, not the saved rc.2 tree.
|
|
8
|
+
|
|
9
|
+
## Validated locally
|
|
10
|
+
|
|
11
|
+
Version equality, build and 15 tests pass: spawn and fork select explicit authorized models, runtime selection affects actual next inference, identity/history remain stable, aliases persist through JSONL restart, invalid routes/effort/cancellation fail safely, idempotent selection does not duplicate events, and the complementary alias panel preserves native navigation.
|
|
12
|
+
|
|
13
|
+
## Before joint testing in this chat
|
|
14
|
+
|
|
15
|
+
1. Identify the exact profile used by this running Host and its startup command through user-provided configuration or supported UI. Do not guess profile paths or scan private storage.
|
|
16
|
+
2. Back up the selected configuration and confirm a rollback procedure.
|
|
17
|
+
3. Inspect native spawn/fork modelSelection configuration and Session-authorized model routes. Choose provider/model A and B together; do not guess authorization.
|
|
18
|
+
4. With explicit approval, install the local plugin build into that profile. Restart only the existing Host and refresh its existing URL; do not start a replacement server.
|
|
19
|
+
5. Create one child on A, send a short prompt, set an alias and verify the complementary footer. Switch the loaded child to B and send another prompt. Confirm stable child ID and old history, and verify the actual provider/model on the new request.
|
|
20
|
+
6. Reset the alias; verify no target name changed. Check persistence after an agreed restart.
|
|
21
|
+
|
|
22
|
+
The alias footer is informational and shows direct children only. It does not rename native catalog rows/breadcrumbs/sidebar. Cloud/provider behavior, the full running browser and profile activation remain unverified.
|
package/docs/VERIFICATION.md
CHANGED
|
@@ -1,38 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
# Verification — local DSH 0.2.2-rc.4 migration
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Verified locally against exact installed rc.4 dependencies, including a clean installation and package dry run. The version guard, build and 15 automated tests pass. See [migration status](RC3-LOCAL-TEST.md) for limitations and the proposed joint test.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Evidence
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Actual native spawn/fork tools and keyless scripted LLM adapters verify requested model and reasoning effort.
|
|
8
|
+
- Runtime self-switch and root-controlled descendant switch verify actual next inference, stable Session ID and prior history.
|
|
9
|
+
- Unauthorized routes, unknown targets, invalid effort, cancellation and idempotent retries are exercised.
|
|
10
|
+
- Real tool receipts feed the alias projection; JSONL restart tests preserve aliases and native model selection.
|
|
11
|
+
- The complementary footer is tested with the actual upstream catalog bundle and SlotCore; native navigation targets are unchanged.
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
## Not verified / not equivalent
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
No live-profile installation, real-provider inference or running-browser end-to-end check was performed. No running Host/profile configuration was changed; activation and a joint test remain separate steps. Alias display is complementary and only covers direct children in the root catalog; it does not replace native row names, breadcrumbs or sidebar labels. Previous Team-only APIs, custom spawn_teammate, subagent blocking and compact_teammate are not part of this adaptation. The migration replaces the old integration suite; its previous coverage must not be inferred from the current 15 tests.
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
- npm run build: Host ESM and matching alpha.2 alias-aware browser bundle.
|
|
15
|
-
- npm test: 32 passed, zero failed/skipped.
|
|
16
|
-
- npm pack --dry-run: prepack rebuild and all 32 tests passed again; expected Host/client entry points, bundle patch and documentation included.
|
|
17
|
-
- npm ls --depth=0: no invalid or missing direct dependencies; DSH 0.2.2-alpha.2, Cordis 4.0.6-alpha.1 and Loader 1.0.7-alpha.1.
|
|
18
|
-
- git diff --check.
|
|
19
|
-
|
|
20
|
-
## Coverage
|
|
21
|
-
|
|
22
|
-
Actual released AgentLoop, Team service/tools, SubagentRuntime, spawn/fork providers, filesystem/working-directory services, Cordis Loader and JSONL persistence are exercised. Keyless scripted adapters assert actual request provider/model/reasoningEffort/sessionId and history, not only metadata.
|
|
23
|
-
|
|
24
|
-
Tests cover fresh/fork explicit routes and inheritance; repeated same-session switches; cold resume/full runtime restart; authorization and adapter validation; cancelled/invalid switches; concurrent spawn isolation; assembly snapshot timing; route and alias persistence; stable member/task identity; duplicate-enabled Team composition, both Loader orders and toggles; alias-aware browser DOM navigation; global subagent tools registered after startup; scoped bypass denial; Team creation while tools are blocked; prompt model-choice/reuse guidance; operator opt-out and disposal restoring tool access.
|
|
25
|
-
|
|
26
|
-
## Compatibility review
|
|
27
|
-
|
|
28
|
-
The alpha.2 Team service still does not forward `agentOptions` from Team spawning; the async-local `startActivation` bridge remains necessary and its request contract is unchanged. Required model-selection, service decoration, projection and browser-panel contracts pass the integration suite. The runtime guard checks exact alpha.2 versions (including dsh-scope), and release tests check all DSH lockfile entries as well as direct dependency pins.
|
|
29
|
-
|
|
30
|
-
### Earlier alpha migration fixes retained
|
|
31
|
-
|
|
32
|
-
The removed startContinuable method is replaced by startActivation. The router preserves upstream transactions and injects options only for the exact async-local Team spawning parent and reserved child ID. Upstream team:identity must be shared alongside team:policy to avoid duplicate-registration failures. Persistence now exposes a plugin namespace instead of a default export; test fixtures must mount workingDirectory for SubagentRuntime.
|
|
33
|
-
|
|
34
|
-
## Limits / deployment still required
|
|
35
|
-
|
|
36
|
-
No cloud credentials, live provider billing, global installation or user profile configuration changed. No running DSH Host restart or existing-URL Web verification performed. The Host and profile packages must match this exact alpha.2 release before loading the plugin. The historical inactive-context live incident is not independently reproduced or claimed universally fixed.
|
|
37
|
-
|
|
38
|
-
Browser verification is DOM-based against the built alpha.2 panel. Native compaction is tested with a stub backend, not real summarization. Model-choice confirmation is system-prompt/tool-description guidance; code enforces route authorization and standard-subagent tool denial, not proof of human consent. Tool restrictions are not a security boundary against arbitrary host-side code or other plugins.
|
|
17
|
+
The user explicitly authorized publication of rc.4 via CI based on these automated results. This does not imply live-profile verification.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** Complementary rc.4 catalog footer. Native navigation and transport stay upstream-owned. */
|
|
2
|
+
window.__ModuleLoader__.load({
|
|
3
|
+
id: 'dsh-agent-team-profile-manager',
|
|
4
|
+
factory: require => {
|
|
5
|
+
const { createElement: h } = require('react');
|
|
6
|
+
const footer = 'conversation.session.header.actions.subagent.footer';
|
|
7
|
+
const namespace = 'agent-team-profile-aliases';
|
|
8
|
+
function AliasPanel({ useProjection, t }) {
|
|
9
|
+
const aliases = useProjection('agentTeamDisplayNames', value => value);
|
|
10
|
+
const catalog = useProjection('subagentCatalog', value => value);
|
|
11
|
+
// Never resolve by alias/name: the persisted projection is keyed by durable Session ID.
|
|
12
|
+
const entries = (catalog ?? []).filter(entry => Object.hasOwn(aliases ?? {}, entry.id));
|
|
13
|
+
if (entries.length === 0) return null;
|
|
14
|
+
return h('section', {
|
|
15
|
+
'data-agent-team-aliases': '', 'aria-label': t('title'),
|
|
16
|
+
style: { borderTop: '1px solid var(--dsw-alias-border-main)', padding: '10px 12px', fontSize: '12px' },
|
|
17
|
+
},
|
|
18
|
+
h('h3', { style: { margin: '0 0 6px', fontSize: '12px' } }, t('title')),
|
|
19
|
+
h('p', { style: { margin: '0 0 8px', color: 'var(--dsw-alias-label-tertiary)' } }, t('help')),
|
|
20
|
+
h('dl', { style: { margin: 0 } }, entries.map(entry => h('div', { key: entry.id, style: { marginBottom: '8px', overflowWrap: 'anywhere' } },
|
|
21
|
+
h('dt', { style: { fontWeight: 600, unicodeBidi: 'plaintext' } }, aliases[entry.id]),
|
|
22
|
+
h('dd', { style: { margin: 0, color: 'var(--dsw-alias-label-tertiary)' } },
|
|
23
|
+
h('span', null, entry.name ?? entry.id), ' · ', h('code', null, entry.id)),
|
|
24
|
+
))));
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
inject: ['slots', 'locale'],
|
|
28
|
+
apply(ctx) {
|
|
29
|
+
ctx.effect(() => ctx.locale.register(namespace, {
|
|
30
|
+
en: { title: 'Display aliases', help: 'Visual labels only. Use the catalog above to navigate; tool targets are unchanged.' },
|
|
31
|
+
pt: { title: 'Aliases visuais', help: 'Apenas rótulos visuais. Navegue pelo catálogo acima; os alvos das ferramentas não mudam.' },
|
|
32
|
+
}), 'agent-team-profile-manager: alias dictionary');
|
|
33
|
+
ctx.slots.inject(footer, () => ctx.slots.register({
|
|
34
|
+
name: footer, id: 'agent-team-profile-aliases', order: 20, locale: namespace,
|
|
35
|
+
}, AliasPanel));
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
});
|