@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.
- package/LICENSE +1 -2
- package/examples/Insurance/Insurance.md +426 -70
- package/examples/MyShop/MyShop.md +349 -228
- package/examples/MyShop/myshop_machine_nodes.json +14 -8
- package/examples/MyShop_Advanced/MyShop_Advanced.md +472 -105
- package/examples/ThreeBody_Signature/ThreeBody_Signature.md +623 -121
- package/examples/Travel/Travel.md +298 -77
- package/package.json +1 -1
- package/wowok-guard/SKILL.md +317 -20
- package/wowok-machine/SKILL.md +72 -0
- package/wowok-order/APPENDIX.md +33 -33
- package/wowok-provider/SKILL.md +26 -12
- package/wowok-scenario/SKILL.md +10 -0
- package/wowok-tools/SKILL.md +2 -2
package/wowok-order/APPENDIX.md
CHANGED
|
@@ -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
|
-
"
|
|
270
|
-
"
|
|
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": "🔴
|
|
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": "🔴
|
|
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": ["
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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 → "
|
|
398
|
-
│ ├── Partial refund → "
|
|
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 → "
|
|
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 → "
|
|
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 → "
|
|
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
|
|
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 → "
|
|
415
|
+
│ └── wip_hash missing → "Request merchant to provide WIP hash verification" (recommended)
|
|
416
416
|
│
|
|
417
417
|
├── Evidence collection
|
|
418
|
-
│ ├── evidence empty → "
|
|
419
|
-
│ ├── evidence < 3 items → "
|
|
420
|
-
│ └── evidence ≥ 3 items → "
|
|
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 → "
|
|
431
|
-
│ ├── > 3 days → "
|
|
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 → "
|
|
433
|
+
│ ├── > 7 days + has_arbitration → "Recommend filing arbitration" (required)
|
|
434
434
|
│ │ └── Next step: file arbitration dispute (see Phase 4)
|
|
435
|
-
│ └── > 7 days + no arbitration → "
|
|
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 → "
|
|
446
|
+
│ ├── NO → "Recommend filing arbitration application" (required)
|
|
447
447
|
│ │ └── Generate application template:
|
|
448
|
-
│ │ title: "
|
|
448
|
+
│ │ title: "Order {order_id} delivery dispute application"
|
|
449
449
|
│ │ description: template auto-filled from puzzle + evidence
|
|
450
|
-
│ │ evidence_required: [
|
|
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 → "
|
|
454
|
+
│ ├── arb_window_days ≤ 3 → "Arbitration window closing soon" (required)
|
|
455
455
|
│ │ └── Next step: expedite evidence submission
|
|
456
|
-
│ ├── evidence empty → "
|
|
457
|
-
│ ├── evidence < 3 → "
|
|
458
|
-
│ └── evidence ≥ 3 → "
|
|
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
|
package/wowok-provider/SKILL.md
CHANGED
|
@@ -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
|
-
├──
|
|
169
|
-
├──
|
|
170
|
-
├──
|
|
171
|
-
├──
|
|
172
|
-
├──
|
|
173
|
-
├──
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
171
|
+
├── permission → Permission (required, mutable after publish)
|
|
172
|
+
├── machine → Machine (required, IMMUTABLE after publish)
|
|
173
|
+
├── order_allocators → Allocation[] (optional, mutable after publish)
|
|
174
|
+
├── arbitrations → Arbitration[] (optional, mutable after publish, max 20)
|
|
175
|
+
├── compensation_fund → Treasury (optional, mutable after publish)
|
|
176
|
+
├── sales → Repository (optional, mutable after publish; products with WIP files)
|
|
177
|
+
├── rewards → Reward[] (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_guard → Guard (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
|
package/wowok-scenario/SKILL.md
CHANGED
|
@@ -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).
|
package/wowok-tools/SKILL.md
CHANGED
|
@@ -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](
|
|
270
|
-
| **Don't know how to build a service** | → [Examples Reference](#examples-reference
|
|
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) |
|