@skillre/dsh-plugin-work-dashboard 0.6.0 → 0.10.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.
- package/README.en.md +12 -6
- package/README.md +32 -8
- package/compatibility.json +44 -4
- package/docs/DESIGN-1.0-/344/274/230/345/214/226/346/226/271/346/241/210.md +212 -0
- package/docs/DESIGN-/344/274/232/350/257/235/344/272/214-SuperAgent/344/270/216/344/273/223/345/272/223/346/224/271/351/200/240.md +275 -0
- package/docs/LEDGER-REQUIREMENTS-v3.1.md +367 -0
- package/docs/PLAN-0.7-0.9.md +230 -0
- package/docs/PLAN-v3.1-adaptation.md +237 -0
- package/docs/TARGET-/345/217/260/350/264/246/344/273/223/345/272/223v3.1.md +500 -0
- package/docs//350/200/201Mac-SuperAgent/346/224/271/351/200/240/350/256/260/345/275/225-/347/254/254/344/272/214/346/255/245.md +233 -0
- package/lib/blockers.d.ts +45 -0
- package/lib/blockers.js +160 -0
- package/lib/client/api.d.ts +8 -1
- package/lib/client/api.js +1 -0
- package/lib/client/css/base.d.ts +1 -1
- package/lib/client/css/base.js +39 -0
- package/lib/client/css/blockers.d.ts +18 -0
- package/lib/client/css/blockers.js +196 -0
- package/lib/client/css/detail.d.ts +1 -1
- package/lib/client/css/detail.js +107 -4
- package/lib/client/css/overview.d.ts +5 -4
- package/lib/client/css/overview.js +23 -34
- package/lib/client/css/summary.d.ts +13 -0
- package/lib/client/css/summary.js +187 -0
- package/lib/client/format.d.ts +57 -0
- package/lib/client/format.js +96 -0
- package/lib/client/styles.js +3 -1
- package/lib/client/text.js +284 -44
- package/lib/client/view-contract.d.ts +9 -1
- package/lib/client.js +4836 -968
- package/lib/form.d.ts +278 -0
- package/lib/form.js +1153 -0
- package/lib/gap.d.ts +26 -8
- package/lib/gap.js +88 -17
- package/lib/index.js +29 -0
- package/lib/repo.d.ts +60 -0
- package/lib/repo.js +99 -0
- package/lib/rules.d.ts +105 -0
- package/lib/rules.js +227 -0
- package/lib/signals.d.ts +126 -0
- package/lib/signals.js +238 -0
- package/lib/store.d.ts +16 -1
- package/lib/store.js +92 -11
- package/lib/transport.d.ts +7 -1
- package/lib/transport.js +10 -0
- package/lib/types.d.ts +218 -15
- package/lib/types.js +21 -0
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -13,11 +13,15 @@ The plugin used to be called "POC console" and served one ledger. It became a *c
|
|
|
13
13
|
```
|
|
14
14
|
Work Dashboard (plugin)
|
|
15
15
|
└── POC Operations (module 1, the only implemented one)
|
|
16
|
-
├──
|
|
16
|
+
├── KPI strip total / in progress / budget / blocked / G0 passed + stage chips
|
|
17
|
+
├── Portfolio band stage funnel (with in-stage completion) / system-company / type mix / amount concentration / dimension coverage / gap rules
|
|
18
|
+
├── Budget panel G0 passed / awaiting review / no amount, plus the system split and concentration
|
|
17
19
|
├── Projects the same list, read three ways: cards · board · table
|
|
18
|
-
├──
|
|
20
|
+
├── Blockers five sources merged and grouped by project: gap rules / stalled / no amount / no progress / no stage date
|
|
21
|
+
├── Project detail stage-aware skeleton: basic info / worklist, then the blocks the current gate needs
|
|
19
22
|
├── Risk board severity swimlanes + a distribution figure
|
|
20
|
-
|
|
23
|
+
├── Global timeline grouped by month + a monthly distribution + the silent projects
|
|
24
|
+
└── Export form a self-contained v3 collection form whose YAML can be committed as-is
|
|
21
25
|
```
|
|
22
26
|
|
|
23
27
|
## Three bundled skills
|
|
@@ -109,9 +113,11 @@ Grouped by **rule** rather than flattened: twelve rules across twenty-three proj
|
|
|
109
113
|
- **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
114
|
- **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
115
|
|
|
112
|
-
###
|
|
116
|
+
### Collection form
|
|
113
117
|
|
|
114
|
-
The
|
|
118
|
+
The **Export form** button in the header generates a self-contained HTML file for the projects the current filters show: double-click to fill in, drafts autosave locally, the gap rules' counts (2–3 criteria, 3–5 scenarios, at most 3 risks) are checked live, and it downloads real YAML — one file per project. Selecting nothing produces a blank new-project form.
|
|
119
|
+
|
|
120
|
+
The generated YAML is the v3 shape and reads back through this plugin's own parser; the form only asks for v3 fields (the five G0 prerequisites, the plan, and one appended progress entry), unlike the v1 generator it replaces.
|
|
115
121
|
|
|
116
122
|
## The twelve gap rules
|
|
117
123
|
|
|
@@ -220,7 +226,7 @@ See [UNINSTALL.md](UNINSTALL.md). All data lives in the GitHub repository, so un
|
|
|
220
226
|
|
|
221
227
|
| DSH version | Result | Verified | Notes |
|
|
222
228
|
|---|---|---|---|
|
|
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`) |
|
|
229
|
+
| 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) + 15 live market npm-install checks (see `compatibility.json`) |
|
|
224
230
|
| 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
231
|
|
|
226
232
|
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.
|
package/README.md
CHANGED
|
@@ -15,11 +15,15 @@
|
|
|
15
15
|
```
|
|
16
16
|
工作看板(插件)
|
|
17
17
|
└── POC 运营(模块 1,唯一已实现)
|
|
18
|
-
├──
|
|
18
|
+
├── KPI 顶条 总数 / 进行中 / 预算合计 / 有阻障 / G0 已通过 + 阶段 chip
|
|
19
|
+
├── 组合面板 阶段漏斗(含阶段内完成度)/ 体系公司 / 类型构成 / 金额集中度 / 四维覆盖 / 缺口规则
|
|
20
|
+
├── 预算面板 G0 已通过 / 待评审 / 未填金额 三桶 + 体系分布 + 集中度
|
|
19
21
|
├── 项目总览 同一批项目的三种读法:卡片 · 看板 · 表格
|
|
20
|
-
├──
|
|
22
|
+
├── 阻障栏 五类来源合并、按项目分组:缺口规则 / 阶段停滞 / 未填金额 / 无进展 / 缺阶段起始日
|
|
23
|
+
├── 项目详情 阶段感知骨架:基本信息 / 待补清单 + 按 Gate 重排的区块(其余折叠,字段不丢)
|
|
21
24
|
├── 风险看板 按等级分泳道 + 严重度分布条
|
|
22
|
-
|
|
25
|
+
├── 全局时间线 按月份分组 + 月度分布条 + 无进展项目清单
|
|
26
|
+
└── 导出表单 按 v3 字段生成自包含 HTML 收集表单,导出的 YAML 可直接提交
|
|
23
27
|
```
|
|
24
28
|
|
|
25
29
|
## 随包安装的三个技能
|
|
@@ -93,23 +97,43 @@ POC 台账最容易烂在「感觉做成了」上:项目说结果达成,但
|
|
|
93
97
|
### 四维与阶段
|
|
94
98
|
|
|
95
99
|
- **四维状态**:目标达成、证据、客户认可、下一步**永远四格分开**,每格独立显示有/无。
|
|
96
|
-
- **阶段轨道**:G0→G4
|
|
97
|
-
-
|
|
100
|
+
- **阶段轨道**:G0→G4 横向轨道;表格里是五点紧凑版,详情页是完整版。完成状态由 v3 各阶段自己的字段推出(G0 取 `gate0.complete`、G1 取 `plan.gate1.conclusion`、G2 取 `plan.gate2.ready`、G3 取最新进展的 `gate3_2`、G4 取 `outcome.achievement`)——v3 已没有 `gates.G0..G4.complete` 数组,按当前阶段位置推断会把从没签核过的阶段报成已完成。
|
|
101
|
+
- **详情页**分两栏:左栏是常驻的项目档案(客户公司/体系、金额、竖向阶段轨道、四维、缺口、人员、上下条导航),右栏是**阶段感知**的滚动阅读区——骨架按当前 Gate 重排,其余区块收进「其他区块」折叠,字段一个不少:
|
|
102
|
+
- **阶段上下文**:顶部声明当前 Gate 的读法与下一道门,并诚实标出本阶段是否已记录完成。
|
|
103
|
+
- **待补清单**:直接点名缺哪个字段(如 `decision_chain`、`amount_wan`),空态变成可执行的编辑指引。
|
|
104
|
+
- **基本信息**:客户名、体系、客户技术人、业务决策人、决策链、测后决策——缺失时明说,不留空。
|
|
98
105
|
- **进展流**(核心):每次进展是一张卡片,带认可度色调的节点、目标→实际、范围 chips、可点开的证据、客户同步与认可、G3-1/G3-2、由百分比解析出的完成度条、以及「下一步」区块(没有下一步时明确说出来)。
|
|
99
106
|
- **四维结果**:四张独立卡片,各带「自动推导 / 人工填」标签。
|
|
100
107
|
- **G0 计量**:五格完整度计量条,其中 `tech_owner` 取自身份区;两条叙述字段以原文散文块呈现。
|
|
101
108
|
- **计划**:指标表格、编号场景列表、带严重度点的风险列表。
|
|
102
109
|
- **结论**:三段散文 + 里程碑提示框(没有下一步里程碑时按缺口 R11 渲染成红色发现,而不是空字段)。
|
|
103
110
|
|
|
111
|
+
各阶段的骨架顺序:
|
|
112
|
+
|
|
113
|
+
| 阶段 | 先看什么 |
|
|
114
|
+
|---|---|
|
|
115
|
+
| G0 | 基本信息 → G0 工作台 → 计划 |
|
|
116
|
+
| G1 / G2 | 基本信息 → 计划 → 进展流 |
|
|
117
|
+
| G3 | 进展流 → 四维 → 基本信息 |
|
|
118
|
+
| G4 | 四维 → 结论 → 基本信息 |
|
|
119
|
+
| closed | 结论 → 四维 → 基本信息 |
|
|
120
|
+
| 未识别 | 历史全量顺序(不猜) |
|
|
121
|
+
|
|
104
122
|
### 增强视图
|
|
105
123
|
|
|
124
|
+
- **阻障栏**:把五类来源合成一个按项目分组的列表——12 条缺口规则、阶段停滞、未填金额、无进展记录、缺阶段起始日。R12 已经报出的停滞不会被第二个来源重复计数。每个来源一个可点 chip,计数随当前筛选变化。
|
|
106
125
|
- **风险看板**:按严重度分成泳道(高 → 中 → 低 → 未评级),上方一条严重度分布条,两者来自同一次分桶,所以图和列表不会互相矛盾。
|
|
107
126
|
- **未评级排在最后**:不是「不严重」,而是还没判断;排在最前会埋掉真正被评估为严重的风险。
|
|
108
127
|
- **全局时间线**:按月份分组,每组一个月份分隔条与月度分布,组内按日期从新到旧;无证据 / 无客户反馈的轮次显式标出。
|
|
109
128
|
|
|
110
|
-
###
|
|
129
|
+
### 导出收集表单
|
|
130
|
+
|
|
131
|
+
页头「导出表单」按当前筛选可见的项目生成一个**自包含 HTML**:双击即可填写,自动保存到本机,
|
|
132
|
+
实时校验缺口规则要求(指标 2–3 条、场景 3–5 个、风险 ≤3),填完下载真实 YAML,
|
|
133
|
+
一个项目一个文件。不选任何项目则生成空白新建表单。
|
|
111
134
|
|
|
112
|
-
|
|
135
|
+
生成的 YAML 是 v3 结构,能被本插件原样读回;表单只收集 v3 真实字段(G0 五必填 / 计划 / 进展追加),
|
|
136
|
+
不会像 v1 表单那样问已经删掉的字段。
|
|
113
137
|
|
|
114
138
|
原设计(P1 重写目标):
|
|
115
139
|
|
|
@@ -314,7 +338,7 @@ node scripts/verify-market-install.mjs # 线上索引 → 真实安装 → 动
|
|
|
314
338
|
|
|
315
339
|
| DSH 版本 | 结果 | 验证日期 | 说明 |
|
|
316
340
|
|---|---|---|---|
|
|
317
|
-
| 0.2.2-rc.2 | 通过 | 2026-11-13 | 打包安装 + 有界启动 + 真实 clone + 31
|
|
341
|
+
| 0.2.2-rc.2 | 通过 | 2026-11-13 | 打包安装 + 有界启动 + 真实 clone + 31 项隔离集成(含三个技能确实进入技能目录)+ 15 项线上市场 npm 安装(见 `compatibility.json`) |
|
|
318
342
|
| 0.2.2-rc.1 | 通过 | 2026-11-06 | 同上行为 + 69 项浏览器断言;0.6.0 未改动客户端产物,该记录仍然有效 |
|
|
319
343
|
|
|
320
344
|
机器可读证据在 `compatibility.json`,截图与报告在 `docs/evidence/`。**未验证 Desktop Client(Electron)**:它的 profile 由应用管理,本 CLI 测试台无法驱动,Desktop 发布前需在那里重做一次视觉检查。
|
package/compatibility.json
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"notes": "Packed tarball 0.1.0 installed into an owned, disposable, non-Desktop web profile (DSH 0.2.2-rc.1). This release migrates the plugin to the v3 POC data model. The parser reads identity + gate0 + plan + progress[] + outcome; the four dimensions come from `outcome`; the progress stream is a new core view; the gap rule set grew from 8 to 12 (R1-R12); and the stat strip is now POC总数 / G0通过 / 进行中 / 金额合计. The v3 numbers were verified against the real ledger data first: 23 projects, 6050万 total, 1 G0 passed, 0 G0 complete, R1 on all 23, R2 on 7 — matching the update note's acceptance list exactly. dsh --profile <test> --dump-config composed the row; a bounded real startup served the Web app; the authenticated transport exercised the exact /api/skillre-work-dashboard/execute route (cold cache empty, manual refresh cloned the ledger, board computed v3 summaries and gaps, detail returned the progress stream, a second refresh used fetch + reset --hard, unknown project and unauthenticated request failed cleanly), and cleanup removed the owned profile with verified absence. The real DSH Web UI was then driven in headless Chromium: 43/43 assertions passed, including the seven-column v3 table, the amount column, the latest-progress column, the progress-stream section, four separate dimension cards, the twelve-rule pending list, and a new guard that no raw template placeholder reaches the DOM. Two real defects were caught during that verification and fixed: gap TITLES were rendered through t() instead of format() so parameterised titles leaked literal {amountWan}; and the detail identity line still carried the removed v1 {tier} key. The export form is deliberately hidden in this release: it still models v1 fields, and shipping it would hand colleagues YAML the v3 ledger cannot read. It is preserved at src/form.v1-deferred.ts for the P1 rewrite. The published 0.2.0 market entry was then verified end to end: the LIVE hosted index listed 工作看板 0.2.0, its own install spec (git+https://github.com/skillre/dsh-plugin-work-dashboard#42b7c9f2bf951cdd1715feda48b47bf81286bc0c) was installed into a fresh owned profile, --dump-config composed the row, a bounded startup served the app, and list/detail/risks/timeline all answered (detail correctly reported unknown-project on the cold cache). Cleanup removed the owned profile and verified it was gone.",
|
|
103
103
|
"evidence": [
|
|
104
104
|
"docs/evidence/isolated-mount-0.6.0.json",
|
|
105
|
-
"docs/evidence/market-install-0.
|
|
105
|
+
"docs/evidence/market-install-0.6.0.json",
|
|
106
106
|
"docs/evidence/ui-verification.json",
|
|
107
107
|
"docs/evidence/work-dashboard-empty.png",
|
|
108
108
|
"docs/evidence/work-dashboard-cards.png",
|
|
@@ -136,7 +136,47 @@
|
|
|
136
136
|
"skills/poc-submit/SKILL.md",
|
|
137
137
|
"skills/poc-export/scripts/export-form.mjs"
|
|
138
138
|
],
|
|
139
|
-
"note": "Packed tarball 0.6.0 installed into an owned, disposable, non-Desktop web profile (DSH 0.2.2-rc.2). This release is a packaging and CI correction, not a feature change: the plugin behaviour verified in 0.5.0 is unchanged. scripts/preview.mjs and scripts/prepare-release.mjs now import the shared scripts/display-contract.mjs instead of each carrying a drifted local copy of the rules, and package.json#files gains the explicit \"!docs/PREVIEW.md\" exclusion. That closes a real leak: the published 0.5.0 tarball shipped docs/PREVIEW.md, the internal whiteboard registry holding Feishu document links and tokens, because the local reimplementation of npm file selection treated a directory entry in files as an allow-list rather than as contributing ignores. Coverage is now decided by a real npm pack probe, so the repository check, prepare-release and the fleet audit share one verdict and cannot disagree with npm. Two CI defects were also fixed, both of which were failing on main: the plugin.spec cache roots were built from TMPDIR, which runners set to /tmp and which is shallower than the three-segment floor the mount guard enforces (the guard is correct, the fixture was not), and tests/view.spec.tsx failed all 41 assertions on Node 26 because Node 26 defines its own globalThis.localStorage stub that shadows the jsdom Storage vitest would otherwise install. Both were reproduced and re-verified on real Node 26 (41/41 failing before the fix, 41/41 passing after). Verification for this release: npm run check passes (preview check, typecheck, 189 unit tests, lib-drift, pack check); 31 isolated checks passed against the packed tarball on a genuinely mounted DSH 0.2.2-rc.2, including that the three bundled skills reached the skill catalog at boot; cleanup removed the owned profile and its cache and the removal was verified. Desktop Client (Electron) visual verification was not performed for this release; the UI assertions recorded from 0.5.0 still describe the same shipped client bundle."
|
|
139
|
+
"note": "Packed tarball 0.6.0 installed into an owned, disposable, non-Desktop web profile (DSH 0.2.2-rc.2). This release is a packaging and CI correction, not a feature change: the plugin behaviour verified in 0.5.0 is unchanged. scripts/preview.mjs and scripts/prepare-release.mjs now import the shared scripts/display-contract.mjs instead of each carrying a drifted local copy of the rules, and package.json#files gains the explicit \"!docs/PREVIEW.md\" exclusion. That closes a real leak: the published 0.5.0 tarball shipped docs/PREVIEW.md, the internal whiteboard registry holding Feishu document links and tokens, because the local reimplementation of npm file selection treated a directory entry in files as an allow-list rather than as contributing ignores. Coverage is now decided by a real npm pack probe, so the repository check, prepare-release and the fleet audit share one verdict and cannot disagree with npm. Two CI defects were also fixed, both of which were failing on main: the plugin.spec cache roots were built from TMPDIR, which runners set to /tmp and which is shallower than the three-segment floor the mount guard enforces (the guard is correct, the fixture was not), and tests/view.spec.tsx failed all 41 assertions on Node 26 because Node 26 defines its own globalThis.localStorage stub that shadows the jsdom Storage vitest would otherwise install. Both were reproduced and re-verified on real Node 26 (41/41 failing before the fix, 41/41 passing after). Published to the registry on 2026-11-13; the LIVE market entry now installs @skillre/dsh-plugin-work-dashboard@0.6.0 from npm into a fresh owned profile and 15 checks passed (composed row, bounded startup, list/detail/risks/timeline all answering), then the owned profile was removed and the removal verified. Verification for this release: npm run check passes (preview check, typecheck, 189 unit tests, lib-drift, pack check); 31 isolated checks passed against the packed tarball on a genuinely mounted DSH 0.2.2-rc.2, including that the three bundled skills reached the skill catalog at boot; cleanup removed the owned profile and its cache and the removal was verified. Desktop Client (Electron) visual verification was not performed for this release; the UI assertions recorded from 0.5.0 still describe the same shipped client bundle."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"dsh": "0.2.2-rc.3",
|
|
143
|
+
"verifiedAt": "2026-11-17",
|
|
144
|
+
"result": "passed",
|
|
145
|
+
"checks": [
|
|
146
|
+
"dsh-version",
|
|
147
|
+
"local-remote-and-gh-stub",
|
|
148
|
+
"profile-template-created",
|
|
149
|
+
"profile-tarball-install",
|
|
150
|
+
"packed-dependency-and-selection",
|
|
151
|
+
"dump-config",
|
|
152
|
+
"packed-payload-present",
|
|
153
|
+
"packed-skills-present",
|
|
154
|
+
"cache-absent-before-mount",
|
|
155
|
+
"bounded-startup",
|
|
156
|
+
"bundled-skills-registered",
|
|
157
|
+
"api-cold-cache-empty",
|
|
158
|
+
"api-refresh-clone",
|
|
159
|
+
"api-board-computed",
|
|
160
|
+
"api-portfolio-analysis",
|
|
161
|
+
"api-detail",
|
|
162
|
+
"api-refresh-fetch",
|
|
163
|
+
"api-unknown-project",
|
|
164
|
+
"api-auth-fence",
|
|
165
|
+
"cache-is-real-clone",
|
|
166
|
+
"cache-credential-not-persisted",
|
|
167
|
+
"api-risk-board-sorted",
|
|
168
|
+
"api-global-timeline-sorted",
|
|
169
|
+
"api-timeline-reports-silent-projects",
|
|
170
|
+
"api-blockers-merged-from-five-sources",
|
|
171
|
+
"api-blockers-no-double-count",
|
|
172
|
+
"api-export-form-fill",
|
|
173
|
+
"api-export-form-blank",
|
|
174
|
+
"refresh-works-after-submit",
|
|
175
|
+
"cache-wiped-on-restart",
|
|
176
|
+
"api-refresh-after-restart",
|
|
177
|
+
"cleanup-verified"
|
|
178
|
+
],
|
|
179
|
+
"notes": "Isolated non-Desktop profile; packed tarball @skillre/dsh-plugin-work-dashboard@0.9.0 (sha256 58058de0aa4427a2...). Scope: Host mount, Connection route, cache lifecycle, risk board, global timeline, blocker aggregation, export-form generation, bundled skill registration, and owned-profile cleanup. NOT covered by this run: any Client UI check — no browser was driven, so the web-ui rows recorded under 0.2.2-rc.2 remain the only UI evidence and do not describe 0.9.0."
|
|
140
180
|
}
|
|
141
181
|
],
|
|
142
182
|
"observations": {
|
|
@@ -144,8 +184,8 @@
|
|
|
144
184
|
"desktopClientNote": "The Web UI was verified directly. The Electron Desktop Client shares the same renderer but was not launched for this release; a Desktop-specific visual check remains outstanding.",
|
|
145
185
|
"chartsWithoutDependency": "Every figure is hand-built SVG or flex geometry because the client bundle may only externalise `react`. No charting dependency was added.",
|
|
146
186
|
"displayContract": "Adopted: locale meta.detail + one preview image per language + docs shipped in the package (evidence excluded).",
|
|
147
|
-
"updateMechanism": "
|
|
148
|
-
"npmChannel": "
|
|
187
|
+
"updateMechanism": "Published to the npm registry on 2026-11-13 as @skillre/dsh-plugin-work-dashboard@0.6.0 (dist-tag latest). This is the first publish, and it changes the plugin's delivery story: the package is now installable from a registry spec under its own name, which is the only shape the plugin manager grants an in-place Versions section to. `npm run update:readiness -- work-dashboard` therefore reports OK, where every earlier version reported 'not published on the configured registry'. The market entry is npm-sourced for the same reason: the previous Git-pinned entry was never updatable, and the fleet builder dropped it as soon as the index was rebuilt.",
|
|
188
|
+
"npmChannel": "First publish completed manually on 2026-11-13 with `npm publish --access public`; npm cannot attach a Trusted Publisher to a package that did not exist, so this single step could not be automated. The published artifact was verified to match the locally packed and mounted tarball exactly (integrity sha512-dpA+I/3YCOHXWzOxaC+xqyKKsRciyowgFD8C4Q7dSp8xAPA/ESWl+VKIMVyYMSAVG2XxF/3Va0+a4kde/h7/hQ==, shasum a7525d28), and the published tarball was re-downloaded and confirmed to contain the 62 expected files with docs/PREVIEW.md absent. Still outstanding: configuring the GitHub Actions Trusted Publisher (`npm trust github ... --allow-publish`), which npm gates behind one interactive 2FA confirmation, so the OIDC workflow cannot publish subsequent versions until that is done."
|
|
149
189
|
},
|
|
150
190
|
"notes": [
|
|
151
191
|
"Verified against the packed tarball installed into an owned, disposable non-Desktop DSH profile; the profile and its cache were removed afterwards and the removal was verified.",
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# 工作看板 1.0 · 围绕 SuperAgent 的整体优化方案
|
|
2
|
+
|
|
3
|
+
> 依据:便签「工作看板整体优化」+ 详设稿 `看板- POC项目详情页设计稿.drawio` + 另一个会话里老 Mac 上已跑通的 SuperAgent。
|
|
4
|
+
> 本文只做设计与决策,不含实现。数字全部来自对线上 `skillre/workbranch` 的实测(2026-11-18 拉取)。
|
|
5
|
+
> **看板 UI 不在本会话范围**(另开会话),可执行细节见 [会话二范程](DESIGN-会话二-SuperAgent与仓库改造.md)。
|
|
6
|
+
|
|
7
|
+
## 0. 读数:真实台账现在长什么样
|
|
8
|
+
|
|
9
|
+
| 事实 | 值 |
|
|
10
|
+
|---|---|
|
|
11
|
+
| 项目数 / 金额 | **30 / 6400 万** |
|
|
12
|
+
| 阶段分布 | **30 / 30 全部停在 G0-立项**(G1–G4 零样本) |
|
|
13
|
+
| gate0.review.conclusion = 通过 | **1** |
|
|
14
|
+
| decision_chain 有值 | **0 / 30** |
|
|
15
|
+
| post_poc_decision 有值 | **0 / 30** |
|
|
16
|
+
| plan.criteria / plan.scenarios 有值 | **0 / 30** |
|
|
17
|
+
| progress 记录 | **0 条** |
|
|
18
|
+
| stage_since 填了 | 30 / 30 |
|
|
19
|
+
| amount_wan 缺 | 4 |
|
|
20
|
+
| 人在用的插件版本 | 0.9.0 |
|
|
21
|
+
|
|
22
|
+
**这张表决定了优化的顺序**:G3/G4 的漂亮展示现在做出来没有一条真实数据;而"G0 五必填"和"多久没动"这两件事,30 个项目全都命中。所以视觉重做不能只重做结果页,必须先把 G0 阶段的门面做出信息量。
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 1. 对草稿四条方向的评估
|
|
27
|
+
|
|
28
|
+
| 草稿 | 判断 | 理由 | 改造点 |
|
|
29
|
+
|---|---|---|---|
|
|
30
|
+
| ① 更新信息时检查能否 Gate 升级,AI 建议 → 人工审核 → 完成升级 | ✅ 方向正确,这是整个系统的价值中枢 | 台账的现实是"没人愿意给自己打分",所以升级判定必须由系统先提,人只做否决。这与已定的"agent 提 PR、人 merge"天然同构 | "检查"必须发生在**唯一写入点**,不是插件;建议产物必须**结构化落盘**而不是聊天里说;必须**幂等**,否则每天一个 PR |
|
|
31
|
+
| ② 每天晚上自动跑全部项目 | ⚠️ 半对:**SuperAgent 不能自调度** | 官方设计里 worker 与 router 的 preset 都不含调度能力,触发器只有 GitHub 通知与飞书事件。所以"每晚跑"必须由**外部定时器造 Trigger** | 老 Mac 上 launchd(已有)每天定点造一个固定格式的 issue;agent 侧规则只认这个前缀,其余 issue 忽略,避免 auto 模式误接单 |
|
|
32
|
+
| ③ 每周五检查、超 7 天未更新要提醒 | ⚠️ 概念对,**指标选错了** | 实测 30/30 项目 progress 为空,若按"7 天没更新"算,今天就已经 30 个全红——提醒退化成噪声,等于没有提醒 | 拆成两个独立信号:**事实陈旧**(最后进展/最后变更日期)与**判断陈旧**(G0 结论/计划是什么时候定的)。阈值分层:G0 看信息完整度,G3+ 才看进展停滞 |
|
|
33
|
+
| ④ 看板太呆板,交互与视觉大升级(按详设稿) | ✅ 必须做,但稿子是**信息分区**,不是交互 | drawio 给的是 8+4 两栏信息布局(左:G0 信息 / 关键场景 / 关键风险;右:基本信息 / 项目进展 / 项目风险)。它解决了"信息在哪",没解决"看一眼该得什么结论、下一步点哪里" | 保留 8+4 的分区意图,重做三件事:**顶部结论条**、**进展与风险分开的视觉语言**、**下一步与 Gate 结论常驻** |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 2. 草稿没覆盖、但决定成败的三个结构性缺口
|
|
38
|
+
|
|
39
|
+
### 缺口 A:AI 的结论无处安放
|
|
40
|
+
|
|
41
|
+
现在的链路是:Agent 在 PR 里**写评论** → 人看评论 → 人 merge。
|
|
42
|
+
插件**看不到评论**,它只读 YAML。于是"AI 建议升级"永远只是聊天记录,看板上什么都不会变,第二天重跑还得重新读一遍。
|
|
43
|
+
|
|
44
|
+
**必须给 AI 产物一个契约位置。** 建议新增只读目录 `signals/`(与 `projects/` 并列,机器生成、人只读):
|
|
45
|
+
|
|
46
|
+
```yaml
|
|
47
|
+
# signals/POC-006.yaml ← 由 agent 通过 PR 写入,人工不手改
|
|
48
|
+
generated_at: 2026-11-18T02:10:00+08:00
|
|
49
|
+
generated_by: skillre-q
|
|
50
|
+
rules_version: "3.1"
|
|
51
|
+
gate_upgrade:
|
|
52
|
+
eligible: true
|
|
53
|
+
from: G0-立项
|
|
54
|
+
to: G1-方案设计
|
|
55
|
+
blockers: [] # 还差什么,逐条可点
|
|
56
|
+
evidence: [gate0.complete, plan.criteria]
|
|
57
|
+
health:
|
|
58
|
+
level: warn # ok | warn | bad
|
|
59
|
+
days_since_change: 12
|
|
60
|
+
reasons: [进展为空, 缺决策链]
|
|
61
|
+
next_action: { text: 补齐决策链, owner: 靳承德, due: 2026-11-22 }
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
约定:**项目 YAML 只放人写的事实,signals 只放机器判断**。二者永不同文件,看板上用「机器建议」图章区分(沿用已定的"自动推导 vs 人工填"哲学)。
|
|
65
|
+
|
|
66
|
+
### 缺口 B:规则的单一事实源已分裂成三份
|
|
67
|
+
|
|
68
|
+
同一套 12 条规则,现在存在于:
|
|
69
|
+
|
|
70
|
+
1. `workbranch/schemas/poc-schema.md`(文档里的表格)
|
|
71
|
+
2. 插件 `src/gap.ts`(TypeScript 硬编码,注释明确说"故意不跟仓库脚本漂移")
|
|
72
|
+
3. 插件 `skills/poc-ledger/SKILL.md`(给对话用的自然语言版)
|
|
73
|
+
|
|
74
|
+
三份各自演进,规则编号、阈值(300 万 / 2–3 项 / 45 天)、判定口径迟早对不上。当 Agent 和看板给出不同结论时,用户只会失去信任。
|
|
75
|
+
|
|
76
|
+
**建议**:`workbranch/config/rules.yaml` 成为唯一源;插件构建期生成常量并加 CI 断言;skill 由同一文件渲染。规则版本号写进 `signals/`。
|
|
77
|
+
|
|
78
|
+
### 缺口 C:看板里已经存在两个"四维真相"
|
|
79
|
+
|
|
80
|
+
- `src/gap.ts` 的 `readDimensions`:证据 = `outcome.our_proof` **或** 最新进展的 `evidence` 非空
|
|
81
|
+
- `src/client/detail.tsx` 的侧栏:证据 = `outcome.our_proof !== ''`
|
|
82
|
+
|
|
83
|
+
也就是说,一个项目"最新进展挂了压测报告、但没写 outcome",缺口引擎认为**有证据**(并据此判 R9),而侧栏显示**证据 ✗**。这正是这套设计最不该出现的自相矛盾,而且测试夹具都是空台账,测不出来。
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 3. 重构后的责任分工(本文最重要的结论)
|
|
88
|
+
|
|
89
|
+
| 能力 | 谁做 | 为什么 |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| 判定 Gate 能否升级 | **SuperAgent**(读规则 + 证据) | 需要跨字段推理,规则会变,改提示词比改代码快 |
|
|
92
|
+
| 落盘 AI 建议 | **SuperAgent**(写 `signals/`,走 PR) | 唯一写入点,留痕、可回滚 |
|
|
93
|
+
| 每日/每周巡检 | **老 Mac launchd** 造 Trigger | Agent 不自调度 |
|
|
94
|
+
| 业务判断的最终生效 | **人**(GitHub merge) | Agent 不合并自己的 PR |
|
|
95
|
+
| 展示与下钻 | **插件**(只读) | 插件不写库,避免分叉 |
|
|
96
|
+
| 提醒 | **飞书**(只提醒,不审批) | 已定 |
|
|
97
|
+
| 机械校验(格式、枚举、必填) | **workbranch 的 GitHub Actions** | 无关业务判断,越早拦截越省 agent 算力 |
|
|
98
|
+
|
|
99
|
+
一句话:**SuperAgent 是判断层,GitHub 是事实层 + 审批门,插件是阅读层。三层各只有一个职责,且只有 GitHub 是写入点。**
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 4. 数据契约 v3.1(要加的字段,都是被草稿逼出来的)
|
|
104
|
+
|
|
105
|
+
| 新增 | 位置 | 为什么 |
|
|
106
|
+
|---|---|---|
|
|
107
|
+
| `schema_version: "3.1"` | 每个 project | 30 个文件已存在,但没有任何版本标记,插件无法安全演进解析 |
|
|
108
|
+
| `updated_at` | 每个 project | 现在只能靠文件 mtime 或 git log 推断,插件是浅 clone,拿不到 |
|
|
109
|
+
| `gate0.review.decided_by / decided_at` | gate0 | 已有 reviewer/reviewed_at,但缺"谁有权拍板",与 decision_chain 呼应 |
|
|
110
|
+
| `gate_decisions[]` | project 顶层 | **Gate 升级的审计轨迹**:`{from, to, decided_at, decided_by, basis: human|agent-suggested, signals_ref}`。没有它,"升级"就只是把 stage 改了一个字符串 |
|
|
111
|
+
| `plan.criteria[].status` | plan | 验收时这条标准是达标/未达标/未测,否则 criteria 只是愿望 |
|
|
112
|
+
| `progress[].stage_at` | progress | 一条进展是在哪个阶段记录的,决定它证明的是哪一关 |
|
|
113
|
+
| `health.acknowledged` | 人写 | "我知道它停着"是需要被记录的决定,否则提醒无法消音 |
|
|
114
|
+
|
|
115
|
+
**不建议加**:任何 `ai_*` 前缀字段写进 project。机器判断一律走 `signals/`。
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## 5. GitHub 仓库(workbranch)改造清单
|
|
120
|
+
|
|
121
|
+
### 5.1 目录
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
projects/ 人写的事实(30 个)
|
|
125
|
+
signals/ 机器判断(agent 写,人只读) ← 新增
|
|
126
|
+
schemas/ poc-schema.md + enums.yaml + rules.yaml ← rules 新增
|
|
127
|
+
config/
|
|
128
|
+
rules.yaml 12 条规则 + 阈值 + 版本号 ← 唯一源
|
|
129
|
+
health.yaml 7 天 / 45 天 / 分层阈值 ← 新增
|
|
130
|
+
templates/ issue / PR 模板正文
|
|
131
|
+
.github/
|
|
132
|
+
workflows/validate.yml 机械校验(格式/枚举/必填/字典序)
|
|
133
|
+
ISSUE_TEMPLATE/daily.yml 每日巡检触发器格式
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### 5.2 治理现状(必须写进文档的硬事实)
|
|
137
|
+
|
|
138
|
+
- 该仓库是**个人免费账号的私有仓库**,GitHub **不支持分支保护与 rulesets**(实测 403:Upgrade to GitHub Pro)。
|
|
139
|
+
- 也就是说"必须走 PR"目前**只是流程约定,不是平台强制**。`skillre-q` 有 push 权限,技术上可以直推 main。
|
|
140
|
+
- 要真正收回豁免权只有三条路:① 升级 Pro;② 迁移到公司 GitHub Enterprise;③ 接受约定并靠 CI + 人工检查兜底。
|
|
141
|
+
|
|
142
|
+
**建议 v1 用③,并在 README 里明写这条风险**,同时把 CI 校验做成"红灯即不可合并"的约束。
|
|
143
|
+
|
|
144
|
+
### 5.3 CI 与 Agent 的分工
|
|
145
|
+
|
|
146
|
+
- **CI 只做机械校验**:YAML 可解析、枚举合法、`poc_id` 与文件名一致、必填键存在、`signals/` 只由 agent 账号提交。
|
|
147
|
+
- **12 条业务规则不放进 CI**:它们会变,且需要解释"为什么",属于 agent 与看板的职责。
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## 6. SuperAgent 侧改造清单
|
|
152
|
+
|
|
153
|
+
| # | 改造 | 原因 |
|
|
154
|
+
|---|---|---|
|
|
155
|
+
| 1 | 每日巡检 issue 用固定标题前缀(如 [daily-advisory]),规则里只认这个前缀 | auto 模式下白名单账号的任何 issue 都会被评估;没有前缀隔离,日常讨论会被误接单 |
|
|
156
|
+
| 2 | "每晚跑全量"改成**全量评估、单分支更新**:存在 open 的 advisory/* PR 就更新它,否则新建 | 30 个项目每天一个新 PR,人会被淹没 |
|
|
157
|
+
| 3 | 新增 advisory-write 技能:产出 signals/*.yaml,只写 signals,绝不改 projects | 把"AI 结论落盘"变成可复用能力 |
|
|
158
|
+
| 4 | 新增 gate-review 技能:升级建议必须给"还差什么 + 依据哪条证据 + 谁拍板" | 现在的审核评论是散文,人读得懂,机器读不懂 |
|
|
159
|
+
| 5 | 明确 Executor 边界:只读 projects、只写 signals、只在 PR 里说话 | 当前 Executor 在主 checkout 全权限运行、靠提示词约束,边界要写成技能 + 分支命名约定 |
|
|
160
|
+
| 6 | 时间语义:所有"多久没动"用**台账里的日期**,不用运行日期 | agent 每天跑,用 now-7d 判定结果每天飘;用数据里的 updated_at / progress.date 才稳定 |
|
|
161
|
+
| 7 | 飞书提醒收敛:每日一条摘要 + 有升级建议时单条 | 现在 12 项健康检查全绿也在推,噪音大 |
|
|
162
|
+
|
|
163
|
+
**需要实测验证的一条**:worker 是否允许向已存在分支追加 commit 以更新同一个 PR(影响幂等方案)。若不允许,退化为"每天一个新 PR + 自动关闭昨天的"。
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## 7. 看板 UI(本会话不展开)
|
|
168
|
+
|
|
169
|
+
看板设计已在另一个会话开展,本会话不再深入。这里只保留两条**机器侧必须遵守**的接口约束,供那一侧消费:
|
|
170
|
+
|
|
171
|
+
1. **signals 契约**:详见 [会话二范程 §1.3](DESIGN-会话二-SuperAgent与仓库改造.md)。看板读 `signals/<poc_id>.yaml` 的 `gate_upgrade` / `health` / `risks` 三个块;缺字段时必须优雅降级,不能把整页打空。
|
|
172
|
+
2. **四维口径**:证据维度以「`outcome.our_proof` **或** 最新进展的 `evidence`」为准(`src/gap.ts` 的 `readDimensions` 已是这个口径)。侧栏若只看 `outcome.our_proof`,会和缺口引擎自相矛盾——这条属于机器侧已发现的一致性缺陷,修复归本会话(见附录第 1 条),UI 呈现归另一会话。
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 8. 分期(本会话视角,只含机器侧工作)
|
|
177
|
+
|
|
178
|
+
| 步骤 | 主题 | 内容 | 依赖 |
|
|
179
|
+
|---|---|---|---|
|
|
180
|
+
| M1 | 规则单一源 | `config/rules.yaml` + `config/health.yaml` 落库 | — |
|
|
181
|
+
| M2 | schema 演进 | v3.1 字段迁移(30 个文件) | M1 |
|
|
182
|
+
| M3 | 机械门禁 | `.github/workflows/validate.yml` + issue/PR 模板 | M1 |
|
|
183
|
+
| M4 | 巡检触发链 | `skillre-q` 入 bots 名单、禁用 visual 规则、两条新 Policy 规则 | 老 Mac 可达 |
|
|
184
|
+
| M5 | 判断能力 | `advisory-write` + `gate-review` 两个技能 | M4 |
|
|
185
|
+
| M6 | 定时与提醒 | `daily-advisory.sh` + launchd + 飞书收敛 | M5 |
|
|
186
|
+
|
|
187
|
+
**M1–M3 不依赖老 Mac**,当前即可开工。
|
|
188
|
+
|
|
189
|
+
**优先级最高的是数据补齐**:decision_chain 与 post_poc_decision 全 0,意味着 30 个项目没有一个说得清"测完客户会做什么决策"。这件事不解决,Gate 升级判断就没有依据——AI 再聪明也只能说"缺数据"。
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## 9. 需要拍板的四件事(机器侧)
|
|
195
|
+
|
|
196
|
+
| # | 问题 | 建议 |
|
|
197
|
+
|---|---|---|
|
|
198
|
+
| 1 | AI 结论放 `signals/` 独立目录,还是塞进 project yaml? | **独立目录**,人写与机器写永不混文件 |
|
|
199
|
+
| 2 | 每日巡检用 agent 账号开 issue(需加 bots 名单),还是你手动开? | **agent 账号 + bots 名单**,否则做不到"每晚自动" |
|
|
200
|
+
| 3 | 每日巡检产出一个大 PR,还是每个项目一个 PR? | **一个大 PR(固定分支)**,否则审阅成本爆炸 |
|
|
201
|
+
| 4 | Gate 升级由 agent 直接改 stage,还是只建议? | **只建议**,人在 merge 时改并补 `gate_decisions[]` 审计字段 |
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## 附:本次实测发现的既有缺陷(机器侧,与看板无关)
|
|
206
|
+
|
|
207
|
+
1. **四维双真相**:`src/gap.ts` 的 `readDimensions` 认为"最新进展有证据"即算有证据,`src/client/detail.tsx` 侧栏只看 `outcome.our_proof`。同一项目会出现"缺口引擎说有证据、侧栏显示 ✗"。修复以 `gap.ts` 口径为准,并补一条"有进展无 outcome"的夹具。
|
|
208
|
+
2. **R1 依赖生成字段**:规则读取台账里预生成的 `gate0.missing`,字段一旦过期(人工改了 why_customer 但没重算 missing),缺口会静默错判。应改为本地重算并与存储值对比,不一致时报警。
|
|
209
|
+
3. **规则三份副本**:`schemas/poc-schema.md` / `src/gap.ts` / `skills/poc-ledger/SKILL.md` 各自演进,阈值(300 万 / 2–3 项 / 45 天)迟早对不上。由 `config/rules.yaml` 统一生成。
|
|
210
|
+
4. **仓库无强制门禁**:个人免费私有仓库不支持分支保护与 rulesets(实测 403),`skillre-q` 有 push 权限,直推 main 技术上可行。
|
|
211
|
+
5. **定时巡检的准入盲区**:脚本用 agent 账号开 issue,对系统而言是机器人;非名单内机器人**不接收**。必须把 `skillre-q` 显式加入 GitHub Source 的 bots 名单,否则表现为 `received: 0`,极易误判为网络或权限故障。
|
|
212
|
+
|