@wowok/skills 1.1.12 → 1.2.1

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.
@@ -266,27 +266,27 @@ The structure populated by `customer_intelligence` service:
266
266
  "risk_score": 72,
267
267
  "risk_level": "medium_low",
268
268
  "recommendations": [
269
- "要求商家配置 Arbitration 服务后再下单",
270
- "通过 Messenger 协商退款条款"
269
+ "Require merchant to configure Arbitration service before ordering",
270
+ "Negotiate refund terms via Messenger"
271
271
  ],
272
272
  "reminders": [
273
273
  {
274
274
  "id": "evaluate_high_risk",
275
275
  "stage": "evaluate",
276
276
  "priority": "required",
277
- "message": "🔴 综合风险分 45/100,强烈建议不购买"
277
+ "message": "🔴 Comprehensive risk score 45/100, strongly recommend not purchasing"
278
278
  },
279
279
  {
280
280
  "id": "evaluate_ambiguous_guard",
281
281
  "stage": "evaluate",
282
282
  "priority": "required",
283
- "message": "🔴 检测到 2 个模糊 Guard,必须人工审查后才能继续"
283
+ "message": "🔴 Detected 2 ambiguous Guards, manual review required before proceeding"
284
284
  }
285
285
  ],
286
286
  "preference_match": {
287
287
  "score": 78,
288
- "matches": ["价格低于均价 10%", "有仲裁", "有赔偿金"],
289
- "mismatches": ["交付周期超出期望"]
288
+ "matches": ["Price 10% below market average", "Has arbitration", "Has compensation fund"],
289
+ "mismatches": ["Delivery timeline exceeds expectations"]
290
290
  }
291
291
  }
292
292
  }
@@ -299,32 +299,32 @@ The structure populated by `customer_intelligence` service:
299
299
  When the user mentions an industry, load the corresponding preference template and risk checks:
300
300
 
301
301
  **freelance** (free-agent services):
302
- - Ask: "需要 WIP hash 验证吗?里程碑节点配置了吗?"
302
+ - Ask: "Is WIP hash verification needed? Are milestone nodes configured?"
303
303
  - Risk checks: WIP verified, milestone nodes, refund path, Messenger
304
304
  - Preference template: 30-day cycle, 4h response, require arb + comp
305
305
 
306
306
  **rental** (equipment/property rental):
307
- - Ask: "锁定期多久?赔偿金覆盖订单金额吗?"
307
+ - Ask: "What is the lock duration? Does the compensation fund cover the order amount?"
308
308
  - Risk checks: compensation full, lock duration safe, arbitration, user-operable
309
309
  - Preference template: 7-day cycle, 8h response, conservative risk appetite
310
310
 
311
311
  **education** (courses/coaching):
312
- - Ask: "课程周期长,能接受 90 天交付吗?退款路径清楚吗?"
312
+ - Ask: "The course cycle is long, can you accept 90-day delivery? Is the refund path clear?"
313
313
  - Risk checks: refund path, compensation, arbitration, long-cycle tolerance
314
314
  - Preference template: 90-day cycle, 24h response, conservative, flexible delivery
315
315
 
316
316
  **travel** (travel/booking services):
317
- - Ask: "紧急交付,2 小时内能响应吗?里程碑节点齐全吗?"
317
+ - Ask: "Urgent delivery, can the seller respond within 2 hours? Are milestone nodes complete?"
318
318
  - Risk checks: urgent delivery, compensation full, refund path, Messenger
319
319
  - Preference template: 14-day cycle, 2h response, conservative, urgent delivery
320
320
 
321
321
  **subscription** (recurring services):
322
- - Ask: "订阅无锁定吗?用户可操作路径吗?"
322
+ - Ask: "Is there no lock-in? Is there a user-operable path?"
323
323
  - Risk checks: no-lockin (no dead-end), refund path, user-operable, optional comp
324
324
  - Preference template: 30-day cycle, 24h response, aggressive risk, basic after-sales
325
325
 
326
326
  **retail** (physical goods):
