@wowok/skills 1.2.4 → 1.2.5
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.md +34 -16
- package/dist/cli.js +6 -2
- package/dist/cli.js.map +1 -1
- package/dist/skills.d.ts +32 -1
- package/dist/skills.d.ts.map +1 -1
- package/dist/skills.js +63 -0
- package/dist/skills.js.map +1 -1
- package/dist/types.d.ts +8 -0
- package/dist/types.d.ts.map +1 -1
- package/examples/Insurance/Insurance.md +543 -475
- package/examples/MyShop/MyShop.md +865 -746
- package/examples/MyShop_Advanced/MyShop_Advanced.md +1520 -1376
- package/examples/ThreeBody_Signature/ThreeBody_Signature.md +891 -651
- package/examples/Travel/Travel.md +952 -848
- package/package.json +2 -2
- package/scripts/install.js +3 -17
- package/wowok-arbitrator/SKILL.md +18 -57
- package/wowok-auditor/SKILL.md +16 -12
- package/wowok-distill/SKILL.md +237 -0
- package/wowok-guard/SKILL.md +40 -354
- package/wowok-machine/SKILL.md +21 -127
- package/wowok-messenger/SKILL.md +14 -59
- package/wowok-onboard/SKILL.md +42 -12
- package/wowok-order/SKILL.md +20 -169
- package/wowok-output/SKILL.md +0 -10
- package/wowok-planner/SKILL.md +28 -9
- package/wowok-provider/SKILL.md +72 -32
- package/wowok-safety/SKILL.md +8 -80
- package/wowok-scenario/SKILL.md +63 -98
- package/wowok-tools/SKILL.md +68 -107
- package/references/glossary.ts +0 -297
- package/references/guard-scenario-ledger.md +0 -353
- package/references/guard-template-library.md +0 -481
- package/references/machine-design-reference.md +0 -398
- package/references/machine-scenario-ledger.md +0 -227
- package/references/machine-template-library.md +0 -522
- package/references/merchant-scenario-coordination.md +0 -383
- package/references/object-collaboration.md +0 -362
- package/references/onchain-constants.md +0 -81
- package/wowok-arbitrator/APPENDIX.md +0 -545
- package/wowok-auditor/APPENDIX.md +0 -487
- package/wowok-guard/APPENDIX.md +0 -430
- package/wowok-machine/APPENDIX.md +0 -407
- package/wowok-messenger/APPENDIX.md +0 -550
- package/wowok-onboard/APPENDIX.md +0 -502
- package/wowok-order/APPENDIX.md +0 -777
- package/wowok-output/APPENDIX.md +0 -575
- package/wowok-planner/APPENDIX.md +0 -726
- package/wowok-provider/APPENDIX.md +0 -455
- package/wowok-safety/APPENDIX.md +0 -565
- package/wowok-scenario/APPENDIX.md +0 -97
- package/wowok-scenario/MODE-DETAILS.md +0 -275
- package/wowok-tools/APPENDIX.md +0 -394
|
@@ -1,383 +0,0 @@
|
|
|
1
|
-
# Merchant Service Build Scenario Coordination
|
|
2
|
-
|
|
3
|
-
> **Purpose**: Standalone reference for the merchant service build scenario, integrating the provider skill with the 22-object system.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## §1 Scenario Overview
|
|
8
|
-
|
|
9
|
-
The merchant service build scenario covers the full lifecycle from naming a project through business puzzle completion, risk calibration, and outputting deployable MD documents for testnet/mainnet.
|
|
10
|
-
|
|
11
|
-
### 1.1 Why This Document Exists
|
|
12
|
-
|
|
13
|
-
`wowok-provider/SKILL.md` provides R1-R7 required items and a 5-step build lifecycle, but has three limitations:
|
|
14
|
-
|
|
15
|
-
1. **Incomplete object coverage**: R1-R7 covers only 7 objects, while at least 12 of the 22-object system are directly relevant to merchant builds.
|
|
16
|
-
2. **Topological order misalignment**: The 5-step lifecycle is an operational view, not aligned with the 22-object dependency topology.
|
|
17
|
-
3. **Scattered immutability constraints**: Object locking rules are spread across multiple docs.
|
|
18
|
-
|
|
19
|
-
### 1.2 Core Integration: Provider Skill × 22-Object System
|
|
20
|
-
|
|
21
|
-
This document bridges the operational perspective of skills (R1-R7, 5-step lifecycle) with the systemic perspective of the 22-object architecture. The key integration points are:
|
|
22
|
-
|
|
23
|
-
| Integration Layer | Skills View | 22-Object View |
|
|
24
|
-
|---|---|---|
|
|
25
|
-
| Required items | R1-R7 (7 items) | R1-R7 + C1-C8 (15 items) |
|
|
26
|
-
| Lifecycle | 5 steps (operational) | 5 steps × topological order (dual view) |
|
|
27
|
-
| Reuse strategy | Implicit | Explicit matrix (CREATE vs MODIFY) |
|
|
28
|
-
| Industry modes | Presets per mode | 6 modes with stacking |
|
|
29
|
-
| Quality gates | None explicit | 3-tier confirmation gates |
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## §2 R1-R12 + C1-C8 Extension Mapping
|
|
34
|
-
|
|
35
|
-
### 2.1 R1-R7 Required Items (from skills, preserved)
|
|
36
|
-
|
|
37
|
-
| # | Item | User Must Provide | Related Object |
|
|
38
|
-
|---|---|---|---|
|
|
39
|
-
| **R1** | Account | Account name/address, default `""` | — |
|
|
40
|
-
| **R2** | Permission | Reuse existing Permission, or name + type_parameter to create new | Permission (1) |
|
|
41
|
-
| **R3** | Service | Service name, type_parameter, service type | Service (4) |
|
|
42
|
-
| **R4** | Machine | Nodes, state transition pairs, forward paths | Machine |
|
|
43
|
-
| **R5** | Guards | Validation logic and conditions for each Guard | Guard |
|
|
44
|
-
| **R6** | Guard Bindings | Which Guard validates which Machine forward | Guard + Machine |
|
|
45
|
-
| **R7** | Allocators | Per outcome: who gets what %/amount | Allocation (3) |
|
|
46
|
-
|
|
47
|
-
### 2.2 C1-C8 Conditionally Required Items (extension)
|
|
48
|
-
|
|
49
|
-
| # | Item | Trigger Condition | User Must Provide | Related Object |
|
|
50
|
-
|---|---|---|---|---|
|
|
51
|
-
| **C1** | Contact (um) | `customer_required` is set | Contact name/ID | Contact (13) |
|
|
52
|
-
| **C2** | WIP Files | Physical goods | Product descriptions, images | Proof (10) |
|
|
53
|
-
| **C3** | Sales Products | Listing products | Name, price, inventory, per-product WIP | Service (4).sales |
|
|
54
|
-
| **C4** | Treasury | Fund collection needed | Treasury name/ID | Treasury (2) |
|
|
55
|
-
| **C5** | customer_required | Privacy info needed | Privacy field list | Personal (18) |
|
|
56
|
-
| **C6** | Arbitration | Dispute resolution needed | Existing Arb service ID list | Arbitration (7) |
|
|
57
|
-
| **C7** | Repository | Data attestation needed | Repository name/ID | Repository (11) |
|
|
58
|
-
| **C8** | Reward | User incentive needed | Reward name/ID + Guard config | Reward (8) |
|
|
59
|
-
|
|
60
|
-
### 2.3 Necessity Hierarchy
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
┌─────────────────────────────────────────────────────────┐
|
|
64
|
-
│ Merchant Scenario Necessity Hierarchy │
|
|
65
|
-
├─────────────────┬───────────────────────────────────────┤
|
|
66
|
-
│ R1-R7 Required │ Account / Permission / Service / │
|
|
67
|
-
│ │ Machine / Guards / GuardBindings / │
|
|
68
|
-
│ │ Allocators │
|
|
69
|
-
├─────────────────┼───────────────────────────────────────┤
|
|
70
|
-
│ C1-C8 Conditional│ Contact / WIP / Sales / Treasury / │
|
|
71
|
-
│ │ Privacy / Arbitration / Repository / │
|
|
72
|
-
│ │ Reward │
|
|
73
|
-
├─────────────────┼───────────────────────────────────────┤
|
|
74
|
-
│ Passive Response │ Order / Passport / Progress (partial) │
|
|
75
|
-
│ │ / Proof │
|
|
76
|
-
├─────────────────┼───────────────────────────────────────┤
|
|
77
|
-
│ Not Relevant │ Demand / Resource / Payment / │
|
|
78
|
-
│ │ Registrar+Entity / Bridge │
|
|
79
|
-
└─────────────────┴───────────────────────────────────────┘
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## §3 5-Step Lifecycle × 22-Object Topology
|
|
85
|
-
|
|
86
|
-
### 3.1 Provider 5-Step Lifecycle (Operational View)
|
|
87
|
-
|
|
88
|
-
| Step | Name | Involved Objects | Key Operations |
|
|
89
|
-
|---|---|---|---|
|
|
90
|
-
| **1** | Foundation | Permission, Service, Machine | Create/reuse Permission → create unpublished Service → create unpublished Machine |
|
|
91
|
-
| **2** | Trust Layer | Guards | Create/reuse Guards (per Guard design table) |
|
|
92
|
-
| **3** | Business Logic | Machine, Service, Arbitration, Guard, Reward | Machine binds Guards → Service sets Allocators → optional arbitration/reward |
|
|
93
|
-
| **4** | Publication | Machine, Service | Publish Machine → bind Service → publish Service (locks machine/order_allocators) |
|
|
94
|
-
| **5** | Post-Publish | Service | Modify description/location/sales/customer_required/um |
|
|
95
|
-
|
|
96
|
-
### 3.2 22-Object Topological Order (Dependency View)
|
|
97
|
-
|
|
98
|
-
| Topo Pos | Object | Creation Timing | Merchant Action |
|
|
99
|
-
|---|---|---|---|
|
|
100
|
-
| 1 | Permission | Step 1 | Reuse or create new |
|
|
101
|
-
| 2 | Treasury | Step 3 (optional) | Reuse or create new |
|
|
102
|
-
| 3 | Allocation | Step 3 | Configure within Service (not independently created) |
|
|
103
|
-
| 4 | Service | Step 1 (unpublished) → Step 4 (published) | Create → configure → publish |
|
|
104
|
-
| 5 | Order | Passive response | Merchant does not create |
|
|
105
|
-
| 6 | Progress | Passive response | Merchant advances (hold/submit) |
|
|
106
|
-
| 7 | Arbitration | Step 3 (optional) | Reuse existing Arb service |
|
|
107
|
-
| 8 | Reward | Step 3 (optional) | Create Reward + Guard |
|
|
108
|
-
| 9 | Passport | Passive response | Merchant does not operate |
|
|
109
|
-
| 10 | Proof | Post-Publish | Create WIP files |
|
|
110
|
-
| 11 | Repository | Step 3 (optional) | Create Repository + Guard |
|
|
111
|
-
| 12 | Demand | Not relevant | — |
|
|
112
|
-
| 13 | Contact | Step 5 (conditional) | Reuse or create new |
|
|
113
|
-
| — | Guard | Step 2 | Create/reuse |
|
|
114
|
-
| — | Machine | Step 1 (unpublished) → Step 4 (published) | Create → bind Guards → publish |
|
|
115
|
-
|
|
116
|
-
### 3.3 Dual-View Cross-Reference Matrix
|
|
117
|
-
|
|
118
|
-
| Object | Topo Pos | Step 1 Foundation | Step 2 Trust | Step 3 Business | Step 4 Publish | Step 5 Post |
|
|
119
|
-
|---|---|---|---|---|---|---|
|
|
120
|
-
| Permission | 1 | **Create/Reuse** | — | — | — | — |
|
|
121
|
-
| Service | 4 | Create (unpublished) | — | Configure Allocators/Arb | **Publish** | Modify desc/sales/um |
|
|
122
|
-
| Machine | — | Create (unpublished) | — | Bind Guards | **Publish** | — |
|
|
123
|
-
| Guard | — | — | **Create/Reuse** | — | — | — |
|
|
124
|
-
| Allocation | 3 | — | — | **Configure in Service** | (locked) | — |
|
|
125
|
-
| Treasury | 2 | — | — | (optional) Create | — | — |
|
|
126
|
-
| Arbitration | 7 | — | — | (optional) Reuse | — | — |
|
|
127
|
-
| Reward | 8 | — | — | (optional) Create | — | — |
|
|
128
|
-
| Repository | 11 | — | — | (optional) Create | — | — |
|
|
129
|
-
| Contact | 13 | — | — | — | — | (conditional) |
|
|
130
|
-
| Proof | 10 | — | — | — | — | (optional) WIP |
|
|
131
|
-
|
|
132
|
-
> **Key insight**: Step 1 Foundation skips topo positions 2/3 (Treasury/Allocation); Step 2 Trust skips topo pos 7 (Arbitration). This is because Treasury/Allocation are only needed in Step 3, and Arbitration is optional reuse. Topological order = dependency graph, lifecycle = execution sequence — they are complementary.
|
|
133
|
-
|
|
134
|
-
---
|
|
135
|
-
|
|
136
|
-
## §4 Object Reuse & Immutability Decision Matrix
|
|
137
|
-
|
|
138
|
-
### 4.1 Immutability Timeline
|
|
139
|
-
|
|
140
|
-
| Object | Created (Locked) | Published (Locked) | Never Locked | Recovery |
|
|
141
|
-
|---|---|---|---|---|
|
|
142
|
-
| Permission | — | — | ✅ | — |
|
|
143
|
-
| Service | — | machine/order_allocators | description/sales/um | Create new Service |
|
|
144
|
-
| Machine | — | nodes/forwards | — | Create new Machine, rebind Service |
|
|
145
|
-
| Guard | ✅ all fields | — | — | Create new Guard, update all references |
|
|
146
|
-
| Allocation | — | (as Service field) | — | Create new Service |
|
|
147
|
-
| Contact | — | — | ✅ | — |
|
|
148
|
-
| Arbitration | — | — | ✅ | — |
|
|
149
|
-
| Reward | guard_expiration_time | — | other fields | Create new Reward |
|
|
150
|
-
| Repository | — | — | ✅ | — |
|
|
151
|
-
| Treasury | — | — | ✅ | — |
|
|
152
|
-
|
|
153
|
-
### 4.2 Reuse Decision Matrix
|
|
154
|
-
|
|
155
|
-
| Object | Recommended? | Condition | Method |
|
|
156
|
-
|---|---|---|---|
|
|
157
|
-
| **Permission** | ✅ **Strongly recommended** | Centralized access control | String reference `"<name_or_id>"` |
|
|
158
|
-
| **Machine** | ⚠️ Depends | Workflow match | `machineNode2file` export → edit |
|
|
159
|
-
| **Guard** | ⚠️ Depends | Validation logic match | Immutable after creation |
|
|
160
|
-
| **Contact** | ✅ Recommended | Customer service channel reuse | String reference |
|
|
161
|
-
| **Arbitration** | ✅ **Strongly recommended** | Customer chooses established arbitrators | String reference to Arb service ID |
|
|
162
|
-
| **Treasury** | ⚠️ Depends | Fund collection need | String reference |
|
|
163
|
-
| **Repository** | ⚠️ Depends | Data attestation need | String reference |
|
|
164
|
-
| **Reward** | ❌ Usually create new | Incentive logic varies | Object shape creation |
|
|
165
|
-
| **Service** | ❌ Must create new | Brand identity is unique | Object shape creation |
|
|
166
|
-
|
|
167
|
-
### 4.3 CREATE vs MODIFY Decision Flow
|
|
168
|
-
|
|
169
|
-
```
|
|
170
|
-
Whether to reuse an existing object?
|
|
171
|
-
├── Yes → MODIFY mode (string reference)
|
|
172
|
-
│ ├── String `"<name>"` or `"<0x...>"`
|
|
173
|
-
│ ├── SDK resolves via GetObjectExisted()
|
|
174
|
-
│ └── Resolution failure → hard error
|
|
175
|
-
└── No → CREATE mode (object shape)
|
|
176
|
-
├── `{ name?, ... }`
|
|
177
|
-
└── SDK creates new object
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
---
|
|
181
|
-
|
|
182
|
-
## §5 6 Industry Modes — Merchant Perspective
|
|
183
|
-
|
|
184
|
-
### 5.1 Mode Quick Reference
|
|
185
|
-
|
|
186
|
-
| Mode | Phase | Industry | Trust Model | Machine Shape | Guards | Allocators |
|
|
187
|
-
|---|---|---|---|---|---|---|
|
|
188
|
-
| `freelance` | 1 | Design/Dev/Consulting/Writing | Milestone escrow + acceptance gate | 7 nodes | 5 (buy/deliver/accept/withdraw/refund) | 2 (100% provider / 100% refund) |
|
|
189
|
-
| `rental` | 1 | Equipment/Vehicle/Property | Deposit escrow + return inspection | 10 nodes | 5 (deposit/return/inspect/refund/damage) | 3 (rent/refund/deduct) |
|
|
190
|
-
| `education` | 2 | Courses/Training/Tutoring | Per-session release + attendance guard | Multi-node | attendance/refund | 1/N release |
|
|
191
|
-
| `travel` | 2 | Custom tours/Multi-leg itineraries | Multi-tier escrow per segment | Multi-node | segment/refund | Multi-tier waterfall |
|
|
192
|
-
| `subscription` | 3 | SaaS/Content membership/Periodic service | Periodic billing + cancel guard | Cyclic | charge/cancel/deliver | Periodic release |
|
|
193
|
-
| `general` | Always | Any uncovered/mixed | User-defined | Custom | Custom | Custom |
|
|
194
|
-
|
|
195
|
-
### 5.2 Mode Selection Algorithm
|
|
196
|
-
|
|
197
|
-
```typescript
|
|
198
|
-
type IndustryTraits = {
|
|
199
|
-
has_logistics: boolean;
|
|
200
|
-
communication_heavy: boolean;
|
|
201
|
-
pure_digital: boolean;
|
|
202
|
-
long_cycle: boolean;
|
|
203
|
-
deposit_required: boolean;
|
|
204
|
-
multi_tier_allocation: boolean;
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
// Selection matrix
|
|
208
|
-
pure_digital + communication_heavy + !deposit_required → freelance
|
|
209
|
-
deposit_required + has_logistics + returnable → rental
|
|
210
|
-
long_cycle + attendance + periodic_release → education
|
|
211
|
-
multi_tier_allocation + segment_based + long_cycle → travel
|
|
212
|
-
periodic_charge + cancel_anytime + pure_digital → subscription
|
|
213
|
-
none of above → general
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
### 5.3 Mode Stacking
|
|
217
|
-
|
|
218
|
-
| Combination | Use Case | Conflict Resolution |
|
|
219
|
-
|---|---|---|
|
|
220
|
-
| freelance + subscription | Monthly retainer + milestones | Allocator split: retainer (sub) + milestone (freelance) |
|
|
221
|
-
| rental + education | Equipment training rental | Machine extension: rental + attendance nodes |
|
|
222
|
-
| travel + rental | Travel with equipment | Allocator side-by-side: segment + deposit escrow |
|
|
223
|
-
|
|
224
|
-
### 5.4 Merchant Perspective: Key Decisions Per Mode
|
|
225
|
-
|
|
226
|
-
| Decision | freelance | rental | education | travel | subscription | general |
|
|
227
|
-
|---|---|---|---|---|---|---|
|
|
228
|
-
| Machine complexity | Medium | High | Medium-High | High | Low (cyclic) | Custom |
|
|
229
|
-
| Guard count | 5 | 5 | 2-3 | 2-3 | 3 | Custom |
|
|
230
|
-
| Pricing model | Fixed milestone | Deposit + rent + refund | Per-session | Multi-segment | Periodic | Custom |
|
|
231
|
-
| Customer interaction | Milestone review | Return inspection | Attendance | Trip segments | Cancel anytime | Custom |
|
|
232
|
-
| Refund logic | Per milestone | Conditional | Pro-rated | Per segment | Pro-rated | Custom |
|
|
233
|
-
|
|
234
|
-
---
|
|
235
|
-
|
|
236
|
-
## §6 Quality Gates & Risk Rules
|
|
237
|
-
|
|
238
|
-
### 6.1 Three-Tier Confirmation Gates
|
|
239
|
-
|
|
240
|
-
```
|
|
241
|
-
Gate 1: Information Collection Confirmation (R1-R7 + C1-C8)
|
|
242
|
-
├── Each R-item: user explicitly states "reuse X" or "create Y"
|
|
243
|
-
├── Each C-item: trigger condition check
|
|
244
|
-
└── ⛔ All R-items unconfirmed → no on-chain operations allowed
|
|
245
|
-
|
|
246
|
-
Gate 2: Pre-Publish Audit (before Step 4)
|
|
247
|
-
├── guard2file export all Guards → user review
|
|
248
|
-
├── machineNode2file export Machine → user review
|
|
249
|
-
├── Allocator ratios → user confirmation
|
|
250
|
-
├── Invoke wowok-auditor for 5 checks
|
|
251
|
-
└── ⛔ Any CRITICAL risk → block publish
|
|
252
|
-
|
|
253
|
-
Gate 3: Publish Confirmation (during Step 4)
|
|
254
|
-
├── Show "about to publish" warning + irreversibility notice
|
|
255
|
-
├── List fields that will be locked after publish
|
|
256
|
-
├── User explicitly confirms "Proceed with publish?"
|
|
257
|
-
└── ⛔ No explicit confirmation → no publish
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
### 6.2 Key Risk Rules
|
|
261
|
-
|
|
262
|
-
| Risk ID | Object | Severity | Description | Merchant Impact |
|
|
263
|
-
|---|---|---|---|---|
|
|
264
|
-
| R-S-01 | Service | CRITICAL | 15 constants not synced | SDK/MCP users cannot query limits |
|
|
265
|
-
| R-S-02 | Service | CRITICAL | WIP hash tampering risk | Undetected WIP file replacement |
|
|
266
|
-
| R-M-01 | Machine | HIGH | Node count > 100 (SDK limit) | SDK rejects creation |
|
|
267
|
-
| R-G-01 | Guard | HIGH | 4 rely dependency limit | Complex rules must split |
|
|
268
|
-
| R-A-01 | Allocation | HIGH | Surplus recipients > 1 | Ambiguous fund allocation |
|
|
269
|
-
| R-P-01 | Permission | MEDIUM | Custom index < 1000 | Conflicts with built-in permissions |
|
|
270
|
-
| R-T-01 | Treasury | CRITICAL | SDK/Move permission index mismatch | Operations rejected by Permission |
|
|
271
|
-
|
|
272
|
-
---
|
|
273
|
-
|
|
274
|
-
## §7 Skill Collaboration in Merchant Scenario
|
|
275
|
-
|
|
276
|
-
### 7.1 Skill Call Chain
|
|
277
|
-
|
|
278
|
-
```
|
|
279
|
-
User: "I want to open a shop on WoWok"
|
|
280
|
-
│
|
|
281
|
-
▼
|
|
282
|
-
wowok-onboard (first-time onboarding)
|
|
283
|
-
├── R1-R10 guided dialogue
|
|
284
|
-
├── Calls wowok-scenario (mode selection)
|
|
285
|
-
└── Calls wowok-planner (ODG generation)
|
|
286
|
-
│
|
|
287
|
-
▼
|
|
288
|
-
wowok-planner (planning)
|
|
289
|
-
├── Generates Object Dependency Graph
|
|
290
|
-
├── Calls wowok-safety (security checks)
|
|
291
|
-
└── Calls wowok-machine + wowok-guard (template loading)
|
|
292
|
-
│
|
|
293
|
-
▼
|
|
294
|
-
wowok-provider (merchant build)
|
|
295
|
-
├── 5-step lifecycle execution
|
|
296
|
-
├── Each step calls wowok-safety (tx confirmation)
|
|
297
|
-
├── Each step calls wowok-tools (MCP tool selection)
|
|
298
|
-
└── Post-Publish calls wowok-auditor (pre-publish audit)
|
|
299
|
-
│
|
|
300
|
-
▼
|
|
301
|
-
wowok-auditor (pre-publish audit)
|
|
302
|
-
├── Guard completeness check
|
|
303
|
-
├── Machine soundness check
|
|
304
|
-
├── Fund flow safety check
|
|
305
|
-
├── Permission consistency check
|
|
306
|
-
└── Publish readiness check
|
|
307
|
-
│
|
|
308
|
-
▼
|
|
309
|
-
wowok-safety (publish confirmation)
|
|
310
|
-
└── User confirms → execute publish
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
### 7.2 Skills Responsibility Matrix
|
|
314
|
-
|
|
315
|
-
| Skill | Role in Merchant Scenario | Trigger | Output |
|
|
316
|
-
|---|---|---|---|
|
|
317
|
-
| wowok-onboard | First-time guidance | New user | 10-round dialogue script |
|
|
318
|
-
| wowok-scenario | Mode selection | R3-R8 needs defaults | Industry mode config |
|
|
319
|
-
| wowok-planner | ODG generation | Business intent clear | Object dependency graph |
|
|
320
|
-
| wowok-safety | Security checks + tx confirmation | Every on-chain operation | Confirm/warn/block |
|
|
321
|
-
| wowok-tools | MCP tool selection | Any MCP call | Tool + parameters |
|
|
322
|
-
| wowok-provider | Merchant build main flow | R1-R7 confirmed | 5-step lifecycle |
|
|
323
|
-
| wowok-machine | Machine design | R4 requirement | Node graph + forwards |
|
|
324
|
-
| wowok-guard | Guard design | R5 requirement | Guard definitions |
|
|
325
|
-
| wowok-auditor | Pre-publish audit | Before Step 4 | Audit report |
|
|
326
|
-
| wowok-messenger | Customer communication | Post-Publish | Encrypted messages |
|
|
327
|
-
| wowok-arbitrator | Arbitration service | Step 3 (optional) | Arb service reuse |
|
|
328
|
-
| wowok-output | Result display | After tool response | Human-readable format |
|
|
329
|
-
|
|
330
|
-
---
|
|
331
|
-
|
|
332
|
-
## §8 Summary
|
|
333
|
-
|
|
334
|
-
### 8.1 Core Insights
|
|
335
|
-
|
|
336
|
-
1. **12 of 22 objects are directly relevant to merchants**: R1-R7 required + C1-C8 conditional + passive response.
|
|
337
|
-
2. **5-step lifecycle × topological order are complementary**: Operational view + dependency view, not conflicting.
|
|
338
|
-
3. **Object reuse is the core optimization**: Permission strongly recommended for reuse; others depend on context.
|
|
339
|
-
4. **Three-tier gates ensure publish quality**: Information collection → pre-publish audit → publish confirmation.
|
|
340
|
-
5. **6 industry modes accelerate builds**: freelance/rental complete; education/travel/subscription in Phase 2/3.
|
|
341
|
-
|
|
342
|
-
### 8.2 Deployment Outputs
|
|
343
|
-
|
|
344
|
-
After completing the 5-step lifecycle + 3-tier confirmation gates, the merchant receives:
|
|
345
|
-
|
|
346
|
-
- **testnet deployment MD**: For testnet verification
|
|
347
|
-
- **mainnet deployment MD**: For mainnet production deployment
|
|
348
|
-
- **Risk calibration report**: 22-object risk rule execution results
|
|
349
|
-
- **User confirmation letter**: R1-R7 + C1-C8 all confirmed
|
|
350
|
-
|
|
351
|
-
---
|
|
352
|
-
|
|
353
|
-
## Appendix A: Quick Checklist
|
|
354
|
-
|
|
355
|
-
### R1-R7 Required Items
|
|
356
|
-
- [ ] R1 Account confirmed
|
|
357
|
-
- [ ] R2 Permission confirmed (reuse/create new)
|
|
358
|
-
- [ ] R3 Service confirmed (name, type)
|
|
359
|
-
- [ ] R4 Machine confirmed (nodes, forwards)
|
|
360
|
-
- [ ] R5 Guards confirmed (each Guard logic)
|
|
361
|
-
- [ ] R6 Guard Bindings confirmed (which Guard validates which forward)
|
|
362
|
-
- [ ] R7 Allocators confirmed (revenue share ratios)
|
|
363
|
-
|
|
364
|
-
### C1-C8 Conditionally Required Items
|
|
365
|
-
- [ ] C1 Contact (if customer_required is set)
|
|
366
|
-
- [ ] C2 WIP Files (if physical goods)
|
|
367
|
-
- [ ] C3 Sales Products (if listing products)
|
|
368
|
-
- [ ] C4 Treasury (if fund collection needed)
|
|
369
|
-
- [ ] C5 customer_required (if privacy info needed)
|
|
370
|
-
- [ ] C6 Arbitration (if dispute resolution needed)
|
|
371
|
-
- [ ] C7 Repository (if data attestation needed)
|
|
372
|
-
- [ ] C8 Reward (if user incentive needed)
|
|
373
|
-
|
|
374
|
-
### Three-Tier Gates
|
|
375
|
-
- [ ] Gate 1 Information collection confirmed (all R + C items)
|
|
376
|
-
- [ ] Gate 2 Pre-publish audit (guard2file + machineNode2file + auditor)
|
|
377
|
-
- [ ] Gate 3 Publish confirmation (user explicitly proceeds)
|
|
378
|
-
|
|
379
|
-
### Deployment Outputs
|
|
380
|
-
- [ ] testnet deployment MD document
|
|
381
|
-
- [ ] mainnet deployment MD document
|
|
382
|
-
- [ ] Risk calibration report
|
|
383
|
-
- [ ] User confirmation letter
|