@wowok/skills 1.2.1 → 1.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/package.json +2 -1
- package/references/glossary.ts +297 -0
- package/references/guard-scenario-ledger.md +353 -0
- package/references/guard-template-library.md +481 -0
- package/references/machine-design-reference.md +398 -0
- package/references/machine-scenario-ledger.md +227 -0
- package/references/machine-template-library.md +522 -0
- package/references/merchant-scenario-coordination.md +383 -0
- package/references/object-collaboration.md +362 -0
- package/references/onchain-constants.md +81 -0
- package/scripts/install.js +15 -0
- package/wowok-auditor/APPENDIX.md +2 -2
- package/wowok-auditor/SKILL.md +1 -1
- package/wowok-onboard/APPENDIX.md +32 -4
- package/wowok-planner/APPENDIX.md +25 -1
- package/wowok-provider/APPENDIX.md +28 -0
|
@@ -9,6 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
A 10-round dialogue for the merchant operations journey: from "I want to set up a service" through "published, live, and accepting orders". This dialogue assumes the merchant has an account (per [wowok-onboard](../wowok-onboard/SKILL.md) R1) and may have a partial configuration. Each round maps to one R-item in the §PRE-FLIGHT checklist or one STEP in the §Service Build Lifecycle. The §Anti-Fabrication Rules are non-negotiable throughout — the AI never invents products, prices, workflow, or fund splits.
|
|
11
11
|
|
|
12
|
+
## Project-Based Deployment Integration
|
|
13
|
+
|
|
14
|
+
The provider flow integrates with the MCP project-based deployment pipeline (5 stages). The relevant stages for the operations journey are:
|
|
15
|
+
|
|
16
|
+
- **Stage 3 (Risk Calibration)** → R5 — call `project_operation` → `action: "aggregate_risks"` to replace the manual pre-publish audit checklist with an MCP-driven risk assessment.
|
|
17
|
+
- **Stage 4 (Deployment Doc)** → after R5 — call `project_operation` → `action: "generate_deployment_doc"` to produce the markdown deployment doc with D-01..D-18 scanner checks before publish.
|
|
18
|
+
- **Stage 5 (Substep Trace)** → R6 — call `project_operation` → `action: "trace_substeps"` to verify publish substep continuity before the irreversible publish sequence.
|
|
19
|
+
|
|
20
|
+
All `project_operation` calls use the unified `project` + `version` keys from the prior planning phase (wowok-planner R1). The `next_action` field returned by each call drives the stage transition.
|
|
21
|
+
|
|
12
22
|
### R1: PRE-FLIGHT Checklist Presentation
|
|
13
23
|
|
|
14
24
|
**AI Goal**: Present the R1-R7 checklist (plus conditional C1-C3) and collect the user's intent for each item: REUSE existing, CREATE new, or PENDING. Do NOT proceed to any on-chain action until all items are confirmed.
|
|
@@ -103,6 +113,10 @@ A 10-round dialogue for the merchant operations journey: from "I want to set up
|
|
|
103
113
|
- Confirm: Allocator splits match your stated revenue model?
|
|
104
114
|
|
|
105
115
|
**Tool Calls**:
|
|
116
|
+
0. `project_operation` → `action: "aggregate_risks"` with `project`, `version`, `puzzles` (from prior planning) — MCP 内部完成风险评估, replacing the manual audit checklist.
|
|
117
|
+
- If `can_proceed: false` (CRITICAL risks) → block publish, fix risks
|
|
118
|
+
- If `can_proceed: true` → proceed to deployment doc generation
|
|
119
|
+
- The `next_action` field guides the next step
|
|
106
120
|
1. `guard2file` → export all Guards, present for review.
|
|
107
121
|
2. `machineNode2file` → export the Machine, present for review.
|
|
108
122
|
3. `query_toolkit` → `onchain_objects` for the Service — re-check `machine`, `order_allocators`, `buy_guard`, `permission` all bound correctly.
|
|
@@ -114,6 +128,12 @@ A 10-round dialogue for the merchant operations journey: from "I want to set up
|
|
|
114
128
|
|
|
115
129
|
**Checkpoint**: Persist `{ round: R5, audit_pass: true, user_confirmed: true, guard_exports: [...], machine_export: <path> }`.
|
|
116
130
|
|
|
131
|
+
**Stage 4 Gate: Deployment Document**
|
|
132
|
+
After audit passes, call `project_operation` → `action: "generate_deployment_doc"` with `project`, `version`, `business_intent`, `objects`, `edges`, `steps`, `risk_status`, `risk_critical_count`, `risk_high_count`.
|
|
133
|
+
- Returns markdown deployment doc + D-01..D-18 scanner checks
|
|
134
|
+
- If `can_proceed: false` (D-errors) → fix doc errors before publish
|
|
135
|
+
- If `can_proceed: true` → proceed to R6 (Publish)
|
|
136
|
+
|
|
117
137
|
### R6: Publish (Machine First, Then Service)
|
|
118
138
|
|
|
119
139
|
**AI Goal**: Execute STEP 4: publish the Machine (irreversible), bind it to the Service, then publish the Service (irreversible). Both `machine`/`order_allocators` fields become immutable on Service publish.
|
|
@@ -123,12 +143,20 @@ A 10-round dialogue for the merchant operations journey: from "I want to set up
|
|
|
123
143
|
- Confirm the operating account has sufficient gas.
|
|
124
144
|
|
|
125
145
|
**Tool Calls**:
|
|
146
|
+
0. `project_operation` → `action: "trace_substeps"` with `project`, `version`, `network` (testnet first), `substeps` (from Stage 4 deployment doc) — 验证发布子步骤衔接完整性.
|
|
147
|
+
- If `can_proceed: false` → fix substep issues before publish
|
|
148
|
+
- If `can_proceed: true` → proceed with publish sequence (Machine first, then Service)
|
|
126
149
|
1. `onchain_operations` → `operation_type: "machine"` with `publish: true` — Machine locked.
|
|
127
150
|
2. `onchain_operations` → `operation_type: "service"` MODIFY to bind `data.machine = "<published_machine_id>"`.
|
|
128
151
|
3. `onchain_operations` → `operation_type: "service"` with `publish: true` — Service `machine` and `order_allocators` locked.
|
|
129
152
|
4. Post-publish verification: `query_toolkit` → `onchain_objects` for the Service — confirm `bPublished: true`, `machine` field locked, `order_allocators` locked.
|
|
130
153
|
5. `onchain_events` → confirm Publish event fired.
|
|
131
154
|
|
|
155
|
+
**Publish Order (Irreversibility Notes)**:
|
|
156
|
+
- Machine publish is irreversible (immutable) — nodes, forwards, guards, thresholds all become immutable.
|
|
157
|
+
- Service publish is irreversible (immutable) — `machine` and `order_allocators` fields become locked.
|
|
158
|
+
- **Order**: publish Machine FIRST, then publish Service. Service publish requires the Machine to be published; binding `data.machine` to an unpublished Machine will revert.
|
|
159
|
+
|
|
132
160
|
**Success Criteria**: Both Machine and Service `bPublished: true`. Service `machine` and `order_allocators` fields are immutable. Publish event recorded.
|
|
133
161
|
|
|
134
162
|
**Fallback**: Pre-publish audit fails → return to R5 and fix; do NOT publish. Publish transaction fails (gas) → re-faucet, retry. Service publish fails with "machine not published" → confirm Machine publish succeeded first (use `env.no_cache: true`). Post-publish immutability check fails (rare) → escalate; protocol-level invariant violated.
|