327
- - Ask: "WIP 验证了吗?赔偿金覆盖订单吗?仲裁配置了吗?"
327
+ - Ask: "Has WIP been verified? Does compensation cover the order? Is arbitration configured?"
328
328
  - Risk checks: WIP verified, compensation full, refund path, arbitration
329
329
  - Preference template: 7-day cycle, 8h response, balanced risk, full after-sales
330
330
 
@@ -394,14 +394,14 @@ After R9 (order creation), the post-purchase phase begins. Use `post-purchase.ts
394
394
  ```
395
395
  User wants refund or refund Allocator fired:
396
396
  ├── refunded_amount vs order_amount?
397
- │ ├── 100% refunded → "退款已完成" (info)
398
- │ ├── Partial refund → "退款不完整,差额 X" (recommended)
397
+ │ ├── 100% refunded → "Refund completed" (info)
398
+ │ ├── Partial refund → "Refund incomplete, shortfall X" (recommended)
399
399
  │ │ └── Next step: query order state + contact merchant via Messenger
400
- │ ├── 0 refund + user-initiated → "等待商家退款" (recommended)
400
+ │ ├── 0 refund + user-initiated → "Waiting for merchant refund" (recommended)
401
401
  │ │ └── Next step: monitor via order_monitor service
402
- │ ├── 0 refund + refund path exists → "可通过 Allocator 触发退款" (recommended)
402
+ │ ├── 0 refund + refund path exists → "Refund can be triggered via Allocator" (recommended)
403
403
  │ │ └── Next step: advance to refund node via order.progress
404
- │ └── 0 refund + no refund path → "无退款路径,需通过仲裁" (required)
404
+ │ └── 0 refund + no refund path → "No refund path, arbitration required" (required)
405
405
  │ └── Next step: file arbitration dispute (see Phase 4)
406
406
  ```
407
407
 
@@ -410,14 +410,14 @@ User wants refund or refund Allocator fired:
410
410
  ```
411
411
  User reports quality problem:
412
412
  ├── WIP hash comparison
413
- │ ├── current_wip_hash != original_wip_hash → "WIP 不一致" (required)
413
+ │ ├── current_wip_hash != original_wip_hash → "WIP mismatch" (required)
414
414
  │ │ └── Document: re-verify via wip_file, generate WTS evidence
415
- │ └── wip_hash missing → "要求商家提供 WIP hash 验证" (recommended)
415
+ │ └── wip_hash missing → "Request merchant to provide WIP hash verification" (recommended)
416
416
 
417
417
  ├── Evidence collection
418
- │ ├── evidence empty → "收集证据:截图、聊天记录、交付物样品" (required)
419
- │ ├── evidence < 3 items → "补充更多证据以增强仲裁胜算" (recommended)
420
- │ └── evidence ≥ 3 items → "证据充分,可考虑发起仲裁" (info)
418
+ │ ├── evidence empty → "Collect evidence: screenshots, chat logs, delivery samples" (required)
419
+ │ ├── evidence < 3 items → "Add more evidence to strengthen arbitration case" (recommended)
420
+ │ └── evidence ≥ 3 items → "Evidence sufficient, consider filing arbitration" (info)
421
421
 
422
422
  └── Next step: hand off to Phase 4 (arbitration support) if unresolved
423
423
  ```
@@ -427,12 +427,12 @@ User reports quality problem:
427
427
  ```
428
428
  Seller not responding on Messenger:
429
429
  ├── Days since last reply?
430
- │ ├── ≤ 3 days → "商家可能忙碌,等待回复" (info)
431
- │ ├── > 3 days → "持续无响应,发送催促消息" (recommended)
430
+ │ ├── ≤ 3 days → "Merchant may be busy, waiting for reply" (info)
431
+ │ ├── > 3 days → "Persistent non-response, send reminder message" (recommended)
432
432
  │ │ └── Next step: send Messenger reminder + document stall
433
- │ ├── > 7 days + has_arbitration → "建议发起仲裁" (required)
433
+ │ ├── > 7 days + has_arbitration → "Recommend filing arbitration" (required)
434
434
  │ │ └── Next step: file arbitration dispute (see Phase 4)
