@wowok/agent-mcp 2.3.16 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/customer/index.d.ts +9 -0
- package/dist/customer/index.js +9 -0
- package/dist/customer/industry-risks.d.ts +4 -0
- package/dist/customer/industry-risks.js +45 -31
- package/dist/customer/order-monitor.js +57 -57
- package/dist/customer/order-strategy.js +89 -89
- package/dist/customer/post-purchase.js +97 -97
- package/dist/customer/reminder-system.js +26 -26
- package/dist/customer/risk-assessment.js +46 -46
- package/dist/customer/types.d.ts +4 -4
- package/dist/customer/types.js +4 -4
- package/dist/customer/user-preferences.d.ts +3 -0
- package/dist/customer/user-preferences.js +59 -50
- package/dist/experience/intent-distill.js +6 -6
- package/dist/experience/realtime-feedback.js +17 -0
- package/dist/index.js +360 -273
- package/dist/knowledge/acquisition-flywheel.d.ts +3 -0
- package/dist/knowledge/acquisition-flywheel.js +73 -64
- package/dist/knowledge/arbitration-trust.js +10 -10
- package/dist/knowledge/demand-matching.js +8 -8
- package/dist/knowledge/dynamic-pricing.js +18 -18
- package/dist/knowledge/flywheel-loop.js +11 -11
- package/dist/knowledge/glossary.js +22 -22
- package/dist/knowledge/guard-ledger.d.ts +19 -0
- package/dist/knowledge/guard-ledger.js +246 -0
- package/dist/knowledge/guard-lint.d.ts +76 -0
- package/dist/knowledge/guard-lint.js +590 -0
- package/dist/knowledge/guard-puzzle.d.ts +188 -0
- package/dist/knowledge/guard-puzzle.js +804 -0
- package/dist/knowledge/guard-risk.d.ts +67 -0
- package/dist/knowledge/guard-risk.js +1046 -0
- package/dist/knowledge/guard-templates.d.ts +37 -0
- package/dist/knowledge/guard-templates.js +329 -0
- package/dist/knowledge/guard-translation.d.ts +58 -0
- package/dist/knowledge/guard-translation.js +1118 -0
- package/dist/knowledge/index.d.ts +17 -0
- package/dist/knowledge/index.js +17 -0
- package/dist/knowledge/industry-evolution.js +29 -29
- package/dist/knowledge/industry-generalizer.js +52 -52
- package/dist/knowledge/industry-registry.d.ts +1 -2
- package/dist/knowledge/industry-registry.js +43 -36
- package/dist/knowledge/intent-metrics.js +67 -67
- package/dist/knowledge/process-model.js +80 -80
- package/dist/knowledge/reputation-rules.js +9 -9
- package/dist/knowledge/reward-templates.js +51 -51
- package/dist/knowledge/safety-rules.js +63 -2
- package/dist/knowledge/tool-constraints.js +17 -11
- package/dist/knowledge/trust-metrics.js +26 -26
- package/dist/safety/confirm-gate.d.ts +4 -2
- package/dist/safety/confirm-gate.js +48 -4
- package/dist/schema/call/allocation.d.ts +24 -14
- package/dist/schema/call/arbitration.d.ts +142 -132
- package/dist/schema/call/base.d.ts +901 -43
- package/dist/schema/call/base.js +77 -13
- package/dist/schema/call/bridge-handler.js +15 -2
- package/dist/schema/call/bridge.d.ts +795 -27
- package/dist/schema/call/bridge.js +37 -0
- package/dist/schema/call/contact.d.ts +10 -0
- package/dist/schema/call/demand.d.ts +94 -84
- package/dist/schema/call/guard.d.ts +229 -46
- package/dist/schema/call/guard.js +50 -0
- package/dist/schema/call/handler.js +46 -14
- package/dist/schema/call/machine.d.ts +158 -138
- package/dist/schema/call/order.d.ts +10 -0
- package/dist/schema/call/payment.d.ts +10 -0
- package/dist/schema/call/permission.d.ts +314 -304
- package/dist/schema/call/personal.d.ts +10 -0
- package/dist/schema/call/progress.d.ts +10 -0
- package/dist/schema/call/proof.d.ts +20 -0
- package/dist/schema/call/repository.d.ts +32 -22
- package/dist/schema/call/reward.d.ts +10 -0
- package/dist/schema/call/semantic.d.ts +9 -2
- package/dist/schema/call/semantic.js +617 -25
- package/dist/schema/call/service.d.ts +20 -10
- package/dist/schema/call/treasury.d.ts +10 -0
- package/dist/schema/config/index.d.ts +18 -0
- package/dist/schema/config/index.js +17 -0
- package/dist/schema/index.d.ts +6 -0
- package/dist/schema/index.js +5 -0
- package/dist/schema/local/index.d.ts +9 -9
- package/dist/schema/local/index.js +9 -0
- package/dist/schema/local/wip.d.ts +39 -19
- package/dist/schema/local/wip.js +5 -5
- package/dist/schema/messenger/index.d.ts +376 -55
- package/dist/schema/messenger/index.js +19 -19
- package/dist/schema/operations.d.ts +1881 -681
- package/dist/schema/operations.js +91 -96
- package/dist/schema/project/index.d.ts +21 -0
- package/dist/schema/project/index.js +32 -0
- package/dist/schema/query/index.d.ts +1074 -168
- package/dist/schema/query/index.js +8 -8
- package/dist/schema/schema-query/index.d.ts +33 -0
- package/dist/schema/schema-query/index.js +36 -0
- package/dist/schema/schema-version.d.ts +25 -0
- package/dist/schema/schema-version.js +76 -0
- package/dist/schema/trust/index.d.ts +407 -0
- package/dist/schema/trust/index.js +113 -0
- package/dist/schema/utils/guard-parser.js +4 -4
- package/dist/schema/utils/node-parser.js +14 -14
- package/dist/schemas/bridge_operation.output.json +233 -9
- package/dist/schemas/bridge_operation.schema.json +67 -8
- package/dist/schemas/config_operation.output.json +18 -0
- package/dist/schemas/config_operation.schema.json +34 -0
- package/dist/schemas/guard-node-schema.json +82 -0
- package/dist/schemas/guard2file.schema.json +8 -0
- package/dist/schemas/index.json +19 -1
- package/dist/schemas/machineNode2file.schema.json +8 -0
- package/dist/schemas/messenger_operation.output.json +236 -10
- package/dist/schemas/onchain_events.output.json +718 -0
- package/dist/schemas/onchain_operations.output.json +286 -11
- package/dist/schemas/onchain_operations.schema.json +19 -16
- package/dist/schemas/onchain_operations_allocation.schema.json +8 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +8 -0
- package/dist/schemas/onchain_operations_contact.schema.json +8 -0
- package/dist/schemas/onchain_operations_demand.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +16 -0
- package/dist/schemas/onchain_operations_guard.schema.json +11 -16
- package/dist/schemas/onchain_operations_machine.schema.json +8 -0
- package/dist/schemas/onchain_operations_order.schema.json +8 -0
- package/dist/schemas/onchain_operations_payment.schema.json +8 -0
- package/dist/schemas/onchain_operations_permission.schema.json +8 -0
- package/dist/schemas/onchain_operations_personal.schema.json +8 -0
- package/dist/schemas/onchain_operations_progress.schema.json +8 -0
- package/dist/schemas/onchain_operations_repository.schema.json +8 -0
- package/dist/schemas/onchain_operations_reward.schema.json +8 -0
- package/dist/schemas/onchain_operations_service.schema.json +8 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +8 -0
- package/dist/schemas/onchain_table_data.output.json +718 -0
- package/dist/schemas/project_operation.output.json +18 -0
- package/dist/schemas/project_operation.schema.json +42 -0
- package/dist/schemas/query_toolkit.schema.json +360 -368
- package/dist/schemas/schema_query.schema.json +6 -3
- package/dist/schemas/trust_score.output.json +327 -0
- package/dist/schemas/trust_score.schema.json +46 -0
- package/dist/schemas/wip_file.output.json +24 -1
- package/package.json +2 -2
|
@@ -1612,13 +1612,18 @@
|
|
|
1612
1612
|
"permission_denied",
|
|
1613
1613
|
"immutable_violation",
|
|
1614
1614
|
"network_error",
|
|
1615
|
+
"rate_limit",
|
|
1616
|
+
"gas_exceeded",
|
|
1617
|
+
"bcs_error",
|
|
1618
|
+
"signature_error",
|
|
1619
|
+
"config_error",
|
|
1615
1620
|
"unknown"
|
|
1616
1621
|
],
|
|
1617
|
-
"description": "Error classification for programmatic recovery. Constraint: enum of
|
|
1622
|
+
"description": "Error classification for programmatic recovery. Constraint: enum of 14 values. Relation: drives Recover Loop strategy selection. Example: 'insufficient_balance'"
|
|
1618
1623
|
},
|
|
1619
1624
|
"retryable": {
|
|
1620
1625
|
"type": "boolean",
|
|
1621
|
-
"description": "Whether the same call can be retried as-is. Constraint: true
|
|
1626
|
+
"description": "Whether the same call can be retried as-is. Constraint: true for network_error, rate_limit, gas_exceeded, and insufficient_balance. Example: true"
|
|
1622
1627
|
},
|
|
1623
1628
|
"recovery_hint": {
|
|
1624
1629
|
"type": "string",
|
|
@@ -2172,7 +2177,7 @@
|
|
|
2172
2177
|
}
|
|
2173
2178
|
},
|
|
2174
2179
|
"additionalProperties": false,
|
|
2175
|
-
"description": "Experience layer feedback from past operations (Phase 2
|
|
2180
|
+
"description": "Experience layer feedback from past operations (Phase 2 Topic 2)"
|
|
2176
2181
|
},
|
|
2177
2182
|
"service_status": {
|
|
2178
2183
|
"type": "object",
|
|
@@ -2222,7 +2227,7 @@
|
|
|
2222
2227
|
"items": {
|
|
2223
2228
|
"type": "string"
|
|
2224
2229
|
},
|
|
2225
|
-
"description": "Actionable recommendations for the buyer. Example: ['
|
|
2230
|
+
"description": "Actionable recommendations for the buyer. Example: ['Require merchant to configure arbitration','Negotiate refund terms via Messenger']"
|
|
2226
2231
|
},
|
|
2227
2232
|
"reminders": {
|
|
2228
2233
|
"type": "array",
|
|
@@ -2257,7 +2262,7 @@
|
|
|
2257
2262
|
},
|
|
2258
2263
|
"message": {
|
|
2259
2264
|
"type": "string",
|
|
2260
|
-
"description": "Human-readable reminder message. Example: '
|
|
2265
|
+
"description": "Human-readable reminder message. Example: 'Composite risk score 25/100, strongly discourage purchase'"
|
|
2261
2266
|
},
|
|
2262
2267
|
"action": {
|
|
2263
2268
|
"type": "string",
|
|
@@ -2273,7 +2278,7 @@
|
|
|
2273
2278
|
"additionalProperties": false,
|
|
2274
2279
|
"description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
|
|
2275
2280
|
},
|
|
2276
|
-
"description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'
|
|
2281
|
+
"description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'Ambiguous Guard must be human-reviewed'}]"
|
|
2277
2282
|
},
|
|
2278
2283
|
"preference_match": {
|
|
2279
2284
|
"type": "object",
|
|
@@ -2289,14 +2294,14 @@
|
|
|
2289
2294
|
"items": {
|
|
2290
2295
|
"type": "string"
|
|
2291
2296
|
},
|
|
2292
|
-
"description": "Aspects that match user preferences. Example: ['
|
|
2297
|
+
"description": "Aspects that match user preferences. Example: ['Price 10% below average','Has arbitration']"
|
|
2293
2298
|
},
|
|
2294
2299
|
"mismatches": {
|
|
2295
2300
|
"type": "array",
|
|
2296
2301
|
"items": {
|
|
2297
2302
|
"type": "string"
|
|
2298
2303
|
},
|
|
2299
|
-
"description": "Aspects that mismatch user preferences. Example: ['
|
|
2304
|
+
"description": "Aspects that mismatch user preferences. Example: ['Delivery cycle exceeds expectation']"
|
|
2300
2305
|
}
|
|
2301
2306
|
},
|
|
2302
2307
|
"required": [
|
|
@@ -2320,11 +2325,11 @@
|
|
|
2320
2325
|
"properties": {
|
|
2321
2326
|
"industry_signal": {
|
|
2322
2327
|
"type": "string",
|
|
2323
|
-
"description": "Industry evolution signal summary. Example: '
|
|
2328
|
+
"description": "Industry evolution signal summary. Example: 'Industry health 82/100 (healthy); 25 cumulative industry signals'"
|
|
2324
2329
|
},
|
|
2325
2330
|
"evolution_advice": {
|
|
2326
2331
|
"type": "string",
|
|
2327
|
-
"description": "Evolution advice for the current operation. Example: '
|
|
2332
|
+
"description": "Evolution advice for the current operation. Example: 'Recommend mandatory arbitration + compensation fund + delivery Guard'"
|
|
2328
2333
|
},
|
|
2329
2334
|
"confidence": {
|
|
2330
2335
|
"type": "number",
|
|
@@ -2361,7 +2366,7 @@
|
|
|
2361
2366
|
"items": {
|
|
2362
2367
|
"type": "string"
|
|
2363
2368
|
},
|
|
2364
|
-
"description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['
|
|
2369
|
+
"description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['Strengthen loyalty flywheel','Optimize first-order conversion']"
|
|
2365
2370
|
},
|
|
2366
2371
|
"role": {
|
|
2367
2372
|
"type": "string",
|
|
@@ -2378,6 +2383,230 @@
|
|
|
2378
2383
|
],
|
|
2379
2384
|
"additionalProperties": false,
|
|
2380
2385
|
"description": "Phase 4 industry evolution context (populated when industry_evolution service is enabled). Provides AI with industry health signals and evolution advice."
|
|
2386
|
+
},
|
|
2387
|
+
"guard_advice": {
|
|
2388
|
+
"type": "object",
|
|
2389
|
+
"properties": {
|
|
2390
|
+
"current_round": {
|
|
2391
|
+
"type": "string",
|
|
2392
|
+
"enum": [
|
|
2393
|
+
"R1",
|
|
2394
|
+
"R2",
|
|
2395
|
+
"R3",
|
|
2396
|
+
"R4",
|
|
2397
|
+
"R5",
|
|
2398
|
+
"R6",
|
|
2399
|
+
"R7",
|
|
2400
|
+
"R8",
|
|
2401
|
+
"R9",
|
|
2402
|
+
"R10"
|
|
2403
|
+
],
|
|
2404
|
+
"description": "Current R1-R10 dialogue round. R1=intent, R2=table, R3=tree, R4=rely, R5=binding, R6=review, R7=CREATE, R8=test, R9=bind, R10=verify. Example: 'R3'"
|
|
2405
|
+
},
|
|
2406
|
+
"puzzle_status": {
|
|
2407
|
+
"type": "object",
|
|
2408
|
+
"properties": {
|
|
2409
|
+
"intent": {
|
|
2410
|
+
"type": "boolean",
|
|
2411
|
+
"description": "Intent dimension complete (action + rule + failure conditions)"
|
|
2412
|
+
},
|
|
2413
|
+
"binding": {
|
|
2414
|
+
"type": "boolean",
|
|
2415
|
+
"description": "Binding dimension complete (host object + field + circular ref)"
|
|
2416
|
+
},
|
|
2417
|
+
"data": {
|
|
2418
|
+
"type": "boolean",
|
|
2419
|
+
"description": "Data dimension complete (table entries + witnesses)"
|
|
2420
|
+
},
|
|
2421
|
+
"query": {
|
|
2422
|
+
"type": "boolean",
|
|
2423
|
+
"description": "Query dimension complete (query instructions if needed)"
|
|
2424
|
+
},
|
|
2425
|
+
"logic": {
|
|
2426
|
+
"type": "boolean",
|
|
2427
|
+
"description": "Logic dimension complete (root node returns Bool)"
|
|
2428
|
+
},
|
|
2429
|
+
"constraints": {
|
|
2430
|
+
"type": "boolean",
|
|
2431
|
+
"description": "Constraints dimension complete (10 Pitfalls checked)"
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
"required": [
|
|
2435
|
+
"intent",
|
|
2436
|
+
"binding",
|
|
2437
|
+
"data",
|
|
2438
|
+
"query",
|
|
2439
|
+
"logic",
|
|
2440
|
+
"constraints"
|
|
2441
|
+
],
|
|
2442
|
+
"additionalProperties": false,
|
|
2443
|
+
"description": "Information puzzle completeness (6 dimensions). Missing dimensions need user input before CREATE."
|
|
2444
|
+
},
|
|
2445
|
+
"matched_scene": {
|
|
2446
|
+
"type": "string",
|
|
2447
|
+
"description": "Matched Guard scene id from the 8 binding scenarios ledger. Example: 'machine_forward_guard'"
|
|
2448
|
+
},
|
|
2449
|
+
"scene_description": {
|
|
2450
|
+
"type": "string",
|
|
2451
|
+
"description": "Human-readable scene description. Example: 'Workflow node forward validation (Forward.guard)'"
|
|
2452
|
+
},
|
|
2453
|
+
"scene_constraints": {
|
|
2454
|
+
"type": "array",
|
|
2455
|
+
"items": {
|
|
2456
|
+
"type": "string"
|
|
2457
|
+
},
|
|
2458
|
+
"description": "Special constraints for the matched scene. Example: ['Forward.guard cannot be modified after Machine is published']"
|
|
2459
|
+
},
|
|
2460
|
+
"suggested_patterns": {
|
|
2461
|
+
"type": "array",
|
|
2462
|
+
"items": {
|
|
2463
|
+
"type": "string"
|
|
2464
|
+
},
|
|
2465
|
+
"description": "Suggested Guard patterns based on user intent. Example: ['time lock','progress status check']"
|
|
2466
|
+
},
|
|
2467
|
+
"available_queries": {
|
|
2468
|
+
"type": "array",
|
|
2469
|
+
"items": {
|
|
2470
|
+
"type": "object",
|
|
2471
|
+
"properties": {
|
|
2472
|
+
"id": {
|
|
2473
|
+
"type": "integer",
|
|
2474
|
+
"description": "Query instruction ID. Example: 1253"
|
|
2475
|
+
},
|
|
2476
|
+
"name": {
|
|
2477
|
+
"type": "string",
|
|
2478
|
+
"description": "Query instruction name. Example: 'progress.current_node_name'"
|
|
2479
|
+
},
|
|
2480
|
+
"objectType": {
|
|
2481
|
+
"type": "string",
|
|
2482
|
+
"description": "Target object type. Example: 'Progress'"
|
|
2483
|
+
},
|
|
2484
|
+
"returnType": {
|
|
2485
|
+
"type": "string",
|
|
2486
|
+
"description": "Return value type. Example: 'String'"
|
|
2487
|
+
},
|
|
2488
|
+
"description": {
|
|
2489
|
+
"type": "string",
|
|
2490
|
+
"description": "Query description"
|
|
2491
|
+
}
|
|
2492
|
+
},
|
|
2493
|
+
"required": [
|
|
2494
|
+
"id",
|
|
2495
|
+
"name",
|
|
2496
|
+
"objectType",
|
|
2497
|
+
"returnType"
|
|
2498
|
+
],
|
|
2499
|
+
"additionalProperties": false,
|
|
2500
|
+
"description": "A Guard query instruction available for the current context (subset of GUARDQUERY 375 entries)."
|
|
2501
|
+
},
|
|
2502
|
+
"description": "Available query instructions for the current context (subset of 375 GUARDQUERY entries)"
|
|
2503
|
+
},
|
|
2504
|
+
"risk_warnings": {
|
|
2505
|
+
"type": "array",
|
|
2506
|
+
"items": {
|
|
2507
|
+
"type": "string"
|
|
2508
|
+
},
|
|
2509
|
+
"description": "Risk warnings for the current Guard design. Example: ['Guard cannot be modified after creation','Time lock test uses 1000ms']"
|
|
2510
|
+
},
|
|
2511
|
+
"pending_questions": {
|
|
2512
|
+
"type": "array",
|
|
2513
|
+
"items": {
|
|
2514
|
+
"type": "string"
|
|
2515
|
+
},
|
|
2516
|
+
"description": "Questions for the user to complete the puzzle. Example: ['Which Host Object will the Guard bind to?']"
|
|
2517
|
+
},
|
|
2518
|
+
"confirmation_text": {
|
|
2519
|
+
"type": "string",
|
|
2520
|
+
"description": "Structured semantic confirmation text for user review (generated when puzzle is complete). User must explicitly confirm before CREATE."
|
|
2521
|
+
},
|
|
2522
|
+
"test_result": {
|
|
2523
|
+
"type": "object",
|
|
2524
|
+
"properties": {
|
|
2525
|
+
"status": {
|
|
2526
|
+
"type": "string",
|
|
2527
|
+
"enum": [
|
|
2528
|
+
"pass",
|
|
2529
|
+
"fail",
|
|
2530
|
+
"not_tested"
|
|
2531
|
+
]
|
|
2532
|
+
},
|
|
2533
|
+
"failure_node": {
|
|
2534
|
+
"type": "string",
|
|
2535
|
+
"description": "Node that caused failure (if fail)"
|
|
2536
|
+
},
|
|
2537
|
+
"passport_id": {
|
|
2538
|
+
"type": "string",
|
|
2539
|
+
"description": "Generated Passport ID (if pass)"
|
|
2540
|
+
}
|
|
2541
|
+
},
|
|
2542
|
+
"required": [
|
|
2543
|
+
"status"
|
|
2544
|
+
],
|
|
2545
|
+
"additionalProperties": false,
|
|
2546
|
+
"description": "gen_passport static test result. Must pass before CREATE."
|
|
2547
|
+
},
|
|
2548
|
+
"risk_assessment": {
|
|
2549
|
+
"type": "object",
|
|
2550
|
+
"properties": {
|
|
2551
|
+
"overall_risk": {
|
|
2552
|
+
"type": "string",
|
|
2553
|
+
"enum": [
|
|
2554
|
+
"critical",
|
|
2555
|
+
"high",
|
|
2556
|
+
"medium",
|
|
2557
|
+
"low",
|
|
2558
|
+
"info"
|
|
2559
|
+
],
|
|
2560
|
+
"description": "Overall risk level (highest from all risks)"
|
|
2561
|
+
},
|
|
2562
|
+
"risk_count": {
|
|
2563
|
+
"type": "integer",
|
|
2564
|
+
"description": "Total number of detected risks"
|
|
2565
|
+
},
|
|
2566
|
+
"critical_count": {
|
|
2567
|
+
"type": "integer",
|
|
2568
|
+
"description": "Number of critical risks"
|
|
2569
|
+
},
|
|
2570
|
+
"high_count": {
|
|
2571
|
+
"type": "integer",
|
|
2572
|
+
"description": "Number of high risks"
|
|
2573
|
+
},
|
|
2574
|
+
"needs_human_review": {
|
|
2575
|
+
"type": "boolean",
|
|
2576
|
+
"description": "Whether human review is required (critical or 2+ high risks)"
|
|
2577
|
+
},
|
|
2578
|
+
"top_risks": {
|
|
2579
|
+
"type": "array",
|
|
2580
|
+
"items": {
|
|
2581
|
+
"type": "string"
|
|
2582
|
+
},
|
|
2583
|
+
"description": "Top risk titles (critical and high, max 3)"
|
|
2584
|
+
},
|
|
2585
|
+
"stakeholder_advice": {
|
|
2586
|
+
"type": "object",
|
|
2587
|
+
"additionalProperties": {
|
|
2588
|
+
"type": "array",
|
|
2589
|
+
"items": {
|
|
2590
|
+
"type": "string"
|
|
2591
|
+
}
|
|
2592
|
+
},
|
|
2593
|
+
"description": "Per-stakeholder advice. Key=stakeholder (customer/provider/arbitrator/claimant), value=advice list"
|
|
2594
|
+
}
|
|
2595
|
+
},
|
|
2596
|
+
"required": [
|
|
2597
|
+
"overall_risk",
|
|
2598
|
+
"risk_count",
|
|
2599
|
+
"critical_count",
|
|
2600
|
+
"high_count",
|
|
2601
|
+
"needs_human_review",
|
|
2602
|
+
"top_risks"
|
|
2603
|
+
],
|
|
2604
|
+
"additionalProperties": false,
|
|
2605
|
+
"description": "Business-layer risk assessment (game theory, data source trust, logic gaps). Populated during Guard design to warn about business risks beyond syntax."
|
|
2606
|
+
}
|
|
2607
|
+
},
|
|
2608
|
+
"additionalProperties": false,
|
|
2609
|
+
"description": "Phase 5 Guard capability advice (populated when user intent involves Guard). Provides puzzle status, scene matching, suggested patterns, available queries, risk warnings, and confirmation text. AI uses this to guide Guard design dialogue (R1-R10)."
|
|
2381
2610
|
}
|
|
2382
2611
|
},
|
|
2383
2612
|
"required": [
|
|
@@ -2531,6 +2760,52 @@
|
|
|
2531
2760
|
],
|
|
2532
2761
|
"additionalProperties": false,
|
|
2533
2762
|
"description": "L4 Harness report (Verify + Recover). Present only when the Harness is injected and an Expected Result was declared for this operation. Relation: produced by handler.ts calling harness.verify() and harness.recover(). Example: {verify:{status:'fail', mismatches:[...]}, recovery:{strategy:'recreate'}}"
|
|
2763
|
+
},
|
|
2764
|
+
"schema_warning": {
|
|
2765
|
+
"type": "object",
|
|
2766
|
+
"properties": {
|
|
2767
|
+
"compatible": {
|
|
2768
|
+
"type": "boolean",
|
|
2769
|
+
"description": "Whether the client schema version is compatible with the server."
|
|
2770
|
+
},
|
|
2771
|
+
"warnings": {
|
|
2772
|
+
"type": "array",
|
|
2773
|
+
"items": {
|
|
2774
|
+
"type": "string"
|
|
2775
|
+
},
|
|
2776
|
+
"description": "Schema compatibility warnings or errors."
|
|
2777
|
+
},
|
|
2778
|
+
"client_version": {
|
|
2779
|
+
"type": "string",
|
|
2780
|
+
"description": "The client schema version that was checked."
|
|
2781
|
+
},
|
|
2782
|
+
"server_versions": {
|
|
2783
|
+
"type": "object",
|
|
2784
|
+
"properties": {
|
|
2785
|
+
"sdk": {
|
|
2786
|
+
"type": "string",
|
|
2787
|
+
"description": "Server-side SDK schema version."
|
|
2788
|
+
},
|
|
2789
|
+
"mcp": {
|
|
2790
|
+
"type": "string",
|
|
2791
|
+
"description": "Server-side MCP tool schema version."
|
|
2792
|
+
}
|
|
2793
|
+
},
|
|
2794
|
+
"required": [
|
|
2795
|
+
"sdk",
|
|
2796
|
+
"mcp"
|
|
2797
|
+
],
|
|
2798
|
+
"additionalProperties": false,
|
|
2799
|
+
"description": "Server-side schema versions."
|
|
2800
|
+
}
|
|
2801
|
+
},
|
|
2802
|
+
"required": [
|
|
2803
|
+
"compatible",
|
|
2804
|
+
"warnings",
|
|
2805
|
+
"server_versions"
|
|
2806
|
+
],
|
|
2807
|
+
"additionalProperties": false,
|
|
2808
|
+
"description": "Schema compatibility warning. Present only when client_schema_version is provided in env and a mismatch is detected."
|
|
2534
2809
|
}
|
|
2535
2810
|
},
|
|
2536
2811
|
"required": [
|
|
@@ -342,24 +342,11 @@
|
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
344
|
"root": {
|
|
345
|
-
"description": "Root definition: either a direct
|
|
345
|
+
"description": "Root definition: either a direct GuardNode computation tree (no type wrapper) or a file reference (type='file'). When type='file', the file can define all Guard fields (namedNew, description, table, root, rely), and schema fields override file content. For the node structure, see guard-node-schema.json for complete GuardNode definitions. IMPORTANT: The root node MUST be a logical operation returning Bool (e.g., logic_and, logic_or, logic_equal, query_reward_record_exists, etc.)",
|
|
346
346
|
"oneOf": [
|
|
347
347
|
{
|
|
348
|
-
"
|
|
349
|
-
"description": "Direct
|
|
350
|
-
"properties": {
|
|
351
|
-
"type": {
|
|
352
|
-
"const": "node"
|
|
353
|
-
},
|
|
354
|
-
"node": {
|
|
355
|
-
"$ref": "guard-node-schema.json",
|
|
356
|
-
"description": "Guard computational tree root node. MUST return a Bool value (pass/fail). See guard-node-schema.json for complete node type definitions including: identifier, query, logic_*, calc_*, convert_*, vec_*, query_reward_record_*, query_progress_history_*, etc."
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
"required": [
|
|
360
|
-
"type",
|
|
361
|
-
"node"
|
|
362
|
-
]
|
|
348
|
+
"$ref": "guard-node-schema.json",
|
|
349
|
+
"description": "Direct GuardNode computation tree - the node MUST be a logical operation returning Bool (e.g., logic_and, logic_or, logic_equal, query_reward_record_exists, etc.). No 'type: node' wrapper needed."
|
|
363
350
|
},
|
|
364
351
|
{
|
|
365
352
|
"type": "object",
|
|
@@ -606,6 +593,14 @@
|
|
|
606
593
|
"project": {
|
|
607
594
|
"type": "string",
|
|
608
595
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
596
|
+
},
|
|
597
|
+
"client_schema_version": {
|
|
598
|
+
"type": "string",
|
|
599
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
600
|
+
},
|
|
601
|
+
"schema_strict_mode": {
|
|
602
|
+
"type": "boolean",
|
|
603
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
609
604
|
}
|
|
610
605
|
},
|
|
611
606
|
"additionalProperties": false,
|
|
@@ -8712,6 +8707,14 @@
|
|
|
8712
8707
|
"project": {
|
|
8713
8708
|
"type": "string",
|
|
8714
8709
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
8710
|
+
},
|
|
8711
|
+
"client_schema_version": {
|
|
8712
|
+
"type": "string",
|
|
8713
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
8714
|
+
},
|
|
8715
|
+
"schema_strict_mode": {
|
|
8716
|
+
"type": "boolean",
|
|
8717
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
8715
8718
|
}
|
|
8716
8719
|
},
|
|
8717
8720
|
"additionalProperties": false,
|
|
@@ -413,6 +413,14 @@
|
|
|
413
413
|
"project": {
|
|
414
414
|
"type": "string",
|
|
415
415
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
416
|
+
},
|
|
417
|
+
"client_schema_version": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
420
|
+
},
|
|
421
|
+
"schema_strict_mode": {
|
|
422
|
+
"type": "boolean",
|
|
423
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
416
424
|
}
|
|
417
425
|
},
|
|
418
426
|
"additionalProperties": false,
|
|
@@ -665,6 +665,14 @@
|
|
|
665
665
|
"project": {
|
|
666
666
|
"type": "string",
|
|
667
667
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
668
|
+
},
|
|
669
|
+
"client_schema_version": {
|
|
670
|
+
"type": "string",
|
|
671
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
672
|
+
},
|
|
673
|
+
"schema_strict_mode": {
|
|
674
|
+
"type": "boolean",
|
|
675
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
668
676
|
}
|
|
669
677
|
},
|
|
670
678
|
"additionalProperties": false,
|
|
@@ -352,6 +352,14 @@
|
|
|
352
352
|
"project": {
|
|
353
353
|
"type": "string",
|
|
354
354
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
355
|
+
},
|
|
356
|
+
"client_schema_version": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
359
|
+
},
|
|
360
|
+
"schema_strict_mode": {
|
|
361
|
+
"type": "boolean",
|
|
362
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
355
363
|
}
|
|
356
364
|
},
|
|
357
365
|
"additionalProperties": false,
|
|
@@ -483,6 +483,14 @@
|
|
|
483
483
|
"project": {
|
|
484
484
|
"type": "string",
|
|
485
485
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
486
|
+
},
|
|
487
|
+
"client_schema_version": {
|
|
488
|
+
"type": "string",
|
|
489
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
490
|
+
},
|
|
491
|
+
"schema_strict_mode": {
|
|
492
|
+
"type": "boolean",
|
|
493
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
486
494
|
}
|
|
487
495
|
},
|
|
488
496
|
"additionalProperties": false,
|
|
@@ -600,6 +600,14 @@
|
|
|
600
600
|
"project": {
|
|
601
601
|
"type": "string",
|
|
602
602
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
603
|
+
},
|
|
604
|
+
"client_schema_version": {
|
|
605
|
+
"type": "string",
|
|
606
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
607
|
+
},
|
|
608
|
+
"schema_strict_mode": {
|
|
609
|
+
"type": "boolean",
|
|
610
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
603
611
|
}
|
|
604
612
|
},
|
|
605
613
|
"additionalProperties": false,
|
|
@@ -658,6 +666,14 @@
|
|
|
658
666
|
"project": {
|
|
659
667
|
"type": "string",
|
|
660
668
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
669
|
+
},
|
|
670
|
+
"client_schema_version": {
|
|
671
|
+
"type": "string",
|
|
672
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
673
|
+
},
|
|
674
|
+
"schema_strict_mode": {
|
|
675
|
+
"type": "boolean",
|
|
676
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
661
677
|
}
|
|
662
678
|
},
|
|
663
679
|
"additionalProperties": false,
|
|
@@ -78,24 +78,11 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"root": {
|
|
81
|
-
"description": "Root definition: either a direct
|
|
81
|
+
"description": "Root definition: either a direct GuardNode computation tree (no type wrapper) or a file reference (type='file'). When type='file', the file can define all Guard fields (namedNew, description, table, root, rely), and schema fields override file content. For the node structure, see guard-node-schema.json for complete GuardNode definitions. IMPORTANT: The root node MUST be a logical operation returning Bool (e.g., logic_and, logic_or, logic_equal, query_reward_record_exists, etc.)",
|
|
82
82
|
"oneOf": [
|
|
83
83
|
{
|
|
84
|
-
"
|
|
85
|
-
"description": "Direct
|
|
86
|
-
"properties": {
|
|
87
|
-
"type": {
|
|
88
|
-
"const": "node"
|
|
89
|
-
},
|
|
90
|
-
"node": {
|
|
91
|
-
"$ref": "guard-node-schema.json",
|
|
92
|
-
"description": "Guard computational tree root node. MUST return a Bool value (pass/fail). See guard-node-schema.json for complete node type definitions including: identifier, query, logic_*, calc_*, convert_*, vec_*, query_reward_record_*, query_progress_history_*, etc."
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"required": [
|
|
96
|
-
"type",
|
|
97
|
-
"node"
|
|
98
|
-
]
|
|
84
|
+
"$ref": "guard-node-schema.json",
|
|
85
|
+
"description": "Direct GuardNode computation tree - the node MUST be a logical operation returning Bool (e.g., logic_and, logic_or, logic_equal, query_reward_record_exists, etc.). No 'type: node' wrapper needed."
|
|
99
86
|
},
|
|
100
87
|
{
|
|
101
88
|
"type": "object",
|
|
@@ -210,6 +197,14 @@
|
|
|
210
197
|
"project": {
|
|
211
198
|
"type": "string",
|
|
212
199
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
200
|
+
},
|
|
201
|
+
"client_schema_version": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
204
|
+
},
|
|
205
|
+
"schema_strict_mode": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
213
208
|
}
|
|
214
209
|
},
|
|
215
210
|
"additionalProperties": false,
|
|
@@ -854,6 +854,14 @@
|
|
|
854
854
|
"project": {
|
|
855
855
|
"type": "string",
|
|
856
856
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
857
|
+
},
|
|
858
|
+
"client_schema_version": {
|
|
859
|
+
"type": "string",
|
|
860
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
861
|
+
},
|
|
862
|
+
"schema_strict_mode": {
|
|
863
|
+
"type": "boolean",
|
|
864
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
857
865
|
}
|
|
858
866
|
},
|
|
859
867
|
"additionalProperties": false,
|
|
@@ -329,6 +329,14 @@
|
|
|
329
329
|
"project": {
|
|
330
330
|
"type": "string",
|
|
331
331
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
332
|
+
},
|
|
333
|
+
"client_schema_version": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
336
|
+
},
|
|
337
|
+
"schema_strict_mode": {
|
|
338
|
+
"type": "boolean",
|
|
339
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
332
340
|
}
|
|
333
341
|
},
|
|
334
342
|
"additionalProperties": false,
|
|
@@ -216,6 +216,14 @@
|
|
|
216
216
|
"project": {
|
|
217
217
|
"type": "string",
|
|
218
218
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
219
|
+
},
|
|
220
|
+
"client_schema_version": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
223
|
+
},
|
|
224
|
+
"schema_strict_mode": {
|
|
225
|
+
"type": "boolean",
|
|
226
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
219
227
|
}
|
|
220
228
|
},
|
|
221
229
|
"additionalProperties": false,
|
|
@@ -587,6 +587,14 @@
|
|
|
587
587
|
"project": {
|
|
588
588
|
"type": "string",
|
|
589
589
|
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
590
|
+
},
|
|
591
|
+
"client_schema_version": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
594
|
+
},
|
|
595
|
+
"schema_strict_mode": {
|
|
596
|
+
"type": "boolean",
|
|
597
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
590
598
|
}
|
|
591
599
|
},
|
|
592
600
|
"additionalProperties": false,
|