dominds 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-control.js +2 -2
- package/dist/agent-priming.js +826 -92
- package/dist/cli/read.js +406 -12
- package/dist/dialog.js +4 -0
- package/dist/docs/design.md +1 -0
- package/dist/docs/design.zh.md +1 -0
- package/dist/docs/dialog-system.md +12 -7
- package/dist/docs/dialog-system.zh.md +7 -3
- package/dist/docs/dominds-agent-priming.md +10 -1
- package/dist/docs/dominds-agent-priming.zh.md +9 -1
- package/dist/docs/dominds-terminology.md +8 -8
- package/dist/docs/fbr-implementation.md +77 -0
- package/dist/docs/fbr-implementation.zh.md +77 -0
- package/dist/docs/fbr.md +142 -141
- package/dist/docs/fbr.zh.md +129 -123
- package/dist/docs/keep-going.zh.md +162 -0
- package/dist/docs/showing-by-doing.md +208 -0
- package/dist/docs/showing-by-doing.zh.md +177 -0
- package/dist/docs/tellask-collab.md +250 -0
- package/dist/docs/tellask-collab.zh.md +254 -0
- package/dist/docs/txt-editing-tools.md +2 -2
- package/dist/docs/txt-editing-tools.zh.md +2 -2
- package/dist/llm/defaults.yaml +82 -4
- package/dist/llm/driver.js +280 -104
- package/dist/llm/gen/codex.js +49 -2
- package/dist/log.js +385 -30
- package/dist/mcp/supervisor.js +113 -40
- package/dist/minds/builtin/pangu/persona.zh.md +2 -2
- package/dist/minds/load.js +49 -284
- package/dist/minds/minds-i18n.js +2 -2
- package/dist/minds/promptdocs.js +263 -0
- package/dist/minds/system-prompt-parts.js +231 -0
- package/dist/minds/system-prompt.js +190 -223
- package/dist/persistence.js +66 -1
- package/dist/server/websocket-handler.js +14 -0
- package/dist/shared/diligence.js +40 -6
- package/dist/shared/utils/inter-dialog-format.js +3 -5
- package/dist/showing-by-doing.js +34 -31
- package/dist/snippets/README.en.md +3 -0
- package/dist/static/assets/{_baseUniq-C9vbtHF9.js → _baseUniq-C7IpU2Uk.js} +2 -2
- package/dist/static/assets/{_baseUniq-C9vbtHF9.js.map → _baseUniq-C7IpU2Uk.js.map} +1 -1
- package/dist/static/assets/{arc-hulXG01i.js → arc-1bhQqjON.js} +2 -2
- package/dist/static/assets/{arc-hulXG01i.js.map → arc-1bhQqjON.js.map} +1 -1
- package/dist/static/assets/{architectureDiagram-VXUJARFQ-DdLIAMT5.js → architectureDiagram-VXUJARFQ-CkEi1QpB.js} +6 -6
- package/dist/static/assets/{architectureDiagram-VXUJARFQ-DdLIAMT5.js.map → architectureDiagram-VXUJARFQ-CkEi1QpB.js.map} +1 -1
- package/dist/static/assets/{blockDiagram-VD42YOAC-DACsx66C.js → blockDiagram-VD42YOAC-DaBQ5-pY.js} +7 -7
- package/dist/static/assets/{blockDiagram-VD42YOAC-DACsx66C.js.map → blockDiagram-VD42YOAC-DaBQ5-pY.js.map} +1 -1
- package/dist/static/assets/{c4Diagram-YG6GDRKO-Cd5xZlLy.js → c4Diagram-YG6GDRKO-ChUgpgkP.js} +3 -3
- package/dist/static/assets/{c4Diagram-YG6GDRKO-Cd5xZlLy.js.map → c4Diagram-YG6GDRKO-ChUgpgkP.js.map} +1 -1
- package/dist/static/assets/{channel-NQehis0Z.js → channel-CxvmwllM.js} +2 -2
- package/dist/static/assets/{channel-NQehis0Z.js.map → channel-CxvmwllM.js.map} +1 -1
- package/dist/static/assets/{chunk-4BX2VUAB-DZDPl76b.js → chunk-4BX2VUAB-CKsrU2yk.js} +2 -2
- package/dist/static/assets/{chunk-4BX2VUAB-DZDPl76b.js.map → chunk-4BX2VUAB-CKsrU2yk.js.map} +1 -1
- package/dist/static/assets/{chunk-55IACEB6-CFSRDUbl.js → chunk-55IACEB6-BAau9SFt.js} +2 -2
- package/dist/static/assets/{chunk-55IACEB6-CFSRDUbl.js.map → chunk-55IACEB6-BAau9SFt.js.map} +1 -1
- package/dist/static/assets/{chunk-B4BG7PRW-BqQQ9M_z.js → chunk-B4BG7PRW--IiJ7W1m.js} +5 -5
- package/dist/static/assets/{chunk-B4BG7PRW-BqQQ9M_z.js.map → chunk-B4BG7PRW--IiJ7W1m.js.map} +1 -1
- package/dist/static/assets/{chunk-DI55MBZ5-FiFzz1Gh.js → chunk-DI55MBZ5-B83KrPQj.js} +4 -4
- package/dist/static/assets/{chunk-DI55MBZ5-FiFzz1Gh.js.map → chunk-DI55MBZ5-B83KrPQj.js.map} +1 -1
- package/dist/static/assets/{chunk-FMBD7UC4-DqqtCyWK.js → chunk-FMBD7UC4-BlDXzeza.js} +2 -2
- package/dist/static/assets/{chunk-FMBD7UC4-DqqtCyWK.js.map → chunk-FMBD7UC4-BlDXzeza.js.map} +1 -1
- package/dist/static/assets/{chunk-QN33PNHL-F0laQQ-J.js → chunk-QN33PNHL-B596W_v7.js} +2 -2
- package/dist/static/assets/{chunk-QN33PNHL-F0laQQ-J.js.map → chunk-QN33PNHL-B596W_v7.js.map} +1 -1
- package/dist/static/assets/{chunk-QZHKN3VN-CWhEZPaV.js → chunk-QZHKN3VN-UBBCxgBb.js} +2 -2
- package/dist/static/assets/{chunk-QZHKN3VN-CWhEZPaV.js.map → chunk-QZHKN3VN-UBBCxgBb.js.map} +1 -1
- package/dist/static/assets/{chunk-TZMSLE5B-Dx9cnwUy.js → chunk-TZMSLE5B-D-wCX2wJ.js} +2 -2
- package/dist/static/assets/{chunk-TZMSLE5B-Dx9cnwUy.js.map → chunk-TZMSLE5B-D-wCX2wJ.js.map} +1 -1
- package/dist/static/assets/{classDiagram-2ON5EDUG-Dp-dyEGy.js → classDiagram-2ON5EDUG-DvtmzPcu.js} +6 -6
- package/dist/static/assets/{classDiagram-2ON5EDUG-Dp-dyEGy.js.map → classDiagram-2ON5EDUG-DvtmzPcu.js.map} +1 -1
- package/dist/static/assets/{classDiagram-v2-WZHVMYZB-Dp-dyEGy.js → classDiagram-v2-WZHVMYZB-DvtmzPcu.js} +6 -6
- package/dist/static/assets/{classDiagram-v2-WZHVMYZB-Dp-dyEGy.js.map → classDiagram-v2-WZHVMYZB-DvtmzPcu.js.map} +1 -1
- package/dist/static/assets/{clone-C6mKvxs5.js → clone-DgJ0ZR-k.js} +2 -2
- package/dist/static/assets/{clone-C6mKvxs5.js.map → clone-DgJ0ZR-k.js.map} +1 -1
- package/dist/static/assets/{cose-bilkent-S5V4N54A-Dbwh3GoX.js → cose-bilkent-S5V4N54A-DXMyFQvy.js} +2 -2
- package/dist/static/assets/{cose-bilkent-S5V4N54A-Dbwh3GoX.js.map → cose-bilkent-S5V4N54A-DXMyFQvy.js.map} +1 -1
- package/dist/static/assets/{dagre-6UL2VRFP-BD_6e0Uk.js → dagre-6UL2VRFP-BdaUG-j_.js} +7 -7
- package/dist/static/assets/{dagre-6UL2VRFP-BD_6e0Uk.js.map → dagre-6UL2VRFP-BdaUG-j_.js.map} +1 -1
- package/dist/static/assets/{diagram-PSM6KHXK-BWt7Q59-.js → diagram-PSM6KHXK-NLiqKBzn.js} +7 -7
- package/dist/static/assets/{diagram-PSM6KHXK-BWt7Q59-.js.map → diagram-PSM6KHXK-NLiqKBzn.js.map} +1 -1
- package/dist/static/assets/{diagram-QEK2KX5R-D0BvBR_a.js → diagram-QEK2KX5R-D-0fyvY_.js} +6 -6
- package/dist/static/assets/{diagram-QEK2KX5R-D0BvBR_a.js.map → diagram-QEK2KX5R-D-0fyvY_.js.map} +1 -1
- package/dist/static/assets/{diagram-S2PKOQOG-D8uRdKXp.js → diagram-S2PKOQOG-BQ_FU59m.js} +6 -6
- package/dist/static/assets/{diagram-S2PKOQOG-D8uRdKXp.js.map → diagram-S2PKOQOG-BQ_FU59m.js.map} +1 -1
- package/dist/static/assets/{erDiagram-Q2GNP2WA-CQoifjFq.js → erDiagram-Q2GNP2WA-DyftKeuC.js} +5 -5
- package/dist/static/assets/{erDiagram-Q2GNP2WA-CQoifjFq.js.map → erDiagram-Q2GNP2WA-DyftKeuC.js.map} +1 -1
- package/dist/static/assets/{flowDiagram-NV44I4VS-CGhdeaG8.js → flowDiagram-NV44I4VS-9SGefONA.js} +6 -6
- package/dist/static/assets/{flowDiagram-NV44I4VS-CGhdeaG8.js.map → flowDiagram-NV44I4VS-9SGefONA.js.map} +1 -1
- package/dist/static/assets/{ganttDiagram-JELNMOA3-D8W0wb9H.js → ganttDiagram-JELNMOA3-k_WLhf-r.js} +3 -3
- package/dist/static/assets/{ganttDiagram-JELNMOA3-D8W0wb9H.js.map → ganttDiagram-JELNMOA3-k_WLhf-r.js.map} +1 -1
- package/dist/static/assets/{gitGraphDiagram-NY62KEGX-ChHni_jP.js → gitGraphDiagram-NY62KEGX-3eoLlCOY.js} +7 -7
- package/dist/static/assets/{gitGraphDiagram-NY62KEGX-ChHni_jP.js.map → gitGraphDiagram-NY62KEGX-3eoLlCOY.js.map} +1 -1
- package/dist/static/assets/{graph-BWoi_FgC.js → graph-vUevIs4s.js} +3 -3
- package/dist/static/assets/{graph-BWoi_FgC.js.map → graph-vUevIs4s.js.map} +1 -1
- package/dist/static/assets/{index-th_praGg.js → index-BNBG2CE1.js} +399 -68
- package/dist/static/assets/index-BNBG2CE1.js.map +1 -0
- package/dist/static/assets/{infoDiagram-WHAUD3N6-B_XKKZTV.js → infoDiagram-WHAUD3N6-CwEhVxkU.js} +5 -5
- package/dist/static/assets/{infoDiagram-WHAUD3N6-B_XKKZTV.js.map → infoDiagram-WHAUD3N6-CwEhVxkU.js.map} +1 -1
- package/dist/static/assets/{journeyDiagram-XKPGCS4Q-ChGuQ6T9.js → journeyDiagram-XKPGCS4Q-Dtdq4G4Q.js} +5 -5
- package/dist/static/assets/{journeyDiagram-XKPGCS4Q-ChGuQ6T9.js.map → journeyDiagram-XKPGCS4Q-Dtdq4G4Q.js.map} +1 -1
- package/dist/static/assets/{kanban-definition-3W4ZIXB7-BjWe623u.js → kanban-definition-3W4ZIXB7-Bli-AycJ.js} +3 -3
- package/dist/static/assets/{kanban-definition-3W4ZIXB7-BjWe623u.js.map → kanban-definition-3W4ZIXB7-Bli-AycJ.js.map} +1 -1
- package/dist/static/assets/{layout-BPyT310w.js → layout-CGlA8c09.js} +5 -5
- package/dist/static/assets/{layout-BPyT310w.js.map → layout-CGlA8c09.js.map} +1 -1
- package/dist/static/assets/{linear-xUsVjXWq.js → linear-Da2jDWL3.js} +2 -2
- package/dist/static/assets/{linear-xUsVjXWq.js.map → linear-Da2jDWL3.js.map} +1 -1
- package/dist/static/assets/{min-xFt7zeOd.js → min-Co741hTV.js} +3 -3
- package/dist/static/assets/{min-xFt7zeOd.js.map → min-Co741hTV.js.map} +1 -1
- package/dist/static/assets/{mindmap-definition-VGOIOE7T-DT_dvf2c.js → mindmap-definition-VGOIOE7T-DvkIjoq8.js} +4 -4
- package/dist/static/assets/{mindmap-definition-VGOIOE7T-DT_dvf2c.js.map → mindmap-definition-VGOIOE7T-DvkIjoq8.js.map} +1 -1
- package/dist/static/assets/{pieDiagram-ADFJNKIX-B1DQ-OaG.js → pieDiagram-ADFJNKIX-BGuGhTu8.js} +7 -7
- package/dist/static/assets/{pieDiagram-ADFJNKIX-B1DQ-OaG.js.map → pieDiagram-ADFJNKIX-BGuGhTu8.js.map} +1 -1
- package/dist/static/assets/{quadrantDiagram-AYHSOK5B-IHqyr3iT.js → quadrantDiagram-AYHSOK5B-DAZcrJMg.js} +3 -3
- package/dist/static/assets/{quadrantDiagram-AYHSOK5B-IHqyr3iT.js.map → quadrantDiagram-AYHSOK5B-DAZcrJMg.js.map} +1 -1
- package/dist/static/assets/{requirementDiagram-UZGBJVZJ-CKBpht7B.js → requirementDiagram-UZGBJVZJ-CXN0DxZs.js} +4 -4
- package/dist/static/assets/{requirementDiagram-UZGBJVZJ-CKBpht7B.js.map → requirementDiagram-UZGBJVZJ-CXN0DxZs.js.map} +1 -1
- package/dist/static/assets/{sankeyDiagram-TZEHDZUN-D2uGjv3i.js → sankeyDiagram-TZEHDZUN-B7-yAePZ.js} +2 -2
- package/dist/static/assets/{sankeyDiagram-TZEHDZUN-D2uGjv3i.js.map → sankeyDiagram-TZEHDZUN-B7-yAePZ.js.map} +1 -1
- package/dist/static/assets/{sequenceDiagram-WL72ISMW-wLFRhAKd.js → sequenceDiagram-WL72ISMW-DfBNY6h_.js} +4 -4
- package/dist/static/assets/{sequenceDiagram-WL72ISMW-wLFRhAKd.js.map → sequenceDiagram-WL72ISMW-DfBNY6h_.js.map} +1 -1
- package/dist/static/assets/{stateDiagram-FKZM4ZOC-BFGQTbx5.js → stateDiagram-FKZM4ZOC-BLo1xRVY.js} +9 -9
- package/dist/static/assets/{stateDiagram-FKZM4ZOC-BFGQTbx5.js.map → stateDiagram-FKZM4ZOC-BLo1xRVY.js.map} +1 -1
- package/dist/static/assets/{stateDiagram-v2-4FDKWEC3-DF7AjJuk.js → stateDiagram-v2-4FDKWEC3-Dq7MAD0I.js} +5 -5
- package/dist/static/assets/{stateDiagram-v2-4FDKWEC3-DF7AjJuk.js.map → stateDiagram-v2-4FDKWEC3-Dq7MAD0I.js.map} +1 -1
- package/dist/static/assets/{timeline-definition-IT6M3QCI-ChHFOb0o.js → timeline-definition-IT6M3QCI-ySWyBF3b.js} +3 -3
- package/dist/static/assets/{timeline-definition-IT6M3QCI-ChHFOb0o.js.map → timeline-definition-IT6M3QCI-ySWyBF3b.js.map} +1 -1
- package/dist/static/assets/{treemap-KMMF4GRG-BxaNvQU4.js → treemap-KMMF4GRG-DOp4sqOh.js} +4 -4
- package/dist/static/assets/{treemap-KMMF4GRG-BxaNvQU4.js.map → treemap-KMMF4GRG-DOp4sqOh.js.map} +1 -1
- package/dist/static/assets/{xychartDiagram-PRI3JC2R-CrNKeY_-.js → xychartDiagram-PRI3JC2R-vkmh67qb.js} +3 -3
- package/dist/static/assets/{xychartDiagram-PRI3JC2R-CrNKeY_-.js.map → xychartDiagram-PRI3JC2R-vkmh67qb.js.map} +1 -1
- package/dist/static/index.html +1 -1
- package/dist/team.js +29 -6
- package/dist/tool.js +56 -0
- package/dist/tools/builtins.js +4 -2
- package/dist/tools/context-health.js +7 -7
- package/dist/tools/os.js +267 -30
- package/dist/tools/pending-tellask-reminder.js +185 -0
- package/dist/tools/plan.js +1 -0
- package/dist/tools/ripgrep.js +145 -4
- package/dist/tools/shell-tools.js +21 -0
- package/dist/tools/team-mgmt.js +4 -4
- package/dist/tools/toolset-manual.js +74 -0
- package/dist/utils/task-doc.js +16 -16
- package/package.json +1 -1
- package/dist/minds/builtin/cmdr/persona.md +0 -3
- package/dist/minds/builtin/dijiang/knowledge.md +0 -287
- package/dist/minds/builtin/dijiang/persona.md +0 -7
- package/dist/static/assets/index-th_praGg.js.map +0 -1
- package/dist/static/testing/dom-observation-utils.js +0 -425
- package/dist/static/testing/e2e-test-helper.js +0 -3119
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# Showing-by-Doing (做给祂看): Make Tellask Real
|
|
2
|
+
|
|
3
|
+
Chinese version: [中文版](./showing-by-doing.zh.md)
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
|
|
7
|
+
Dominds has a real, runtime-enforced Tellask mechanism (`!?@...`) and a real, runtime-enforced Fresh Boots Reasoning
|
|
8
|
+
(FBR) mechanism (`!?@self`). Even if system prompts explain these mechanisms in detail, most foundation models were not
|
|
9
|
+
trained in a world where “asking a teammate to run a shell command” is actually possible, so they often treat such text
|
|
10
|
+
as aspirational or hypothetical.
|
|
11
|
+
|
|
12
|
+
**Showing-by-Doing (做给祂看)** is a tiny, highly realistic “first impression” procedure executed at dialog creation
|
|
13
|
+
time. It runs a short, real Tellask + real FBR round-trip so the model gains _felt-sense_ that:
|
|
14
|
+
|
|
15
|
+
- teammate Tellasks are real and will be executed
|
|
16
|
+
- tool outputs are real and will be returned
|
|
17
|
+
- FBR is real and will produce a report back to the caller
|
|
18
|
+
|
|
19
|
+
This makes subsequent use of Tellasks and `!?@self` FBR more reliable across the entire dialog lifecycle.
|
|
20
|
+
|
|
21
|
+
As a consequence, we can **dramatically simplify system prompts**: keep only short, accurate statements of the Tellask/FBR
|
|
22
|
+
contracts, and rely on Showing-by-Doing to establish “this is real and works here”.
|
|
23
|
+
|
|
24
|
+
Related docs:
|
|
25
|
+
|
|
26
|
+
- Tellask runtime: `dominds/docs/dialog-system.md`
|
|
27
|
+
- Terminology (Mainline/Sideline): `dominds/docs/dominds-terminology.md`
|
|
28
|
+
- FBR (`!?@self`): `dominds/docs/fbr.md`
|
|
29
|
+
- Work language vs UI language: `dominds/docs/i18n.md`
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Goals
|
|
34
|
+
|
|
35
|
+
- Establish immediate trust that **Tellask is not “just prompt text”**: it is an executable, backend-driven mechanism.
|
|
36
|
+
- Establish immediate trust that **FBR is not “just reasoning”**: it is a concrete sideline dialog that reports back.
|
|
37
|
+
- Keep the procedure safe, small, and deterministic (default command: `uname -a`).
|
|
38
|
+
- Persist and display the interaction so it is credible from multiple angles (backend record + frontend transcript).
|
|
39
|
+
|
|
40
|
+
## Non-goals
|
|
41
|
+
|
|
42
|
+
- Running arbitrary user-provided commands as part of dialog creation.
|
|
43
|
+
- Collecting sensitive system information (beyond minimal OS/kernel identification).
|
|
44
|
+
- Replacing proper documentation: this is an experiential supplement, not the main spec.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Definitions (user-facing)
|
|
49
|
+
|
|
50
|
+
- **Mainline dialog**: the primary thread where the user and the main agent interact.
|
|
51
|
+
- **Sideline dialog**: a temporary work thread created by Tellask / FBR, reporting results back to the mainline.
|
|
52
|
+
- **Tellask**: a structured request (`!?@<memberId> ...`) from a tellasker to a tellaskee.
|
|
53
|
+
- **Shell specialist**: a teammate designated to run shell commands safely (configured via `shell_specialists`).
|
|
54
|
+
- **FBR**: Fresh Boots Reasoning, implemented as `!?@self` (a tool-less sideline dialog). See `dominds/docs/fbr.md`.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Runtime flow (at dialog creation)
|
|
59
|
+
|
|
60
|
+
Showing-by-Doing runs **before** the first user message is processed (a “prelude”), unless the user opts out.
|
|
61
|
+
|
|
62
|
+
### 1) Choose the shell execution path
|
|
63
|
+
|
|
64
|
+
1. If the team config includes at least one `shell_specialists` member, pick one deterministically (e.g. the first).
|
|
65
|
+
2. Otherwise, let the **Dominds runtime** execute the baseline command directly (not via agent tools).
|
|
66
|
+
|
|
67
|
+
Note: team config validation normally requires `shell_specialists` to be non-empty if any teammate has shell tools, and
|
|
68
|
+
also requires that only listed shell specialists have shell tools. In other words, “no `shell_specialists` configured”
|
|
69
|
+
usually means “shell tools are disabled for all user-facing teammates”.
|
|
70
|
+
|
|
71
|
+
Baseline command:
|
|
72
|
+
|
|
73
|
+
- `uname -a`
|
|
74
|
+
|
|
75
|
+
If `uname -a` fails (e.g. non-POSIX host), the runtime should fall back to a platform-appropriate equivalent, but the
|
|
76
|
+
default “muscle memory” path is intentionally `uname -a` because it is common, low-risk, and quick.
|
|
77
|
+
|
|
78
|
+
### 2) Real teammate Tellask: ask for `uname -a`
|
|
79
|
+
|
|
80
|
+
If a shell specialist exists, the main agent (tellasker) issues **a real Tellask** to the shell specialist (tellaskee),
|
|
81
|
+
in the server-wide **work language** (see `dominds/docs/i18n.md`).
|
|
82
|
+
|
|
83
|
+
The Tellask body should be short and operational:
|
|
84
|
+
|
|
85
|
+
- ask the shell specialist to run `uname -a`
|
|
86
|
+
- ask them to return the raw output verbatim
|
|
87
|
+
- ask them to include an error + alternative command if `uname` is not available
|
|
88
|
+
|
|
89
|
+
The result must be recorded as a normal, debuggable transcript that clearly shows:
|
|
90
|
+
|
|
91
|
+
- the Tellask headline + body
|
|
92
|
+
- the shell specialist’s command execution
|
|
93
|
+
- the returned output
|
|
94
|
+
|
|
95
|
+
Minimal configuration example:
|
|
96
|
+
|
|
97
|
+
```yaml
|
|
98
|
+
# .minds/team.yaml
|
|
99
|
+
shell_specialists:
|
|
100
|
+
- cmdr
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### 3) Real FBR: reflect on what the environment implies
|
|
104
|
+
|
|
105
|
+
After obtaining the environment snapshot (from the shell specialist or direct tool run), the main agent issues a real
|
|
106
|
+
`!?@self` Tellask to trigger **FBR**.
|
|
107
|
+
|
|
108
|
+
The FBR Tellask body should include:
|
|
109
|
+
|
|
110
|
+
- the exact `uname -a` output
|
|
111
|
+
- the main agent’s tool availability assumptions (e.g. “in mainline I may have `fs`/`os`/`mem`; in FBR you have no tools”)
|
|
112
|
+
- the question: “What should I be careful about in this environment? Which CLI tools should I prioritize, and why?”
|
|
113
|
+
|
|
114
|
+
The FBR response should return a compact report that the main agent can reuse, typically:
|
|
115
|
+
|
|
116
|
+
- environment notes (OS family, kernel, container/VM hints if any)
|
|
117
|
+
- do/don’t list (pitfalls)
|
|
118
|
+
- a short “preferred commands” shortlist (e.g. `rg`, `sed`, `jq`, `tar`, `ps`, `lsof`, depending on host)
|
|
119
|
+
|
|
120
|
+
### 4) Summarize into an “Environment Quickstart” note
|
|
121
|
+
|
|
122
|
+
The main agent then writes a short, user-visible summary to the mainline dialog so the knowledge is explicit and
|
|
123
|
+
searchable in the transcript.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Fallback behavior
|
|
128
|
+
|
|
129
|
+
Showing-by-Doing should degrade gracefully:
|
|
130
|
+
|
|
131
|
+
- **No `shell_specialists` configured**: the Dominds runtime runs `uname -a` directly, then do FBR.
|
|
132
|
+
- **Shell specialist fails or times out**: the Dominds runtime runs `uname -a` directly and continue, marking the
|
|
133
|
+
specialist attempt as failed in the transcript.
|
|
134
|
+
- **`uname` not available / command fails**: run FBR with “environment unknown”; the report should explicitly list what
|
|
135
|
+
is missing and suggest what to gather later.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Persistence, caching, and reuse
|
|
140
|
+
|
|
141
|
+
### 1) Persist as real dialog records (backend + frontend)
|
|
142
|
+
|
|
143
|
+
All Showing-by-Doing steps must be persisted as standard dialog artifacts (messages + events) so they remain credible:
|
|
144
|
+
|
|
145
|
+
- they survive restarts (subject to normal dialog persistence rules)
|
|
146
|
+
- they are debuggable in logs/storage
|
|
147
|
+
- they are rendered in the WebUI transcript (ideally as a collapsible “Prelude” section)
|
|
148
|
+
|
|
149
|
+
### 2) Process-wide cache (per teammate)
|
|
150
|
+
|
|
151
|
+
To avoid repeating `uname -a` + FBR on every new dialog, the backend process may maintain a **server-scoped cache** keyed
|
|
152
|
+
by (at minimum):
|
|
153
|
+
|
|
154
|
+
- tellasker teammate id (the agent whose dialogs are being created)
|
|
155
|
+
- an environment fingerprint derived from the `uname -a` output (exact string or hashed)
|
|
156
|
+
|
|
157
|
+
Cache payload (recommended):
|
|
158
|
+
|
|
159
|
+
- the full Showing-by-Doing transcript (Tellask + output + FBR + summary)
|
|
160
|
+
- a short “Environment Quickstart” distilled form (for compact context injection)
|
|
161
|
+
- timestamps + a version tag for future schema changes
|
|
162
|
+
|
|
163
|
+
Reuse policy:
|
|
164
|
+
|
|
165
|
+
- If a valid cache entry exists, a new dialog may **reuse** the cached transcript instead of re-running.
|
|
166
|
+
- Reused entries should still be visible in the new dialog’s transcript, clearly labeled as “Reused from cache”.
|
|
167
|
+
|
|
168
|
+
Invalidation (recommended):
|
|
169
|
+
|
|
170
|
+
- invalidate when the environment fingerprint changes
|
|
171
|
+
- allow a manual “Refresh environment snapshot” action for debugging
|
|
172
|
+
|
|
173
|
+
### 3) Carry across `clear_mind`
|
|
174
|
+
|
|
175
|
+
After each `clear_mind` (entering the next “journey stage”), do **not** rely on reminders for this.
|
|
176
|
+
|
|
177
|
+
Instead, inject a small, stable **course prefix** into the model context at the start of each new course (i.e. the first
|
|
178
|
+
few messages in the historical dialog section). This prefix should be a condensed transcript distilled from the original
|
|
179
|
+
Showing-by-Doing run (shell snapshot + FBR highlights + quickstart), so the agent keeps its “felt-sense” of Tellask/FBR
|
|
180
|
+
and environment constraints without re-running the prelude.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## UX requirements (WebUI)
|
|
185
|
+
|
|
186
|
+
### Display
|
|
187
|
+
|
|
188
|
+
- Render Showing-by-Doing as a realistic transcript the user can inspect.
|
|
189
|
+
- Prefer a collapsible “Prelude” section at the top of the dialog, with clear labels:
|
|
190
|
+
- “Teammate Tellask (shell)”
|
|
191
|
+
- “FBR (`!?@self`)”
|
|
192
|
+
- “Environment Quickstart”
|
|
193
|
+
|
|
194
|
+
### Opt-out
|
|
195
|
+
|
|
196
|
+
The dialog creation UI should include an explicit opt-out, e.g.:
|
|
197
|
+
|
|
198
|
+
- Checkbox: “Skip Showing-by-Doing (do not run environment prelude)”
|
|
199
|
+
|
|
200
|
+
If opted out, no prelude actions are executed and no prelude transcript is generated.
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## Safety notes
|
|
205
|
+
|
|
206
|
+
- Default to a single, low-risk command (`uname -a`).
|
|
207
|
+
- Do not run anything that modifies the filesystem or network as part of this prelude.
|
|
208
|
+
- Treat the prelude transcript as user-visible by default; avoid including secrets or personally identifying details.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# 做给祂看(Showing-by-Doing):把诉请机制变成“体感”
|
|
2
|
+
|
|
3
|
+
英文版:[English](./showing-by-doing.md)
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
Dominds 的诉请(Tellask,`!?@...`)与扪心自问(FBR,`!?@self`)并不是“写在系统提示里的约定”,而是**后端真实可驱动、可执行、可回传、可持久化**的机制。
|
|
8
|
+
|
|
9
|
+
问题在于:即使系统提示把诉请机制写得再细,大多数基础模型也并未在“真的可以随时拉一个队友去跑 shell 命令并把结果带回来”的世界里被训练过,因此容易把这些提示当成“说说而已 / 仅供参考”。这会直接削弱诉请与 FBR 的可用性。
|
|
10
|
+
|
|
11
|
+
因此引入 **“做给祂看”**:在一个对话创建之初,运行一段极短、极拟真的“真实诉请 + 真实 FBR”往返,让智能体产生明确的体感:
|
|
12
|
+
|
|
13
|
+
- 诉请是真的,会被执行
|
|
14
|
+
- 工具输出是真的,会被带回并写入对话记录
|
|
15
|
+
- `!?@self` FBR 也是真的,会作为支线对话产出报告并回传
|
|
16
|
+
|
|
17
|
+
体感建立后,系统提示可以**大幅简化**:只保留“短而准确”的契约说明即可,把“这在本环境里真实可用”的可信度交给做给祂看来完成。
|
|
18
|
+
|
|
19
|
+
相关文档:
|
|
20
|
+
|
|
21
|
+
- 诉请机制与子对话:`dominds/docs/dialog-system.md`
|
|
22
|
+
- 术语约定(主线/支线;诉请方/应答方):`dominds/docs/dominds-terminology.md`
|
|
23
|
+
- FBR(`!?@self`):`dominds/docs/fbr.md`
|
|
24
|
+
- 工作语言 vs UI 语言:`dominds/docs/i18n.md`
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 目标
|
|
29
|
+
|
|
30
|
+
- 在对话一开始就建立“诉请/回传/持久化都是真的”的信任。
|
|
31
|
+
- 在对话一开始就跑通一次 `!?@self` 的 FBR 回路。
|
|
32
|
+
- 过程足够小、可控、低风险(默认只执行 `uname -a`)。
|
|
33
|
+
- 记录从多角度都高度拟真:后端存档 + 前端可见的对话转录。
|
|
34
|
+
|
|
35
|
+
## 非目标
|
|
36
|
+
|
|
37
|
+
- 不在创建对话时执行任意用户输入的命令。
|
|
38
|
+
- 不收集敏感信息(默认只采集最小的 OS/Kernel 识别信息)。
|
|
39
|
+
- 不替代系统提示/设计文档:这是“体感补强”,不是完整规范的主载体。
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 概念(用户视角)
|
|
44
|
+
|
|
45
|
+
- **主线对话**:用户与主要智能体交互的那条线。
|
|
46
|
+
- **支线对话**:由诉请 / FBR 触发的临时工作线,产出结果回传主线。
|
|
47
|
+
- **诉请(Tellask)**:以 `!?@<memberId> ...` 向队友/对话发起的结构化请求。
|
|
48
|
+
- **Shell 专家(shell specialist)**:被允许执行 shell 命令并回传结果的队友(由 `shell_specialists` 配置指定)。
|
|
49
|
+
- **FBR(扪心自问)**:以 `!?@self` 触发的“无工具支线推理”,产出报告回传主线。
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 运行流程(对话创建时)
|
|
54
|
+
|
|
55
|
+
做给祂看发生在**第一条用户消息被处理之前**(可视为一个 Prelude / 序幕),除非用户在创建对话时明确选择跳过。
|
|
56
|
+
|
|
57
|
+
### 1)选择执行路径
|
|
58
|
+
|
|
59
|
+
1. 如果 team 配置里存在 `shell_specialists`,选择一个 shell 专员(建议确定性选择:列表第一个)。
|
|
60
|
+
2. 否则,由 **Dominds 运行时**直接执行基线命令(不通过智能体工具)。
|
|
61
|
+
|
|
62
|
+
补充:team 配置校验一般会要求——只要有队友拥有 shell 工具,就必须配置非空的 `shell_specialists`;同时,非 shell 专员不应持有 shell 工具。因此“没有配置 `shell_specialists`”通常意味着“对用户可见的队友都没有 shell 工具可用”。
|
|
63
|
+
|
|
64
|
+
基线命令(默认):
|
|
65
|
+
|
|
66
|
+
- `uname -a`
|
|
67
|
+
|
|
68
|
+
`uname -a` 失败时(例如非 POSIX 环境),可以改用平台等价命令;但默认肌肉记忆路径保留 `uname -a`,因为它低风险、快、且信息量刚好够用。
|
|
69
|
+
|
|
70
|
+
### 2)真实队友诉请:让 shell 专员执行 `uname -a`
|
|
71
|
+
|
|
72
|
+
若存在 shell 专员,则主线智能体(诉请方)以**工作语言**(server-wide,见 `dominds/docs/i18n.md`)向 shell 专员(应答方)发起真实诉请,要求:
|
|
73
|
+
|
|
74
|
+
- 执行 `uname -a`
|
|
75
|
+
- 原样返回输出
|
|
76
|
+
- 若命令不可用,返回错误信息,并给出替代命令建议
|
|
77
|
+
|
|
78
|
+
结果必须以正常对话转录的方式落盘并展示,至少清晰体现:
|
|
79
|
+
|
|
80
|
+
- 诉请的 headline + body
|
|
81
|
+
- shell 专员实际执行了命令
|
|
82
|
+
- 返回的原始输出
|
|
83
|
+
|
|
84
|
+
最小配置示例:
|
|
85
|
+
|
|
86
|
+
```yaml
|
|
87
|
+
# .minds/team.yaml
|
|
88
|
+
shell_specialists:
|
|
89
|
+
- cmdr
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### 3)真实 FBR:基于环境信息做一次“扪心自问”
|
|
93
|
+
|
|
94
|
+
拿到环境快照(来自 shell 专员或直接运行)后,主线智能体触发一次 `!?@self` FBR,并在 FBR 的诉请正文里带上:
|
|
95
|
+
|
|
96
|
+
- `uname -a` 的完整输出
|
|
97
|
+
- 主线可用工具的假设(例如“主线可能有 `fs`/`os`/`mem`;但 FBR 你没有任何工具”)
|
|
98
|
+
- 问题:在这个环境里要注意什么?优先用哪些命令行工具,为什么?
|
|
99
|
+
|
|
100
|
+
FBR 产出应尽量短而可复用,典型包括:
|
|
101
|
+
|
|
102
|
+
- 环境判断(OS 家族、内核、是否容器/VM 线索)
|
|
103
|
+
- 注意事项(坑点清单)
|
|
104
|
+
- “优先工具/命令” shortlist(例如 `rg`、`sed`、`jq`、`tar`、`ps`、`lsof` 等,视环境而定)
|
|
105
|
+
|
|
106
|
+
### 4)把结果收敛成“环境速记”
|
|
107
|
+
|
|
108
|
+
主线智能体在主线对话里追加一条短总结(Environment Quickstart),让关键信息显性化、可检索。
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 降级策略
|
|
113
|
+
|
|
114
|
+
- **未配置 `shell_specialists`**:由 Dominds 运行时直接执行 `uname -a`,然后进入 FBR。
|
|
115
|
+
- **shell 专员失败/超时**:记录失败原因,由 Dominds 运行时直接执行 `uname -a`,继续进入 FBR。
|
|
116
|
+
- **`uname` 不存在/执行失败**:跳过命令执行,直接让 FBR 以“环境未知”输出:缺什么信息、为什么关键、后续如何补齐。
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## 持久化、缓存与复用
|
|
121
|
+
|
|
122
|
+
### 1)记录必须“像真的一样”
|
|
123
|
+
|
|
124
|
+
做给祂看的每一步都必须作为标准对话记录落盘(消息 + 事件),并在 WebUI 中可见:
|
|
125
|
+
|
|
126
|
+
- 可跨重启(遵循常规对话持久化)
|
|
127
|
+
- 可 debug(日志/存储都有迹可循)
|
|
128
|
+
- 前端可查看转录(建议 UI 上做一个可折叠 Prelude 区域)
|
|
129
|
+
|
|
130
|
+
### 2)仅进程内缓存(按智能体维度)
|
|
131
|
+
|
|
132
|
+
为了避免每次新对话都重复跑 `uname -a` + FBR,后端进程可以维护一个**进程内缓存**(重启失效),按(至少)主线智能体 id 做 key。
|
|
133
|
+
|
|
134
|
+
缓存内容建议包含:
|
|
135
|
+
|
|
136
|
+
- 完整转录(诉请 + shell 输出 + FBR + 速记)
|
|
137
|
+
- 一份更短的 distilled “环境速记”(用于注入上下文)
|
|
138
|
+
- 时间戳 + 版本号(未来 schema 变化用)
|
|
139
|
+
|
|
140
|
+
复用策略:
|
|
141
|
+
|
|
142
|
+
- 若命中缓存,新对话可以直接复用首次的转录与速记,不再重复执行。
|
|
143
|
+
- 复用的记录在新对话里仍应可见,并清楚标记“来自缓存复用”。
|
|
144
|
+
|
|
145
|
+
### 3)跨 `clear_mind` 携带
|
|
146
|
+
|
|
147
|
+
每次 `clear_mind` 进入下一程时,不要依赖 reminder 来承载这件事。
|
|
148
|
+
|
|
149
|
+
改为:在每一程对话的上下文里,注入一段小而稳定的 **course prefix**(可理解为“历史消息区最开头的几条 msg”),内容是从首次做给祂看中提炼出的压缩转录(shell 快照 + FBR 摘要 + 环境速记)。这样智能体能持续保留“体感”和环境约束,而无需重复执行 Prelude,也不必每次把整段长转录重新塞进上下文。
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## WebUI 需求
|
|
154
|
+
|
|
155
|
+
### 展示
|
|
156
|
+
|
|
157
|
+
- 做给祂看应以真实对话转录展示,用户可展开查看细节。
|
|
158
|
+
- 建议在对话顶部提供一个可折叠 Prelude 区域,并带上清晰标签:
|
|
159
|
+
- “队友诉请(shell)”
|
|
160
|
+
- “FBR(`!?@self`)”
|
|
161
|
+
- “环境速记(Environment Quickstart)”
|
|
162
|
+
|
|
163
|
+
### 创建对话时可选择跳过(opt-out)
|
|
164
|
+
|
|
165
|
+
创建对话框上提供明确开关,例如:
|
|
166
|
+
|
|
167
|
+
- Checkbox:“跳过做给祂看(不执行环境序幕)”
|
|
168
|
+
|
|
169
|
+
若选择跳过,则不执行任何 Prelude 行为,也不生成 Prelude 转录。
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 安全注意事项
|
|
174
|
+
|
|
175
|
+
- 默认只执行 `uname -a`(低风险、只读、快)。
|
|
176
|
+
- Prelude 禁止任何会改写文件/网络/系统状态的操作。
|
|
177
|
+
- 由于 Prelude 默认用户可见,严禁输出密钥/敏感信息。
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# Tellask Collaboration Best Practices (Draft)
|
|
2
|
+
|
|
3
|
+
Chinese version: [中文版](./tellask-collab.zh.md)
|
|
4
|
+
|
|
5
|
+
> Status: Draft
|
|
6
|
+
> Scope: this doc separates what is already implemented from what we should improve next.
|
|
7
|
+
|
|
8
|
+
## 1. Why this doc exists
|
|
9
|
+
|
|
10
|
+
Dominds already has a real Tellask runtime. The current pain is not syntax, but coordination behavior:
|
|
11
|
+
|
|
12
|
+
- The tellasker receives a checkpoint-style reply and assumes the tellaskee is still executing in the background.
|
|
13
|
+
- The tellasker narrates “what should happen next” instead of sending the next Tellask.
|
|
14
|
+
|
|
15
|
+
That mismatch stalls execution while sounding productive.
|
|
16
|
+
|
|
17
|
+
This document has three goals:
|
|
18
|
+
|
|
19
|
+
- Restate the implemented runtime contract in practical terms.
|
|
20
|
+
- Define an operator-friendly collaboration playbook.
|
|
21
|
+
- Propose a fast root fix, centered on priming + system prompt updates.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 2. Current runtime contract (already implemented)
|
|
26
|
+
|
|
27
|
+
These points reflect current behavior in `dialog-system.md`, `fbr.md`, `dominds-agent-priming.md`, and `diligence-push.md`.
|
|
28
|
+
|
|
29
|
+
### 2.1 Three Tellask modes
|
|
30
|
+
|
|
31
|
+
- `TellaskBack`: `!?@tellasker`
|
|
32
|
+
- `Tellask Session`: `!?@<teammate> !tellaskSession <slug>`
|
|
33
|
+
- `Fresh Tellask`: `!?@<teammate>`
|
|
34
|
+
|
|
35
|
+
### 2.2 What `Tellask Session` really means
|
|
36
|
+
|
|
37
|
+
- `!tellaskSession <slug>` gives resumable addressing and reusable context.
|
|
38
|
+
- It does not create an always-running worker.
|
|
39
|
+
- Progress still happens one Tellask call at a time.
|
|
40
|
+
|
|
41
|
+
Short version: a Tellask Session is a resumable thread, not autonomous background execution.
|
|
42
|
+
|
|
43
|
+
### 2.3 Per-call lifecycle
|
|
44
|
+
|
|
45
|
+
For teammate Tellasks, the runtime lifecycle is:
|
|
46
|
+
|
|
47
|
+
1. Tellask is emitted.
|
|
48
|
+
2. Caller waits while sideline runs.
|
|
49
|
+
3. A response is supplied back.
|
|
50
|
+
4. Caller resumes.
|
|
51
|
+
|
|
52
|
+
Critical operational fact:
|
|
53
|
+
|
|
54
|
+
- The current teammate response status is effectively `completed` or `failed`.
|
|
55
|
+
- There is no “still running that same request” status after a response is delivered.
|
|
56
|
+
|
|
57
|
+
So if more work is needed, the tellasker must issue the next Tellask explicitly.
|
|
58
|
+
|
|
59
|
+
### 2.4 Diligence Push boundary
|
|
60
|
+
|
|
61
|
+
- Diligence Push helps mainline avoid going idle.
|
|
62
|
+
- It does not send teammate Tellasks on the agent’s behalf.
|
|
63
|
+
- It is a pressure mechanism, not an execution orchestrator.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 3. Primary failure mode and root cause
|
|
68
|
+
|
|
69
|
+
### 3.1 Primary issue: checkpoint reply is misread as ongoing execution
|
|
70
|
+
|
|
71
|
+
Observed behavior:
|
|
72
|
+
|
|
73
|
+
- Mainline receives “phase 1 done”.
|
|
74
|
+
- Mainline then says “waiting for them to continue”.
|
|
75
|
+
- No new Tellask is sent, so progress stops.
|
|
76
|
+
|
|
77
|
+
Root cause:
|
|
78
|
+
|
|
79
|
+
- The model confuses session continuity with execution continuity.
|
|
80
|
+
- It treats “same `tellaskSession`” as “still running” instead of “ready to be resumed by a new Tellask”.
|
|
81
|
+
|
|
82
|
+
### 3.2 Secondary issue: narrative delegation instead of action
|
|
83
|
+
|
|
84
|
+
Typical anti-pattern:
|
|
85
|
+
|
|
86
|
+
- “I don’t have shell permission; please ask @<shell_specialist> to run `pnpm lint:types` and send back the output.”
|
|
87
|
+
|
|
88
|
+
That is a workflow break. The model should send the Tellask directly.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 4. Best-practice execution protocol
|
|
93
|
+
|
|
94
|
+
### 4.1 Four-step teammate Tellask loop
|
|
95
|
+
|
|
96
|
+
For teammate Tellasks (non-`!?@self`), always run this loop:
|
|
97
|
+
|
|
98
|
+
1. `Initiate`: send a Tellask with scope, constraints, and acceptance evidence.
|
|
99
|
+
2. `Wait`: wait for that specific response.
|
|
100
|
+
3. `Judge`: classify response as done / not done / needs clarification.
|
|
101
|
+
4. `Continue`: if not done, send the next Tellask immediately (usually same session slug).
|
|
102
|
+
|
|
103
|
+
Hard rule:
|
|
104
|
+
|
|
105
|
+
- You can only claim “waiting for result” if there is an explicit pending Tellask and known acceptance evidence.
|
|
106
|
+
|
|
107
|
+
### 4.2 Always continue via explicit re-Tellask
|
|
108
|
+
|
|
109
|
+
Recommended pattern:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
!?@shell_specialist !tellaskSession typecheck-loop
|
|
113
|
+
!?Run `pnpm lint:types` and return raw output only.
|
|
114
|
+
!?If it fails, include the first 3 errors with file + line.
|
|
115
|
+
!?Acceptance: include exit code and the first actionable anchor.
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Do not do this:
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
I will now wait for @shell_specialist to keep going.
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### 4.3 Replace narrative delegation with direct Tellask
|
|
125
|
+
|
|
126
|
+
Bad:
|
|
127
|
+
|
|
128
|
+
```text
|
|
129
|
+
I cannot run shell here; please ask @shell_specialist to execute `pnpm lint:types`.
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Good:
|
|
133
|
+
|
|
134
|
+
```text
|
|
135
|
+
!?@shell_specialist !tellaskSession typecheck-loop
|
|
136
|
+
!?Please execute `pnpm lint:types` now and paste raw output.
|
|
137
|
+
!?If command is unavailable, paste the error and one safe alternative.
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 5. Fast root fix: priming + prompt
|
|
143
|
+
|
|
144
|
+
A reminder-only approach will keep regressing. Use two layers:
|
|
145
|
+
|
|
146
|
+
- Prompt constraints for immediate behavior correction.
|
|
147
|
+
- Collaboration priming for durable muscle memory.
|
|
148
|
+
|
|
149
|
+
### 5.1 Prompt updates (P0)
|
|
150
|
+
|
|
151
|
+
Add or strengthen these coordination constraints:
|
|
152
|
+
|
|
153
|
+
1. `Response-closes-call`: teammate response closes the current call; continuation requires a new Tellask.
|
|
154
|
+
2. `Wait-state guard`: only claim waiting when a concrete pending Tellask exists.
|
|
155
|
+
3. `Autonomy guard`: do not use @human as a relay for executable teammate work.
|
|
156
|
+
4. `Action-over-narration`: if you write “next ask @X to do Y”, emit `!?@X ...` in the same turn.
|
|
157
|
+
|
|
158
|
+
### 5.2 Collaboration priming (P1)
|
|
159
|
+
|
|
160
|
+
Split the collaboration drill into two short segments, both grounded in verifiable facts:
|
|
161
|
+
|
|
162
|
+
1. One-shot Tellask: `uname -a` as the runtime baseline.
|
|
163
|
+
2. Long-session Tellask: `tellaskSession: rtws-vcs-inventory` for a two-round repo inventory.
|
|
164
|
+
3. Run `!?@self` FBR and distillation only after both evidence segments are available.
|
|
165
|
+
|
|
166
|
+
Operating rules:
|
|
167
|
+
|
|
168
|
+
1. If no `shell_specialist` is available, Dominds runtime gathers the same facts (`uname -a` + git inventory). This is a standard mode, not a degraded path.
|
|
169
|
+
2. A response closes the current round; continuation requires a new explicit Tellask.
|
|
170
|
+
3. “Ask teammate to do X” must materialize as `!?@...`, not as a relay request to @human.
|
|
171
|
+
|
|
172
|
+
### 5.3 P1 design baseline (implemented)
|
|
173
|
+
|
|
174
|
+
#### Design goals
|
|
175
|
+
|
|
176
|
+
1. Keep it short: only `uname` plus two VCS rounds are added to existing priming.
|
|
177
|
+
2. Keep it general: works in any rtws, with or without a shell specialist.
|
|
178
|
+
3. Keep it stable: runtime templates script key steps to reduce model drift.
|
|
179
|
+
4. Keep semantics sharp: behavior must reflect “response closes round; continuation requires re-Tellask”.
|
|
180
|
+
|
|
181
|
+
#### Unified sequence
|
|
182
|
+
|
|
183
|
+
1. `Prelude Intro`: declare shell policy (`specialist_only` / `self_is_specialist` / `no_specialist`).
|
|
184
|
+
2. `uname` baseline:
|
|
185
|
+
- `specialist_only`: mainline sends one-shot Tellask to `@<shell_specialist>` and receives response.
|
|
186
|
+
- other policies: runtime collects and displays `uname -a`.
|
|
187
|
+
3. `VCS Round-1` (same `tellaskSession`): topology inventory
|
|
188
|
+
- whether rtws root is a git repo
|
|
189
|
+
- submodule list
|
|
190
|
+
- nested independent repo list
|
|
191
|
+
4. `VCS Round-2` (continuation in same `tellaskSession`): per-repo status
|
|
192
|
+
- remotes (fetch/push)
|
|
193
|
+
- branch / upstream
|
|
194
|
+
- dirty state
|
|
195
|
+
5. Merge `uname + VCS` into one evidence block for `!?@self` FBR.
|
|
196
|
+
6. Distill after FBR feedback is complete, and produce the priming note.
|
|
197
|
+
|
|
198
|
+
#### Tellask template constraints
|
|
199
|
+
|
|
200
|
+
1. Round-1/2 Tellask bodies are runtime-generated.
|
|
201
|
+
2. Round-2 body must explicitly state Round-1 is closed and this is a new continuation Tellask.
|
|
202
|
+
3. Each round has a single objective; no repair plan or scope expansion in the round body.
|
|
203
|
+
|
|
204
|
+
#### No-shell-specialist mode (standard support)
|
|
205
|
+
|
|
206
|
+
1. Runtime emits `uname` and both VCS round notes directly.
|
|
207
|
+
2. FBR receives the same structured evidence shape as the specialist path.
|
|
208
|
+
3. Priming note requirements stay identical: close-on-response and explicit re-Tellask for continuation.
|
|
209
|
+
|
|
210
|
+
#### Data shape (`agent-priming.ts`)
|
|
211
|
+
|
|
212
|
+
1. `shell` is a discriminated union:
|
|
213
|
+
- `specialist_tellask` (tellask body, response, `uname` snapshot)
|
|
214
|
+
- `direct_shell` (runtime note, `uname` snapshot)
|
|
215
|
+
2. `vcs` is a discriminated union:
|
|
216
|
+
- `specialist_session` (Round-1/2 tellask+response, `inventoryText`)
|
|
217
|
+
- `runtime_inventory` (Round-1/2 runtime notes, `inventoryText`)
|
|
218
|
+
3. `buildCoursePrefixMsgs` injects in fixed order: shell snapshot -> VCS inventory -> FBR summary -> priming note.
|
|
219
|
+
|
|
220
|
+
#### P1 acceptance criteria
|
|
221
|
+
|
|
222
|
+
1. Priming transcript shows `uname` baseline plus two VCS rounds (Round-2 after Round-1 response).
|
|
223
|
+
2. No-shell-specialist path still shows two runtime VCS rounds and uses them for the same FBR step.
|
|
224
|
+
3. Priming note explicitly states “response closes round; continuation requires re-Tellask”.
|
|
225
|
+
4. Replay preserves the path-specific pattern (`specialist_session` or `runtime_inventory`).
|
|
226
|
+
5. `pnpm -C dominds run lint:types` passes without breaking existing priming/FBR/diligence behavior.
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## 6. Mainline operator checklist
|
|
231
|
+
|
|
232
|
+
Before and after each collaboration step:
|
|
233
|
+
|
|
234
|
+
1. Did I send a concrete Tellask with acceptance evidence?
|
|
235
|
+
2. If I say “waiting”, which pending Tellask am I waiting on?
|
|
236
|
+
3. After receiving feedback, did I either close the task or send the next Tellask?
|
|
237
|
+
4. Did I turn “ask teammate to do X” into an actual `!?@...` block?
|
|
238
|
+
5. Did I write key decisions back to Taskdoc instead of leaving them in chat only?
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 7. Recommended rollout
|
|
243
|
+
|
|
244
|
+
1. `P0`: ship prompt-level coordination constraints.
|
|
245
|
+
2. `P1`: add tellask-collab priming drill.
|
|
246
|
+
3. `P2`: add regressions that fail when:
|
|
247
|
+
- checkpoint replies do not trigger explicit continuation Tellask;
|
|
248
|
+
- the model asks humans to relay executable teammate actions.
|
|
249
|
+
|
|
250
|
+
With this sequence, Diligence Push remains supportive rather than compensatory.
|