435
- │ └── > 7 days + no arbitration → "无仲裁通道,资金可能冻结" (required)
435
+ │ └── > 7 days + no arbitration → "No arbitration channel, funds may be frozen" (required)
436
436
  │ └── Next step: escalate to WoWok community / off-chain recourse
437
437
 
438
438
  └── If order_monitor service is ON, these alerts fire automatically
@@ -443,19 +443,19 @@ Seller not responding on Messenger:
443
443
  ```
444
444
  Filing arbitration dispute:
445
445
  ├── arbitration_initiated?
446
- │ ├── NO → "建议发起仲裁申请" (required)
446
+ │ ├── NO → "Recommend filing arbitration application" (required)
447
447
  │ │ └── Generate application template:
448
- │ │ title: "订单 {order_id} 交付争议申请"
448
+ │ │ title: "Order {order_id} delivery dispute application"
449
449
  │ │ description: template auto-filled from puzzle + evidence
450
- │ │ evidence_required: [聊天记录, 交付物截图, WIP hash 对比]
450
+ │ │ evidence_required: [Chat logs, Delivery screenshots, WIP hash comparison]
451
451
  │ │ claim: refund / compensation / specific performance
452
452
  │ │
453
453
  │ └── YES → check status
454
- │ ├── arb_window_days ≤ 3 → "仲裁窗口即将关闭" (required)
454
+ │ ├── arb_window_days ≤ 3 → "Arbitration window closing soon" (required)
455
455
  │ │ └── Next step: expedite evidence submission
456
- │ ├── evidence empty → "补充证据" (required)
457
- │ ├── evidence < 3 → "补充更多证据以增强仲裁胜算" (recommended)
458
- │ └── evidence ≥ 3 → "证据充分,等待仲裁结果" (info)
456
+ │ ├── evidence empty → "Submit evidence" (required)
457
+ │ ├── evidence < 3 → "Add more evidence to strengthen arbitration case" (recommended)
458
+ │ └── evidence ≥ 3 → "Evidence sufficient, waiting for arbitration result" (info)
459
459
 
460
460
  └── Result interpretation guide:
461
461
  ├── State (3) Arbitrated → user can accept or object
@@ -163,20 +163,34 @@ STEP 5: Post-Publish (MODIFY Service — mutable after publish)
163
163
 
164
164
  ### Service Object Relationships
165
165
 
166
+ > **Authoritative source**: [Object Collaboration Diagram](../references/object-collaboration.md) §1 (22-object collaboration DAG, 83 relationships).
167
+ > This tree is a simplified view. Cross-reference the above for the full graph and [Object Boundary Conditions](../references/object-collaboration.md#boundary-conditions) for mutability rules.
168
+
166
169
  ```
167
170
  Service (merchant storefront)
