@markus-global/cli 0.12.0-rc.1 → 0.12.0-rc.3
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/dist/background-maintenance.d.ts +52 -0
- package/dist/background-maintenance.d.ts.map +1 -0
- package/dist/background-maintenance.js +119 -0
- package/dist/background-maintenance.js.map +1 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +35 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/markus.mjs +6475 -3633
- package/dist/web-ui/assets/{AsyncState-Brx503Qq.js → AsyncState-Bn4fEZi_.js} +1 -1
- package/dist/web-ui/assets/{CommentInput-CyyImwaF.js → CommentInput-K5GGyiKb.js} +1 -1
- package/dist/web-ui/assets/{ContentRenderer-CpiisvVQ.js → ContentRenderer-BfUE28DF.js} +2 -2
- package/dist/web-ui/assets/{DeliverableShareModal-BbvcR0LN.js → DeliverableShareModal-BA31hw63.js} +1 -1
- package/dist/web-ui/assets/{Deliverables-DIeYy6k7.js → Deliverables-DTE21gMR.js} +2 -2
- package/dist/web-ui/assets/{Notifications-BoPgYIh8.js → Notifications-DrhzF29n.js} +1 -1
- package/dist/web-ui/assets/{Search-Bc44e8vT.js → Search-B_FQwfHn.js} +1 -1
- package/dist/web-ui/assets/{SendToChat-BHNwDw6Q.js → SendToChat-DjBI_C0Z.js} +1 -1
- package/dist/web-ui/assets/{Settings-5tk3XjBZ.js → Settings-BG3HtYuY.js} +1 -1
- package/dist/web-ui/assets/{Store-CMxzEtXt.js → Store-CvRIK-5v.js} +1 -1
- package/dist/web-ui/assets/{Switch-C1h7-ixU.js → Switch-DBd7W9Pv.js} +1 -1
- package/dist/web-ui/assets/{Team-Dcl-5Zvh.js → Team-Cre9JXT2.js} +44 -44
- package/dist/web-ui/assets/{Work-Dj9tQYXg.js → Work-C77VUxw5.js} +6 -6
- package/dist/web-ui/assets/{arc-BA1zZ3ag.js → arc-B8WSMmgB.js} +1 -1
- package/dist/web-ui/assets/{architectureDiagram-3BPJPVTR-DTUETQs3.js → architectureDiagram-3BPJPVTR-DE0fnpkU.js} +1 -1
- package/dist/web-ui/assets/{blockDiagram-GPEHLZMM-D5dvIq_3.js → blockDiagram-GPEHLZMM-BnEt7L8I.js} +1 -1
- package/dist/web-ui/assets/{c4Diagram-AAUBKEIU-CBurhkOF.js → c4Diagram-AAUBKEIU-0jt--EpH.js} +1 -1
- package/dist/web-ui/assets/channel-MmWww9CF.js +1 -0
- package/dist/web-ui/assets/{chunk-2J33WTMH-JDr6ZP1p.js → chunk-2J33WTMH-CLyqQEQo.js} +1 -1
- package/dist/web-ui/assets/{chunk-4BX2VUAB-CsXt6Gd5.js → chunk-4BX2VUAB-mylnMthq.js} +1 -1
- package/dist/web-ui/assets/{chunk-55IACEB6-BPhC3YgG.js → chunk-55IACEB6-DtElV09S.js} +1 -1
- package/dist/web-ui/assets/{chunk-727SXJPM-BgceLEQx.js → chunk-727SXJPM-BpRwLol3.js} +1 -1
- package/dist/web-ui/assets/{chunk-AQP2D5EJ-Bq58a84v.js → chunk-AQP2D5EJ-5yxNM2TB.js} +1 -1
- package/dist/web-ui/assets/{chunk-FMBD7UC4-DyMa3olF.js → chunk-FMBD7UC4-no_NwFEB.js} +1 -1
- package/dist/web-ui/assets/{chunk-ND2GUHAM-BsgTeDYu.js → chunk-ND2GUHAM-JvDwwYzS.js} +1 -1
- package/dist/web-ui/assets/{chunk-QZHKN3VN-BQpJPCpr.js → chunk-QZHKN3VN-C-NPps0e.js} +1 -1
- package/dist/web-ui/assets/classDiagram-4FO5ZUOK-lROpDb6P.js +1 -0
- package/dist/web-ui/assets/classDiagram-v2-Q7XG4LA2-lROpDb6P.js +1 -0
- package/dist/web-ui/assets/{cose-bilkent-S5V4N54A-BCbssvKI.js → cose-bilkent-S5V4N54A-OUCdAUoH.js} +1 -1
- package/dist/web-ui/assets/{dagre-BM42HDAG-CT9IdAY4.js → dagre-BM42HDAG-BJNrdNyh.js} +1 -1
- package/dist/web-ui/assets/{diagram-2AECGRRQ-x2pwUpLt.js → diagram-2AECGRRQ-CXqfw0Vf.js} +1 -1
- package/dist/web-ui/assets/{diagram-5GNKFQAL-d9_JOrSK.js → diagram-5GNKFQAL-Dhik8K7x.js} +1 -1
- package/dist/web-ui/assets/{diagram-KO2AKTUF-CAVFWSkN.js → diagram-KO2AKTUF-DzTqoIpG.js} +1 -1
- package/dist/web-ui/assets/{diagram-LMA3HP47-DQEHXvkq.js → diagram-LMA3HP47-CzPaYK-1.js} +1 -1
- package/dist/web-ui/assets/{diagram-OG6HWLK6-BW62W4O-.js → diagram-OG6HWLK6-D3i9cNLV.js} +1 -1
- package/dist/web-ui/assets/{docx-preview-pqFDBX8M.js → docx-preview-BE8zQneZ.js} +1 -1
- package/dist/web-ui/assets/{erDiagram-TEJ5UH35-yYImCEy2.js → erDiagram-TEJ5UH35-DZ6wi5nS.js} +1 -1
- package/dist/web-ui/assets/{flowDiagram-I6XJVG4X-Cpk1pKF0.js → flowDiagram-I6XJVG4X-CEbBUrOM.js} +1 -1
- package/dist/web-ui/assets/{ganttDiagram-6RSMTGT7-BnwH90c8.js → ganttDiagram-6RSMTGT7-lo_doOaC.js} +1 -1
- package/dist/web-ui/assets/{gitGraphDiagram-PVQCEYII-ELEziEhc.js → gitGraphDiagram-PVQCEYII-C3mdtDuF.js} +1 -1
- package/dist/web-ui/assets/{index-DD3NMntN.css → index-D4zDaGe4.css} +1 -1
- package/dist/web-ui/assets/index-DyYU0JDE.js +883 -0
- package/dist/web-ui/assets/{infoDiagram-5YYISTIA-48XZ0hV0.js → infoDiagram-5YYISTIA-6I0hh52X.js} +1 -1
- package/dist/web-ui/assets/{ishikawaDiagram-YF4QCWOH-B0wQJGwe.js → ishikawaDiagram-YF4QCWOH-BOk8zKdQ.js} +1 -1
- package/dist/web-ui/assets/{journeyDiagram-JHISSGLW-BNsrI94Q.js → journeyDiagram-JHISSGLW-C3KEoO7x.js} +1 -1
- package/dist/web-ui/assets/{kanban-definition-UN3LZRKU-Cp8eSqCe.js → kanban-definition-UN3LZRKU-DCT0_9gO.js} +1 -1
- package/dist/web-ui/assets/{mermaid.core-BYCWrkC-.js → mermaid.core-BOX2l4yL.js} +5 -5
- package/dist/web-ui/assets/{mindmap-definition-RKZ34NQL-Ccay8RYS.js → mindmap-definition-RKZ34NQL-KkRXcsxC.js} +1 -1
- package/dist/web-ui/assets/{pieDiagram-4H26LBE5-BUzaEdin.js → pieDiagram-4H26LBE5-Crj5MjvX.js} +1 -1
- package/dist/web-ui/assets/{quadrantDiagram-W4KKPZXB-BtM1AkZX.js → quadrantDiagram-W4KKPZXB-CKhlan97.js} +1 -1
- package/dist/web-ui/assets/{requirementDiagram-4Y6WPE33-eqO2tGIB.js → requirementDiagram-4Y6WPE33-B7OrOTSq.js} +1 -1
- package/dist/web-ui/assets/{sankeyDiagram-5OEKKPKP-M6qPg2gI.js → sankeyDiagram-5OEKKPKP-CzvhKY35.js} +1 -1
- package/dist/web-ui/assets/{sequenceDiagram-3UESZ5HK-DtIYVpzR.js → sequenceDiagram-3UESZ5HK-CiNjJsfF.js} +1 -1
- package/dist/web-ui/assets/{stateDiagram-AJRCARHV-CLVsjtbI.js → stateDiagram-AJRCARHV-DBsBa5mY.js} +1 -1
- package/dist/web-ui/assets/stateDiagram-v2-BHNVJYJU-DsfVE1eK.js +1 -0
- package/dist/web-ui/assets/{timeline-definition-PNZ67QCA-CUwncHES.js → timeline-definition-PNZ67QCA-CL-8e5v_.js} +1 -1
- package/dist/web-ui/assets/{vennDiagram-CIIHVFJN-KDkzNQIk.js → vennDiagram-CIIHVFJN-CWgqoJu8.js} +1 -1
- package/dist/web-ui/assets/{wardley-L42UT6IY-BqliL5Bv.js → wardley-L42UT6IY-ZgIWnerm.js} +1 -1
- package/dist/web-ui/assets/{wardleyDiagram-YWT4CUSO-B4qeGz2Q.js → wardleyDiagram-YWT4CUSO-CBWa7zOH.js} +1 -1
- package/dist/web-ui/assets/{xychartDiagram-2RQKCTM6-3877u0ek.js → xychartDiagram-2RQKCTM6-Du9MvrT6.js} +1 -1
- package/dist/web-ui/index.html +2 -2
- package/docs/architecture/mailbox-audit-checklist.md +194 -0
- package/docs/architecture/mailbox-system.md +374 -74
- package/docs/architecture/task-attention-economy.md +91 -0
- package/docs/records/page-switch-jank-2026-10-23.md +174 -0
- package/docs/remote-access/fast-path-plan.md +179 -0
- package/package.json +1 -1
- package/templates/roles/HANDBOOK.md +20 -0
- package/dist/web-ui/assets/channel-CYxqacYz.js +0 -1
- package/dist/web-ui/assets/classDiagram-4FO5ZUOK-mygctjMz.js +0 -1
- package/dist/web-ui/assets/classDiagram-v2-Q7XG4LA2-mygctjMz.js +0 -1
- package/dist/web-ui/assets/index-Dt7RN5t2.js +0 -883
- package/dist/web-ui/assets/stateDiagram-v2-BHNVJYJU-BfZl6BED.js +0 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# 任务注意力经济(Task Attention Economy)
|
|
2
|
+
|
|
3
|
+
> 状态:IMPLEMENTED on `feat/task-attention-economy`
|
|
4
|
+
> 依据:2026-10-17 ITM/Anteum 复盘(128 条评论 / 0 条人发言 / 60% 唤醒最终 `end_turn` / 单条均 2870 字)
|
|
5
|
+
|
|
6
|
+
## 1. 现象(实测,非推断)
|
|
7
|
+
|
|
8
|
+
| 事实 | 数值 |
|
|
9
|
+
|---|---|
|
|
10
|
+
| 单日项目评论 | 128 条,全部由 agent 发起 |
|
|
11
|
+
| 集中度 | 2 张卡吃掉 79 条(62%) |
|
|
12
|
+
| 单条长度 | 均 2870 字,最长 5974 |
|
|
13
|
+
| 唤醒量(单 agent) | ≈125 次/天 |
|
|
14
|
+
| 无效唤醒 | 20 次里 12 次结论 `end_turn`(60%) |
|
|
15
|
+
| 走评审闸的卡 | 评论 0–2 条(评审闸本身健康) |
|
|
16
|
+
|
|
17
|
+
## 2. 根因:一个谓词回答了两个问题
|
|
18
|
+
|
|
19
|
+
平台把「有人说话了」当成「需要你动作」。具体有三处执行点(R2):
|
|
20
|
+
|
|
21
|
+
| # | 位置 | 现状 |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| E1 | `postTaskComment` | 纯评论(无 @)也向 assignee / creator 各投递一个 mailbox 项 |
|
|
24
|
+
| E2 | `injectCommentIntoRunningTask` | `in_progress` 时把评论**逐条**插进在跑的会话,并写「IMPORTANT: address this comment」 |
|
|
25
|
+
| E3 | `handlePostTaskComment` | `completed` 时**为每条评论起一整个新 LLM 回合** |
|
|
26
|
+
|
|
27
|
+
外加提示词层:`comment_response` 的 `MANDATORY outcome — you MUST end with task_comment or end_turn`,
|
|
28
|
+
以及通知模板 `MANDATORY before replying ... Only THEN use task_comment`。
|
|
29
|
+
→ 默认动作是「回」,沉默要额外成本;而「必须在评论里把话说全」决定了 2870 字这个长度。
|
|
30
|
+
|
|
31
|
+
## 3. 设计:把「信号」与「留痕」拆开
|
|
32
|
+
|
|
33
|
+
**不变量(单一执行点 = `task-attention.ts#resolveCommentAttention`)**
|
|
34
|
+
|
|
35
|
+
> 一条评论只有在**它点名了某人**、或**它改变了某人必须知道的状态**时,才唤醒那个人;
|
|
36
|
+
> 其余情况它是**留痕**(record-only):留在 thread 里,不唤醒任何人。
|
|
37
|
+
|
|
38
|
+
| 触发条件 | 处理 |
|
|
39
|
+
|---|---|
|
|
40
|
+
| `mentions` 命中 | 立即唤醒(`mention`) |
|
|
41
|
+
| 作者是 human | 唤醒 assignee / creator(人很少,高优先) |
|
|
42
|
+
| reviewer 在 review 期发 | 唤醒 assignee(打回) |
|
|
43
|
+
| 其他(agent 对 agent 的普通评论) | **不唤醒**,仅留痕(record-only) |
|
|
44
|
+
|
|
45
|
+
### 3.1 在跑会话的评论注入(实际实现)
|
|
46
|
+
|
|
47
|
+
> 注(2026-10-18):本节早期设计的「摘要投递」(`CommentDigest` 窗口合并投递)**未落地** —— 代码中不存在 `COMMENT_DIGEST_*`。
|
|
48
|
+
> 实际落地的规则更窄:`injectCommentIntoRunningTask` 只把 **human** 作者的评论注入在跑会话;agent 对 agent 的评论一律不注入(`shouldInjectIntoSession`)。
|
|
49
|
+
|
|
50
|
+
`completed` 的卡:只有 directive(mention / human / reviewer 打回)才起 post-task 回合;普通评论不再起 turn。
|
|
51
|
+
|
|
52
|
+
### 3.2 一卡一个未决问题 + 单点裁决
|
|
53
|
+
|
|
54
|
+
> Superseded (2026-10-18): replaced by the blocking `agent_ask_agent` tool. The ask_decision/decide mechanism was removed.
|
|
55
|
+
|
|
56
|
+
### 3.3 提示词(系数层)
|
|
57
|
+
|
|
58
|
+
- `comment_response`:默认沉默。只有「被点名 / 被直接提问」才回;否则 `end_turn`。
|
|
59
|
+
- 通知模板:删掉两条 `MANDATORY`,改为「这是留痕,不是请求」。
|
|
60
|
+
- 保留逃生口:口径异议仍可用一次 `task_comment` + mention。
|
|
61
|
+
|
|
62
|
+
## 4. 顺带修复:completed 卡不可被 agent 回退
|
|
63
|
+
|
|
64
|
+
**现象**:T25 `tsk_42eac81086d837787aec398b` 完成后 94s 被一次游离 `task_update` 拉回 `in_progress`
|
|
65
|
+
(status_transitions 实测:`review→completed` @07:15:19,`completed→in_progress` @07:16:53,actor=agent),
|
|
66
|
+
`blockedBy` 依赖链因此**静默断裂**(非 failed、非 rejected,肉眼不可见)。
|
|
67
|
+
|
|
68
|
+
**为什么既有 guard 没挡住**(guard 早已在 10-15 加上,且已在运行中的 app.asar 里):
|
|
69
|
+
`resolveActorTypeForGuard()` 用 `agentManager?.hasAgent(updatedBy)` 反推身份;解析不到就**默认 human** ⇒ fail-open。
|
|
70
|
+
而 agent 工具面的 `ctx.updateTaskStatus(taskId, status)` **从不传 actorType**,于是每一次 agent 回退都在赌这个可选协作者是否就位。
|
|
71
|
+
|
|
72
|
+
**修法(三层,去机制而非加守卫)**:
|
|
73
|
+
1. **结构在调用点声明**:agent 工具面显式传 `'agent'`(`agent-manager.ts` 两处 ctx),不再反推。
|
|
74
|
+
2. **fail-closed**:`resolveActorTypeForGuard` 解析不到就按 `'agent'` 处理(拒绝),不再默认 human;`system` 路径本来就显式传 `'system'`。
|
|
75
|
+
3. **工具面直接不可表达**:`task_update` 对 `completed → in_progress` 返回 `denied` + 可行动指引(关单后要返工 = 找 human 重开,或关单前走 `request_revision`)。
|
|
76
|
+
|
|
77
|
+
## 5. 测试计划
|
|
78
|
+
|
|
79
|
+
- `task-attention.test.ts`:信号判别表(mention / human / reviewer / 普通评论)+ `shouldInjectIntoSession`(human 进 / agent 不进)。
|
|
80
|
+
- `task-terminal-revert.test.ts`:agent 回退 completed → 抛错;human → 允许;system 恢复路径 → 允许。
|
|
81
|
+
- 回归:`postTaskComment` 普通评论**不再**产生 mailbox 项(红→绿)。
|
|
82
|
+
|
|
83
|
+
## 6. 已知残余
|
|
84
|
+
|
|
85
|
+
- 摘要/消息投递的细节仍以 code 为准(`task-attention.ts`、`injectCommentIntoRunningTask`)。
|
|
86
|
+
- 库里 `tasks.open_question` / `tasks.decisions` 两列作为**死列**保留(删列需要重建表),代码既不读也不写。
|
|
87
|
+
|
|
88
|
+
## 7. 回滚
|
|
89
|
+
|
|
90
|
+
单一分支 `feat/task-attention-economy`,无 DB 迁移破坏性:新增列用 `ALTER TABLE ... ADD COLUMN`(幂等、旧库可读)。
|
|
91
|
+
回滚 = revert 单个 squash commit。注:`tasks.open_question` / `tasks.decisions` 两列在「未决问题」机制移除后仍留在表里(死列,代码已不读写),删列需重建表,本轮不做。
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# 桌面版切页卡顿:根因、实测与修复(2026-10-23)
|
|
2
|
+
|
|
3
|
+
## 1. 现象
|
|
4
|
+
|
|
5
|
+
Electron 桌面版在左侧栏切换页面(概览 / 团队 / 任务 / 产出 / 资产)时明显卡顿、掉帧,
|
|
6
|
+
而同一套 web UI 在右侧栏(独立 WebContentsView)或新开的浏览器标签里很快。
|
|
7
|
+
|
|
8
|
+
## 2. 根因
|
|
9
|
+
|
|
10
|
+
**所有访问过的页面都会永久保持挂载**(这是有意的:聊天流、滚动位置、表单状态在切页时不丢),
|
|
11
|
+
而"隐藏"用的是 `visibility: hidden` + `position: absolute`:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
const HIDDEN_STYLE = { visibility: 'hidden', position: 'absolute', inset: 0, pointerEvents: 'none', zIndex: -1 };
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`visibility: hidden` 只是不画,**子树仍然参与样式计算和布局**。于是:
|
|
18
|
+
|
|
19
|
+
- 整篇文档的 style recalculation / layout 范围 = 所有已访问页面节点之和;
|
|
20
|
+
- 每帧(这台机器 ProMotion 120Hz)都要走一遍,主线程常驻被占用;
|
|
21
|
+
- 每切一次页,React 提交 + 新页面激活时的重排要在这个巨大的文档上做一次 → 长任务、掉帧。
|
|
22
|
+
|
|
23
|
+
**成本随"访问过多少页面"单调增长**——所以是"用越久越卡"。
|
|
24
|
+
|
|
25
|
+
这也解释了桌面版与网页版的差异:桌面窗口是**长生命周期文档**,一天下来 7 个页面全挂着;
|
|
26
|
+
右侧栏视图 / 新标签是**全新文档**,只有 1 个页面。右侧栏还跑在自己的渲染进程里,
|
|
27
|
+
不跟主窗口抢同一个主线程。
|
|
28
|
+
|
|
29
|
+
## 3. 实测(真实应用 + CDP,非推理)
|
|
30
|
+
|
|
31
|
+
环境:`Markus.app`(Electron 35,Chromium 渲染进程,ProMotion 120Hz),
|
|
32
|
+
探针:`requestAnimationFrame` 间隔 + `PerformanceObserver('longtask')`,每次切换测 700ms。
|
|
33
|
+
|
|
34
|
+
| 场景 | DOM 节点 | 切页长任务 | 切页阻塞时长 | 最差帧 |
|
|
35
|
+
|---|---|---|---|---|
|
|
36
|
+
| 全新文档,仅挂 2 页(概览 / 团队) | ~1.8k | **0** | **0 ms** | 15 ms |
|
|
37
|
+
| 已访问 7 页(`visibility: hidden`) | ~15.4k | 3–4 个 | **183–430 ms** | 66–84 ms |
|
|
38
|
+
| 同一 7 页,把隐藏改成 `display: none` | ~14.6k | **0** | **0 ms** | 15–18 ms |
|
|
39
|
+
|
|
40
|
+
第三行是**同一次会话、同一个文档、同一份 DOM**,只把隐藏槽的 CSS 从 `visibility` 换成
|
|
41
|
+
`display` 后重测的结果——排除了"新页面自身渲染成本"和"数据请求"这两个干扰变量。
|
|
42
|
+
空转(idle)帧间隔也从 10.8ms(p95 32.8ms,2.5s 内 10 个长任务)回到 8.3ms / 0 长任务。
|
|
43
|
+
|
|
44
|
+
单页重量(隐藏时仍在被排版的量):
|
|
45
|
+
|
|
46
|
+
| 页面 | 节点数 |
|
|
47
|
+
|---|---|
|
|
48
|
+
| 创建(AgentBuilder) | 8 145 |
|
|
49
|
+
| 产出(Deliverables) | 2 480–4 431 |
|
|
50
|
+
| 任务(Work) | ~2 900 |
|
|
51
|
+
| 聊天(Team) | ~1 270 |
|
|
52
|
+
| 社区 | ~913 |
|
|
53
|
+
|
|
54
|
+
"创建"一页就占全文档一半以上节点,它是当前最大的单点成本来源。
|
|
55
|
+
|
|
56
|
+
## 4. 修复
|
|
57
|
+
|
|
58
|
+
`packages/web-ui/src/App.tsx`:
|
|
59
|
+
|
|
60
|
+
1. `HIDDEN_STYLE` 由 `visibility: hidden; position: absolute; inset: 0; z-index: -1`
|
|
61
|
+
改为 `display: none`。
|
|
62
|
+
- React 状态不丢:组件仍然挂载,聊天流、滚动位置、表单内容都保留;
|
|
63
|
+
- 子树退出 layout / paint / style,并同时退出无障碍树(`visibility: hidden` 不会)。
|
|
64
|
+
2. 每个页面槽加 `data-page-active="true|false"`,并在**真正由隐藏变为可见**时向槽
|
|
65
|
+
派发一次 `markus:page-shown` 事件(首次挂载不派发,避免多一次无谓测量)。
|
|
66
|
+
原因:`display: none` 下页面自测尺寸是 0×0,所有"挂载时量一次"的逻辑(图表、
|
|
67
|
+
虚拟列表、编辑器)需要在回到可见时重新量。绝大多数基于 `ResizeObserver` 的
|
|
68
|
+
实现会自动收到 0 → 真实尺寸的变化;事件是给有需要的地方留的明确接口。
|
|
69
|
+
|
|
70
|
+
单测:`vitest run --config vitest.web-ui.coverage.config.ts` → 79 文件 / 1095 用例通过;
|
|
71
|
+
`tsc --noEmit` 通过。
|
|
72
|
+
|
|
73
|
+
## 5. 残余风险(必须验证的部分)
|
|
74
|
+
|
|
75
|
+
- **首次挂载即测量的组件**:以前隐藏时也有真实尺寸,现在会读到 0×0。本机在 dev 环境
|
|
76
|
+
逐页验证了 7 个页面:活动页里 canvas / 图表容器 / 虚拟列表均无 0×0 异常
|
|
77
|
+
(任务页有 19 个 0×0 SVG,定位在页面内部自身折叠的面板里,与本改动无关)。
|
|
78
|
+
- **需要在真实打包版复测**:本次数据来自线上运行的打包版(CSS 就地替换 A/B)+ dev 服务
|
|
79
|
+
(新代码正确性)。要交付给用户体验,需重新构建桌面包。
|
|
80
|
+
- 有页面可能在"不可见"状态仍依赖 `visibility` 继承(已全仓库 grep:无此用法)。
|
|
81
|
+
|
|
82
|
+
## 6. 下一步(按性价比排序,尚未实施)
|
|
83
|
+
|
|
84
|
+
1. **给挂载集合设上限**:现在 7 页全挂、两万节点。改为 LRU(例如保留最近 3 页)、
|
|
85
|
+
其余真正卸载,可同时降低内存与"创建"页 8k 节点的常驻成本。代价:切回时重挂载 +
|
|
86
|
+
重新拉数据,需要先量"重挂载成本"是否小于常驻成本。
|
|
87
|
+
2. **不可见页面暂停轮询/定时器**:`setInterval` 有 30 处,隐藏页仍在请求数据、跑状态机;
|
|
88
|
+
它们同样产生主线程任务,与渲染成本是两笔账。
|
|
89
|
+
3. **首次挂载成本**(现在不再互相拖累,但单页首访仍慢):"创建"页 8145 节点值得单独做
|
|
90
|
+
一次虚拟化/分页。
|
|
91
|
+
4. **回归护栏**:把本次探针脚本固化进 `scripts/`(切页长任务 / 最差帧 / 节点数),
|
|
92
|
+
并给"隐藏槽必须是 `display: none`"加一条断言,防止被判据漂移悄悄改回去。
|
|
93
|
+
|
|
94
|
+
## 7. 结论一句话(第一轮)
|
|
95
|
+
|
|
96
|
+
不是 Electron 慢,是**"隐藏"用错了一个 CSS 属性**:`visibility: hidden` 的页面仍然全额
|
|
97
|
+
参与样式计算和布局,而桌面窗口把所有访问过的页面永久挂着,成本按节点总数累加;换成
|
|
98
|
+
`display: none` 后,同一份 DOM 下切页从"3–4 个长任务 / 约 200ms 阻塞"降到"0"。
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
# 第二轮:老板重编后"效果不明显"——真实数据复测(2026-10-23 15:20 起)
|
|
103
|
+
|
|
104
|
+
## 8. 第一步不是猜,是确认改动到底在不在跑
|
|
105
|
+
|
|
106
|
+
- 运行中的进程:`packages/desktop/dist-electron/mac-arm64/Markus.app`(15:16 启动),
|
|
107
|
+
asar 15:09 构建。
|
|
108
|
+
- 桌面的渲染页**不是**从 asar 直接加载,而是 `win.loadURL(backendUrl)` → 由同进程内的
|
|
109
|
+
后端在 `127.0.0.1:8056` 提供 web-ui 静态产物。
|
|
110
|
+
- 因此判据是**服务端实际发出的 JS**,不是 asar 里有字符串:
|
|
111
|
+
`curl /assets/index-BDdyrMwv.js` → 含 `markus:page-shown`、`data-page-active`、
|
|
112
|
+
`display:"none"`,**不含**旧写法。⇒ 改动确实在跑。
|
|
113
|
+
|
|
114
|
+
## 9. 复现台:第二个 Electron 实例(不动老板在用的那个)
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# 复制最小身份子集(Cookies / Local Storage / IndexedDB / Preferences),
|
|
118
|
+
# 用独立 user-data-dir + CDP 端口起第二个实例;它会健康检查到 8056 已有同版本服务
|
|
119
|
+
# → 直接复用,不再起后端、不碰数据库,也不受单实例锁影响。
|
|
120
|
+
Markus --user-data-dir=/tmp/markus-perf-<hhmm> --remote-debugging-port=9223
|
|
121
|
+
```
|
|
122
|
+
这样拿到的是**同一份生产产物 + 同一套真实数据 + 已登录会话**的可测窗口。
|
|
123
|
+
|
|
124
|
+
## 10. 复测结果:修的是真问题,但只解决了一半
|
|
125
|
+
|
|
126
|
+
同一会话、同一份 DOM,A/B 只换隐藏槽的 CSS(真实数据):
|
|
127
|
+
|
|
128
|
+
| 隐藏槽写法 | 平均切页 | 长任务总量 | 慢帧(>34ms) |
|
|
129
|
+
|---|---|---|---|
|
|
130
|
+
| `display:none`(新) | 125ms | 690ms | 8 |
|
|
131
|
+
| `visibility:hidden`(旧) | 159ms | 1455ms | 20 |
|
|
132
|
+
|
|
133
|
+
⇒ 新写法把长任务砍掉约一半,**但没有归零**。逐页看(7 页全挂,文档 ~14k 节点):
|
|
134
|
+
|
|
135
|
+
| 目标页 | 切页耗时 | 长任务 | 该页节点数 |
|
|
136
|
+
|---|---|---|---|
|
|
137
|
+
| 团队 | 123–130ms | 100–114ms | 1,477 |
|
|
138
|
+
| 资产 | 115–139ms | 50–57ms | 8,168 |
|
|
139
|
+
| 任务 | 45–54ms | 0 | 2,908 |
|
|
140
|
+
| 产出 | 35–68ms → **337ms** | 0 → **6 个 / 650ms** | 1.1k → **28,892** |
|
|
141
|
+
| 设置 | 51ms | 0 | 105 |
|
|
142
|
+
| 概览 | 38–40ms | 0 | 413 |
|
|
143
|
+
|
|
144
|
+
**新发现(第一轮没量到的)**:单页节点数会无限长。产出页(交付物树)在展开若干分组后
|
|
145
|
+
达到 **28,892 节点 / 滚动高度是视口的 33.8 倍**,命中一次就要在**一帧里**做完
|
|
146
|
+
28.7k 节点的 style+layout+paint → 337ms 一次,且与"隐藏槽用什么 CSS"无关。
|
|
147
|
+
这就是老板体感"还是卡"的主因:不是隐藏页的成本,是**被点亮那页自己的体量**。
|
|
148
|
+
|
|
149
|
+
## 11. 第二轮修复:跳过视口外内容(已实施)
|
|
150
|
+
|
|
151
|
+
在 `packages/web-ui/src/index.css` 增加三个工具类(真实数据 CDP 就地注入验证):
|
|
152
|
+
|
|
153
|
+
| 场景 | 基线 | 加 `content-visibility:auto` 后 |
|
|
154
|
+
|---|---|---|
|
|
155
|
+
| 产出页(28,892 节点) | 337/334/344ms,6 长任务(~650ms) | **141/186/182ms,1–3 长任务(55–218ms)** |
|
|
156
|
+
| 资产卡片(8,168 节点) | ~125ms,50–57ms 长任务 | ~115ms,**0 长任务** |
|
|
157
|
+
|
|
158
|
+
落地位置:
|
|
159
|
+
- `.cv-row` → `pages/Deliverables.tsx` 的分组容器与每一行条目;
|
|
160
|
+
- `.cv-stack > *` → `components/Masonry.tsx` 的每一列子元素(资产/探索/技能/模板共用)。
|
|
161
|
+
|
|
162
|
+
验证:`npm run typecheck` 通过;`vitest run --project web-ui` → 79 文件 / 1095 用例通过。
|
|
163
|
+
|
|
164
|
+
## 12. 还没解决的(下一轮的目标)
|
|
165
|
+
|
|
166
|
+
- **团队页每次切过去 ~120ms、其中约 100ms 是 JS**(CPU profile:React 调度 24ms、
|
|
167
|
+
`@tanstack/react-virtual` 的 `measureElement` 8ms、i18next `formatLanguageCode` 6ms,
|
|
168
|
+
其余散落在渲染里)——它不是 DOM 重,是**每次点亮都重算一遍**。
|
|
169
|
+
(顺带排除一个猜测:不是 Intl 格式化器重复构造,计数为 0。)
|
|
170
|
+
- **不可见页面仍在跑 30 处 `setInterval` 轮询**(稳态抖动,与切页是两笔账)。
|
|
171
|
+
- **产出页可以长到 28.9k 节点**这件事本身:`content-visibility` 只是让"不看的不要算",
|
|
172
|
+
真正该做的是展开分组按需渲染(当前折叠容器里 303 个子元素照样被创建)。
|
|
173
|
+
- **回归护栏**:把 CDP 探针固化进 `scripts/`,并给"隐藏槽必须是 `display:none`"加断言。
|
|
174
|
+
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Remote Access — Why It Is Slow, and a Fast-Path Plan
|
|
2
|
+
|
|
3
|
+
Status: proposal · Author: CTO · Date: 2026-10-17
|
|
4
|
+
|
|
5
|
+
## 1. Executive summary
|
|
6
|
+
|
|
7
|
+
The current remote-access path is not "a bit slow" — it is **structurally wrong for the
|
|
8
|
+
use case**. Every single HTTP request from a browser on the same LAN as the Markus host
|
|
9
|
+
leaves the local network, crosses the Pacific to a Cloudflare edge in Los Angeles, comes
|
|
10
|
+
back across the Pacific, and only then reaches the host.
|
|
11
|
+
|
|
12
|
+
Measured on the owner's machine (2026-10-17, Shanghai, China Telecom):
|
|
13
|
+
|
|
14
|
+
| Path | TTFB (single request) | 10 concurrent requests | Throughput |
|
|
15
|
+
|---|---|---|---|
|
|
16
|
+
| `127.0.0.1:8056` (loopback) | 0.55–0.77 ms | — | ~1.3 GB/s |
|
|
17
|
+
| `192.168.8.101:8056` (LAN) | **4.4–5.5 ms** | **0.03 s** | line rate |
|
|
18
|
+
| `*.trycloudflare.com` (current) | **1190–1710 ms** | **2.70 s** | **289 KB/s (~2.3 Mbps)** |
|
|
19
|
+
|
|
20
|
+
Edge selection, measured from the same host:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
$ curl -s https://www.cloudflare.com/cdn-cgi/trace | grep -E 'colo|loc'
|
|
24
|
+
ip=112.96.228.108
|
|
25
|
+
colo=LAX
|
|
26
|
+
loc=CN
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`colo=LAX` while both endpoints are in Shanghai. The SPA's main bundle is 2.15 MB; it
|
|
30
|
+
takes **7.45 s** to load over the tunnel versus 1.6 ms locally.
|
|
31
|
+
|
|
32
|
+
Root cause classification: **the system has exactly one path, and that path is chosen by a
|
|
33
|
+
third party's anycast routing and never adapts.** This is a path-selection problem, not a
|
|
34
|
+
protocol-tuning problem.
|
|
35
|
+
|
|
36
|
+
## 2. How a Cloudflare Tunnel actually routes
|
|
37
|
+
|
|
38
|
+
`cloudflared` opens outbound, long-lived connections to the Cloudflare edge, resolved from
|
|
39
|
+
`region1.v2.argotunnel.com` / `region2.v2.argotunnel.com` and steered by the ISP's anycast
|
|
40
|
+
routing. That edge becomes the **permanent anchor** of the tunnel. From this network the
|
|
41
|
+
anchor is Los Angeles.
|
|
42
|
+
|
|
43
|
+
A browser request then travels:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
browser → nearest CF PoP (LAX for this ISP) → CF backbone → tunnel anchor (LAX)
|
|
47
|
+
→ QUIC/TCP session → cloudflared → 127.0.0.1:8056
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Two consequences:
|
|
51
|
+
|
|
52
|
+
1. **The China↔US last mile is paid on every request**, even for a visitor sitting in the
|
|
53
|
+
same room. Measured TTFB ≈ 1.2 s is consistent with 2× ~220 ms RTT plus international
|
|
54
|
+
link congestion; 289 KB/s is the congested trans-Pacific bottleneck, not a tunnel limit.
|
|
55
|
+
2. **A visitor in another region does not help the tail.** They reach their nearest PoP
|
|
56
|
+
quickly, but the final leg is always LAX→China.
|
|
57
|
+
|
|
58
|
+
### What does *not* fix it
|
|
59
|
+
|
|
60
|
+
| Change | Fixes latency? | Why |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| `cloudflare_named` (own domain) | **No** | Same anchor, same last mile. It fixes address **stability**, not speed. |
|
|
63
|
+
| `tailscale_funnel` | **No** | Funnel is a **relay** ingress, not a peer connection. |
|
|
64
|
+
| `--protocol quic` vs `http2` | Marginally | The default is already `auto` (QUIC first, HTTP/2 fallback). It cannot remove the Pacific round trip. |
|
|
65
|
+
| Pinning `region*.v2.argotunnel.com` to a Hong Kong CF IP | Maybe, but fragile | Unsupported community trick; CF may reroute; breaks silently. Not shippable. |
|
|
66
|
+
|
|
67
|
+
## 3. What UU Remote does (and what we cannot copy)
|
|
68
|
+
|
|
69
|
+
UU Remote's speed comes from **path length**, not from a miracle codec:
|
|
70
|
+
|
|
71
|
+
1. **P2P direct first** — ICE/STUN hole punching picks the shortest path between the two
|
|
72
|
+
peers; if a direct path exists it is used, and the data never touches a relay.
|
|
73
|
+
2. **Relay fallback** — when hole punching fails (symmetric NAT / CGNAT), traffic falls
|
|
74
|
+
back to NetEase's **domestic BGP relay fleet**, which is close to both ends.
|
|
75
|
+
3. **UDP private transport** — avoids TCP head-of-line blocking; forward error correction
|
|
76
|
+
instead of retransmission stalls.
|
|
77
|
+
4. **Adaptive video pipeline** — hardware encode, frame pacing, bitrate adaptation.
|
|
78
|
+
|
|
79
|
+
Crucial distinction: **UU Remote ships a native client on both ends.** It does not serve a
|
|
80
|
+
web page to a browser.
|
|
81
|
+
|
|
82
|
+
**A browser cannot do this.** Browsers speak HTTP/HTTPS/WebSocket, and WebRTC data
|
|
83
|
+
channels cannot transparently wrap an existing TLS web app. So "make the browser go
|
|
84
|
+
peer-to-peer" is not a realistic option. The two things that *do* give UU-like latency to
|
|
85
|
+
a browser are:
|
|
86
|
+
|
|
87
|
+
- **(a) a native/mesh layer on the client device** (WireGuard: Tailscale, NetBird, etc.), or
|
|
88
|
+
- **(b) a relay placed physically near both ends** (a VPS in Hong Kong / Singapore / a
|
|
89
|
+
mainland node).
|
|
90
|
+
|
|
91
|
+
## 4. Target design: tiered path selection
|
|
92
|
+
|
|
93
|
+
Replace "one hardcoded path" with "**pick the fastest reachable path, and say which one is
|
|
94
|
+
in use**".
|
|
95
|
+
|
|
96
|
+
| Tier | Path | Expected latency | Throughput | Prerequisite |
|
|
97
|
+
|---|---|---|---|---|
|
|
98
|
+
| **T0** | LAN direct `http://<lan-ip>:<port>` | 4–5 ms | line rate | same Wi-Fi/LAN |
|
|
99
|
+
| **T1** | WireGuard mesh direct (`tailscale_serve` / NetBird) | 5–30 ms | uplink-bound | client installed on both ends |
|
|
100
|
+
| **T2** | Nearby relay (FRP / rathole on HK/SG VPS, `custom` kind) | 30–60 ms | VPS bandwidth | one VPS + domain |
|
|
101
|
+
| **T3** | Cloudflare tunnel (`cloudflare_quick` / `_named`) | 1200–1700 ms | ~289 KB/s | zero config |
|
|
102
|
+
|
|
103
|
+
T3 stays — it is the only tier that works for **sharing a public link with a stranger who
|
|
104
|
+
installs nothing**. It should simply stop being the *only* option and stop being the
|
|
105
|
+
*default* for the owner's own devices.
|
|
106
|
+
|
|
107
|
+
### Honesty requirement
|
|
108
|
+
|
|
109
|
+
The UI must display the **active tier and its measured cost**, e.g.
|
|
110
|
+
`Path: LAN · 4.6 ms` or `Path: Cloudflare LAX · 1280 ms`. A user who is told "remote access
|
|
111
|
+
is on" while every click costs 1.3 s will (correctly) conclude the product is broken.
|
|
112
|
+
|
|
113
|
+
## 5. Implementation plan
|
|
114
|
+
|
|
115
|
+
### P0 — Verify and surface what we already have (1–2 days)
|
|
116
|
+
|
|
117
|
+
The LAN tier and the WireGuard tier largely exist and were never verified:
|
|
118
|
+
|
|
119
|
+
- `192.168.8.101:8056` already answers `200 {"status":"ok"}` at 4.6 ms — the server is
|
|
120
|
+
already bound to `*:<port>`. **This works today and is not exposed anywhere in the UI.**
|
|
121
|
+
- `tailscale_serve` is implemented (`packages/remote/src/providers/tailscale.ts`) but
|
|
122
|
+
flagged unverified in the handoff doc.
|
|
123
|
+
|
|
124
|
+
Work:
|
|
125
|
+
1. Local address discovery (mDNS/Bonjour `_markus._tcp` + interface enumeration) and a
|
|
126
|
+
"LAN access" card in Settings → Remote Access showing `http://<lan-ip>:<port>`.
|
|
127
|
+
2. Auth/cookie behaviour on plain-HTTP LAN origins (`Secure` flag must not be required;
|
|
128
|
+
document the trust boundary: anyone on the LAN can reach the page, so the local login
|
|
129
|
+
must stay mandatory).
|
|
130
|
+
3. Real-hardware verification of `tailscale_serve` and a **direct-vs-relay indicator**
|
|
131
|
+
(`tailscale status --json` → `Relay: "direct"` or a DERP name). Surface it, do not fake it.
|
|
132
|
+
|
|
133
|
+
### P1 — Make the tunnel path measurable and honest (2–3 days)
|
|
134
|
+
|
|
135
|
+
1. `GET /api/diag/net` returning `cf-ray`, `colo`, `tcp/tls/ttfb` timings for the local
|
|
136
|
+
port; the settings panel renders the active path + measured latency.
|
|
137
|
+
2. Probe-based tier selection with a documented preference order and a manual override.
|
|
138
|
+
3. Front-end payload work (independent of network tier, benefits all of them):
|
|
139
|
+
- main bundle is **2.15 MB** — code splitting + Brotli; target < 700 KB initial.
|
|
140
|
+
- batch/parallelise the startup API fan-out; one cold load currently issues many
|
|
141
|
+
sequential calls, each paying a full round trip.
|
|
142
|
+
- WebSocket instead of polling for run/agent state.
|
|
143
|
+
|
|
144
|
+
### P2 — Add the nearby-relay tier (1–2 weeks)
|
|
145
|
+
|
|
146
|
+
1. Harden the `custom` kind: health check, URL stability, `X-Forwarded-Proto` handling,
|
|
147
|
+
and a one-command FRP/rathole recipe in the setup guide.
|
|
148
|
+
2. Setup wizard step: "I have a VPS → here is the 3-line config".
|
|
149
|
+
3. Optional: managed relay for users without a VPS (cost decision, see §6).
|
|
150
|
+
|
|
151
|
+
### P3 — Not recommended: build our own P2P stack
|
|
152
|
+
|
|
153
|
+
ICE/STUN/TURN + UDP transport + FEC + a relay fleet is months of work, still needs relays
|
|
154
|
+
for CGNAT, and **cannot serve a browser**. WireGuard mesh delivers ~90 % of the benefit for
|
|
155
|
+
a fraction of the cost.
|
|
156
|
+
|
|
157
|
+
## 6. Risks and open decisions
|
|
158
|
+
|
|
159
|
+
| Item | Honest assessment |
|
|
160
|
+
|---|---|
|
|
161
|
+
| **China CGNAT** | Both China Telecom/Unicom mobile and many home links are CGNAT. Hole punching for T1 may fail; the fallback (DERP) is overseas and can be as slow as today's tunnel. Must be measured per-network, not assumed. |
|
|
162
|
+
| **Mainland relay** | Serving a website from a mainland VPS on 80/443 requires ICP filing. HK/SG avoids it at 30–60 ms. |
|
|
163
|
+
| **Cost** | T2 needs ~$5–15/month VPS. A managed remote-access relay is a product decision, not an engineering one. |
|
|
164
|
+
| **Quick tunnels** | Documented by Cloudflare as testing-oriented, no SLA, may be rate-limited. Fine for demos, not for "this is my production access". |
|
|
165
|
+
| **TLS on T0/T1** | Plain HTTP on LAN/tailnet means no browser-trusted cert. Acceptable inside a trusted network if the app's own login stays mandatory; do not silently downgrade the public tiers. |
|
|
166
|
+
|
|
167
|
+
## 7. Recommendation
|
|
168
|
+
|
|
169
|
+
1. **Today**: expose T0 (LAN). It is already working at 4.6 ms and costs almost nothing to
|
|
170
|
+
surface. This alone removes the "remote access feels broken" complaint for the
|
|
171
|
+
at-home case.
|
|
172
|
+
2. **This week**: verify T1 (`tailscale_serve`) on real hardware and add the
|
|
173
|
+
direct-vs-relay indicator. For the owner's own devices this is the UU-like experience
|
|
174
|
+
without writing a single line of transport code.
|
|
175
|
+
3. **Next**: P1 measurement + payload work; then T2 for public sharing at usable speed.
|
|
176
|
+
4. **Keep T3** strictly as the zero-install/public-link tier, and label it as such in the UI.
|
|
177
|
+
|
|
178
|
+
Decision needed from the owner: whether T2 is a **self-hosted recipe** (user brings a VPS)
|
|
179
|
+
or a **managed relay** (we operate it, product cost + compliance).
|
package/package.json
CHANGED
|
@@ -277,6 +277,26 @@ Every task is created with `assigned_agent_id` and `reviewer_agent_id`. The revi
|
|
|
277
277
|
- Subtasks are the single source of truth for your work plan — keep them up to date at all times
|
|
278
278
|
- Use `subtask_list` before submission to verify all subtasks are in a terminal state (`completed` or `cancelled`)
|
|
279
279
|
|
|
280
|
+
### Where information belongs (comment ≠ update ≠ review)
|
|
281
|
+
|
|
282
|
+
Most multi-agent noise comes from putting information in the wrong channel. One rule each:
|
|
283
|
+
|
|
284
|
+
| What you have | Where it goes | Why |
|
|
285
|
+
|---|---|---|
|
|
286
|
+
| The goal, scope, acceptance criteria, or a frozen fact changed | **`task_update`** with `title` / `description` | The card is the single source of truth. The next agent reads the card, not the thread. |
|
|
287
|
+
| A record of what you did / found / what is next | **`task_comment`** or **`task_note`** | It is a log. It wakes nobody. |
|
|
288
|
+
| A request for a specific agent to act | **`task_comment` with `mentions: [agent_id]`** | Mention is the ONLY wakeup signal. No mention ⇒ nobody is notified. |
|
|
289
|
+
| A contested point that needs a ruling | **`task_ask_decision`** (once per card) | One open question, one decider, a recorded verdict — not a thread of arguments. |
|
|
290
|
+
| Work is finished | **`task_submit_review`** | The reviewer looks at the review gate, not the comments. |
|
|
291
|
+
|
|
292
|
+
**Never mention for FYI.** A mention costs that agent an entire context window — they stop what they are doing, load the card, read the thread, and often conclude that no action was needed. If you only want the information on record, comment without mentioning.
|
|
293
|
+
|
|
294
|
+
**Never announce a fact change only as a comment.** "I've updated the schema" in a comment while the card still says the old thing leaves the card wrong and the team misinformed.
|
|
295
|
+
|
|
296
|
+
**Silence is a valid answer.** No acknowledgement, no "agreed", no restating what someone else wrote. One short reply that moves the work is worth more than five that confirm it. If nothing is needed from anyone, write nothing.
|
|
297
|
+
|
|
298
|
+
**Only a human's comment enters a running agent's session.** If you are an agent, your comment does not interrupt another agent mid-task — it waits in the thread. So do not rely on comments to steer a running agent: change the card, or ask the decider.
|
|
299
|
+
|
|
280
300
|
---
|
|
281
301
|
|
|
282
302
|
## Project-Based Work
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as a,V as n}from"./mermaid.core-BYCWrkC-.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,c as s,a as e,C as t}from"./chunk-727SXJPM-BgceLEQx.js";import{_ as i}from"./mermaid.core-BYCWrkC-.js";import"./transform-CpIVI4vC.js";import"./chunk-FMBD7UC4-DyMa3olF.js";import"./chunk-ND2GUHAM-BsgTeDYu.js";import"./chunk-55IACEB6-BPhC3YgG.js";import"./chunk-2J33WTMH-JDr6ZP1p.js";import"./index-Dt7RN5t2.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,c as s,a as e,C as t}from"./chunk-727SXJPM-BgceLEQx.js";import{_ as i}from"./mermaid.core-BYCWrkC-.js";import"./transform-CpIVI4vC.js";import"./chunk-FMBD7UC4-DyMa3olF.js";import"./chunk-ND2GUHAM-BsgTeDYu.js";import"./chunk-55IACEB6-BPhC3YgG.js";import"./chunk-2J33WTMH-JDr6ZP1p.js";import"./index-Dt7RN5t2.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram};
|