@wowok/skills 1.2.5 → 1.2.7
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 +3 -4
- package/dist/cli.js +0 -2
- package/dist/cli.js.map +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/skills.d.ts.map +1 -1
- package/dist/skills.js +2 -15
- package/dist/skills.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -2
- package/scripts/install.js +0 -1
- package/wowok-arbitrator/SKILL.md +4 -4
- package/wowok-auditor/SKILL.md +3 -3
- package/wowok-machine/SKILL.md +7 -7
- package/wowok-onboard/SKILL.md +15 -16
- package/wowok-planner/SKILL.md +5 -4
- package/wowok-provider/SKILL.md +11 -39
- package/wowok-scenario/SKILL.md +13 -10
- package/wowok-distill/SKILL.md +0 -237
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ WOWOK_SKILLS_TARGETS=claude,agents npm install -g @wowok/skills
|
|
|
37
37
|
| Mode | Skills | Behavior |
|
|
38
38
|
|------|--------|----------|
|
|
39
39
|
| **Always** | `wowok-tools`, `wowok-safety`, `wowok-output` | Metadata always in prompt (~100 tokens each). AI auto-loads full content when needed. |
|
|
40
|
-
| **On-demand** | `wowok-provider`, `wowok-arbitrator`, `wowok-order`, `wowok-messenger`, `wowok-guard`, `wowok-machine`, `wowok-onboard`, `wowok-scenario`, `wowok-planner`, `wowok-auditor
|
|
40
|
+
| **On-demand** | `wowok-provider`, `wowok-arbitrator`, `wowok-order`, `wowok-messenger`, `wowok-guard`, `wowok-machine`, `wowok-onboard`, `wowok-scenario`, `wowok-planner`, `wowok-auditor` | AI matches description to task. Only loaded when relevant. |
|
|
41
41
|
|
|
42
42
|
## Quick Start
|
|
43
43
|
|
|
@@ -174,7 +174,7 @@ const providerSkill = getSkillByName('wowok-provider');
|
|
|
174
174
|
| `wowok-safety` | Safety protocol — dry-run → confirm → execute, immutability rules, confirmation checkpoints | All Roles |
|
|
175
175
|
| `wowok-output` | Output processing — address resolution, name mapping, amount formatting, data visualization | All Roles |
|
|
176
176
|
|
|
177
|
-
### On-Demand (
|
|
177
|
+
### On-Demand (10 skills — contextually loaded)
|
|
178
178
|
|
|
179
179
|
| Skill | Purpose | Role |
|
|
180
180
|
|-------|---------|------|
|
|
@@ -184,11 +184,10 @@ const providerSkill = getSkillByName('wowok-provider');
|
|
|
184
184
|
| `wowok-messenger` | Encrypted messaging — E2E communication, WTS evidence, anti-spam strategy, Contact object lifecycle | All Roles |
|
|
185
185
|
| `wowok-guard` | Guard design mastery — programmable trust rules, 4 data source classifications, verifier constraint levels, 33 creation/runtime constraints | All Roles |
|
|
186
186
|
| `wowok-machine` | Machine workflow design — state machines, node/pair/forward graph, immutability rules, dependency-first build order | Service Provider |
|
|
187
|
-
| `wowok-onboard` | First-touch onboarding — 10-round dialogue from zero to first published Service,
|
|
187
|
+
| `wowok-onboard` | First-touch onboarding — 10-round dialogue from zero to first published Service, SQLite-based project pipeline integration | New Users |
|
|
188
188
|
| `wowok-scenario` | Industry mode templates — freelance, rental, education, travel, subscription presets with audit checklists and failure playbooks | All Roles |
|
|
189
189
|
| `wowok-planner` | Planning skill — converts natural language intent into Object Dependency Graph (ODG), 5 scenario templates | All Roles |
|
|
190
190
|
| `wowok-auditor` | Pre-publish audit — Guard completeness, Machine soundness, fund flow correctness, 32 audit checks | All Roles |
|
|
191
|
-
| `wowok-distill` | Distillation review — guides merchants through reviewing AI-generated improvement proposals from the Loop Engineering flywheel | Service Provider |
|
|
192
191
|
|
|
193
192
|
## Related Projects
|
|
194
193
|
|
package/dist/cli.js
CHANGED
|
@@ -47,7 +47,6 @@ const types_1 = require("./types");
|
|
|
47
47
|
* - Arbitrator: wowok-arbitrator
|
|
48
48
|
* - Shared: wowok-guard, wowok-tools, wowok-safety, wowok-output
|
|
49
49
|
* - Onboarding: wowok-onboard, wowok-scenario, wowok-planner, wowok-auditor
|
|
50
|
-
* - Distillation: wowok-distill
|
|
51
50
|
*/
|
|
52
51
|
const SKILL_DIRS = [
|
|
53
52
|
'wowok-order',
|
|
@@ -63,7 +62,6 @@ const SKILL_DIRS = [
|
|
|
63
62
|
'wowok-scenario',
|
|
64
63
|
'wowok-planner',
|
|
65
64
|
'wowok-auditor',
|
|
66
|
-
'wowok-distill',
|
|
67
65
|
];
|
|
68
66
|
/**
|
|
69
67
|
* Role display names for CLI output
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uCAAyB;AACzB,2CAA6B;AAC7B,qCAAsG;AACtG,mCAA0G;AAE1G;;;;;;;;;;GAUG;AACH,MAAM,UAAU,GAAG;IACjB,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,kBAAkB;IAClB,aAAa;IACb,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,eAAe;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,YAAY,GAA8B;IAC9C,QAAQ,EAAE,aAAa;IACvB,QAAQ,EAAE,aAAa;IACvB,UAAU,EAAE,gBAAgB;IAC5B,MAAM,EAAE,aAAa;CACtB,CAAC;AAEF,SAAS,cAAc;IACrB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,OAAO,CAAC,GAAW,EAAE,IAAY;IACxC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IACtC,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,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d,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACpB,OAAO,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC;gBACpD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;YACD,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YACtC,MAAM;QAER,KAAK,MAAM;YACT,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,MAAM;QAER,KAAK,QAAQ;YACX,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACzC,MAAM;QAER;YACE,OAAO,CAAC,KAAK,CAAC,oBAAoB,OAAO,EAAE,CAAC,CAAC;YAC7C,UAAU,EAAE,CAAC;YACb,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;AACH,CAAC;AAED,SAAS,cAAc,CAAC,IAAc;IACpC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/dist/skills.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare function recommendSkills(intent: string): Skill[];
|
|
|
50
50
|
/**
|
|
51
51
|
* Negotiate skill behavior mode based on MCP server version vs skill version.
|
|
52
52
|
*
|
|
53
|
-
* Decision matrix
|
|
53
|
+
* Decision matrix:
|
|
54
54
|
* - MCP major > skill major → "passthrough" (skill only forwards MCP responses)
|
|
55
55
|
* - MCP major < skill major → "legacy" (skill falls back to older content)
|
|
56
56
|
* - Major versions match → "full" (normal orchestration)
|
package/dist/skills.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,WAAW,EAAE,WAoHzB,CAAC;AAEF;;GAEG;AACH,wBAAgB,SAAS,IAAI,KAAK,EAAE,CAEnC;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAE9D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,KAAK,EAAE,CAExD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,EAAE,CAExE;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,UAAU,EAAE,CA4B5C;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,CAyBvD;AAMD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,SAAS,CAYtF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC,CAMD"}
|
package/dist/skills.js
CHANGED
|
@@ -141,15 +141,6 @@ exports.wowokSkills = {
|
|
|
141
141
|
role: 'shared',
|
|
142
142
|
loading: 'on-demand',
|
|
143
143
|
related: ['wowok-planner', 'wowok-provider', 'wowok-safety', 'wowok-guard', 'wowok-machine']
|
|
144
|
-
},
|
|
145
|
-
// === DISTILLATION REVIEW (GLM5 §6.4 MODE 2) ===
|
|
146
|
-
{
|
|
147
|
-
name: 'wowok-distill',
|
|
148
|
-
description: 'Distillation review orchestrator — guides merchants through reviewing and applying AI-generated improvement proposals from the Loop Engineering flywheel. Stateless conversation orchestrator: all data from MCP get_improvement_queue / apply_improvement / get_flywheel_config actions. Use when user asks about improvements, optimizations, flywheel proposals, or operational learnings.',
|
|
149
|
-
version: '1.0.0',
|
|
150
|
-
role: 'shared',
|
|
151
|
-
loading: 'on-demand',
|
|
152
|
-
related: ['wowok-tools', 'wowok-provider']
|
|
153
144
|
}
|
|
154
145
|
]
|
|
155
146
|
};
|
|
@@ -230,20 +221,16 @@ function recommendSkills(intent) {
|
|
|
230
221
|
if (/\b(guard design|validation rules?|multi.sig|permission|authorization)\b/.test(lower)) {
|
|
231
222
|
return [getSkillByName('wowok-guard')];
|
|
232
223
|
}
|
|
233
|
-
// Distillation keywords (GLM5 §6.4)
|
|
234
|
-
if (/\b(improvement|optimization|flywheel|distillation|proposal|override|operational learnings?)\b/.test(lower)) {
|
|
235
|
-
return [getSkillByName('wowok-distill')];
|
|
236
|
-
}
|
|
237
224
|
// Default: return all on-demand skills
|
|
238
225
|
return getSkillsByLoading('on-demand');
|
|
239
226
|
}
|
|
240
227
|
// ============================================================
|
|
241
|
-
//
|
|
228
|
+
// Skills Version Negotiation
|
|
242
229
|
// ============================================================
|
|
243
230
|
/**
|
|
244
231
|
* Negotiate skill behavior mode based on MCP server version vs skill version.
|
|
245
232
|
*
|
|
246
|
-
* Decision matrix
|
|
233
|
+
* Decision matrix:
|
|
247
234
|
* - MCP major > skill major → "passthrough" (skill only forwards MCP responses)
|
|
248
235
|
* - MCP major < skill major → "legacy" (skill falls back to older content)
|
|
249
236
|
* - Major versions match → "full" (normal orchestration)
|
package/dist/skills.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":";;;AAkJA,8BAEC;AAKD,wCAEC;AAKD,0CAEC;AAKD,gDAEC;AAKD,sCA4BC;AAMD,0CAyBC;AAsBD,gDAYC;AAWD,gDAUC;AA9RD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEU,QAAA,WAAW,GAAgB;IACtC,MAAM,EAAE;QACN,wBAAwB;QACxB;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,sKAAsK;YACnL,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,WAAW;YACpB,OAAO,EAAE,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,aAAa,CAAC;SAClF;QAED,wBAAwB;QACxB;YACE,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,gNAAgN;YAC7N,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,WAAW;YACpB,OAAO,EAAE,CAAC,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,CAAC;SAC5E;QACD;YACE,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,6JAA6J;YAC1K,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,WAAW;YACpB,OAAO,EAAE,CAAC,gBAAgB,E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,CAAC,CAAC;AACN,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface Skill {
|
|
|
27
27
|
related?: string[];
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* Skill negotiation mode
|
|
30
|
+
* Skill negotiation mode.
|
|
31
31
|
* Determines how a skill behaves relative to the MCP server version.
|
|
32
32
|
* - 'full': Versions match — skill provides full orchestration (best experience)
|
|
33
33
|
* - 'passthrough': MCP major > skill major — skill only forwards MCP responses, no orchestration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wowok/skills",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "WoWok AI Skills for Claude and other AI assistants - Helping AI use WoWok MCP tools correctly",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"wowok-scenario/",
|
|
23
23
|
"wowok-planner/",
|
|
24
24
|
"wowok-auditor/",
|
|
25
|
-
"wowok-distill/",
|
|
26
25
|
"examples/",
|
|
27
26
|
"scripts/install.js",
|
|
28
27
|
"README.md",
|
package/scripts/install.js
CHANGED
|
@@ -28,9 +28,9 @@ The following content has been pushed down to the MCP knowledge layer and is app
|
|
|
28
28
|
|
|
29
29
|
| Content | MCP Knowledge Module | Applied Via |
|
|
30
30
|
|---------|---------------------|-------------|
|
|
31
|
-
| Guard design rules (structural layers, data source classification, voting_guard table design) | `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`) | `project_operation.
|
|
32
|
-
| Safety rules (confirmation levels, immutability, object reuse) | `knowledge/safety-rules.ts` (`CONFIRMATION_RULES`) | Pre-publish checks + `project_operation.
|
|
33
|
-
| Arbitration-specific risks | `knowledge/arb-risk.ts` (`assessArbitrationRisks`) | `project_operation.
|
|
31
|
+
| Guard design rules (structural layers, data source classification, voting_guard table design) | `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`) | `project_operation.evaluate_project` (via `assessGuardRisks`) |
|
|
32
|
+
| Safety rules (confirmation levels, immutability, object reuse) | `knowledge/safety-rules.ts` (`CONFIRMATION_RULES`) | Pre-publish checks + `project_operation.evaluate_project` |
|
|
33
|
+
| Arbitration-specific risks | `knowledge/arb-risk.ts` (`assessArbitrationRisks`) | `project_operation.evaluate_project` |
|
|
34
34
|
|
|
35
35
|
This Skill keeps the arbitration **conversation flow**, **evidence collection** scripts, and **dispute resolution** guidance — the MCP layer handles the rule evaluation.
|
|
36
36
|
|
|
@@ -144,7 +144,7 @@ Customer dispute creates Arb directly at (1). State (0) entered only via `reset`
|
|
|
144
144
|
|
|
145
145
|
**Voting Flow**: Voter selects a voting guard → System verifies voter's Passport against that guard → Calculates weight based on guard's rule → Applies weight to selected propositions. One vote per voter per case.
|
|
146
146
|
|
|
147
|
-
> **Guard Design Reference**: Voting guard construction rules (table design, computation trees, `GuardIdentifier` submission-type requirements) now live in the MCP knowledge layer — see `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`), auto-applied via `project_operation.
|
|
147
|
+
> **Guard Design Reference**: Voting guard construction rules (table design, computation trees, `GuardIdentifier` submission-type requirements) now live in the MCP knowledge layer — see `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`), auto-applied via `project_operation.evaluate_project`. Test voting logic with `gen_passport` before finalizing.
|
|
148
148
|
|
|
149
149
|
---
|
|
150
150
|
|
package/wowok-auditor/SKILL.md
CHANGED
|
@@ -38,9 +38,9 @@ The following content has been pushed down to the MCP knowledge layer and is app
|
|
|
38
38
|
|
|
39
39
|
| Content | MCP Knowledge Module | Applied Via |
|
|
40
40
|
|---------|---------------------|-------------|
|
|
41
|
-
| Safety rules (confirmation levels, immutability rules, object reuse rules) | `knowledge/safety-rules.ts` (`CONFIRMATION_RULES`, `ConfirmLevel`) | Pre-publish checks + `project_operation.
|
|
42
|
-
| Machine-executable audit rules | `knowledge/audit-rules.ts` (`AUDIT_RULES`, `auditService`) | `project_operation.
|
|
43
|
-
| Guard completeness / Machine soundness / fund-flow risks | `knowledge/guard-risk.ts`, `machine-risk.ts`, per-object risk modules | `project_operation.
|
|
41
|
+
| Safety rules (confirmation levels, immutability rules, object reuse rules) | `knowledge/safety-rules.ts` (`CONFIRMATION_RULES`, `ConfirmLevel`) | Pre-publish checks + `project_operation.evaluate_project` |
|
|
42
|
+
| Machine-executable audit rules | `knowledge/audit-rules.ts` (`AUDIT_RULES`, `auditService`) | `project_operation.evaluate_project` |
|
|
43
|
+
| Guard completeness / Machine soundness / fund-flow risks | `knowledge/guard-risk.ts`, `machine-risk.ts`, per-object risk modules | `project_operation.evaluate_project` (via per-object assessors) |
|
|
44
44
|
|
|
45
45
|
This Skill keeps the **audit flow**, the **4 audit dimensions** (Guard completeness, Machine soundness, fund flow, publish readiness), and the **checklist structure** as the human-readable knowledge base for the L4 Harness Verify Loop. The MCP layer runs the machine-executable rule evaluation.
|
|
46
46
|
|
package/wowok-machine/SKILL.md
CHANGED
|
@@ -42,11 +42,11 @@ The following content has been pushed down to the MCP knowledge layer and is app
|
|
|
42
42
|
|
|
43
43
|
| Content | MCP Knowledge Module | Applied Via |
|
|
44
44
|
|---------|---------------------|-------------|
|
|
45
|
-
| Node design rules (node type specs, forward guard design patterns, topology limits) | `knowledge/machine-risk.ts` (`MACHINE_RISK_RULES`), `machine-topology.ts`, `machine-translation.ts` | `project_operation.
|
|
46
|
-
| Machine scene/template selection | `knowledge/machine-ledger.ts`, `machine-templates.ts` | `project_operation.
|
|
47
|
-
| Forward Guard design patterns | `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`) | `project_operation.
|
|
48
|
-
| Safety rules (immutability, confirmation) | `knowledge/safety-rules.ts` | Pre-publish checks + `project_operation.
|
|
49
|
-
| Publish gate (4-layer fail-closed: checklist → risk → user → environment) | `knowledge/machine-confirm.ts` (`PUBLISH_CHECKLIST`, `confirmPublish`) | `project_operation.
|
|
45
|
+
| Node design rules (node type specs, forward guard design patterns, topology limits) | `knowledge/machine-risk.ts` (`MACHINE_RISK_RULES`), `machine-topology.ts`, `machine-translation.ts` | `project_operation.create_project` (pass `project_industry`) + `project_operation.evaluate_project` (via `assessMachineRisks`) |
|
|
46
|
+
| Machine scene/template selection | `knowledge/machine-ledger.ts`, `machine-templates.ts` | `project_operation.create_project` (pass `project_industry`) |
|
|
47
|
+
| Forward Guard design patterns | `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`) | `project_operation.evaluate_project` (via `assessGuardRisks`) |
|
|
48
|
+
| Safety rules (immutability, confirmation) | `knowledge/safety-rules.ts` | Pre-publish checks + `project_operation.evaluate_project` |
|
|
49
|
+
| Publish gate (4-layer fail-closed: checklist → risk → user → environment) | `knowledge/machine-confirm.ts` (`PUBLISH_CHECKLIST`, `confirmPublish`) | `project_operation.evaluate_project` + pre-publish gate |
|
|
50
50
|
|
|
51
51
|
This Skill keeps the **workflow conversation guidance**, **business flow design patterns**, and **machine lifecycle scripts**. The MCP layer handles node-design rule evaluation, scene/template selection, and risk aggregation.
|
|
52
52
|
|
|
@@ -74,7 +74,7 @@ This Skill keeps the **workflow conversation guidance**, **business flow design
|
|
|
74
74
|
|
|
75
75
|
A Guard validates the Forward's execution condition. **Retained submissions**: when `retained_submission` is set on a Guard, submitted values are stored in Progress history, uniquely located by `(current_node, next_node, forward_name)`. Later nodes query these values from history.
|
|
76
76
|
|
|
77
|
-
> **Guard construction**: Forward Guard design patterns (table design, computation trees, query instructions) now live in the MCP knowledge layer — see `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`), auto-applied via `project_operation.
|
|
77
|
+
> **Guard construction**: Forward Guard design patterns (table design, computation trees, query instructions) now live in the MCP knowledge layer — see `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`), auto-applied via `project_operation.evaluate_project`. Query available Guard instructions via `wowok_buildin_info`.
|
|
78
78
|
|
|
79
79
|
### Threshold Mechanics
|
|
80
80
|
|
|
@@ -198,7 +198,7 @@ Decompose complex workflows into multiple Machines connected by Guard-based vali
|
|
|
198
198
|
3. "Does any step depend on an external process completing first?"
|
|
199
199
|
4. "Which party creates the sub-order, and which party verifies it?"
|
|
200
200
|
|
|
201
|
-
> **Guard construction**: Cross-Machine Guards use `convert_witness` with Progress query instructions. Design rules now live in the MCP knowledge layer — see `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`), applied via `project_operation.
|
|
201
|
+
> **Guard construction**: Cross-Machine Guards use `convert_witness` with Progress query instructions. Design rules now live in the MCP knowledge layer — see `knowledge/guard-design-patterns.ts` (`GUARD_DESIGN_PATTERNS`), applied via `project_operation.evaluate_project`. Query available Guard instructions via `wowok_buildin_info`.
|
|
202
202
|
|
|
203
203
|
### Dual-Signature Consensus
|
|
204
204
|
|
package/wowok-onboard/SKILL.md
CHANGED
|
@@ -34,11 +34,11 @@ The following content has been pushed down to the MCP knowledge layer and is app
|
|
|
34
34
|
|
|
35
35
|
| Content | MCP Knowledge Module | Applied Via |
|
|
36
36
|
|---------|---------------------|-------------|
|
|
37
|
-
| Scenario mode details (per-industry Permission/Machine/Guard/Allocator defaults) | `knowledge/scenario-modes.ts` (`SCENARIO_MODES`, `matchScenarioMode`, `inferScenarioTraits`) | `project_operation.
|
|
38
|
-
| Safety rules (immutability, confirmation, object reuse) | `knowledge/safety-rules.ts` (`CONFIRMATION_RULES`) | Pre-publish checks + `project_operation.
|
|
39
|
-
| Guard / Machine design rules | `knowledge/guard-design-patterns.ts`, `machine-risk.ts` | `project_operation.
|
|
37
|
+
| Scenario mode details (per-industry Permission/Machine/Guard/Allocator defaults) | `knowledge/scenario-modes.ts` (`SCENARIO_MODES`, `matchScenarioMode`, `inferScenarioTraits`) | `project_operation.create_project` — auto-applied when `project_industry` parameter is passed |
|
|
38
|
+
| Safety rules (immutability, confirmation, object reuse) | `knowledge/safety-rules.ts` (`CONFIRMATION_RULES`) | Pre-publish checks + `project_operation.evaluate_project` |
|
|
39
|
+
| Guard / Machine design rules | `knowledge/guard-design-patterns.ts`, `machine-risk.ts` | `project_operation.evaluate_project` |
|
|
40
40
|
|
|
41
|
-
This Skill keeps the **overall onboarding flow** and **R1-R10 build order** (see below). Pass the user's industry to `
|
|
41
|
+
This Skill keeps the **overall onboarding flow** and **R1-R10 build order** (see below). Pass the user's industry to `create_project` (via `project_industry` parameter) and the MCP layer auto-fills the scenario defaults — no need to look up per-industry presets manually.
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
@@ -49,7 +49,7 @@ The onboarding skill dismantles the "16 operation_type × 14 object_type" wall.
|
|
|
49
49
|
### What This Skill Does
|
|
50
50
|
|
|
51
51
|
- Converts "I want to open a shop" into a 10-round guided build plan
|
|
52
|
-
- Industry defaults auto-applied via `project_operation.
|
|
52
|
+
- Industry defaults auto-applied via `project_operation.create_project` (pass `project_industry` parameter; defaults sourced from MCP `knowledge/scenario-modes.ts`)
|
|
53
53
|
- Enforces dependency order: Permission → Service → Machine → Progress → Guard → Allocation → Order → Publish
|
|
54
54
|
- Persists checkpoints after each round via `local_info_operation` so users can resume
|
|
55
55
|
- Hands off to [wowok-provider](../wowok-provider/SKILL.md) once the Service is published
|
|
@@ -67,26 +67,25 @@ A published Service with: published Machine, bound Progress, validated Guards, c
|
|
|
67
67
|
|
|
68
68
|
---
|
|
69
69
|
|
|
70
|
-
## MCP
|
|
70
|
+
## MCP Project Pipeline Integration
|
|
71
71
|
|
|
72
|
-
The onboarding flow is
|
|
72
|
+
The onboarding flow is backed by the MCP SQLite-based project pipeline. Each step produces verifiable state — the AI MUST honor risk/blocking findings by stopping and fixing reported issues:
|
|
73
73
|
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
| 1. Project
|
|
77
|
-
| 2.
|
|
78
|
-
| 3.
|
|
79
|
-
| 4.
|
|
80
|
-
| 5. Substep Trace | R9-R10 | `trace_substeps` → validate substep linkage (D-10 check) | Linkage errors block publish |
|
|
74
|
+
| Step | Rounds | MCP Action | Gate |
|
|
75
|
+
|------|--------|------------|------|
|
|
76
|
+
| 1. Create Project | R1-R2 | `create_project` (pass `project_industry`) → project record + scenario defaults | — |
|
|
77
|
+
| 2. Add Objects | R3-R8 | `add_object` for each on-chain object (Service, Machine, Guards, Allocators) | — |
|
|
78
|
+
| 3. Build Graph | After R8 | `build_graph` → object dependency graph from added objects | — |
|
|
79
|
+
| 4. Evaluate | After graph built | `evaluate_project` (evaluation_type='risk') → risk assessment | CRITICAL risks block R9 |
|
|
81
80
|
|
|
82
81
|
## R1-R10 Build Order
|
|
83
82
|
|
|
84
83
|
| Round | Object | MCP Operation | Key Decision |
|
|
85
84
|
|-------|--------|---------------|--------------|
|
|
86
85
|
| R1 | Account | `account_operation.gen` + `faucet` | New or reuse? |
|
|
87
|
-
| R2 | Industry mode | `project_operation.
|
|
86
|
+
| R2 | Industry mode | `project_operation.create_project` (pass `project_industry`) | Which driving mode? |
|
|
88
87
|
| R3 | Service | `onchain_operations.service` CREATE | Name, type_parameter, description |
|
|
89
|
-
| R4 | Permission | `onchain_operations.permission` CREATE/REUSE |
|
|
88
|
+
| R4 | Permission | `onchain_operations.permission` CREATE/REUSE | Index 1000 = provider/merchant (customer uses `namedOperator:""` = OrderHolder; arbiter is NOT a Permission index — arbiters live in `Arbitration.voting_guard`) |
|
|
90
89
|
| R5 | Machine | `onchain_operations.machine` CREATE | Nodes, forwards (mode defaults from MCP) |
|
|
91
90
|
| R6 | Progress | `onchain_operations.progress` CREATE + bind | Mirror Machine nodes |
|
|
92
91
|
| R7 | Guards | `onchain_operations.guard` CREATE + `gen_passport` test | 5 Guard templates (mode defaults from MCP) |
|
package/wowok-planner/SKILL.md
CHANGED
|
@@ -74,13 +74,14 @@ The ODG (Object Dependency Graph) is the single output artifact, persisted via `
|
|
|
74
74
|
"status": "confirmed",
|
|
75
75
|
"account": "merchant_v1",
|
|
76
76
|
"objects": [
|
|
77
|
-
{ "id": "obj_permission", "type": "permission", "status": "planned", "reversible": true, "dependencies": [], "user_decisions": { "reuse": false, "indexes": { "provider": 1000
|
|
77
|
+
{ "id": "obj_permission", "type": "permission", "status": "planned", "reversible": true, "dependencies": [], "user_decisions": { "reuse": false, "indexes": { "provider": 1000 } } },
|
|
78
78
|
{ "id": "obj_service", "type": "service", "status": "planned", "reversible": true, "dependencies": ["obj_permission"], "user_decisions": { "name": "...", "publish": "deferred" } },
|
|
79
|
-
{ "id": "obj_machine", "type": "machine", "status": "planned", "reversible": false, "dependencies": ["obj_permission"], "user_decisions": { "nodes": [...], "forwards": [...], "publish": "deferred" } }
|
|
79
|
+
{ "id": "obj_machine", "type": "machine", "status": "planned", "reversible": false, "dependencies": ["obj_permission"], "user_decisions": { "nodes": [...], "forwards": [...], "publish": "deferred" } },
|
|
80
|
+
{ "id": "obj_arbitration", "type": "arbitration", "status": "planned", "reversible": true, "dependencies": [], "user_decisions": { "voting_guard_count": 3, "fee_balance": "1000 WOW", "note": "arbiters live in voting_guard, NOT Permission index 1500" } }
|
|
80
81
|
],
|
|
81
82
|
"phases": [
|
|
82
83
|
{ "phase": 1, "objects": ["obj_permission"], "gate": "user_confirm" },
|
|
83
|
-
{ "phase": 2, "objects": ["obj_service", "obj_machine"], "gate": "risk_check" },
|
|
84
|
+
{ "phase": 2, "objects": ["obj_service", "obj_machine", "obj_arbitration"], "gate": "risk_check" },
|
|
84
85
|
{ "phase": 3, "objects": ["obj_guard_*"], "gate": "passport_test" },
|
|
85
86
|
{ "phase": 4, "objects": ["obj_allocator_*"], "gate": "allocation_audit" },
|
|
86
87
|
{ "phase": 5, "objects": ["publish"], "gate": "final_audit" }
|
|
@@ -89,4 +90,4 @@ The ODG (Object Dependency Graph) is the single output artifact, persisted via `
|
|
|
89
90
|
}
|
|
90
91
|
```
|
|
91
92
|
|
|
92
|
-
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 `
|
|
93
|
+
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 `evaluate_project` (evaluation_type='risk'), `final_audit` runs the pre-publish audit checklist (see wowok-auditor).
|
package/wowok-provider/SKILL.md
CHANGED
|
@@ -22,7 +22,7 @@ when_to_use:
|
|
|
22
22
|
# WoWok Service Provider Guide
|
|
23
23
|
|
|
24
24
|
> **Role**: Service Provider (Merchant/Seller)
|
|
25
|
-
> **Related Skills**: [wowok-order](../wowok-order/SKILL.md) (customer), [wowok-machine](../wowok-machine/SKILL.md) (workflow), [wowok-messenger](../wowok-messenger/SKILL.md) (communication)
|
|
25
|
+
> **Related Skills**: [wowok-order](../wowok-order/SKILL.md) (customer), [wowok-machine](../wowok-machine/SKILL.md) (workflow), [wowok-messenger](../wowok-messenger/SKILL.md) (communication)
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
@@ -32,13 +32,13 @@ The following rule tables have been pushed down to the MCP knowledge layer and a
|
|
|
32
32
|
|
|
33
33
|
| Rule Category | MCP Knowledge Module | Applied By |
|
|
34
34
|
|---------------|---------------------|------------|
|
|
35
|
-
| Safety rules (confirmation, immutability, object reuse) | `knowledge/safety-rules.ts` | `
|
|
36
|
-
| Guard design patterns | `knowledge/guard-design-patterns.ts` | `
|
|
37
|
-
| Machine topology rules | `knowledge/machine-risk.ts` | `
|
|
38
|
-
| Scenario mode defaults | `knowledge/scenario-modes.ts` | `
|
|
35
|
+
| Safety rules (confirmation, immutability, object reuse) | `knowledge/safety-rules.ts` | `evaluate_project` + `onchain_operations` pre-publish |
|
|
36
|
+
| Guard design patterns | `knowledge/guard-design-patterns.ts` | `evaluate_project` (guard risk assessment) |
|
|
37
|
+
| Machine topology rules | `knowledge/machine-risk.ts` | `evaluate_project` (machine risk assessment) |
|
|
38
|
+
| Scenario mode defaults | `knowledge/scenario-modes.ts` | `create_project` (pass `project_industry` parameter) |
|
|
39
39
|
| Tool reference (gas, faucet, wrappers) | `knowledge/tools-reference.ts` | All tool calls automatically |
|
|
40
40
|
|
|
41
|
-
**How to use**: Call `project_operation` with `action: "
|
|
41
|
+
**How to use**: Call `project_operation` with `action: "evaluate_project"` (evaluation_type='risk') after completing your puzzle — the MCP server will automatically apply all relevant safety rules and return risk findings.
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
@@ -128,7 +128,7 @@ STEP 2: Trust Layer
|
|
|
128
128
|
- Allocator guard → pass/fail only
|
|
129
129
|
- Machine forward guard → if retained_submission is used, ensure b_submission:true entries match expected types
|
|
130
130
|
- Reward guard → pass/fail only
|
|
131
|
-
Guard design patterns: MCP `knowledge/guard-design-patterns.ts` (auto-applied via `
|
|
131
|
+
Guard design patterns: MCP `knowledge/guard-design-patterns.ts` (auto-applied via `evaluate_project`)
|
|
132
132
|
|
|
133
133
|
STEP 3: Business Logic (MODIFY)
|
|
134
134
|
├── Machine — bind Guards to forwards
|
|
@@ -181,7 +181,7 @@ STEP 5: Post-Publish (MODIFY Service — mutable after publish)
|
|
|
181
181
|
|
|
182
182
|
### Service Object Relationships
|
|
183
183
|
|
|
184
|
-
> **Boundary conditions**:
|
|
184
|
+
> **Boundary conditions**: Service/Machine are IMMUTABLE after publish; Payment is FROZEN at creation; Order/Progress/Arbitration operations are irreversible. Use `get_project_detail` to check whether a project has published objects.
|
|
185
185
|
|
|
186
186
|
```
|
|
187
187
|
Service (merchant storefront)
|
|
@@ -288,13 +288,13 @@ When a merchant wants to modify an existing service (change workflow, add alloca
|
|
|
288
288
|
| Scenario | Strategy | MCP Action |
|
|
289
289
|
|----------|----------|------------|
|
|
290
290
|
| Service NOT yet published | **In-place** — modify the current version directly | `onchain_operations` (modify) |
|
|
291
|
-
| Service IS published | **Fork** — create a new version, preserve original as read-only | `project_operation` → `
|
|
291
|
+
| Service IS published | **Fork** — create a new version, preserve original as read-only | `project_operation` → `create_version` (with `fork_from_version`) |
|
|
292
292
|
|
|
293
293
|
### Fork Workflow
|
|
294
294
|
|
|
295
|
-
When the service is already published and the user wants structural changes, use MCP `project_operation` action `
|
|
295
|
+
When the service is already published and the user wants structural changes, use MCP `project_operation` action `create_version` (with `fork_from_version` parameter; original v1 stays read-only; no on-chain objects copied since they're immutable). Then work on v2 reusing v1 on-chain objects by address and creating new objects only for changed parts. Publish v2 when ready — v1 continues running uninterrupted.
|
|
296
296
|
|
|
297
|
-
Before forking, verify necessity via `
|
|
297
|
+
Before forking, verify necessity via `get_project_detail` → `has_published_object=true` confirms fork is required (published objects are immutable).
|
|
298
298
|
|
|
299
299
|
### When to Recommend Forking
|
|
300
300
|
|
|
@@ -304,34 +304,6 @@ Before forking, verify necessity via `get_reversibility` (query_object_type: "se
|
|
|
304
304
|
|
|
305
305
|
---
|
|
306
306
|
|
|
307
|
-
## Distillation Review
|
|
308
|
-
|
|
309
|
-
The MCP server runs an offline flywheel that collects operational signals from your deployments and generates improvement proposals. Periodically review these proposals to optimize your service.
|
|
310
|
-
|
|
311
|
-
### When to Review
|
|
312
|
-
|
|
313
|
-
- After publishing a service and running it for a while
|
|
314
|
-
- When the user asks "any improvements?" or "what did the system learn?"
|
|
315
|
-
- As part of routine service maintenance
|
|
316
|
-
|
|
317
|
-
### How to Review
|
|
318
|
-
|
|
319
|
-
Use the [wowok-distill](../wowok-distill/SKILL.md) skill for guided review, or call MCP `project_operation` actions directly in order: (1) `get_improvement_queue` with `queue_filter_status: "pending"` to list proposals (title, priority, confidence, description); (2) `apply_improvement` with `proposal_id` + `review_status: "approved"` or `"rejected"` — approved proposals write overrides to `~/.wowok/overrides/` (config) or `patches/` (source); (3) `get_flywheel_config` to verify `applied_count` increased and `pending_count` decreased. Overrides are hot-loaded — next operation uses the new config immediately.
|
|
320
|
-
|
|
321
|
-
### Override Categories
|
|
322
|
-
|
|
323
|
-
Only these categories can be overridden (no arbitrary changes):
|
|
324
|
-
|
|
325
|
-
| Category | What It Controls | Example |
|
|
326
|
-
|----------|-----------------|---------|
|
|
327
|
-
| risk-thresholds | Risk assessment cutoffs | max_retries, min_deposit |
|
|
328
|
-
| descriptions | AI guidance text | industry descriptions |
|
|
329
|
-
| industry-profiles | Industry trait profiles | rental traits, freelance traits |
|
|
330
|
-
| scenario-defaults | Default parameters per scenario | default allocators, machine nodes |
|
|
331
|
-
| recovery-priorities | Error recovery order | which failures to fix first |
|
|
332
|
-
|
|
333
|
-
---
|
|
334
|
-
|
|
335
307
|
## Order Fulfillment
|
|
336
308
|
|
|
337
309
|
| Object | Purpose | Operation |
|
package/wowok-scenario/SKILL.md
CHANGED
|
@@ -107,35 +107,38 @@ When two modes specify different Permission indexes for the same role, user deci
|
|
|
107
107
|
|
|
108
108
|
## Phase 1 Mode Details (Freelance & Rental)
|
|
109
109
|
|
|
110
|
-
> **Mode defaults** (traits, machine_shape, guards, allocator, key_risk, build_notes) are provided by MCP `project_operation` action `
|
|
110
|
+
> **Mode defaults** (traits, machine_shape, guards, allocator, key_risk, build_notes) are provided by MCP `project_operation` action `create_project` — pass `project_industry` parameter and the MCP auto-fills scenario defaults from `knowledge/scenario-modes.ts`. The AI does NOT need to look up per-industry presets manually.
|
|
111
111
|
|
|
112
112
|
### Quick Reference (mode summaries)
|
|
113
113
|
|
|
114
114
|
| Mode | Machine Shape | Guards | Allocators | Key Risk |
|
|
115
115
|
|------|---------------|--------|------------|----------|
|
|
116
|
-
| `freelance` | 7 nodes (ordered→...→completed
|
|
117
|
-
| `rental` | 10 nodes (reserved→...→
|
|
116
|
+
| `freelance` | 7 nodes (ordered→...→completed→{wonder\|no_wonder}) | 5 (buy/deliver/accept/withdraw/rating_window) | 2 (100% provider at completed / 0 at wonder-no_wonder) | Customer never accepts delivery |
|
|
117
|
+
| `rental` | 10 nodes (reserved→...→completed→{wonder\|no_wonder}) | 5 (deposit/return/inspect/damage/rating_window) | 3 (rent at completed / refund-to-order via Allocator / damage deduct) | Owner claims damage without pre-rental WIP |
|
|
118
|
+
|
|
119
|
+
> **Dispute Independence**: `refunded`/`disputed`/`arb` MUST NOT appear as Machine nodes (R-M1-11 critical). Refunds flow through Allocator (100%→OrderHolder) or Arbitration (dispute → ruling → arb_withdraw), both off-Machine. Wonder/no_wonder are post-completion reputation terminals only.
|
|
118
120
|
|
|
119
121
|
### Freelance Audit Checklist (pre-publish BLOCKERS)
|
|
120
122
|
|
|
121
123
|
- `accept_guard` exists + `gen_passport` tested — BLOCKER (no acceptance = funds stuck)
|
|
122
|
-
-
|
|
123
|
-
- Machine
|
|
124
|
+
- 100% refund Allocator (sharing.who=OrderHolder) — BLOCKER (no refund path = dispute deadlock)
|
|
125
|
+
- Machine MUST NOT contain `refunded`/`disputed`/`arb` nodes (R-M1-11 critical) — BLOCKER. Refund flows through Allocator or Arbitration, both off-Machine
|
|
124
126
|
- `withdraw_guard` only triggers at `Progress.current=completed` — BLOCKER (prevents premature payout)
|
|
125
127
|
- `deliver_guard` validates WIP hash — recommended
|
|
128
|
+
- Optional: wonder/no_wonder terminals after `completed` for post-purchase rating (enables Reward wonder_praise template)
|
|
126
129
|
|
|
127
130
|
### Freelance Failure Playbooks
|
|
128
131
|
|
|
129
132
|
- Customer never accepts: `accept_guard` includes timeout auto-accept forward (threshold met by `namedOperator:""` after N days)
|
|
130
133
|
- Wrong deliverable hash: `deliver_guard` enforces WIP match → re-generate WIP, re-submit via `progress.hold:false`
|
|
131
|
-
- No arbiter assigned:
|
|
134
|
+
- No arbiter assigned: bind Arbitration via `service.arbitrations` AND configure `Arbitration.voting_guard` (NOT Permission index 1500 — arbiters live in voting_guard, never in Permission)
|
|
132
135
|
|
|
133
136
|
### Rental Audit Checklist (pre-publish BLOCKERS)
|
|
134
137
|
|
|
135
138
|
- `deposit_guard` validates `Order.balance ≥ deposit_amount` — BLOCKER (renter runs off with item)
|
|
136
|
-
-
|
|
139
|
+
- 100% refund Allocator (sharing.who=OrderHolder) — BLOCKER (no refund = deposit theft)
|
|
137
140
|
- `damage_guard` requires pre+post WIP hash diff — BLOCKER (no evidence = arbitrary deduction)
|
|
138
|
-
- Machine
|
|
141
|
+
- Machine MUST NOT contain `deposit_refunded`/`deposit_deducted`/`refunded` nodes (R-M1-11 critical) — BLOCKER. Deposit refund/deduction flows through Allocator, not Machine terminals
|
|
139
142
|
- Pre-rental WIP generated + hash stored — BLOCKER (can't prove damage without pre-hash)
|
|
140
143
|
- Rental period timeout forward on `in_use` node — recommended
|
|
141
144
|
|
|
@@ -154,7 +157,7 @@ When two modes specify different Permission indexes for the same role, user deci
|
|
|
154
157
|
|
|
155
158
|
### Mode Outline
|
|
156
159
|
|
|
157
|
-
- **Default Machine**: enroll → pay_tuition → session_1 → session_2 → ... → session_N → completed
|
|
160
|
+
- **Default Machine**: enroll → pay_tuition → session_1 → session_2 → ... → session_N → completed → {wonder | no_wonder}
|
|
158
161
|
- **Default Guards**: `attendance_guard` (per session, student signs), `refund_guard` (institution approval OR arbiter)
|
|
159
162
|
- **Default Allocator**: 1/N of tuition released per session attendance; unearned portion refundable on `refund_guard`
|
|
160
163
|
- **Key trait**: `setting_locked_time` on Service prevents institution from changing rules mid-semester (regulatory compliance)
|
|
@@ -168,7 +171,7 @@ When two modes specify different Permission indexes for the same role, user deci
|
|
|
168
171
|
|
|
169
172
|
### Mode Outline
|
|
170
173
|
|
|
171
|
-
- **Default Machine**: order → pay_deposit → pay_final → segment_D1 → segment_D2 → ... → return → completed
|
|
174
|
+
- **Default Machine**: order → pay_deposit → pay_final → segment_D1 → segment_D2 → ... → return → completed → {wonder | no_wonder}
|
|
172
175
|
- **Default Guards**: `segment_guard` (per-segment arrival WIP, e.g., hotel check-in), `refund_guard` (agency approval OR arbiter for trip interruption)
|
|
173
176
|
- **Default Allocator**: multi-tier — deposit 20% to agency, final 80% to agency, then agency-side Allocation splits to hotel/guide/driver per segment
|
|
174
177
|
- **Key trait**: multi-tier Allocation is WoWok's unique advantage over traditional travel platforms
|
package/wowok-distill/SKILL.md
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: wowok-distill
|
|
3
|
-
description: |
|
|
4
|
-
WoWok Distillation Review Orchestrator — guides merchants through reviewing and applying
|
|
5
|
-
AI-generated improvement proposals from the Loop Engineering flywheel.
|
|
6
|
-
|
|
7
|
-
This skill is a STATELESS CONVERSATION ORCHESTRATOR (per GLM5 §6.3): it does not hold
|
|
8
|
-
persistent state. All data comes from MCP project_operation actions:
|
|
9
|
-
- get_improvement_queue: list pending/approved proposals
|
|
10
|
-
- apply_improvement: review + apply a proposal (config_override or source_patch)
|
|
11
|
-
- get_flywheel_config: query reflow loop status
|
|
12
|
-
|
|
13
|
-
Use when: user asks "what improvements are suggested?", "show me optimization proposals",
|
|
14
|
-
"what did the system learn from my operations?", or wants to review/apply/reject
|
|
15
|
-
improvement proposals generated by the offline flywheel.
|
|
16
|
-
when_to_use:
|
|
17
|
-
- User asks about improvement suggestions or optimization proposals
|
|
18
|
-
- User wants to review what the flywheel has learned from their operations
|
|
19
|
-
- User wants to apply or reject a distillation proposal
|
|
20
|
-
- User mentions "improvement", "optimization", "flywheel", "distillation", "proposal", "override"
|
|
21
|
-
- User wants to see how their operational patterns have evolved
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
# WoWok Distillation Review Orchestrator
|
|
25
|
-
|
|
26
|
-
> **Role**: Distillation Review Orchestrator (Stateless)
|
|
27
|
-
> **Design**: GLM5 §6.3-§6.4 — zero persistent state, all data from MCP actions
|
|
28
|
-
> **Related Skills**: [wowok-provider](../wowok-provider/SKILL.md) (merchant context), [wowok-tools](../wowok-tools/SKILL.md) (MCP tool usage)
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## Core Concept
|
|
33
|
-
|
|
34
|
-
The WoWok MCP server runs an offline flywheel (Loop Engineering pipeline) that:
|
|
35
|
-
1. Collects operational signals from your project deployments
|
|
36
|
-
2. Updates industry cognition (trait drift, health scores)
|
|
37
|
-
3. Generates improvement proposals (risk threshold tweaks, description refinements, scenario defaults)
|
|
38
|
-
4. Persists proposals to `~/.wowok/improvement-queue.jsonl`
|
|
39
|
-
|
|
40
|
-
**This skill helps you review and act on those proposals.** It is a conversation orchestrator —
|
|
41
|
-
it asks questions, presents proposals in human-readable form, and calls MCP actions to apply
|
|
42
|
-
your decisions. It does NOT hold state between conversations.
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## Orchestration Flow (6 Steps)
|
|
47
|
-
|
|
48
|
-
### Step 1: Retrieve the Improvement Queue
|
|
49
|
-
|
|
50
|
-
Call the MCP `project_operation` action with:
|
|
51
|
-
```json
|
|
52
|
-
{
|
|
53
|
-
"action": "get_improvement_queue",
|
|
54
|
-
"queue_filter_status": "pending"
|
|
55
|
-
}
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
This returns a list of pending proposals. Each proposal has:
|
|
59
|
-
- `proposal_id`: unique identifier
|
|
60
|
-
- `type`: proposal category (risk-threshold / descriptions / industry-profiles / scenario-defaults / recovery-priorities)
|
|
61
|
-
- `priority`: P0 (critical) / P1 (high) / P2 (medium) / P3 (low)
|
|
62
|
-
- `title`: short description
|
|
63
|
-
- `description`: detailed explanation
|
|
64
|
-
- `confidence`: 0.0-1.0 (how confident the flywheel is)
|
|
65
|
-
- `apply_mode`: "config_override" (writes to ~/.wowok/overrides/) or "source_patch" (produces patches/)
|
|
66
|
-
- `proposed_change`: the specific change being proposed
|
|
67
|
-
|
|
68
|
-
### Step 2: Present Proposals with Narrative
|
|
69
|
-
|
|
70
|
-
For each proposal, present to the user:
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
📋 Proposal [P1] proposal-001: "Lower retry threshold for rental deposits"
|
|
74
|
-
|
|
75
|
-
Type: risk-thresholds
|
|
76
|
-
Confidence: 0.82 (high)
|
|
77
|
-
Apply Mode: config_override (safe — writes to ~/.wowok/overrides/risk-thresholds.json)
|
|
78
|
-
|
|
79
|
-
Current: max_deposit_retries = 5
|
|
80
|
-
Proposed: max_deposit_retries = 3
|
|
81
|
-
|
|
82
|
-
Rationale: Based on 23 rental operations analyzed, 92% of successful deposits
|
|
83
|
-
complete within 3 retries. Reducing the threshold saves gas on failed retries
|
|
84
|
-
without impacting success rate.
|
|
85
|
-
|
|
86
|
-
Impact: Affects rental industry profile only. No effect on other industries.
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Step 3: Explain the "Why" (Narrative)
|
|
90
|
-
|
|
91
|
-
Use the proposal's `description` and `evidence` fields to explain:
|
|
92
|
-
- **What pattern was detected** in the user's operational history
|
|
93
|
-
- **Why the flywheel recommends this change** (data-driven, not opinion)
|
|
94
|
-
- **What happens if applied** (immediate effect on future operations)
|
|
95
|
-
- **What happens if rejected** (no change — proposal stays in queue as "rejected")
|
|
96
|
-
|
|
97
|
-
### Step 4: Guide User Decision
|
|
98
|
-
|
|
99
|
-
Present three options for each proposal:
|
|
100
|
-
|
|
101
|
-
| Option | Action | MCP Call |
|
|
102
|
-
|--------|--------|----------|
|
|
103
|
-
| **Apply** | Approve + apply immediately | `apply_improvement` with `review_status: "approved"` |
|
|
104
|
-
| **Reject** | Mark as not wanted | `apply_improvement` with `review_status: "rejected"` |
|
|
105
|
-
| **Later** | Skip for now (stays pending) | No call — move to next proposal |
|
|
106
|
-
|
|
107
|
-
### Step 5: Execute the Decision
|
|
108
|
-
|
|
109
|
-
When the user chooses "Apply", call:
|
|
110
|
-
```json
|
|
111
|
-
{
|
|
112
|
-
"action": "apply_improvement",
|
|
113
|
-
"proposal_id": "proposal-001",
|
|
114
|
-
"review_status": "approved"
|
|
115
|
-
}
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
The MCP server will:
|
|
119
|
-
- For `config_override`: write the override to `~/.wowok/overrides/<category>.json`
|
|
120
|
-
- For `source_patch`: produce a patch file in `~/.wowok/patches/`
|
|
121
|
-
- Update the proposal status to "applied"
|
|
122
|
-
- Refresh the knowledge layer cache (so future actions use the new config)
|
|
123
|
-
|
|
124
|
-
### Step 6: Confirm the Result
|
|
125
|
-
|
|
126
|
-
After applying, present:
|
|
127
|
-
```
|
|
128
|
-
✅ Proposal proposal-001 applied successfully!
|
|
129
|
-
|
|
130
|
-
Override written to: ~/.wowok/overrides/risk-thresholds.json
|
|
131
|
-
Effect: Future rental operations will use max_deposit_retries=3
|
|
132
|
-
|
|
133
|
-
The knowledge layer has been refreshed. New operations will use the updated
|
|
134
|
-
threshold immediately. No restart needed.
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
---
|
|
138
|
-
|
|
139
|
-
## Flywheel Status Query
|
|
140
|
-
|
|
141
|
-
If the user asks about the overall flywheel status (not specific proposals), call:
|
|
142
|
-
```json
|
|
143
|
-
{
|
|
144
|
-
"action": "get_flywheel_config"
|
|
145
|
-
}
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
This returns:
|
|
149
|
-
- `queue_path`: where proposals are stored
|
|
150
|
-
- `overrides_dir`: where overrides live
|
|
151
|
-
- `patches_dir`: where patches are produced
|
|
152
|
-
- `total_proposals` / `pending_count` / `approved_count` / `applied_count` / `rejected_count`
|
|
153
|
-
- `override_files`: list of existing override files
|
|
154
|
-
- `recent_proposals`: recent 10 proposals (all statuses)
|
|
155
|
-
- `reflow_status`: "active" (pending proposals exist) / "idle" (no proposals) / "blocked" (approved but not applied)
|
|
156
|
-
|
|
157
|
-
---
|
|
158
|
-
|
|
159
|
-
## Override Categories (§4.4 Whitelist)
|
|
160
|
-
|
|
161
|
-
Only these 5 categories can be overridden via `config_override`:
|
|
162
|
-
|
|
163
|
-
| Category | Description | Example |
|
|
164
|
-
|----------|-------------|---------|
|
|
165
|
-
| `risk-thresholds` | Risk assessment thresholds | max_retries, min_deposit, severity_cutoffs |
|
|
166
|
-
| `descriptions` | Text descriptions for AI guidance | industry descriptions, role advice |
|
|
167
|
-
| `industry-profiles` | Industry trait profiles | rental traits, freelance traits |
|
|
168
|
-
| `scenario-defaults` | Default parameters per scenario | default allocators, default machine nodes |
|
|
169
|
-
| `recovery-priorities` | Error recovery priority orders | which failures to fix first |
|
|
170
|
-
|
|
171
|
-
**Source patches** (`source_patch` mode) are for changes that can't be expressed as config
|
|
172
|
-
overrides — they produce `.patch` files that the user can manually review and apply to the
|
|
173
|
-
MCP source code.
|
|
174
|
-
|
|
175
|
-
---
|
|
176
|
-
|
|
177
|
-
## Conversation Patterns
|
|
178
|
-
|
|
179
|
-
### Pattern A: "What improvements do you have?"
|
|
180
|
-
|
|
181
|
-
```
|
|
182
|
-
User: What improvements do you have for me?
|
|
183
|
-
AI: Let me check your improvement queue...
|
|
184
|
-
[calls get_improvement_queue with queue_filter_status="pending"]
|
|
185
|
-
AI: You have 3 pending proposals:
|
|
186
|
-
1. [P1] Lower retry threshold for rental deposits (confidence: 82%)
|
|
187
|
-
2. [P2] Update freelance industry description (confidence: 71%)
|
|
188
|
-
3. [P3] Adjust default allocator for travel scenarios (confidence: 65%)
|
|
189
|
-
Would you like to review them one by one?
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### Pattern B: "Tell me more about proposal 1"
|
|
193
|
-
|
|
194
|
-
```
|
|
195
|
-
User: Tell me more about proposal 1
|
|
196
|
-
AI: 📋 Proposal proposal-001: "Lower retry threshold for rental deposits"
|
|
197
|
-
...
|
|
198
|
-
[presents full details per Step 2-3]
|
|
199
|
-
Would you like to Apply, Reject, or review later?
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
### Pattern C: "Apply proposal 1"
|
|
203
|
-
|
|
204
|
-
```
|
|
205
|
-
User: Apply proposal 1
|
|
206
|
-
AI: Applying proposal-001...
|
|
207
|
-
[calls apply_improvement with proposal_id="proposal-001", review_status="approved"]
|
|
208
|
-
AI: ✅ Applied! The override is now active.
|
|
209
|
-
Next rental operations will use the new threshold.
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## Version Negotiation
|
|
215
|
-
|
|
216
|
-
When the MCP server is upgraded, this skill automatically negotiates compatibility:
|
|
217
|
-
|
|
218
|
-
| Version Difference | Skill Behavior | User Impact |
|
|
219
|
-
|-------------------|----------------|-------------|
|
|
220
|
-
| MCP major > skill major | **Passthrough** — skill only forwards MCP responses, no orchestration | Reduced narrative, MCP actions still work |
|
|
221
|
-
| MCP minor > skill minor | **Full** — skill works normally, new MCP actions may not be orchestrated | Some new features need client AI to handle |
|
|
222
|
-
| Versions match | **Full** — best experience | Optimal |
|
|
223
|
-
|
|
224
|
-
The user does not need to manage this — the skill detects the MCP version from the
|
|
225
|
-
`get_flywheel_config` response and adapts automatically.
|
|
226
|
-
|
|
227
|
-
---
|
|
228
|
-
|
|
229
|
-
## Anti-Patterns
|
|
230
|
-
|
|
231
|
-
| Never... | Because... |
|
|
232
|
-
|----------|------------|
|
|
233
|
-
| Fabricate proposal content | Proposals come from data-driven flywheel analysis — always use MCP data |
|
|
234
|
-
| Apply proposals without user confirmation | Overrides affect future operations — user must explicitly approve |
|
|
235
|
-
| Skip the narrative explanation | User needs to understand WHY before deciding |
|
|
236
|
-
| Hold conversation state between sessions | This skill is stateless — re-fetch from MCP each time |
|
|
237
|
-
| Modify the improvement-queue.jsonl directly | Always use `apply_improvement` action for audit trail |
|