168
- ├── machineMachine (workflow)
169
- ├── order_allocatorsFund distribution rules
170
- ├── arbitrationsDispute resolution (optional)
171
- ├── compensation_fundCustomer protection (optional)
172
- ├── salesProducts with WIP files
173
- ├── rewardsIncentive pools (optional)
174
- └── umContact (customer service)
175
-
176
- Order (per purchase)
177
- ├── builderCustomer
178
- ├── progress → Workflow state
179
- └── allocation Fund distribution engine
171
+ ├── permissionPermission (required, mutable after publish)
172
+ ├── machineMachine (required, IMMUTABLE after publish)
173
+ ├── order_allocatorsAllocation[] (optional, mutable after publish)
174
+ ├── arbitrationsArbitration[] (optional, mutable after publish, max 20)
175
+ ├── compensation_fundTreasury (optional, mutable after publish)
176
+ ├── salesRepository (optional, mutable after publish; products with WIP files)
177
+ ├── rewardsReward[] (optional, mutable after publish)
178
+ ├── um → Contact (optional, mutable after publish; customer service)
179
+ ├── customer_required → Personal (optional, mutable after publish; customer data schema)
180
+ └── buy_guardGuard (optional, mutable after publish; gates order placement)
181
+
182
+ Order (per purchase, runtime-created)
183
+ ├── builder → Customer (immutable after creation)
184
+ ├── service → Service snapshot (immutable after creation)
185
+ ├── machine → Machine (immutable after creation)
186
+ ├── progress → Progress (immutable after binding)
187
+ ├── arbitration → Arbitration (optional, immutable once set)
188
+ └── allocation → Fund distribution engine (triggered via Progress.forward)
189
+
190
+ Cross-object references (see [Object Collaboration Diagram §6](../references/object-collaboration.md#guard-and-machine-global-usage) for Guard/Machine global usage):
191
+ - Guard is referenced by 9 object types (Service.buy_guard, Machine.forward.guard, Allocation.allocation_guard, Arbitration.voting_guard, Reward.claim_guard, Repository.write_guard, Treasury.external_guard, Demand.recommend_guard, Passport.guard)
192
+ - Machine is referenced by 4 object types (Service.machine, Order.machine, Progress.machine, Order snapshot)
193
+ - Permission is the central hub — 11 objects hold BuiltinPermissionIndex (see [Object Collaboration Diagram §5](../references/object-collaboration.md#permission-reverse-reference-table) for reverse-reference table)
180
194
  ```
181
195
 
182
196
  ### Allocators + Machine Integration
@@ -31,6 +31,16 @@ when_to_use:
31
31
 
32
32
  A **driving mode** is a curated bundle of: industry traits, default Permission indexes, default Machine node graph, default Guard templates, default Allocator strategy, a 10-round build script, an audit checklist, and a failure playbook. Modes are **presets, not constraints** — every underlying MCP operation remains available. Users can override any default or switch to `general` (free) mode at any time.
33
33
 
34
+ > **Authoritative cross-reference**: This skill's mode definitions are aligned with the following internal references:
35
+ > - [Guard Template Library](../references/guard-template-library.md) — Guard templates referenced by mode `Guards` column
36
+ > - [Machine Template Library](../references/machine-template-library.md) — Machine shapes referenced by mode `Machine Shape` column
37
+ > - [Machine Scenario Ledger](../references/machine-scenario-ledger.md) — 10 business scenarios per mode
38
+ > - [Guard Scenario Ledger](../references/guard-scenario-ledger.md) — Guard usage scenarios per mode
39
+ > - [Merchant Scenario Coordination §5](../references/merchant-scenario-coordination.md) — 6 industry modes × merchant perspective
40
+ > - [On-chain Constants](../references/onchain-constants.md) — Permission index ranges and capacity limits
41
+ >
42
+ > When a mode's defaults disagree with these references, the **design references** in this directory are authoritative (P15 decision: bidirectional cross-reference, with design references as single source of truth for object semantics).
43
+
34
44
  ### What Driving Modes Solve
35
45
 
36
46
  The "object_type wall" — new users do not know which Machine topology, which Guards, which Allocator strategy fits their industry. Modes pre-answer these questions using best practices distilled from real usage (and refined by Loop Engineering over time).
@@ -266,8 +266,8 @@ When explaining a specific technique to users, reference where it appears:
266
266
 
267
267
  | Trap | Fix |
268
268
  |------|-----|
269
- | **Transaction fails, gas error** | → [Pre-Flight: Gas & Faucet](#-pre-flight-gas--faucet前置必读). AI should auto-check balance + faucet. |
270
- | **Don't know how to build a service** | → [Examples Reference](#examples-reference内置示例导航). Match user intent → example, extract JSON templates. |
269
+ | **Transaction fails, gas error** | → [Pre-Flight: Gas & Faucet](#pre-flight-gas--faucet). AI should auto-check balance + faucet. |
270
+ | **Don't know how to build a service** | → [Examples Reference](#examples-reference). Match user intent → example, extract JSON templates. |
271
271
  | `gen_passport` called as standalone tool | It's not — use `onchain_operations` with `operation_type: "gen_passport"` |
272
272
  | Missing `data` wrapper | Only `gen_passport` omits it; `payment`/`personal` omit `submission` |
273
273
  | String `object` passed expecting CREATE | String = existing (MODIFY), Object = new (CREATE) → [safety §1.1](../wowok-safety/SKILL.md) |