@skillre/dsh-plugin-work-dashboard 0.0.0-stage → 0.6.0

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.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +253 -0
  3. package/README.md +347 -2
  4. package/UNINSTALL.md +7 -0
  5. package/compatibility.json +155 -0
  6. package/cordis.patch.yml +24 -0
  7. package/docs/DESIGN-0.3.md +122 -0
  8. package/docs/DETAIL.md +1 -0
  9. package/docs/DETAIL.zh.md +1 -0
  10. package/docs/preview.svg +254 -0
  11. package/docs/preview.zh.svg +254 -0
  12. package/icon.svg +17 -0
  13. package/lib/client/api.d.ts +35 -0
  14. package/lib/client/api.js +44 -0
  15. package/lib/client/contracts.d.ts +94 -0
  16. package/lib/client/contracts.js +21 -0
  17. package/lib/client/css/base.d.ts +31 -0
  18. package/lib/client/css/base.js +422 -0
  19. package/lib/client/css/charts.d.ts +14 -0
  20. package/lib/client/css/charts.js +191 -0
  21. package/lib/client/css/detail.d.ts +21 -0
  22. package/lib/client/css/detail.js +399 -0
  23. package/lib/client/css/insights.d.ts +27 -0
  24. package/lib/client/css/insights.js +660 -0
  25. package/lib/client/css/overview.d.ts +22 -0
  26. package/lib/client/css/overview.js +338 -0
  27. package/lib/client/preferences.d.ts +56 -0
  28. package/lib/client/preferences.js +118 -0
  29. package/lib/client/styles.d.ts +17 -0
  30. package/lib/client/styles.js +22 -0
  31. package/lib/client/text.d.ts +32 -0
  32. package/lib/client/text.js +934 -0
  33. package/lib/client/view-contract.d.ts +110 -0
  34. package/lib/client/view-contract.js +28 -0
  35. package/lib/client.js +5389 -0
  36. package/lib/config.d.ts +61 -0
  37. package/lib/config.js +67 -0
  38. package/lib/gap.d.ts +60 -0
  39. package/lib/gap.js +227 -0
  40. package/lib/index.d.ts +40 -0
  41. package/lib/index.js +130 -0
  42. package/lib/repo.d.ts +124 -0
  43. package/lib/repo.js +407 -0
  44. package/lib/risks.d.ts +24 -0
  45. package/lib/risks.js +85 -0
  46. package/lib/skill.d.ts +94 -0
  47. package/lib/skill.js +220 -0
  48. package/lib/store.d.ts +63 -0
  49. package/lib/store.js +494 -0
  50. package/lib/timeline.d.ts +23 -0
  51. package/lib/timeline.js +93 -0
  52. package/lib/transport.d.ts +61 -0
  53. package/lib/transport.js +121 -0
  54. package/lib/types.d.ts +612 -0
  55. package/lib/types.js +62 -0
  56. package/locale/en.json +7 -0
  57. package/locale/zh.json +7 -0
  58. package/package.json +117 -4
  59. package/skills/poc-export/SKILL.md +81 -0
  60. package/skills/poc-export/scripts/export-form.mjs +654 -0
  61. package/skills/poc-ledger/SKILL.md +171 -0
  62. package/skills/poc-submit/SKILL.md +186 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 skillre
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.en.md ADDED
@@ -0,0 +1,253 @@
1
+ # @skillre/dsh-plugin-work-dashboard
2
+
3
+ > Status: experimental · targets DSH `0.2.2-rc.2`
4
+
5
+ Adds a **Work Dashboard** entry to the DSH left sidebar: a **multi-module** operations board that puts everything in flight in one place, so you can see what is moving before deciding what to fix. Only the first module, **POC Operations**, is implemented today.
6
+
7
+ [中文](README.md)
8
+
9
+ ## Why "multi-module"
10
+
11
+ The plugin used to be called "POC console" and served one ledger. It became a *container*: the module rail at the top is a seat, POC Operations is the first module sitting in it, and later modules (customer visits, hiring, project retros) join the same Host row without a new plugin.
12
+
13
+ ```
14
+ Work Dashboard (plugin)
15
+ └── POC Operations (module 1, the only implemented one)
16
+ ├── Portfolio band stage funnel / system-company / type mix / amount concentration / dimension coverage / gap rules
17
+ ├── Projects the same list, read three ways: cards · board · table
18
+ ├── Project detail sticky identity rail + progress stream / four dimensions / G0 meter / plan / outcome
19
+ ├── Risk board severity swimlanes + a distribution figure
20
+ └── Global timeline grouped by month + a monthly distribution + the silent projects
21
+ ```
22
+
23
+ ## Three bundled skills
24
+
25
+ Installing this plugin also installs three POC skills. They are not separate
26
+ install items and they do not version separately:
27
+
28
+ | Skill | What it does | Triggered by |
29
+ |---|---|---|
30
+ | `poc-ledger` | Reads and analyses the v3 ledger: progress, stage, the twelve gap rules | "how is POC X doing", "which projects are stuck" |
31
+ | `poc-export` | Generates a self-contained HTML form for colleagues without a GitHub account | "export a form", "have someone fill in this project's progress" |
32
+ | `poc-submit` | Validates the colleague's `.json`, merges it into the v3 YAML, opens a Draft PR | "submit this file", "open a PR for me" |
33
+
34
+ **Why bundle them**: these skills describe the same fields the dashboard reads. They
35
+ used to be installed separately into the user's skill directory, and when the data
36
+ model moved from v1 to v3 the skills kept teaching the model `why_customer_test` /
37
+ `result` / `timeline` — fields that no longer exist. Shipping them in one package on
38
+ one version makes that drift impossible.
39
+
40
+ - Skill files live at `skills/<name>/SKILL.md`; the export skill also ships an
41
+ executable `skills/poc-export/scripts/export-form.mjs`.
42
+ - Registration goes through DSH's `skills` service (`ctx.skills.register`,
43
+ `source: 'bundled'`) and is bound to the plugin's own Fiber, so uninstalling
44
+ removes it.
45
+ - `skills` is an **optional** service: a profile without a skill registry still
46
+ gets the dashboard, just without the skills (a warning is logged).
47
+ - All three were rewritten: v3 field model, 8 gap rules → 12, and the export script
48
+ replaced the dead external `poc_form.py` with a bundled `export-form.mjs` (verified
49
+ in a real browser: autosave, live gap counts, focus preservation, draft persistence).
50
+
51
+ ## What the module solves
52
+
53
+ A POC ledger rots at "it feels like it worked": the project says the goal was met but there is no evidence; the evidence exists but the customer never confirmed it in writing; it genuinely worked and nothing followed. Written into one `result` field, those three collapse into "going well", and nobody notices that *it worked but nothing was banked* is the most valuable gap of all.
54
+
55
+ The module keeps them as four independent dimensions, renders them separately, and layers a hard-coded rule set on top that orders what needs fixing by severity.
56
+
57
+ ## Features
58
+
59
+ ### Data and refresh
60
+
61
+ - **Sidebar entry** in `sidebar.panellist`; clicking it swaps the centre column to the dashboard.
62
+ - **Empty state**: on a cold cache the page says "no data yet, hit Refresh", and discloses the data source and cache path.
63
+ - **Manual refresh**: `git clone` on the first pull, then `git fetch` + `git reset --hard origin/main`; shows progress and "refreshed at HH:MM".
64
+ - **Refresh settings**: off (default) / every 10 minutes / every hour / custom minutes, stored in `localStorage`, only active while the page is open.
65
+ - **Refresh failure**: a clear reason (not logged in / no access / unreachable / timeout / already running) plus a Retry button, and the board stays on screen.
66
+
67
+ ### Portfolio band
68
+
69
+ The first screen answers "where is the money and the risk" before it answers "which project is this". Six figures, each also a filter:
70
+
71
+ - **Stage distribution**: a column chart of G0→G4, tinted red where a stage carries a high-severity gap; click a column to filter that stage.
72
+ - **System / company**: horizontal bars ordered by amount; click a row to filter.
73
+ - **Project types**: a donut of `poc_type` composition, with the project count in the hole.
74
+ - **Amount concentration**: the five largest projects and their share of the total; a concentration warning when one project exceeds a third.
75
+ - **Dimension coverage**: four radial meters showing how much of the portfolio has each dimension.
76
+ - **Gap rules fired**: which rules are happening systemically, not one finding at a time.
77
+
78
+ The band collapses to its header in one click — it is context, and it must not own the screen. The project list is visible without scrolling at 1440×900.
79
+
80
+ ### Projects: one dataset, three readings
81
+
82
+ | View | Question it answers | Shape |
83
+ |---|---|---|
84
+ | **Cards** (default) | What does this project lack? | mini stage rail + amount + latest progress + four dimension marks + gap badge |
85
+ | **Board** | Where is everything piled up? | one column per stage, header carrying count and amount |
86
+ | **Table** | Show me the numbers | the spec's seven columns, sortable sticky head, amount bar behind each figure |
87
+
88
+ All three share one filtered, sorted list from the shell, so switching never changes which projects are visible. The toolbar provides search (name / id / owner / company), composable filter chips (system / stage / status / type), sort key and direction, and a live result count.
89
+
90
+ **Keyboard**: `↑/↓` moves the cursor, `Enter` opens, `Esc` returns, `/` focuses search.
91
+
92
+ ### Pending list
93
+
94
+ Grouped by **rule** rather than flattened: twelve rules across twenty-three projects is a systemic pattern, and grouping shows "everyone is missing the decision chain" at a glance. Each group carries the rule number, how many projects hit it, and a severity band.
95
+
96
+ ### Four dimensions and stages
97
+
98
+ - **Four dimensions**: goal met, evidence, customer recognition, next step — **always four separate elements**, each with its own present/absent state, each tagged *derived* or *hand-filled* so it is clear which side supplied the value.
99
+ - **Stage track**: a five-step G0→G4 rail. Completion comes from the ledger's own gate fields (`gate0.complete`, `plan.gate1.conclusion`, `plan.gate2.ready`, the newest `progress.gate3_2`, `outcome.achievement`), never inferred from the current stage position.
100
+ - **Detail page** in two panes: a sticky project file on the left (name, amount, vertical stage track, four dimensions, gaps, people, prev/next), and a scrolling reading pane on the right where each section uses the shape its data deserves:
101
+ - **Progress stream** (the core): each entry is a card on a vertical timeline with a recognition-toned node, a goal→actual pair, scope chips, evidence as real anchors, customer sync and recognition, G3-1/G3-2, a completion meter parsed from the percentage, and a next-step block that says so when there is no next step.
102
+ - **Four dimensions**: four independent cards with their origin tags.
103
+ - **G0 meter**: a five-cell completeness meter (`tech_owner` is read from the identity block), with the two narrative fields rendered as prose.
104
+ - **Plan**: a criteria table, a numbered scenario list, and severity-marked risks.
105
+ - **Outcome**: three prose blocks plus a milestone callout that renders the missing next milestone as gap R11 — a red finding, not an empty field.
106
+
107
+ ### Enhanced views
108
+
109
+ - **Risk board**: severity swimlanes (high → medium → low → unrated) with a distribution figure above them; both come from one bucketing pass, so the figure and the list cannot disagree.
110
+ - **Global timeline**: grouped by month, with a month divider and a monthly distribution per group, newest first inside each group; rounds with no evidence or no customer feedback are marked explicitly.
111
+
112
+ ### Export form (not offered in this release)
113
+
114
+ The v1 form generator models fields the v3 ledger no longer has, so it is hidden rather than shipped: handing colleagues YAML the ledger cannot read is worse than having no form. The source is preserved at `src/form.v1-deferred.ts` for a later rewrite.
115
+
116
+ ## The twelve gap rules
117
+
118
+ | # | Rule | Trigger | Level |
119
+ |---|---|---|---|
120
+ | 1 | G0 prerequisites missing | `gate0.missing` non-empty | high |
121
+ | 2 | Large amount without G0 clearance | `amount_wan >= 300` and conclusion is not 通过 | high |
122
+ | 3 | G0 passed but no success criteria | conclusion 通过 and `plan.criteria` empty | high |
123
+ | 4 | Success criteria not focused | criteria count outside 2–3 | medium |
124
+ | 5 | Scenarios not focused | scenarios count outside 3–5 | medium |
125
+ | 6 | Too many risks | risks count above 3 | medium |
126
+ | 7 | Testing before G2 is ready | any progress and `gate2.ready` is not Ready | high |
127
+ | 8 | Progress without evidence | newest entry has `actual` but no `evidence` | high |
128
+ | 9 | Evidence without customer recognition | newest entry has evidence and recognition is 未认可/待确认 | high |
129
+ | 10 | G3-1 provable, G3-2 unconfirmed | newest entry `gate3_1=可证明` and `gate3_2!=已确认` | high |
130
+ | 11 | Achieved with no next milestone | `achievement=达成` and `business.milestone` empty | high |
131
+ | 12 | Stage stalled | `stage_since` older than the threshold (default 45 days) | medium |
132
+
133
+ Rules 4–6 skip empty lists: an unplanned project is already caught by rule 3, and firing all three on day one would bury the real findings. Rules 8–10 read only the newest progress entry. Rule 12 does not fire when `stage_since` is absent — unknown is not the same as stalled.
134
+
135
+ ## Configuration
136
+
137
+ | Key | Default | Meaning |
138
+ |---|---|---|
139
+ | `repository` | `skillre/workbranch` | `owner/name` of the ledger repository |
140
+ | `defaultBranch` | `main` | branch to track |
141
+ | `remoteUrl` | `''` (i.e. `https://github.com/<repository>.git`) | clone URL override: GitHub Enterprise, a mirror, or a local test remote |
142
+ | `cacheRoot` | `~/.dsh/cache/work-dashboard` | where the read-only clone lives |
143
+ | `cloneTimeoutMs` | `120000` | hard ceiling for one `git clone` |
144
+ | `fetchTimeoutMs` | `60000` | hard ceiling for one `git fetch` + `reset --hard` |
145
+ | `stallDays` | `45` | days in one stage before rule 12 fires |
146
+
147
+ The cache is wiped on every Host start and rebuilt by the first Refresh; the marker file means the plugin refuses to clear a directory it did not create.
148
+
149
+ ## Install
150
+
151
+ **Final installation belongs to the user.** Open **Plugins** in the DSH Desktop Client or Web UI and choose the source yourself.
152
+
153
+ ### From the plugin market
154
+
155
+ ```
156
+ https://skillre.github.io/dsh-plugin-market/index.json
157
+ ```
158
+
159
+ Add it under **Discover → Index sources**, then install **Work Dashboard** from Discover. The index pins a
160
+ specific commit (`git+https://github.com/skillre/dsh-plugin-work-dashboard#<commit>`); the repository is
161
+ self-contained (`lib/` is committed, there is no `scripts.prepare`), so installation runs no build step.
162
+
163
+ ### Update mechanism (important)
164
+
165
+ Since the DSH `0.2.2` line, the bundle detail page has a **Versions** block that can check for and install
166
+ updates in place. It covers **third-party plugins installed from the npm registry** only — four conditions
167
+ must all hold (see the fleet's `docs/update-mechanism.md`):
168
+
169
+ | Condition | This plugin |
170
+ |---|---|
171
+ | Third-party bundle (not a shipped official one) | yes |
172
+ | The profile dependency is a registry spec saved under the package's own name | see below |
173
+ | The installed manifest's `version` parses as SemVer | yes, `0.4.0` |
174
+ | The package ships no `PROTECTED_PLUGINS` management row | yes, only `skillre-work-dashboard` |
175
+
176
+ Consequences:
177
+
178
+ - **Installed from the market (Git source)**: it appears under Installed but has **no Versions block**.
179
+ Upgrading means **uninstall → reinstall from the market**. That is DSH's verdict, not this plugin's choice.
180
+ - **Installed from npm** (`@skillre/dsh-plugin-work-dashboard`): it enters the official update path, so the
181
+ detail page can check versions, show pre-releases, and update in place.
182
+
183
+ npm publication runs through `.github/workflows/release.yml` with npm Trusted Publishing / OIDC (see
184
+ `RELEASING.md`). **No version is published on the registry yet** — the local npm credential returns 401 and the
185
+ repository has neither an `npm-publish` environment nor a Trusted Publisher, so only the Git channel works today; once
186
+ it is published, switching to the npm channel is what unlocks in-place updates:
187
+
188
+ 1. remove the Git-installed bundle in Plugins;
189
+ 2. enter `@skillre/dsh-plugin-work-dashboard@0.4.0` (or newer) in the install dialog;
190
+ 3. only then does the detail page gain its Versions block.
191
+
192
+ A local tarball is likewise **outside** the official update path.
193
+
194
+ ## Development verification
195
+
196
+ ```sh
197
+ npm install
198
+ npm run check # typecheck + 172 unit tests + lib-drift check + pack check
199
+ npm pack # produces skillre-dsh-plugin-work-dashboard-0.4.0.tgz
200
+ ```
201
+
202
+ Real mount verification **only against an owned, disposable, non-Desktop profile**:
203
+
204
+ ```sh
205
+ node scripts/verify-isolated.mjs # real clone/fetch/detail/auth/restart-wipe + risks/timeline, self-cleaning
206
+ node scripts/ui-preview.mjs # boots a bounded Web instance and writes .preview-url.txt
207
+ node scripts/ui-verify.mjs # browser assertions + docs/evidence/ screenshots
208
+ node scripts/verify-market-install.mjs # LIVE index → real install → routes answer (requires a published entry)
209
+ ```
210
+
211
+ `ui-preview.mjs` stops its processes and deletes the isolated root it created; `verify-isolated.mjs` cleans up in a `finally` and verifies the root is gone. Every script points `cacheRoot` inside the isolated profile and **never touches your real `~/.dsh/cache`**.
212
+
213
+ The UI harness must rebuild and repack before it runs: the preview installs the packed artifact, so verifying without a rebuild would verify the previous build.
214
+
215
+ ## Uninstall and rollback
216
+
217
+ See [UNINSTALL.md](UNINSTALL.md). All data lives in the GitHub repository, so uninstalling loses nothing; `~/.dsh/cache/work-dashboard` can be deleted by hand and is rebuilt on the next entry.
218
+
219
+ ## Compatibility
220
+
221
+ | DSH version | Result | Verified | Notes |
222
+ |---|---|---|---|
223
+ | 0.2.2-rc.2 | passed | 2026-11-13 | packed install + bounded startup + real clone + 31 isolated checks (incl. the three skills really reaching the skill catalog) (see `compatibility.json`) |
224
+ | 0.2.2-rc.1 | passed | 2026-11-06 | same behaviour + 69 browser assertions; 0.6.0 does not touch the client bundle, so that record still holds |
225
+
226
+ Machine-readable evidence is in `compatibility.json`; screenshots and reports are in `docs/evidence/`. **Desktop Client (Electron) was not verified**: its profile is managed by the app and this CLI harness cannot drive it, so a Desktop-specific visual check is still outstanding before Desktop delivery.
227
+
228
+ ## Implementation notes
229
+
230
+ - **Charts have no dependency.** The client bundle may only externalise `react`, so every figure is hand-built SVG or flex geometry with `role="img"`/`aria-label` plus a text summary. No charting library was added.
231
+ - **Styles are split per surface**: `css/base` (frame), `charts`, `overview`, `detail`, `insights`, concatenated in a fixed order in `styles.ts`, so modules can be developed in parallel without touching each other's sheets.
232
+ - **Aggregation happens on the Host**: `snapshot.analysis` (stage/system/type/amount/dimension/rule aggregations) and `detail.gate0.checklist` (the five prerequisites, including `tech_owner` from the identity block) are computed and shipped by the Host. The Client never re-derives them, so a chart cannot contradict the list beside it.
233
+
234
+ ## Known limitations
235
+
236
+ - **The cache is wiped on every DSH restart**, so you have to hit Refresh again (a clone takes about 1.5 s, longer on a slow network). That is intended behaviour.
237
+ - **Read-only**: no import, edit, or pull-request submission. Gaps can be seen but not fixed from the board.
238
+ - **Rule 12's date source**: v3 uses `stage_since`; a project without it is not reported as stalled rather than assumed to be.
239
+ - **Scheduled refresh only runs while the page is open**; closing the page stops it — intended.
240
+ - A private repository needs a local `gh` login with read access; without one, refresh reports "gh is not logged in" explicitly.
241
+ - **Only one module**: the module rail holds one module today; later modules join the same Host row.
242
+
243
+ ## Security and permissions
244
+
245
+ - **Network**: HTTPS to `github.com` (or the configured `remoteUrl`) through the local `git` and `gh` binaries.
246
+ - **Filesystem**: writes only inside `cacheRoot`; refuses to clear a directory it did not create (marker file).
247
+ - **Credentials**: the Host never reads, stores or forwards a token. `gh`'s own credential store is used by `git`/`gh`; the plugin never persists credentials into the cache.
248
+ - **No telemetry**, no third-party requests, no external fonts or CDNs. The generated form (when re-enabled) would be fully offline.
249
+ - **Read-only**: no writes to the ledger repository in this release.
250
+
251
+ ## License
252
+
253
+ MIT
package/README.md CHANGED
@@ -1,3 +1,348 @@
1
- # Temporary Holding Version
1
+ # @skillre/dsh-plugin-work-dashboard · 工作看板
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > 状态:experimental · 面向 DSH `0.2.2-rc.2`
4
+
5
+ 在 DSH 左侧栏加一个「工作看板」入口:一个**多模块**运营看板,把正在推进的事情放到一个地方看清楚,再决定下一步补什么。目前只有第一个模块 **POC 运营**。
6
+
7
+ [English](README.en.md)
8
+
9
+ ## 为什么是「多模块」
10
+
11
+ 原来这个插件叫「POC 运营台」,只服务 POC 台账这一件事。改名成「工作看板」是因为它长成了**看板的容器**:顶部的模块切换条是座位,POC 运营是第一个坐进去的模块,后续模块(比如客户拜访、招聘进展、项目复盘)会陆续加入同一个 Host 行,不需要新插件。
12
+
13
+ 所以现在的结构是:
14
+
15
+ ```
16
+ 工作看板(插件)
17
+ └── POC 运营(模块 1,唯一已实现)
18
+ ├── 组合面板 阶段漏斗 / 体系公司 / 类型构成 / 金额集中度 / 四维覆盖 / 缺口规则
19
+ ├── 项目总览 同一批项目的三种读法:卡片 · 看板 · 表格
20
+ ├── 项目详情 左栏常驻档案 + 右栏进展流 / 四维 / G0 计量 / 计划 / 结论
21
+ ├── 风险看板 按等级分泳道 + 严重度分布条
22
+ └── 全局时间线 按月份分组 + 月度分布条 + 无进展项目清单
23
+ ```
24
+
25
+ ## 随包安装的三个技能
26
+
27
+ 装这个插件会**同时**装好三个 POC 技能,它们不是独立的安装项,也不单独升级:
28
+
29
+ | 技能 | 做什么 | 什么时候触发 |
30
+ |---|---|---|
31
+ | `poc-ledger` | 读取并分析台账(v3),回答进展、判断阶段、识别 12 条缺口 | 「某个 POC 怎么样了」「哪些项目卡住了」 |
32
+ | `poc-export` | 生成自包含 HTML 收集表单,给没有 GitHub 账号的组员填 | 「导出表单」「让某某补一下这个项目的进展」 |
33
+ | `poc-submit` | 校验组员交回的 `.json`,合并进 v3 YAML 后提交 Draft PR | 「把这个文件提交上去」「帮我提个 PR」 |
34
+
35
+ **为什么随包发**:这三个技能描述的字段必须和看板读的数据是同一套。它们曾经作为独立 skill
36
+ 装在用户目录里,结果数据模型从 v1 升到 v3 后,skill 还在教模型读 `why_customer_test` /
37
+ `result` / `timeline` —— 那些字段已经不存在了。打进同一个包、同一个版本,就不可能再错开。
38
+
39
+ - 技能文件在 `skills/<name>/SKILL.md`,导出技能还带一个可执行脚本
40
+ `skills/poc-export/scripts/export-form.mjs`。
41
+ - 注册走 DSH 的 `skills` 服务(`ctx.skills.register`,`source: 'bundled'`),
42
+ 并绑定在插件自己的 Fiber 上:卸载插件就撤销注册。
43
+ - `skills` 是**可选**服务:profile 没有技能注册表时,看板照常工作,只是不注册技能(会记一条警告)。
44
+ - 三个技能都重写过:数据模型换成 v3、缺口规则 8 条改 12 条、导出脚本从失效的外部
45
+ `poc_form.py` 换成随包发布的 `export-form.mjs`(并用真实浏览器验证了自动保存、缺口实时更新、
46
+ 焦点不被抢、草稿持久化)。
47
+
48
+ ## POC 运营模块解决什么
49
+
50
+ POC 台账最容易烂在「感觉做成了」上:项目说结果达成,但没有证据;证据齐了,客户却从没书面认可;真正做成了,却没有下一步。这三件事写进同一个 `result` 字段就会被合并成一句「进展顺利」,于是没人发现「做成了但没转化」是最高价值的缺口。
51
+
52
+ 模块把它们拆成四个独立维度分别记录、分别渲染,再叠上一套硬编码的缺口规则,把该补的东西按严重度排成一列。
53
+
54
+ ## 功能
55
+
56
+ ### 数据与刷新
57
+
58
+ - **侧栏入口**:`sidebar.panellist` 中的「工作看板」,点击把中央区域切换到看板。
59
+ - **空状态页**:缓存为空时明确告诉你「还没有数据,点【刷新】拉取」,并显示数据源与缓存位置。
60
+ - **手动刷新**:首次 `git clone`,之后 `git fetch` + `git reset --hard origin/main`;显示进度与「已刷新 HH:MM」。
61
+ - **刷新设置**:关闭(默认)/ 每 10 分钟 / 每 1 小时 / 自定义分钟数,存 `localStorage`,只在页面打开时生效。
62
+ - **刷新失败**:显示明确原因(未登录 / 无权限 / 网络不可达 / 超时 / 已有刷新在进行)与【重试】按钮,看板内容保留不丢。
63
+
64
+ ### 组合面板
65
+
66
+ 首屏先回答「钱和风险在哪」,再回答「这是哪个项目」。六张图,每张都是筛选器:
67
+
68
+ - **阶段分布**:G0→G4 的柱状分布,某阶段有高危缺口时柱子变红;点柱子筛该阶段。
69
+ - **体系 / 公司**:按金额排序的横向条,点某行按体系筛。
70
+ - **项目类型**:`poc_type` 构成的环形图,中心是项目总数。
71
+ - **金额集中度**:金额最大的 5 个项目及其占总额比例;单项目超过 1/3 时给出集中度警告。
72
+ - **四维覆盖**:四个环形仪表,显示各维度在全部项目里的覆盖率。
73
+ - **缺口规则命中**:哪几条规则在系统性地发生,而不是列一遍。
74
+
75
+ 面板可一键收起——它是上下文,不该占满首屏。项目列表在 1440×900 下无需滚动即可见。
76
+
77
+ ### 项目总览:一种数据,三种读法
78
+
79
+ | 视图 | 回答的问题 | 形态 |
80
+ |---|---|---|
81
+ | **卡片**(默认) | 这个项目缺什么 | 阶段迷你轨 + 金额 + 最新进展 + 四维标记 + 缺口徽标 |
82
+ | **看板** | 整体堆在哪 | 按阶段分列,列头带数量与金额 |
83
+ | **表格** | 数字给我看 | 规格七列,表头可排序、粘性、金额带条形 |
84
+
85
+ 三种视图共用同一次筛选与排序,切换不会改变哪些项目可见。工具栏提供搜索(项目名 / 编号 / 负责人 / 公司)、可组合的筛选 chips(体系 / 阶段 / 状态 / 类型)、排序与方向,并实时显示命中数。
86
+
87
+ **键盘**:`↑/↓` 移动选中,`Enter` 打开,`Esc` 返回,`/` 聚焦搜索。
88
+
89
+ ### 待处理清单
90
+
91
+ 按**规则分组**而不是平铺:12 条规则 × 23 个项目是系统性问题,分组后一眼看出「大家都缺决策链」。每组显示规则编号、命中项目数与严重度色带。
92
+
93
+ ### 四维与阶段
94
+
95
+ - **四维状态**:目标达成、证据、客户认可、下一步**永远四格分开**,每格独立显示有/无。
96
+ - **阶段轨道**:G0→G4 横向轨道;表格里是五点紧凑版,详情页是完整版。完成状态取自台账自己的 `gates.G0..G4.complete`,不由当前阶段位置推断。
97
+ - **详情页**分两栏:左栏是常驻的项目档案(名称、金额、竖向阶段轨道、四维、缺口、人员、上下条导航),右栏是滚动阅读区。每个区块用自己最合适的形态,而不是统一的行:
98
+ - **进展流**(核心):每次进展是一张卡片,带认可度色调的节点、目标→实际、范围 chips、可点开的证据、客户同步与认可、G3-1/G3-2、由百分比解析出的完成度条、以及「下一步」区块(没有下一步时明确说出来)。
99
+ - **四维结果**:四张独立卡片,各带「自动推导 / 人工填」标签。
100
+ - **G0 计量**:五格完整度计量条,其中 `tech_owner` 取自身份区;两条叙述字段以原文散文块呈现。
101
+ - **计划**:指标表格、编号场景列表、带严重度点的风险列表。
102
+ - **结论**:三段散文 + 里程碑提示框(没有下一步里程碑时按缺口 R11 渲染成红色发现,而不是空字段)。
103
+
104
+ ### 增强视图
105
+
106
+ - **风险看板**:按严重度分成泳道(高 → 中 → 低 → 未评级),上方一条严重度分布条,两者来自同一次分桶,所以图和列表不会互相矛盾。
107
+ - **未评级排在最后**:不是「不严重」,而是还没判断;排在最前会埋掉真正被评估为严重的风险。
108
+ - **全局时间线**:按月份分组,每组一个月份分隔条与月度分布,组内按日期从新到旧;无证据 / 无客户反馈的轮次显式标出。
109
+
110
+ ### 导出表单(本版暂不提供)
111
+
112
+ > 导出表单仍按 v1 字段建模,v3 已没有那些字段。为避免组员拿到台账读不了的 YAML,本版**隐藏了导出入口**,代码保留在 `src/form.v1-deferred.ts`,将在 P1 按 v3 重写。
113
+
114
+ 原设计(P1 重写目标):
115
+
116
+ - 勾选一个或多个项目 → 生成**一个自包含 HTML 文件**并下载。表单没有 CDN、没有外部字体、没有服务器,双击即可在离线机器上填写。
117
+ - **自动保存**:`localStorage`,键由**项目集合**派生(不是生成时间),所以同一个项目集重新生成表单时能找到同一份草稿。
118
+ - **实时校验**:指标 2–3、场景 3–5、风险 ≤3、G0 四项必填,每次编辑即重算。
119
+ - **下载真实 YAML**:不是 JSON。生成的值会按 YAML 规则正确加引号/块标量,所以组员回传的文件可以直接拿去用。
120
+ - **批量导出**:多选项目打包进同一个表单;下载时**每个项目一个 `.yaml` 文件**(YAML 文件只能装一个项目的映射,拼接会产生重复键)。
121
+
122
+ ## v3 数据模型
123
+
124
+ 台账已从 v1 升级到 v3。v3 是**以进展流为中心**的模型:
125
+
126
+ ```
127
+ ① 身份 poc_id / name / org{system,company,department} / amount_wan /
128
+ poc_type / priority / owner / sales / tech_owner / exec_sponsor /
129
+ stage / status / stage_since
130
+ ② gate0 值不值得做:why_customer / why_us / decision_chain /
131
+ post_poc_decision / competitor / review{conclusion,reviewer,reviewed_at} /
132
+ missing(自动算)/ complete(自动算)
133
+ ③ plan 怎么赢:customer_pain / expected_recognition / criteria[] /
134
+ scenarios[] / our_edge / risks[] / gate1 / gate2{ready,prerequisites}
135
+ ④ progress 进展流(追加式,永不覆盖)★ 核心
136
+ ⑤ outcome 结论:achievement / customer_recognition / our_proof /
137
+ remaining_risks / conclusion{proved,recognized,next_business} /
138
+ business{milestone,owner,deadline,status} / overall
139
+ ```
140
+
141
+ ### 四维从 `outcome` 读
142
+
143
+ | 维度 | 来源字段 | 性质 |
144
+ |---|---|---|
145
+ | 目标达成 | `outcome.achievement` | 自动推导(来自最后一条进展的 gate3_1 + completion) |
146
+ | 证据 | `outcome.our_proof`,或最后一条进展的 `evidence[]` | 人工填 / 进展携带 |
147
+ | 客户认可 | `outcome.customer_recognition` | 自动推导(来自最后一条进展的 customer.recognition) |
148
+ | 下一步 | `outcome.business.milestone` | 人工填 |
149
+
150
+ **四维永远四张独立卡片**,每张标注「自动推导」或「人工填」——因为 v3 里前两者由系统推导、后两者靠人填,混在一起看会分不清哪个结论可信。
151
+
152
+ ### 进展流(核心)
153
+
154
+ 每个项目的 `progress[]` 渲染成一条时间线,最新在上。一条进展包含:
155
+
156
+ - `type`(内部Review / 客户阶段同步 / Checkpoint)、`seq`、`completion`
157
+ - `goal`(这次要验证什么)、`items[]`(范围)、`actual`(实际做到什么)
158
+ - `evidence[]`(标题 + 链接 + 类型,作为可点开的凭据)
159
+ - `customer`(`synced_with` / `feedback` / `recognition`)
160
+ - `gate3_1`(可证明/待补证据)、`gate3_2`(已确认/待确认)
161
+ - `next`(`goal` / `owner` / `deadline`)
162
+
163
+ **今天 23 个项目的 `progress` 都是空的**,所以进展流显示空状态「还没有进展记录 / 第一次进展后,这里会显示完整时间线」。这是正常状态,进展要靠组员用表单填。
164
+
165
+ ## 12 条缺口规则
166
+
167
+ 规则硬编码在 `src/gap.ts`(纯函数,无时钟无文件系统,全部由 `tests/gap.spec.ts` 逐条锁定):
168
+
169
+ | # | 规则 | 判定 | 级别 |
170
+ |---|---|---|---|
171
+ | R1 | G0 五必填缺失 | `gate0.missing` 非空 | 🔴 high |
172
+ | R2 | 大金额未过 G0 | `amount_wan >= 300` 且结论非「通过」 | 🔴 high |
173
+ | R3 | G0 通过但计划空白 | 结论「通过」且 `plan.criteria` 空 | 🔴 high |
174
+ | R4 | 成功标准不聚焦 | criteria 数量不在 2–3(空则不算) | 🟡 medium |
175
+ | R5 | 场景不聚焦 | scenarios 不在 3–5(空则不算) | 🟡 medium |
176
+ | R6 | 风险超限 | `plan.risks` > 3 | 🟡 medium |
177
+ | R7 | G2 前置未就绪已开测 | 有 progress 且 `plan.gate2.ready != Ready` | 🔴 high |
178
+ | R8 | 进展无证据 | 最新进展有 `actual` 但 `evidence` 空 | 🔴 high |
179
+ | R9 | 有证据无客户认可 | 有 evidence 但 recognition 是「未认可/待确认」 | 🔴 high |
180
+ | R10 | G3-1 可证明但 G3-2 未确认 | `gate3_1=可证明` 且 `gate3_2!=已确认` | 🔴 high |
181
+ | R11 | 达成但无 Next Milestone | `achievement=达成` 且 `business.milestone` 空 | 🔴 high(排序最优先) |
182
+ | R12 | 阶段停滞 | `stage_since` 距今 > `stallDays`(默认 45 天) | 🟡 medium |
183
+
184
+ **R8–R10 只看最新一条进展**:只看最后一条,因为「历史某轮没证据」不该在补上之后继续报警。
185
+
186
+ **R4–R6 对空列表不触发**:空代表「还没规划」,那是 R3 的事;否则每个新项目第一天就会报三条聚焦问题。
187
+
188
+ **R11 排最优先**:价值做出来了却没转化路径,是这套台账里最贵的缺口。
189
+
190
+ ## 数据与权限## 数据与权限
191
+
192
+ | 项目 | 说明 |
193
+ |---|---|
194
+ | 数据所有者 | Host。浏览器端只持有视图状态(当前页面、当前项目、刷新节奏)。 |
195
+ | 数据源 | GitHub 私有仓库 `skillre/workbranch` 的 `projects/*.yaml`(可配置)。 |
196
+ | 缓存 | `~/.dsh/cache/work-dashboard/repo`,**DSH 启动即清空**,用户点【刷新】才重新拉取。 |
197
+ | 网络 | 仅 Host 侧对 `github.com` 做 `git clone` / `git fetch`。浏览器 ↔ Host 只走本机 `/api` 通道。 |
198
+ | 凭据 | 复用本机已登录的 `gh` CLI。token 在调用时读取,**只通过子进程环境变量**传给 git,不写入 `.git/config`、不出现在进程参数、不进入前端。 |
199
+ | 文件系统 | 只写缓存根目录(并在其中建 `.lock` 与所有权标记 `.work-dashboard-cache`);只读缓存里的 `projects/*.yaml`。 |
200
+ | 写入 | **无**。本插件只读台账;导出表单产出的是本地文件,不回写仓库。 |
201
+ | 模型可见 | 否。本插件不注册任何模型工具。 |
202
+
203
+ ### 缓存目录的两道保险
204
+
205
+ 1. **启动即清空**——缓存只是远端副本,避免「本地看起来是新的」。代价是每次重启 DSH 要重新点一次【刷新】(clone 约 1.5 秒,慢网络会更久)。
206
+ 2. **只清自己建的目录**——如果 `cacheRoot` 已存在、非空、且没有本插件的所有权标记,插件**拒绝清空**并报错,而不是删掉你的文件。空的已存在目录会被接管。
207
+
208
+ ### 并发
209
+
210
+ 同一缓存根目录下的刷新用 `.lock` 文件串行化:两个标签页同时点刷新、或两个 DSH 实例共享同一个 home,都不会并发 clone。超过 120 秒的锁被视为崩溃残留并回收。
211
+
212
+ ## 配置
213
+
214
+ 在 profile 的 `cordis.patch.yml` 中按行 id 覆盖(`config` 整行替换,未写出的键取默认值):
215
+
216
+ ```yaml
217
+ - id: skillre-work-dashboard
218
+ name: '@skillre/dsh-plugin-work-dashboard'
219
+ config:
220
+ repository: skillre/workbranch
221
+ cacheRoot: ~/.dsh/cache/work-dashboard
222
+ defaultBranch: main
223
+ cloneTimeoutMs: 120000
224
+ fetchTimeoutMs: 60000
225
+ stallDays: 45
226
+ ```
227
+
228
+ | 键 | 默认 | 含义 |
229
+ |---|---|---|
230
+ | `repository` | `skillre/workbranch` | 数据源,必须是 GitHub 上的 `owner/name` |
231
+ | `cacheRoot` | `~/.dsh/cache/work-dashboard` | 缓存根目录,启动时清空(`~` 会展开) |
232
+ | `defaultBranch` | `main` | 克隆跟踪的分支 |
233
+ | `cloneTimeoutMs` | `120000` | 单次 clone 上限 |
234
+ | `fetchTimeoutMs` | `60000` | 单次 fetch + reset 上限 |
235
+ | `stallDays` | `45` | 规则 R12 的「阶段停留多久算停滞」阈值 |
236
+ | `remoteUrl` | `''`(即 `https://github.com/<repository>.git`) | 克隆地址覆盖:GitHub Enterprise、镜像,或本地测试仓库 |
237
+
238
+ > **关于超时默认值**:规格书建议 `cloneTimeoutMs: 30000`。实测同一网络下正常 clone 约 1.5 秒,但网络拥塞时一次 clone 用了 **68 秒**——30 秒会让首次使用间歇性失败。因此默认值提到 120 秒;超时仍会给出明确原因和【重试】。
239
+
240
+ ## 安装
241
+
242
+ **安装动作由你完成**:插件管理器里选来源、点确认。本插件不代装。
243
+
244
+ ### 从插件市场安装
245
+
246
+ ```
247
+ https://skillre.github.io/dsh-plugin-market/index.json
248
+ ```
249
+
250
+ 1. DSH Web → **Plugins** → **More**(Experimental plugins)→ 启用 **Custom plugin markets**;
251
+ 2. 出现 **Discover** 标签页 → **Index sources** → **Add index source** → 粘贴上面的 URL;
252
+ 3. 在 Discover 里找到 **工作看板**,确认来源后点 **Install**。
253
+
254
+ 索引里的版本钉在具体提交(`git+https://github.com/skillre/dsh-plugin-work-dashboard#<commit>`),
255
+ 仓库自包含:`lib/` 已提交、无 `scripts.prepare`,安装不会执行构建脚本。
256
+
257
+ ### 更新机制(重要)
258
+
259
+ DSH `0.2.2` 线起,插件详情页有「版本 / Versions」区块,能检查并原地更新。**但它只覆盖从 npm registry
260
+ 安装的第三方插件**——判定条件有四条,必须同时满足(见舰队 `docs/update-mechanism.md`):
261
+
262
+ | 条件 | 本插件现状 |
263
+ |---|---|
264
+ | 第三方 bundle(非官方自带) | ✅ |
265
+ | profile 依赖是**以自己包名**保存的 registry spec | ⚠️ 见下 |
266
+ | 已装 manifest 的 `version` 是合法 SemVer | ✅ `0.4.0` |
267
+ | 包内不含 `PROTECTED_PLUGINS` 管理行 | ✅ 只声明 `skillre-work-dashboard` 一行 |
268
+
269
+ 因此:
270
+
271
+ - **从市场(Git 源)安装**:出现在 Installed 列表里,但**不会**出现「版本」区块。升级只能
272
+ **卸载 → 重新从市场安装**。这是 DSH 的判定结果,不是本插件的选择。
273
+ - **从 npm 安装**(`@skillre/dsh-plugin-work-dashboard`):才进入官方更新机制,可以在详情页
274
+ 检查更新、看预发布版本、点「更新」原地升级。
275
+
276
+ 本插件的 npm 发布由 `.github/workflows/release.yml` 经 npm Trusted Publishing / OIDC 完成
277
+ (见 `RELEASING.md`)。**当前 registry 上尚无发布版本**:本机 npm 凭据返回 401、仓库也未配置
278
+ `npm-publish` 环境与 Trusted Publisher,所以此刻只有 Git 渠道可用;
279
+ 发布之后,切换到 npm 渠道才能拿到原地更新:
280
+
281
+ 1. 在 Plugins 里移除 Git 安装的 bundle;
282
+ 2. 在安装对话框输入 `@skillre/dsh-plugin-work-dashboard@0.4.0`(或更高);
283
+ 3. 之后详情页才会出现「版本」区块。
284
+
285
+ ### 用本地包
286
+
287
+ 用构建出的 `.tgz` 绝对路径(见下方「构建与自测」),由你在插件管理器中选择安装来源。
288
+ 本地包同样**不进**官方更新机制。
289
+
290
+ ## 构建与自测
291
+
292
+ ```sh
293
+ npm install
294
+ npm run check # typecheck + 172 个单测 + lib 漂移检查 + 打包检查
295
+ npm pack # 产出 skillre-dsh-plugin-work-dashboard-0.4.0.tgz
296
+ ```
297
+
298
+ **仅使用自己拥有的、可丢弃的非 Desktop profile**做真实挂载验证:
299
+
300
+ ```sh
301
+ node scripts/verify-isolated.mjs # 真实 clone/fetch/详情/鉴权/重启清空 + 风险/时间线,结束自清理
302
+ node scripts/ui-preview.mjs # 起一个有界 Web 实例并写入 .preview-url.txt
303
+ node scripts/ui-verify.mjs # 浏览器断言 + docs/evidence/ 截图
304
+ node scripts/verify-market-install.mjs # 线上索引 → 真实安装 → 动作可用(需已发布)
305
+ ```
306
+
307
+ `ui-preview.mjs` 必须在退出前创建 `.preview-stop`,或让它超时;它会停进程、删掉自己创建的隔离根目录。`verify-isolated.mjs` 在 `finally` 里清理并校验根目录已消失。所有脚本都把 `cacheRoot` 指向隔离 profile 内的路径,**不会碰你真实的 `~/.dsh/cache`**。
308
+
309
+ ## 卸载与回滚
310
+
311
+ 见 [UNINSTALL.md](UNINSTALL.md)。数据全在 GitHub 仓库里,卸载插件不丢任何数据;`~/.dsh/cache/work-dashboard` 可随时手动删除,下次进入会自动重建。
312
+
313
+ ## 兼容性
314
+
315
+ | DSH 版本 | 结果 | 验证日期 | 说明 |
316
+ |---|---|---|---|
317
+ | 0.2.2-rc.2 | 通过 | 2026-11-13 | 打包安装 + 有界启动 + 真实 clone + 31 项隔离集成(含三个技能确实进入技能目录)(见 `compatibility.json`) |
318
+ | 0.2.2-rc.1 | 通过 | 2026-11-06 | 同上行为 + 69 项浏览器断言;0.6.0 未改动客户端产物,该记录仍然有效 |
319
+
320
+ 机器可读证据在 `compatibility.json`,截图与报告在 `docs/evidence/`。**未验证 Desktop Client(Electron)**:它的 profile 由应用管理,本 CLI 测试台无法驱动,Desktop 发布前需在那里重做一次视觉检查。
321
+
322
+ ## 实现说明
323
+
324
+ - **图表零依赖**:客户端 bundle 只能把 `react` 外部化,所以每张图都是手写 SVG / flex 几何,配 `role="img"` + `aria-label` + 文本兜底。没有引入任何图表库。
325
+ - **样式按界面拆分**:`css/base`(框架)、`charts`、`overview`、`detail`、`insights`,在 `styles.ts` 里按固定顺序拼接,所以四个模块可以并行开发而不互相踩样式。
326
+ - **聚合在 Host 算**:`snapshot.analysis`(阶段/体系/类型/金额/四维/规则聚合)与 `detail.gate0.checklist`(五必填,含身份区的 `tech_owner`)都由 Host 计算并下发,客户端不重新推导——否则图会和它旁边的列表对不上。
327
+
328
+ ## 已知限制
329
+
330
+ - **每次 DSH 重启缓存清空**,需要重新点【刷新】(clone 约 1.5 秒,慢网络更久)。这是既定行为。
331
+ - **只读**:不提供导入、编辑、提交 PR。缺口只能看,不能在看板上改。
332
+ - **R12 的日期来源**:v3 用 `stage_since` 算阶段停留时间;没有 `stage_since` 的项目不报 R12,而不是假定它停滞。
333
+ - **定时刷新只在页面打开时生效**,关掉页面就停——预期行为。
334
+
335
+
336
+ - 私有仓库要求本机 `gh` 已登录且账号有读权限;未登录时刷新会明确报「gh 未登录」。
337
+ - **只有一个模块**:模块切换条目前只坐着一个模块,后续模块会加在同一个 Host 行里。
338
+
339
+ ## 安全与权限
340
+
341
+ - 唯一写入目标是 `cacheRoot`(以及其中的 `.lock`、所有权标记、clone 目录)。
342
+ - 唯一网络目标是通过 `git` 访问 `github.com`。
343
+ - 唯一外部命令是 `git` 与 `gh`(`gh auth token`),都在 Host 侧、都以超时和进程组终止兜底。
344
+ - 不读用户其他文件;不上报遥测;不注册模型工具。
345
+
346
+ ## License
347
+
348
+ MIT
package/UNINSTALL.md ADDED
@@ -0,0 +1,7 @@
1
+ # Uninstall and rollback
2
+
3
+ The user removes this bundle in their DSH Desktop Client or Web UI **Plugins** manager. To roll back, the user removes the faulty version and chooses a verified known-good package/version in that manager, if supported. Neither an agent nor a developer uninstalls preexisting user bundles or installs the replacement for them.
4
+
5
+ Temporary development tests use a different rule: stop the test process; remove only the test-created bundle/dependency/selection/config or the confirmed owned isolated non-Desktop profile; verify the test state is absent. If an actual user profile was used with prior approval, preserve its baseline installations and data and report any residue that could not be restored.
6
+
7
+ If the interface cannot start, arrange user-authorized recovery through the applicable CLI/profile recovery procedure; do not assume Electron's `desktop` profile can be operated with CLI `--profile desktop`. Removing the package removes its Bundle layer. Document separately any user-owned files or external resources that an implemented plugin deliberately leaves behind.