@wowok/skills 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/skills.d.ts +3 -3
- package/dist/skills.d.ts.map +1 -1
- package/dist/skills.js +182 -10
- package/dist/skills.js.map +1 -1
- package/examples/MyShop/MyShop.md +68 -35
- package/examples/ThreeBody_Signature/ThreeBody_Signature.md +91 -18
- package/examples/Travel/Travel.md +17 -25
- package/package.json +1 -1
- package/scripts/install.js +2 -2
- package/wowok-arbitrator/SKILL.md +3 -3
- package/wowok-auditor/SKILL.md +3 -3
- package/wowok-collaborator/SKILL.md +2 -2
- package/wowok-machine/SKILL.md +9 -9
- package/wowok-messenger/SKILL.md +1 -1
- package/wowok-onboard/SKILL.md +10 -10
- package/wowok-output/SKILL.md +31 -23
- package/wowok-planner/SKILL.md +2 -2
- package/wowok-provider/SKILL.md +20 -20
- package/wowok-supplier/SKILL.md +3 -3
package/wowok-planner/SKILL.md
CHANGED
|
@@ -27,7 +27,7 @@ Converts natural-language intent into an executable Object Dependency Graph (ODG
|
|
|
27
27
|
|
|
28
28
|
> **Layer**: L3 Skill, primary planner for L4 Harness Plan Loop
|
|
29
29
|
> **Related Skills**: [wowok-onboard](../wowok-onboard/SKILL.md) (guided execution), [wowok-machine](../wowok-machine/SKILL.md) (workflow design), [wowok-provider](../wowok-provider/SKILL.md) (post-plan operations)
|
|
30
|
-
> Industry modes, Guard design patterns, safety rules, and tool references now live in the MCP knowledge layer — query via `
|
|
30
|
+
> Industry modes, Guard design patterns, safety rules, and tool references now live in the MCP knowledge layer — query via `industry_pack_operation` (`recommend_industry` / `list_modes`) and `schema_query` (`get_guard_design_patterns` / `get_safety_rules` / `get_tool_reference`).
|
|
31
31
|
|
|
32
32
|
---
|
|
33
33
|
|
|
@@ -96,7 +96,7 @@ The ODG (Object Dependency Graph) is the single output artifact, persisted via `
|
|
|
96
96
|
}
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
Each object has: `id`, `type`, `status` (planned/created/published), `reversible` (true/false), `dependencies` (other object IDs), `user_decisions` (typed fields). Phases gate progression — `risk_check` calls `
|
|
99
|
+
Each object has: `id`, `type`, `status` (planned/created/published), `reversible` (true/false), `dependencies` (other object IDs), `user_decisions` (typed fields). Phases gate progression — `risk_check` calls `goal_operation` action='aggregate_risks' (with planned objects/operations), `final_audit` runs the pre-publish audit checklist (see wowok-auditor).
|
|
100
100
|
|
|
101
101
|
**Dependency-chain ordering rules (authoritative, verified from Move/SDK):**
|
|
102
102
|
1. **Service DRAFT is created BEFORE Machine** — Guards reference the Service by LocalMark NAME, so the Service skeleton must exist first to break the Guard↔Service circular dependency.
|
package/wowok-provider/SKILL.md
CHANGED
|
@@ -28,17 +28,17 @@ when_to_use:
|
|
|
28
28
|
|
|
29
29
|
## MCP Knowledge Layer
|
|
30
30
|
|
|
31
|
-
The following rule tables have been pushed down to the MCP knowledge layer and are automatically applied during
|
|
31
|
+
The following rule tables have been pushed down to the MCP knowledge layer and are automatically applied during on-chain operations. You do NOT need to manually check these — the MCP server enforces them.
|
|
32
32
|
|
|
33
33
|
| Rule Category | Access via (MCP action) | Applied By |
|
|
34
34
|
|---------------|--------------------------|------------|
|
|
35
|
-
| Safety rules (confirmation, immutability, object reuse) | `schema_query` action='get_safety_rules' | `
|
|
36
|
-
| Guard design patterns | `schema_query` action='get_guard_design_patterns' | `
|
|
37
|
-
| Machine topology rules | auto-applied | `
|
|
38
|
-
| Scenario mode defaults | `
|
|
35
|
+
| Safety rules (confirmation, immutability, object reuse) | `schema_query` action='get_safety_rules' | `goal_operation` action='aggregate_risks' + `onchain_operations` pre-publish |
|
|
36
|
+
| Guard design patterns | `schema_query` action='get_guard_design_patterns' | `goal_operation` action='aggregate_risks' (guard risk assessment) |
|
|
37
|
+
| Machine topology rules | auto-applied | `goal_operation` action='aggregate_risks' (machine risk assessment) |
|
|
38
|
+
| Scenario mode defaults | `industry_pack_operation` action='list_modes' / 'recommend_industry' | Referenced when recording the Goal and building the Service |
|
|
39
39
|
| Tool reference (gas, faucet, wrappers) | `schema_query` action='get_tool_reference' | All tool calls automatically |
|
|
40
40
|
|
|
41
|
-
**How to use**: Call `
|
|
41
|
+
**How to use**: Call `goal_operation` with `action: "aggregate_risks"` after completing your puzzle (pass your planned objects/operations) — the MCP server will automatically apply all relevant safety rules and return risk findings.
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
@@ -124,13 +124,13 @@ Once R1-R7 confirmed, execute in strict order. Sub-tools are invoked via `wowok(
|
|
|
124
124
|
|
|
125
125
|
**STEP 7 — Trust (Arbitration + compensation_fund)**: REUSE third-party Arbitration (MUST NOT share Service's Permission — E_ARBITRATION_PERMISSION_CONFLICT 33; don't create your own). `compensation_fund_add` (internal Balance<T>, not Treasury); fund>0 requires non-empty arbitrations (E_ARBITRATION_NOT_SET_WITH_COMPENSATION_FUND 25); withdraw needs bPaused + lock elapsed.
|
|
126
126
|
|
|
127
|
-
**STEP 8 — Publication**: pre-publish verify — (1) machineNode2file, (2) guard2file, (3)
|
|
127
|
+
**STEP 8 — Publication**: pre-publish verify — (1) machineNode2file, (2) guard2file, (3) `goal_operation` aggregate_risks → fix CRITICAL, (4) permission indexes granted, (5) arb permission isolation, (6) contact ims+enabled → `onchain_operations` service `publish: true` (L1-LOCKED: machine/order_allocators/arbitrations).
|
|
128
128
|
|
|
129
129
|
**STEP 9 — Post-publish + Test Order**: mutable fields (description/location/sales/customer_required/rewards add/repositories add). Test order: `order_new` (requires bPublished, else E_NOT_PUBLISHED) → disclose next nodes → advance (order.progress / progress.operate) → alloc_by_guard → verify distribution. User chooses test account (default: service-creation account).
|
|
130
130
|
|
|
131
131
|
### Post-Publish Mutability (SDK-LOCKED vs mutable)
|
|
132
132
|
|
|
133
|
-
Served by MCP `schema_query` action='get_safety_rules' (immutability-after-publish). Summary: `buy_guard` / `sales` / `description` / `repositories` / `rewards` are mutable; `machine` / `order_allocators` / `arbitrations` are SDK-LOCKED (
|
|
133
|
+
Served by MCP `schema_query` action='get_safety_rules' (immutability-after-publish). Summary: `buy_guard` / `sales` / `description` / `repositories` / `rewards` are mutable; `machine` / `order_allocators` / `arbitrations` are SDK-LOCKED (a new Service version is required to change them).
|
|
134
134
|
|
|
135
135
|
---
|
|
136
136
|
|
|
@@ -138,7 +138,7 @@ Served by MCP `schema_query` action='get_safety_rules' (immutability-after-publi
|
|
|
138
138
|
|
|
139
139
|
### Service Object Relationships
|
|
140
140
|
|
|
141
|
-
> **Boundary conditions**: Service/Machine are IMMUTABLE after publish; Payment is FROZEN at creation; Order/Progress/Arbitration operations are irreversible. Use `
|
|
141
|
+
> **Boundary conditions**: Service/Machine are IMMUTABLE after publish; Payment is FROZEN at creation; Order/Progress/Arbitration operations are irreversible. Use `query_toolkit` query_type='service_panorama' to check whether a Service has published objects.
|
|
142
142
|
|
|
143
143
|
```
|
|
144
144
|
Service → permission, machine (immutable), order_allocators (immutable),
|
|
@@ -199,28 +199,28 @@ WOW is the default settlement token. For stablecoin-denominated revenue (fiat-pe
|
|
|
199
199
|
|
|
200
200
|
---
|
|
201
201
|
|
|
202
|
-
##
|
|
202
|
+
## Service Iteration: New Version vs In-Place
|
|
203
203
|
|
|
204
|
-
When a merchant wants to modify an existing service (change workflow, add allocators, update guards), the AI must determine whether to modify
|
|
204
|
+
When a merchant wants to modify an existing service (change workflow, add allocators, update guards), the AI must determine whether to modify in place or build a new version.
|
|
205
205
|
|
|
206
206
|
### Decision Rule
|
|
207
207
|
|
|
208
208
|
| Scenario | Strategy | MCP Action |
|
|
209
209
|
|----------|----------|------------|
|
|
210
|
-
| Service NOT yet published | **In-place** — modify the current
|
|
211
|
-
| Service IS published | **
|
|
210
|
+
| Service NOT yet published | **In-place** — modify the current draft directly | `onchain_operations` (modify) |
|
|
211
|
+
| Service IS published | **New version** — build v2 objects and publish as a separate Service; v1 keeps running | `onchain_operations` (create + publish) |
|
|
212
212
|
|
|
213
|
-
###
|
|
213
|
+
### New-Version Workflow
|
|
214
214
|
|
|
215
|
-
When the service is already published and the user wants structural changes,
|
|
215
|
+
Published objects are IMMUTABLE on-chain — there is no in-place structural change and no version-fork tool. When the service is already published and the user wants structural changes, build the new version's objects with `onchain_operations`: reuse v1 objects by address where unchanged (Permission, Guards, Treasury, Contact…) and create new objects only for the changed parts (e.g. a new Machine). Then publish v2 as its own Service — v1 continues running uninterrupted as a separate, still-live Service.
|
|
216
216
|
|
|
217
|
-
Before
|
|
217
|
+
Before building v2, verify necessity via `query_toolkit` query_type='service_panorama' — a published Service confirms a new version is required (published objects are immutable).
|
|
218
218
|
|
|
219
|
-
### When to Recommend
|
|
219
|
+
### When to Recommend a New Version
|
|
220
220
|
|
|
221
|
-
- User says "I want to change my workflow" → check if published → recommend
|
|
222
|
-
- User says "I want to add a new product line" → if same Machine can handle it, in-place modify Service.sales; if needs new Machine,
|
|
223
|
-
- User says "I want to change fund distribution" → if Service not published, in-place; if published,
|
|
221
|
+
- User says "I want to change my workflow" → check if published → recommend a new version
|
|
222
|
+
- User says "I want to add a new product line" → if same Machine can handle it, in-place modify Service.sales; if it needs a new Machine, a new version
|
|
223
|
+
- User says "I want to change fund distribution" → if Service not published, in-place; if published, a new version (allocators are frozen after publish)
|
|
224
224
|
|
|
225
225
|
---
|
|
226
226
|
|
package/wowok-supplier/SKILL.md
CHANGED
|
@@ -32,9 +32,9 @@ The following content has been pushed down to the MCP knowledge layer and is app
|
|
|
32
32
|
| Content | Access via (MCP action) | Applied Via |
|
|
33
33
|
|---------|--------------------------|-------------|
|
|
34
34
|
| Demand semantics (open vs guarded, present paths) | `schema_query` action='get' (demand object schema, or on-demand knowledge) | `onchain_operations` demand |
|
|
35
|
-
| Supplier interest analysis (fund_flow / responsibility / leverage / stakes) | `
|
|
35
|
+
| Supplier interest analysis (fund_flow / responsibility / leverage / stakes) | `query_toolkit` query_type='participation_radar' | role derivation → `supplier-interest` |
|
|
36
36
|
| Demand/service matching | `evaluation_operation` action='demand_match' | read-only ranking |
|
|
37
|
-
| Safety rules (immutability, object reuse, confirmation) | `schema_query` action='get_safety_rules' | `
|
|
37
|
+
| Safety rules (immutability, object reuse, confirmation) | `schema_query` action='get_safety_rules' | `goal_operation` action='aggregate_risks' + pre-publish |
|
|
38
38
|
|
|
39
39
|
This Skill keeps the supplier **conversation flow** — discover → present → fulfill → collect. The MCP layer handles rules, matching, and own-interest surfacing.
|
|
40
40
|
|
|
@@ -114,7 +114,7 @@ If the upstream merchant stalls or withholds, escalate in order:
|
|
|
114
114
|
|
|
115
115
|
## Own-Interest Surfacing
|
|
116
116
|
|
|
117
|
-
Run `
|
|
117
|
+
Run `query_toolkit` query_type='participation_radar' with your account + sub-order progress. The MCP derives your role (supplier) and attaches `supplier-interest` (fund_flow / responsibility / leverage / stakes). Present it as neutral information — the supplier decides.
|
|
118
118
|
|
|
119
119
|
---
|
|
120
120
|
|