@wowok/skills 1.1.10 → 1.1.12

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.
@@ -0,0 +1,275 @@
1
+ # Mode Details — Freelance & Rental (Phase 1 Priority)
2
+
3
+ > This file contains the full detail for Phase 1 priority industry modes.
4
+ > Loaded on-demand when a user selects freelance or rental mode.
5
+ > Main skill: [SKILL.md](./SKILL.md)
6
+
7
+ ---
8
+
9
+ ## Freelance Mode (Phase 1 Priority)
10
+
11
+ ### Industry Traits
12
+
13
+ ```typescript
14
+ const freelanceTraits: IndustryTraits = {
15
+ has_logistics: false,
16
+ communication_heavy: true,
17
+ pure_digital: true,
18
+ long_cycle: false,
19
+ deposit_required: false,
20
+ multi_tier_allocation: false,
21
+ };
22
+ ```
23
+
24
+ ### Applicable Scenarios
25
+
26
+ - Designer taking logo / UI / poster commissions
27
+ - Developer taking outsourced projects
28
+ - Consultant charging by hour or milestone
29
+ - Writer / translator / voice-over artist
30
+
31
+ ### Default Permission Indexes
32
+
33
+ | Role | permissionIndex | Scope |
34
+ |------|-----------------|-------|
35
+ | Service Provider | 1000 | Create / advance / allocate / arbitration (user-defined, ≥1000) |
36
+ | Arbiter | 1500 | Arbitration operations only (user-defined, ≥1000) |
37
+ | Customer | n/a | Operates via `namedOperator: ""` on Forwards (order owner/agents) — no permissionIndex needed |
38
+
39
+ > **Note**: Indexes < 1000 are reserved for `BuiltinPermissionIndex` (e.g., 100 = `REPOSITORY_NEW`, 500 = unassigned). Customer actions use `namedOperator: ""` per wowok-machine §Forward Permission Model, not a permissionIndex.
40
+
41
+ ### Default Machine Template
42
+
43
+ ```
44
+ ordered → in_progress → delivered → accepted → completed
45
+
46
+ └→ disputed → refunded (terminal)
47
+ ```
48
+
49
+ | Node | prev_node | threshold | Forwards |
50
+ |------|-----------|-----------|----------|
51
+ | `ordered` | `""` (entry) | 1 | `place_order` (weight 1, namedOperator: `""`, customer) |
52
+ | `in_progress` | `ordered` | 1 | `accept_order` (weight 1, permissionIndex 1000, provider) |
53
+ | `delivered` | `in_progress` | 1 | `submit_deliverable` (weight 1, permissionIndex 1000, provider, guard: `deliver_guard`) |
54
+ | `accepted` | `delivered` | 1 | `confirm_acceptance` (weight 1, namedOperator: `""`, customer, guard: `accept_guard`) |
55
+ | `completed` | `accepted` | 1 | `finalize` (weight 1, permissionIndex 1000, provider) |
56
+ | `disputed` | `delivered` | 1 | `open_dispute` (weight 1, namedOperator: `""`, customer) |
57
+ | `refunded` | `disputed` | 1 | `arbiter_rule_refund` (weight 1, permissionIndex 1500, arbiter) |
58
+
59
+ > `buy_guard` binds to `Service.buy_guard` (not a Machine Forward) — gates order placement at the Service level.
60
+
61
+ ### Default Guard Templates
62
+
63
+ | Guard Name | Host / Trigger | Validation Logic |
64
+ |-----------|----------------|-------------------|
65
+ | `buy_guard` | Service.buy_guard (order placement) | Verify customer KYC (Personal.mark present) + amount ≤ cap |
66
+ | `deliver_guard` | Machine Forward `submit_deliverable` | Verify WIP hash matches submitted deliverable |
67
+ | `accept_guard` | Machine Forward `confirm_acceptance` | Customer signature OR timeout auto-accept (forward with threshold met by timeout) |
68
+ | `withdraw_guard` | Allocator trigger (fires at `completed` terminal) | Progress.current = `completed` (verify acceptance path completed before releasing funds) |
69
+ | `refund_guard` | Allocator trigger (fires at `refunded` terminal) | Progress.current = `refunded` (verify arbiter ruling or provider default confirmed) |
70
+
71
+ ### Default Allocator Strategy
72
+
73
+ ```typescript
74
+ // Wrapped in AllocatorsSchema: { description, threshold, allocators: [...] }
75
+ const freelanceAllocators = [
76
+ {
77
+ guard: "withdraw_guard", // Allocator trigger guard (fires at completed terminal)
78
+ sharing: [
79
+ { who: { Entity: { name_or_address: "<service_name>" } }, sharing: 10000, mode: "Rate" }, // 100% to provider
80
+ ],
81
+ },
82
+ {
83
+ guard: "refund_guard", // Allocator trigger guard (fires at refunded terminal)
84
+ sharing: [
85
+ { who: { GuardIdentifier: 0 }, sharing: 10000, mode: "Rate" }, // 100% to Order (customer withdraws)
86
+ ],
87
+ },
88
+ // Platform: 0% in Phase 1 (zero take-rate to lower barrier)
89
+ ];
90
+ ```
91
+
92
+ ### 10-Round Build Script (Freelance)
93
+
94
+ | Round | Goal | MCP Operation | Mode Default Applied |
95
+ |-------|------|---------------|----------------------|
96
+ | R1 | Account setup | `account_operation.gen` + `faucet` | — |
97
+ | R2 | Industry confirm | (internal trait match) | freelance mode loaded |
98
+ | R3 | Service definition | `onchain_operations.service` CREATE | name="Freelance Service", type_parameter=`0x2::wow::WOW` |
99
+ | R4 | Permission | `onchain_operations.permission` CREATE or REUSE | indexes 1000/1500 (customer uses namedOperator: "") |
100
+ | R5 | Machine | `onchain_operations.machine` CREATE | 7-node template above, publish=false |
101
+ | R6 | Progress binding | `onchain_operations.progress` CREATE + `machine` MODIFY | mirror all nodes |
102
+ | R7 | Guards | `onchain_operations.guard` CREATE × 5 + `gen_passport` test | 5 Guard templates above |
103
+ | R8 | Allocation | `onchain_operations.allocation` CREATE × 2 + `service.order_allocators` MODIFY | 100% provider + 100% refund path |
104
+ | R9 | Test order | `order` CREATE + `progress` advance + `allocation.alloc_by_guard` | full flow dry run |
105
+ | R10 | Publish | `machine` publish + `service` publish | pre-publish audit must PASS |
106
+
107
+ ### Audit Checklist (Freelance-Specific)
108
+
109
+ | # | Check | Blocker? |
110
+ |---|-------|----------|
111
+ | 1 | `accept_guard` exists and tests PASS | YES (no acceptance = funds stuck) |
112
+ | 2 | `refund_guard` exists and `customer_refund` Allocator covers 100% | YES (no refund = dispute deadlock) |
113
+ | 3 | `deliver_guard` validates WIP hash | Warning (recommended) |
114
+ | 4 | Machine has terminal nodes for both `completed` and `refunded` paths | YES (dead-end = stuck funds) |
115
+ | 5 | All Forwards reference valid permissionIndex (≥1000) OR `namedOperator` in R4 Permission | YES |
116
+ | 6 | `withdraw_guard` only triggers when `Progress.current = completed` | YES (prevents premature payout) |
117
+ | 7 | Service `description` includes deliverable scope (for arbitration evidence) | Warning |
118
+
119
+ ### Failure Playbooks (Freelance-Specific)
120
+
121
+ **P1: Customer never accepts delivery**
122
+ - Mitigation: `accept_guard` includes timeout auto-accept forward (threshold met by `namedOperator: ""` after N days).
123
+ - Recovery: call `progress.hold: false` on the timeout forward to auto-advance.
124
+
125
+ **P2: Provider submits wrong deliverable hash**
126
+ - Mitigation: `deliver_guard` enforces WIP hash match.
127
+ - Recovery: provider re-generates WIP via `wip_file.generate`, re-submits via `progress.hold: false` with corrected hash.
128
+
129
+ **P3: Dispute opens but no arbiter assigned**
130
+ - Mitigation: R4 Permission must include `permissionIndex: 1500` for arbiter role; R8 must bind an existing Arbitration Service.
131
+ - Recovery: bind Arbitration via `service.arbitrations.list` MODIFY before publish.
132
+
133
+ ---
134
+
135
+ ## Rental Mode (Phase 1 Priority)
136
+
137
+ ### Industry Traits
138
+
139
+ ```typescript
140
+ const rentalTraits: IndustryTraits = {
141
+ has_logistics: true,
142
+ communication_heavy: false,
143
+ pure_digital: false,
144
+ long_cycle: false,
145
+ deposit_required: true,
146
+ multi_tier_allocation: false,
147
+ };
148
+ ```
149
+
150
+ ### Applicable Scenarios
151
+
152
+ - Photography equipment rental
153
+ - Vehicle rental
154
+ - Property short-let
155
+ - Power tools / luxury goods rental
156
+
157
+ ### Default Permission Indexes
158
+
159
+ | Role | permissionIndex | Scope |
160
+ |------|-----------------|-------|
161
+ | Owner | 1000 | Publish / inspect / deduct deposit / refund (user-defined, ≥1000) |
162
+ | Arbiter | 1500 | Damage dispute resolution (user-defined, ≥1000) |
163
+ | Renter | n/a | Operates via `namedOperator: ""` on Forwards (order owner/agents) — no permissionIndex needed |
164
+
165
+ > **Note**: Indexes < 1000 are reserved for `BuiltinPermissionIndex` (e.g., 100 = `REPOSITORY_NEW`, 500 = unassigned). Renter actions use `namedOperator: ""` per wowok-machine §Forward Permission Model.
166
+
167
+ ### Default Machine Template
168
+
169
+ ```
170
+ reserved → paid_deposit → in_use → returned → inspected → deposit_refunded → completed
171
+
172
+ ├→ damage_confirmed → deposit_deducted (terminal)
173
+ └→ arbiter_rule (terminal)
174
+ ```
175
+
176
+ | Node | prev_node | threshold | Forwards |
177
+ |------|-----------|-----------|----------|
178
+ | `reserved` | `""` | 1 | `place_reservation` (weight 1, namedOperator: `""`, renter) |
179
+ | `paid_deposit` | `reserved` | 1 | `pay_deposit_and_rent` (weight 1, namedOperator: `""`, renter) |
180
+ | `in_use` | `paid_deposit` | 1 | `pickup` (weight 1, permissionIndex 1000, owner) — gated by `deposit_guard` |
181
+ | `returned` | `in_use` | 1 | `trigger_return` (weight 1, namedOperator: `""`, renter, guard: `return_guard`) OR timeout auto-return |
182
+ | `inspected` | `returned` | 1 | `inspect_item` (weight 1, permissionIndex 1000, owner) — gated by `inspect_guard` |
183
+ | `deposit_refunded` | `inspected` | 1 | `approve_return` (weight 1, permissionIndex 1000, owner) — gated by `refund_guard` |
184
+ | `completed` | `deposit_refunded` | 1 | `finalize` (weight 1, permissionIndex 1000, owner) |
185
+ | `damage_confirmed` | `inspected` | 1 | `claim_damage` (weight 1, permissionIndex 1000, owner) — gated by `damage_guard` |
186
+ | `deposit_deducted` | `damage_confirmed` | 1 | `deduct_deposit` (weight 1, permissionIndex 1000, owner) |
187
+ | `arbiter_rule` | `inspected` | 1 | `escalate_arbiter` (weight 1, namedOperator: `""` AND permissionIndex 1000, either party) |
188
+
189
+ > The `arbiter_rule` terminal has no Service-level Allocator — disputes filed via this path are resolved by the bound Arbitration object's compensation fund mechanism (see Audit Checklist #5).
190
+
191
+ ### Default Guard Templates
192
+
193
+ | Guard Name | Host / Trigger | Validation Logic |
194
+ |-----------|----------------|-------------------|
195
+ | `deposit_guard` | Machine Forward `pickup` AND Allocator trigger (fires at `in_use`) | Order.balance ≥ deposit amount (deposit frozen in escrow) |
196
+ | `return_guard` | Machine Forward `trigger_return` | Renter signature OR rental period timeout |
197
+ | `inspect_guard` | Machine Forward `inspect_item` | Owner submission confirming item state (WIP hash of return condition) |
198
+ | `refund_guard` | Machine Forward `approve_return` AND Allocator trigger (fires at `deposit_refunded`) | Inspection passed (Progress history shows `inspect_item` accomplished) |
199
+ | `damage_guard` | Machine Forward `claim_damage` AND Allocator trigger (fires at `damage_confirmed`) | Owner submission + WIP hash diff (pre-rental vs post-rental) |
200
+
201
+ ### Default Allocator Strategy
202
+
203
+ ```typescript
204
+ // Wrapped in AllocatorsSchema: { description, threshold, allocators: [...] }
205
+ const rentalAllocators = [
206
+ {
207
+ guard: "deposit_guard", // Allocator trigger guard (fires at pickup)
208
+ sharing: [
209
+ { who: { Entity: { name_or_address: "<service_name>" } }, sharing: 10000, mode: "Rate" }, // 100% rent to owner immediately
210
+ ],
211
+ },
212
+ {
213
+ guard: "refund_guard", // Allocator trigger guard (fires on inspection pass)
214
+ sharing: [
215
+ { who: { GuardIdentifier: 0 }, sharing: 10000, mode: "Rate" }, // 100% deposit back to renter (Order)
216
+ ],
217
+ },
218
+ {
219
+ guard: "damage_guard", // Allocator trigger guard (fires on damage claim)
220
+ sharing: [
221
+ { who: { Entity: { name_or_address: "<service_name>" } }, sharing: 10000, mode: "Rate" }, // 100% deposit to owner as compensation
222
+ ],
223
+ },
224
+ ];
225
+ ```
226
+
227
+ ### 10-Round Build Script (Rental)
228
+
229
+ | Round | Goal | MCP Operation | Mode Default Applied |
230
+ |-------|------|---------------|----------------------|
231
+ | R1 | Account setup | `account_operation.gen` + `faucet` | — |
232
+ | R2 | Industry confirm | (internal trait match) | rental mode loaded |
233
+ | R3 | Service definition | `onchain_operations.service` CREATE | name includes item + deposit terms in description |
234
+ | R4 | Permission | `onchain_operations.permission` CREATE or REUSE | indexes 1000/1500 (renter uses namedOperator: "") |
235
+ | R5 | Machine | `onchain_operations.machine` CREATE | 10-node template above |
236
+ | R6 | Progress binding | `onchain_operations.progress` CREATE | mirror all nodes |
237
+ | R7 | Guards | `onchain_operations.guard` CREATE × 5 + `gen_passport` test | 5 Guard templates above |
238
+ | R8 | Allocation | `onchain_operations.allocation` CREATE × 3 + `service.order_allocators` MODIFY | rent + refund + deduct paths |
239
+ | R9 | Test order | `order` CREATE + `progress` advance × 10 + `allocation.alloc_by_guard` × 3 | full flow dry run including damage path |
240
+ | R10 | Publish | `machine` publish + `service` publish | pre-publish audit must PASS, deposit path verified |
241
+
242
+ ### Audit Checklist (Rental-Specific)
243
+
244
+ | # | Check | Blocker? |
245
+ |---|-------|----------|
246
+ | 1 | `deposit_guard` validates `Order.balance ≥ deposit_amount` | YES (no deposit = renter can run off with item) |
247
+ | 2 | `refund_guard` + `deposit_refund_to_renter` Allocator covers 100% refund | YES (no refund path = deposit theft) |
248
+ | 3 | `damage_guard` requires WIP hash diff (pre vs post rental) | YES (no evidence = arbitrary deduction) |
249
+ | 4 | Machine includes both `deposit_refunded` and `deposit_deducted` terminal paths | YES |
250
+ | 5 | Arbitration bound to Service via `arbitrations.list` | Warning (recommended for damage disputes) |
251
+ | 6 | Rental period timeout forward exists on `in_use` node | Warning (prevents items never returned) |
252
+ | 7 | Deposit amount recorded in Service `description` for evidence | Warning |
253
+ | 8 | Pre-rental WIP generated and hash stored for post-rental comparison | YES (without pre-hash, damage cannot be proven) |
254
+
255
+ ### Failure Playbooks (Rental-Specific)
256
+
257
+ **P1: Renter never returns item**
258
+ - Mitigation: `in_use` node has timeout forward to `returned` (auto-return) or directly to `damage_confirmed` (treat as non-return).
259
+ - Recovery: after timeout, owner calls `progress.hold: false` on the timeout forward; `damage_guard` validates non-return; `deposit_deduct_to_owner` Allocator fires.
260
+
261
+ **P2: Owner claims damage but no pre-rental WIP exists**
262
+ - Mitigation: R8 audit checklist #8 blocks publish without pre-rental WIP.
263
+ - Recovery: impossible post-publish — must create new Service with WIP. Surface this as a hard lesson; prevent with audit.
264
+
265
+ **P3: Deposit amount insufficient for damage**
266
+ - Mitigation: Service `description` records deposit amount; `deposit_guard` validates balance.
267
+ - Recovery: Arbitration can rule additional payment via `arbiter_rule` node, but only up to deposited amount. For excess, off-chain recovery.
268
+
269
+ **P4: Owner refuses to inspect (blocks refund)**
270
+ - Mitigation: `returned` node has timeout forward to `inspected` (auto-inspect pass) if owner doesn't act within N days.
271
+ - Recovery: renter calls timeout forward, `inspect_guard` auto-passes, `refund_guard` fires, deposit returns to renter.
272
+
273
+ **P5: Double-spend dispute (both parties claim deposit)**
274
+ - Mitigation: Machine topology ensures `inspected` has mutually exclusive forwards (`approve_return` vs `claim_damage`), first-Pair-wins rule.
275
+ - Recovery: if contested, `escalate_arbiter` forward routes to Arbitration.
@@ -0,0 +1,252 @@
1
+ ---
2
+ name: wowok-scenario
3
+ description: |
4
+ WoWok Industry Driving Modes — opinionated bundles of Permission, Machine,
5
+ Guard, and Allocator defaults per industry. Each mode is a "scene preset"
6
+ (like SUV driving modes: sand / road / water) that pre-fills best-practice
7
+ configuration so a new merchant can publish a working Service in 10 rounds.
8
+
9
+ Use when: user describes an industry ("I do freelance design", "I rent
10
+ cameras", "I run a course"), when wowok-onboard needs default parameters
11
+ for R3-R8, or when a merchant wants to switch from general configuration
12
+ to an industry-tuned preset.
13
+
14
+ Phase 1 covers freelance and rental modes in full detail. Education,
15
+ travel, and subscription modes are outlined for Phase 2/3.
16
+ when_to_use:
17
+ - User mentions an industry (freelance, rental, education, travel, subscription)
18
+ - wowok-onboard R2 needs to load mode defaults
19
+ - User asks "what configuration works for my business"
20
+ - User wants to switch from general mode to an industry preset
21
+ - User wants to compose two modes (e.g., freelance + subscription)
22
+ ---
23
+
24
+ # WoWok Industry Driving Modes
25
+
26
+ > **Related Skills**: [wowok-onboard](../wowok-onboard/SKILL.md) (uses mode defaults in R3-R8), [wowok-machine](../wowok-machine/SKILL.md) (Machine design authority), [wowok-guard](../wowok-guard/SKILL.md) (Guard design authority), [wowok-provider](../wowok-provider/SKILL.md) (Allocator operation), [wowok-safety](../wowok-safety/SKILL.md) (immutability rules)
27
+
28
+ ---
29
+
30
+ ## Overview
31
+
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
+
34
+ ### What Driving Modes Solve
35
+
36
+ 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).
37
+
38
+ ### Mode Catalog
39
+
40
+ | Mode | Phase | Industry | Trust Pattern |
41
+ |------|-------|----------|---------------|
42
+ | `freelance` | 1 | Design / dev / consulting / writing | Milestone allocation, acceptance gate |
43
+ | `rental` | 1 | Equipment / vehicle / property rental | Deposit escrow, return inspection |
44
+ | `education` | 2 | Courses / training / tutoring | Periodic release per session, attendance Guard |
45
+ | `travel` | 2 | Custom tours / multi-segment trips | Multi-tier allocation per segment |
46
+ | `subscription` | 3 | SaaS / content membership / periodic service | Periodic charge, cancel Guard |
47
+ | `general` | always | Anything not covered / hybrid | User-defined from scratch |
48
+
49
+ ---
50
+
51
+ ## Mode Selection Logic
52
+
53
+ The selection algorithm maps the user's business description to industry traits, then to a mode.
54
+
55
+ ### Trait Extraction
56
+
57
+ ```typescript
58
+ type IndustryTraits = {
59
+ has_logistics: boolean; // physical goods to ship?
60
+ communication_heavy: boolean; // lots of back-and-forth before delivery?
61
+ pure_digital: boolean; // deliverable is a file / digital artifact?
62
+ long_cycle: boolean; // multi-week or multi-month engagement?
63
+ deposit_required: boolean; // collect refundable deposit?
64
+ multi_tier_allocation: boolean; // pay multiple parties per segment?
65
+ };
66
+ ```
67
+
68
+ ### Selection Matrix
69
+
70
+ | Trait Signature | Mode |
71
+ |-----------------|------|
72
+ | `pure_digital + communication_heavy + !deposit_required` | freelance |
73
+ | `deposit_required + has_logistics + returnable` | rental |
74
+ | `long_cycle + attendance + periodic_release` | education |
75
+ | `multi_tier_allocation + segment_based + long_cycle` | travel |
76
+ | `periodic_charge + cancel_anytime + pure_digital` | subscription |
77
+ | none of the above / multiple conflicts | general |
78
+
79
+ ### Composition (Mode Stacking)
80
+
81
+ Two modes can combine. Conflicts surface for user decision:
82
+
83
+ | Combination | Use Case | Conflict Resolution |
84
+ |-------------|----------|---------------------|
85
+ | freelance + subscription | Retainer consulting (monthly + milestone) | Allocator: split into retainer (subscription) + milestone (freelance) |
86
+ | rental + education | Equipment training rental | Machine: extend rental nodes with attendance gates |
87
+ | travel + rental | Tour with equipment | Allocator: segment allocation + deposit escrow side-by-side |
88
+
89
+ When two modes specify different Permission indexes for the same role, user decides which set to use.
90
+
91
+ ---
92
+
93
+ ## Phase 1 Mode Details (Freelance & Rental)
94
+
95
+ > The full detail for Phase 1 priority modes (Freelance & Rental) — including industry traits, Machine templates, Guard templates, Allocator strategies, 10-round build scripts, audit checklists, and failure playbooks — has been extracted to [MODE-DETAILS.md](./MODE-DETAILS.md) for on-demand loading.
96
+ >
97
+ > **Load MODE-DETAILS.md when:**
98
+ > - User selects `freelance` or `rental` mode
99
+ > - wowok-onboard R3-R8 needs Machine/Guard/Allocator defaults
100
+ > - User asks "what does the freelance/rental mode include?"
101
+ > - Pre-publish audit needs mode-specific checklist
102
+
103
+ ### Quick Reference (mode summaries)
104
+
105
+ | Mode | Machine Shape | Guards | Allocators | Key Risk |
106
+ |------|---------------|--------|------------|----------|
107
+ | `freelance` | 7 nodes (ordered→...→completed/refunded) | 5 (buy/deliver/accept/withdraw/refund) | 2 (100% provider / 100% refund) | Customer never accepts delivery |
108
+ | `rental` | 10 nodes (reserved→...→deposit_refunded/deducted) | 5 (deposit/return/inspect/refund/damage) | 3 (rent / refund / deduct) | Owner claims damage without pre-rental WIP |
109
+
110
+ ---
111
+
112
+ ## Education Mode (Phase 2 — Outline)
113
+
114
+ ### Industry Traits
115
+
116
+ ```typescript
117
+ const educationTraits: IndustryTraits = {
118
+ has_logistics: false,
119
+ communication_heavy: true,
120
+ pure_digital: false,
121
+ long_cycle: true,
122
+ deposit_required: true, // tuition pre-pay
123
+ multi_tier_allocation: false,
124
+ };
125
+ ```
126
+
127
+ ### Mode Outline
128
+
129
+ - **Default Machine**: enroll → pay_tuition → session_1 → session_2 → ... → session_N → completed / refunded
130
+ - **Default Guards**: `attendance_guard` (per session, student signs), `refund_guard` (institution approval OR arbiter)
131
+ - **Default Allocator**: 1/N of tuition released per session attendance; unearned portion refundable on `refund_guard`
132
+ - **Key trait**: `setting_locked_time` on Service prevents institution from changing rules mid-semester (regulatory compliance)
133
+ - **GTM angle**: targets "tutoring institutions run away with prepaid tuition" pain point; policy-driven adoption
134
+
135
+ ### Phase 2 Build Status
136
+
137
+ - Machine template: drafted, needs 1 pilot institution test
138
+ - Guards: `attendance_guard` needs WIP hash for session content commitment
139
+ - Allocator: per-session release needs threshold-based trigger
140
+ - Audit checklist: pending real-world pilot
141
+
142
+ ---
143
+
144
+ ## Travel Mode (Phase 2 — Outline)
145
+
146
+ ### Industry Traits
147
+
148
+ ```typescript
149
+ const travelTraits: IndustryTraits = {
150
+ has_logistics: false,
151
+ communication_heavy: true,
152
+ pure_digital: false,
153
+ long_cycle: true,
154
+ deposit_required: true, // deposit + final payment
155
+ multi_tier_allocation: true, // agency → hotel → guide → driver
156
+ };
157
+ ```
158
+
159
+ ### Mode Outline
160
+
161
+ - **Default Machine**: order → pay_deposit → pay_final → segment_D1 → segment_D2 → ... → return → completed / refunded
162
+ - **Default Guards**: `segment_guard` (per-segment arrival WIP, e.g., hotel check-in), `refund_guard` (agency approval OR arbiter for trip interruption)
163
+ - **Default Allocator**: multi-tier — deposit 20% to agency, final 80% to agency, then agency-side Allocation splits to hotel/guide/driver per segment
164
+ - **Key trait**: multi-tier Allocation is WoWok's unique advantage over traditional travel platforms
165
+ - **GTM angle**: targets "paid in full then service shrinks" pain point
166
+
167
+ ### Phase 2 Build Status
168
+
169
+ - Machine template: drafted, needs multi-tier Allocation pilot
170
+ - Guards: `segment_guard` needs standardized WIP templates per segment type (hotel, transport, activity)
171
+ - Allocator: multi-tier waterfall needs guard chaining validation
172
+ - Audit checklist: pending real-world pilot
173
+
174
+ ---
175
+
176
+ ## Subscription Mode (Phase 3 — Outline)
177
+
178
+ ### Industry Traits
179
+
180
+ ```typescript
181
+ const subscriptionTraits: IndustryTraits = {
182
+ has_logistics: false,
183
+ communication_heavy: false,
184
+ pure_digital: true,
185
+ long_cycle: true,
186
+ deposit_required: false,
187
+ multi_tier_allocation: false,
188
+ };
189
+ ```
190
+
191
+ ### Mode Outline
192
+
193
+ - **Default Machine**: subscribe → charge_period_1 → deliver_period_1 → charge_period_2 → ... → cancel / expire
194
+ - **Default Guards**: `charge_guard` (user confirms each charge — no auto-renew trap), `cancel_guard` (user cancels anytime, takes effect next period), `deliver_guard` (creator WIP hash per period — prevents content abandonment)
195
+ - **Default Allocator**: each charge → 100% to creator; unearned periods → refund to subscriber
196
+ - **Key trait**: pure digital, native WoWok soil; directly attacks "auto-renew trap" and "platform takes 30%" pain points
197
+ - **GTM angle**: independent creators (Indie Hackers, niche SaaS, paid newsletters)
198
+
199
+ ### Phase 3 Build Status
200
+
201
+ - Machine template: planned
202
+ - Guards: `charge_guard` needs periodic trigger mechanism (off-chain scheduler + on-chain Guard)
203
+ - Allocator: per-period release straightforward
204
+ - Audit checklist: pending design review
205
+
206
+ ---
207
+
208
+ ## Escape Hatch
209
+
210
+ Any user can switch from a driving mode to `general` (free) mode at any time. This ditches all defaults and exposes raw MCP operations.
211
+
212
+ ### When to Use the Escape Hatch
213
+
214
+ - User's business doesn't fit any Phase 1-3 mode
215
+ - User wants a hybrid not supported by Mode Composition
216
+ - Expert user wants full manual control
217
+ - Industry-specific edge case (e.g., freelance with deposit requirement that's not rental)
218
+
219
+ ### How to Switch
220
+
221
+ ```
222
+ User says: "switch to general mode" or "configure manually"
223
+ ├── Stop applying mode defaults to remaining rounds
224
+ ├── Surface the IndustryModeSchema shape as a blank template
225
+ ├── User provides: Permission indexes, Machine nodes, Guards, Allocators manually
226
+ ├── wowok-onboard R3-R8 still execute, but with empty defaults
227
+ └── wowok-machine / wowok-guard / wowok-provider become primary references
228
+ ```
229
+
230
+ ### Warning
231
+
232
+ Switching to general mode mid-onboarding does NOT discard already-created objects. The Service draft, Permission, and Machine created under a previous mode remain on-chain. The user can:
233
+ - Continue building on top of them (REUSE pattern)
234
+ - Abandon them and start fresh (CREATE new objects)
235
+
236
+ ### Recommitting to a Mode
237
+
238
+ User can switch back to a driving mode after using general mode:
239
+ - wowok-onboard re-loads mode defaults for any unconfigured rounds
240
+ - Already-configured objects are kept (REUSE); only missing pieces get mode defaults
241
+ - Checkpoint is updated with the new mode
242
+
243
+ ---
244
+
245
+ ## Appendices (Progressive Disclosure)
246
+
247
+ > The following sections have been extracted to [APPENDIX.md](./APPENDIX.md) for on-demand loading:
248
+ > - Tier Layering — expertise-tier based guidance
249
+ > - IndustryModeSchema — schema reference
250
+ > - Quick Reference — lookup table
251
+ >
252
+ > Load APPENDIX.md when the user needs tier-specific guidance, schema reference, or quick lookup.