workflow-v1.schema.json
cdk-rsx/crates/cdk-rsx-takt-generator/schema/workflow-v1.schema.json
1{2 "$schema": "https://json-schema.org/draft/2020-12/schema",3 "$id": "https://raw.githubusercontent.com/3V-Interactive/cdk-rsx/main/cdk-rsx/crates/cdk-rsx-takt-generator/schema/workflow-v1.schema.json",4 "title": "Takt workflow document, format 1",5 "type": "object",6 "properties": {7 "$schema": {8 "type": "string"9 },10 "FormatVersion": {11 "const": 112 },13 "Workflow": {14 "type": "object",15 "properties": {16 "Id": {17 "type": "string",18 "minLength": 1,19 "maxLength": 12820 },21 "Version": {22 "type": "integer",23 "minimum": 1,24 "maximum": 900719925474099125 }26 },27 "required": [28 "Id",29 "Version"30 ],31 "additionalProperties": false32 },33 "Tracing": {34 "type": "boolean",35 "description": "Enable bounded debugging history for newly admitted executions. Defaults to false; current state remains inspectable without tracing."36 },37 "Modules": {38 "type": "object",39 "minProperties": 1,40 "propertyNames": {41 "pattern": "^[A-Z][A-Za-z0-9_]*$"42 },43 "additionalProperties": {44 "type": "string",45 "pattern": "^(\\./|\\.\\./|mo:)[^\\s\"\\\\]+$"46 }47 },48 "Types": {49 "type": "object",50 "properties": {51 "Data": {52 "type": "string",53 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"54 },55 "Error": {56 "type": "string",57 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"58 },59 "Memory": {60 "$ref": "#/$defs/symbol",61 "description": "Workflow memory contract. Its module owns Data, Error and all Progress payload types and exports VERSION and new(settings). Generated code aliases its carrier and memory."62 },63 "Operations": {64 "type": "string",65 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"66 }67 },68 "required": [69 "Data",70 "Error",71 "Memory",72 "Operations"73 ],74 "additionalProperties": false75 },76 "Progress": {77 "description": "Variant names in the version-owned Progress enum. Rust derives payload types from that enum; compilation checks its exact variant set.",78 "type": "array",79 "minItems": 1,80 "maxItems": 128,81 "uniqueItems": true,82 "items": {"$ref": "#/$defs/progressTag"}83 },84 "Defaults": {85 "oneOf": [86 {87 "type": "string",88 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"89 },90 {91 "type": "object",92 "properties": {93 "TimeoutMillis": {94 "type": "integer",95 "minimum": 1,96 "maximum": 9007199254740991,97 "default": 3000098 },99 "CallTimeoutMillis": {100 "type": "integer",101 "minimum": 1,102 "maximum": 300000,103 "default": 10000,104 "description": "Native ICP best-effort transport timeout, rounded up to whole seconds; separate from the logical task timeout. Reactor batches use shared transport settings."105 },106 "OnExhausted": {107 "enum": [108 "Fail",109 "Pause"110 ],111 "default": "Fail"112 },113 "Retry": {114 "type": "array",115 "items": {116 "$ref": "#/$defs/retry"117 },118 "maxItems": 16119 }120 },121 "required": [],122 "additionalProperties": false123 }124 ]125 },126 "Storage": {127 "description": "Bound each stored payload/error. PayloadSize supplies the default; custom bounds name pure module functions fixed by the compiled definition, without scoped Operations dependencies.",128 "type": "object",129 "properties": {130 "MaxDataBytes": {131 "type": "integer",132 "minimum": 1,133 "maximum": 65536,134 "default": 16384135 },136 "MaxErrorBytes": {137 "type": "integer",138 "minimum": 1,139 "maximum": 4096,140 "default": 1024141 },142 "DataBytes": {143 "$ref": "#/$defs/symbol"144 },145 "ErrorBytes": {146 "$ref": "#/$defs/symbol"147 }148 },149 "additionalProperties": false150 },151 "Inspection": {152 "type": "object",153 "properties": {154 "Tag": {155 "type": "string",156 "pattern": "^[A-Z][A-Za-z0-9_]*$",157 "maxLength": 128,158 "not": {159 "const": "Catalog"160 }161 },162 "Authorize": {163 "$ref": "#/$defs/symbol"164 },165 "Details": {166 "$ref": "#/$defs/symbol"167 },168 "Error": {169 "$ref": "#/$defs/symbol"170 },171 "StatusType": {172 "$ref": "#/$defs/symbol"173 },174 "Status": {175 "$ref": "#/$defs/symbol"176 },177 "AuthorizeArchive": {178 "$ref": "#/$defs/symbol"179 },180 "ArchiveAccess": {181 "const": "CurrentOwner",182 "description": "Authorize historical revisions through the retained typed current execution. Use only when migrations preserve ownership."183 }184 },185 "not": {186 "properties": {187 "AuthorizeArchive": {},188 "ArchiveAccess": {}189 },190 "required": [191 "AuthorizeArchive",192 "ArchiveAccess"193 ]194 },195 "required": [196 "Tag",197 "Authorize",198 "Details",199 "Error",200 "StatusType",201 "Status"202 ],203 "additionalProperties": false204 },205 "StartAt": {206 "type": "string",207 "minLength": 1,208 "maxLength": 128209 },210 "States": {211 "type": "object",212 "minProperties": 1,213 "maxProperties": 128,214 "propertyNames": {215 "type": "string",216 "minLength": 1,217 "maxLength": 128218 },219 "additionalProperties": {220 "oneOf": [221 {222 "type": "object",223 "properties": {224 "Type": {225 "const": "Remote"226 },227 "Label": {228 "type": "string",229 "minLength": 1,230 "maxLength": 128231 },232 "Operation": {233 "type": "string",234 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"235 },236 "Handler": {237 "$ref": "#/$defs/symbol"238 },239 "Input": {240 "$ref": "#/$defs/progressTag"241 },242 "Output": {243 "$ref": "#/$defs/progressTag"244 },245 "Next": {246 "type": "string",247 "minLength": 1,248 "maxLength": 128249 },250 "End": {251 "const": true252 },253 "Retry": {254 "type": "array",255 "items": {256 "$ref": "#/$defs/retry"257 },258 "maxItems": 16259 },260 "Catch": {261 "type": "array",262 "items": {263 "$ref": "#/$defs/catch"264 },265 "maxItems": 128266 },267 "TimeoutMillis": {268 "type": "integer",269 "minimum": 1,270 "maximum": 9007199254740991271 },272 "CallTimeoutMillis": {273 "type": "integer",274 "minimum": 1,275 "maximum": 300000,276 "default": 10000,277 "description": "Native ICP best-effort transport timeout, rounded up to whole seconds; separate from the logical task timeout. Not supported on Call.Reactor."278 },279 "OnExhausted": {280 "enum": [281 "Pause",282 "Fail"283 ]284 },285 "Contract": {286 "type": "string",287 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"288 },289 "SafeUntil": {290 "$ref": "#/$defs/symbol",291 "description": "Pure Input -> ?Int returning the saved absolute replay deadline in nanoseconds. Rechecked before automatic and manual retries; no new request identity after expiry."292 },293 "Call": {294 "$ref": "#/$defs/callRecipe"295 }296 },297 "required": [298 "Type",299 "Contract"300 ],301 "allOf": [302 {303 "$ref": "#/$defs/effectBinding"304 },305 {306 "if": {307 "properties": {308 "Call": {"type": "object", "properties": {"Reactor": {}}, "required": ["Reactor"]}309 },310 "required": ["Call"]311 },312 "then": {"properties": {"CallTimeoutMillis": false}}313 }314 ],315 "additionalProperties": false,316 "oneOf": [317 {318 "required": [319 "Next"320 ],321 "not": {322 "required": [323 "End"324 ],325 "properties": {326 "End": {}327 }328 },329 "properties": {330 "Next": {}331 }332 },333 {334 "required": [335 "End"336 ],337 "not": {338 "required": [339 "Next"340 ],341 "properties": {342 "Next": {}343 }344 },345 "properties": {346 "End": {}347 }348 }349 ]350 },351 {352 "type": "object",353 "properties": {354 "Type": {355 "const": "Local"356 },357 "Label": {358 "type": "string",359 "minLength": 1,360 "maxLength": 128361 },362 "Operation": {363 "type": "string",364 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"365 },366 "Handler": {367 "$ref": "#/$defs/symbol"368 },369 "Input": {370 "$ref": "#/$defs/progressTag"371 },372 "Output": {373 "$ref": "#/$defs/progressTag"374 },375 "Next": {376 "type": "string",377 "minLength": 1,378 "maxLength": 128379 },380 "End": {381 "const": true382 },383 "Retry": {384 "type": "array",385 "items": {386 "$ref": "#/$defs/retry"387 },388 "maxItems": 16389 },390 "Catch": {391 "type": "array",392 "items": {393 "$ref": "#/$defs/catch"394 },395 "maxItems": 128396 },397 "TimeoutMillis": {398 "type": "integer",399 "minimum": 1,400 "maximum": 9007199254740991401 },402 "CallTimeoutMillis": {403 "type": "integer",404 "minimum": 1,405 "maximum": 300000,406 "default": 10000,407 "description": "Native ICP best-effort transport timeout, rounded up to whole seconds; separate from the logical task timeout. Reactor batches use shared transport settings."408 },409 "OnExhausted": {410 "enum": [411 "Pause",412 "Fail"413 ]414 },415 "Capabilities": {416 "type": "array",417 "minItems": 1,418 "uniqueItems": true,419 "items": {420 "enum": [421 "Read",422 "Dispatch",423 "Claims",424 "Clock",425 "State"426 ]427 }428 },429 "SafeUntil": {430 "$ref": "#/$defs/symbol",431 "description": "Pure Input -> ?Int returning the saved absolute replay deadline in nanoseconds. Rechecked before automatic and manual retries; no new request identity after expiry."432 },433 "Dispatch": {434 "$ref": "#/$defs/dispatchRecipe"435 }436 },437 "required": [438 "Type",439 "Capabilities"440 ],441 "allOf": [442 {443 "$ref": "#/$defs/effectBinding"444 }445 ],446 "additionalProperties": false,447 "oneOf": [448 {449 "required": [450 "Next"451 ],452 "not": {453 "required": [454 "End"455 ],456 "properties": {457 "End": {}458 }459 },460 "properties": {461 "Next": {}462 }463 },464 {465 "required": [466 "End"467 ],468 "not": {469 "required": [470 "Next"471 ],472 "properties": {473 "Next": {}474 }475 },476 "properties": {477 "End": {}478 }479 }480 ]481 },482 {483 "type": "object",484 "properties": {485 "Type": {486 "const": "Transform"487 },488 "Label": {489 "type": "string",490 "minLength": 1,491 "maxLength": 128492 },493 "Operation": {494 "type": "string",495 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"496 },497 "Next": {498 "type": "string",499 "minLength": 1,500 "maxLength": 128501 },502 "Handler": {503 "$ref": "#/$defs/symbol"504 },505 "Input": {506 "$ref": "#/$defs/progressTag"507 },508 "Output": {509 "$ref": "#/$defs/progressTag"510 }511 },512 "required": [513 "Type",514 "Next"515 ],516 "additionalProperties": false,517 "allOf": [518 {519 "$ref": "#/$defs/operationBinding"520 }521 ]522 },523 {524 "type": "object",525 "properties": {526 "Type": {527 "const": "Read"528 },529 "Label": {530 "type": "string",531 "minLength": 1,532 "maxLength": 128533 },534 "Operation": {535 "type": "string",536 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"537 },538 "Handler": {539 "$ref": "#/$defs/symbol"540 },541 "Input": {542 "$ref": "#/$defs/progressTag"543 },544 "Output": {545 "$ref": "#/$defs/progressTag"546 },547 "Next": {548 "type": "string",549 "minLength": 1,550 "maxLength": 128551 },552 "Capabilities": {553 "type": "array",554 "minItems": 1,555 "uniqueItems": true,556 "items": {557 "enum": [558 "Read",559 "Clock"560 ]561 }562 }563 },564 "required": [565 "Type",566 "Next",567 "Capabilities"568 ],569 "allOf": [570 {571 "$ref": "#/$defs/operationBinding"572 }573 ],574 "additionalProperties": false575 },576 {577 "type": "object",578 "properties": {579 "Type": {580 "const": "Choice"581 },582 "Label": {583 "type": "string",584 "minLength": 1,585 "maxLength": 128586 },587 "Input": {588 "$ref": "#/$defs/progressTag"589 },590 "Routes": {591 "type": "array",592 "minItems": 1,593 "items": {594 "type": "object",595 "properties": {596 "Select": {597 "type": "string",598 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"599 },600 "Next": {601 "type": "string",602 "minLength": 1,603 "maxLength": 128604 },605 "Label": {606 "type": "string",607 "minLength": 1,608 "maxLength": 128609 }610 },611 "required": [612 "Select",613 "Next"614 ],615 "additionalProperties": false616 }617 }618 },619 "required": [620 "Type",621 "Input",622 "Routes"623 ],624 "additionalProperties": false625 },626 {627 "type": "object",628 "properties": {629 "Type": {630 "const": "AwaitEvent"631 },632 "Label": {633 "type": "string",634 "minLength": 1,635 "maxLength": 128636 },637 "Input": {638 "$ref": "#/$defs/progressTag"639 },640 "Next": {641 "type": "string",642 "minLength": 1,643 "maxLength": 128644 },645 "Event": {646 "type": "string",647 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"648 }649 },650 "required": [651 "Type",652 "Input",653 "Event",654 "Next"655 ],656 "additionalProperties": false657 },658 {659 "type": "object",660 "properties": {661 "Type": {662 "const": "Wait"663 },664 "Label": {665 "type": "string",666 "minLength": 1,667 "maxLength": 128668 },669 "Input": {670 "$ref": "#/$defs/progressTag"671 },672 "Delay": {673 "type": "string",674 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"675 },676 "Next": {677 "type": "string",678 "minLength": 1,679 "maxLength": 128680 }681 },682 "required": [683 "Type",684 "Input",685 "Delay",686 "Next"687 ],688 "additionalProperties": false689 },690 {691 "type": "object",692 "properties": {693 "Type": {694 "const": "Parallel"695 },696 "Label": {697 "type": "string",698 "minLength": 1,699 "maxLength": 128700 },701 "Input": {702 "$ref": "#/$defs/progressTag"703 },704 "Next": {705 "type": "string",706 "minLength": 1,707 "maxLength": 128708 },709 "Branches": {710 "type": "array",711 "minItems": 1,712 "items": {713 "type": "object",714 "properties": {715 "StartAt": {716 "type": "string",717 "minLength": 1,718 "maxLength": 128719 },720 "Result": {721 "$ref": "#/$defs/progressTag"722 },723 "Merge": {724 "type": "string",725 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"726 }727 },728 "required": [729 "StartAt",730 "Result",731 "Merge"732 ],733 "additionalProperties": false734 }735 }736 },737 "required": [738 "Type",739 "Input",740 "Next",741 "Branches"742 ],743 "additionalProperties": false744 },745 {746 "type": "object",747 "properties": {748 "Type": {749 "const": "Succeed"750 },751 "Label": {752 "type": "string",753 "minLength": 1,754 "maxLength": 128755 },756 "Input": {757 "$ref": "#/$defs/progressTag"758 }759 },760 "required": [761 "Type",762 "Input"763 ],764 "additionalProperties": false765 },766 {767 "type": "object",768 "properties": {769 "Type": {770 "const": "Fail"771 },772 "Label": {773 "type": "string",774 "minLength": 1,775 "maxLength": 128776 },777 "Input": {778 "$ref": "#/$defs/progressTag"779 },780 "Error": {781 "type": "string",782 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"783 }784 },785 "required": [786 "Type",787 "Input",788 "Error"789 ],790 "additionalProperties": false791 },792 {793 "type": "object",794 "properties": {795 "Type": {796 "const": "ScheduleWorkflow"797 },798 "Label": {799 "type": "string",800 "minLength": 1,801 "maxLength": 128802 },803 "Input": {804 "$ref": "#/$defs/progressTag"805 },806 "Next": {807 "type": "string",808 "minLength": 1,809 "maxLength": 128810 },811 "Retry": {812 "type": "array",813 "items": {814 "$ref": "#/$defs/retry"815 },816 "maxItems": 16817 },818 "Catch": {819 "type": "array",820 "items": {821 "$ref": "#/$defs/catch"822 },823 "maxItems": 128824 },825 "OnExhausted": {826 "enum": [827 "Pause",828 "Fail"829 ]830 },831 "Child": {832 "$ref": "#/$defs/symbol"833 }834 },835 "required": [836 "Type",837 "Input",838 "Child",839 "Next"840 ],841 "additionalProperties": false842 }843 ]844 }845 },846 "Coordination": {847 "type": "object",848 "properties": {849 "Reactor": {850 "$ref": "#/$defs/symbol"851 }852 },853 "required": ["Reactor"],854 "additionalProperties": false855 },856 "Receive": {857 "description": "Generated typed Reactor child endpoint; authenticates the sender and subscribes before child admission.",858 "type": "object",859 "properties": {860 "Input": {861 "$ref": "#/$defs/progressTag"862 },863 "WireType": {864 "description": "Independent wire input type used by the generated client and receiver; must be assignable to the stored Input stage when Map is omitted.",865 "$ref": "#/$defs/symbol"866 },867 "Map": {868 "description": "Pure synchronous function from WireType to the stored Input stage. Called after authorization, topic validation and subscription, immediately before admission.",869 "$ref": "#/$defs/symbol"870 },871 "Authorize": {872 "$ref": "#/$defs/symbol"873 },874 "Topic": {875 "$ref": "#/$defs/symbol"876 }877 },878 "required": [879 "Input",880 "Authorize",881 "Topic"882 ],883 "dependentRequired": {"Map": ["WireType"]},884 "additionalProperties": false885 }886 },887 "required": [888 "FormatVersion",889 "Workflow",890 "Modules",891 "Types",892 "StartAt",893 "States",894 "Progress"895 ],896 "additionalProperties": false,897 "$defs": {898 "progressTag": {899 "description": "A tag in the workflow's canonical Progress declaration.",900 "type": "string",901 "pattern": "^[A-Z][A-Za-z0-9_]*$",902 "maxLength": 128903 },904 "operationBinding": {905 "description": "Use a prebuilt typed Operation, or generate typed registration from a Handler and canonical Progress tags.",906 "type": "object",907 "properties": {908 "Operation": {},909 "Handler": {},910 "Input": {},911 "Output": {}912 },913 "oneOf": [914 {915 "required": [916 "Operation",917 "Input",918 "Output"919 ],920 "properties": {921 "Operation": {}922 },923 "not": {924 "anyOf": [925 {926 "required": [927 "Handler"928 ],929 "properties": {930 "Handler": {}931 }932 }933 ]934 }935 },936 {937 "required": [938 "Handler",939 "Input",940 "Output"941 ],942 "properties": {943 "Handler": {},944 "Input": {},945 "Output": {}946 },947 "not": {948 "required": [949 "Operation"950 ],951 "properties": {952 "Operation": {}953 }954 }955 }956 ]957 },958 "effectBinding": {959 "description": "Use exactly one prebuilt Operation, Handler, remote Call or local Dispatch with explicit Input/Output tags. Generated forms may supply SafeUntil.",960 "type": "object",961 "properties": {962 "Operation": {},963 "Handler": {},964 "Call": {},965 "Dispatch": {},966 "Input": {},967 "Output": {},968 "SafeUntil": {}969 },970 "oneOf": [971 {972 "required": [973 "Operation"974 ],975 "properties": {976 "Operation": {}977 }978 },979 {980 "required": [981 "Handler"982 ],983 "properties": {984 "Handler": {}985 }986 },987 {988 "required": [989 "Call"990 ],991 "properties": {992 "Call": {}993 }994 },995 {996 "required": [997 "Dispatch"998 ],999 "properties": {1000 "Dispatch": {}1001 }1002 }1003 ],1004 "required": ["Input", "Output"],1005 "dependentSchemas": {1006 "SafeUntil": {1007 "not": {1008 "required": [1009 "Operation"1010 ],1011 "properties": {1012 "Operation": {}1013 }1014 }1015 }1016 }1017 },1018 "symbol": {1019 "type": "string",1020 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"1021 },1022 "retry": {1023 "type": "object",1024 "properties": {1025 "When": {1026 "type": "string",1027 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"1028 },1029 "Backoff": {1030 "oneOf": [1031 {1032 "type": "string",1033 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"1034 },1035 {1036 "type": "object",1037 "properties": {1038 "IntervalMillis": {1039 "type": "integer",1040 "minimum": 1,1041 "maximum": 90071992547409911042 },1043 "Backoff": {1044 "type": "integer",1045 "minimum": 1,1046 "maximum": 9007199254740991,1047 "default": 21048 },1049 "MaxDelayMillis": {1050 "type": "integer",1051 "minimum": 1,1052 "maximum": 90071992547409911053 },1054 "MaxRetries": {1055 "type": "integer",1056 "minimum": 0,1057 "maximum": 9007199254740991,1058 "default": 31059 }1060 },1061 "required": [1062 "IntervalMillis",1063 "MaxDelayMillis"1064 ],1065 "additionalProperties": false1066 }1067 ]1068 }1069 },1070 "required": [1071 "When",1072 "Backoff"1073 ],1074 "additionalProperties": false1075 },1076 "catch": {1077 "type": "object",1078 "properties": {1079 "When": {1080 "type": "string",1081 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"1082 },1083 "Map": {1084 "type": "string",1085 "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)+$"1086 },1087 "Next": {1088 "type": "string",1089 "minLength": 1,1090 "maxLength": 1281091 },1092 "Label": {1093 "type": "string",1094 "minLength": 1,1095 "maxLength": 1281096 },1097 "Recovery": {1098 "type": "boolean",1099 "default": false1100 },1101 "Capabilities": {1102 "type": "array",1103 "minItems": 1,1104 "uniqueItems": true,1105 "items": {1106 "enum": [1107 "Read",1108 "Clock"1109 ]1110 }1111 }1112 },1113 "required": [1114 "When",1115 "Map",1116 "Next"1117 ],1118 "additionalProperties": false1119 },1120 "callRecipe": {1121 "oneOf": [1122 {"$ref": "#/$defs/nativeCallRecipe"},1123 {"$ref": "#/$defs/reactorCallRecipe"}1124 ]1125 },1126 "nativeCallRecipe": {1127 "description": "One generated remote call with exact method argument/reply types. Request builds a typed RemotePlan; Reply interprets the concrete participant reply. The exact plan, destination and arguments persist before sending.",1128 "type": "object",1129 "properties": {1130 "Interface": {1131 "$ref": "#/$defs/symbol"1132 },1133 "RequestType": {1134 "$ref": "#/$defs/symbol"1135 },1136 "ReplyType": {1137 "$ref": "#/$defs/symbol"1138 },1139 "Request": {1140 "$ref": "#/$defs/symbol"1141 },1142 "Reply": {1143 "$ref": "#/$defs/symbol"1144 },1145 "Method": {1146 "type": "string",1147 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"1148 },1149 "MethodKind": {1150 "enum": [1151 "Update",1152 "Query"1153 ],1154 "default": "Update"1155 }1156 },1157 "required": [1158 "Interface",1159 "Method",1160 "RequestType",1161 "ReplyType",1162 "Request",1163 "Reply"1164 ],1165 "additionalProperties": false1166 },1167 "reactorCallRecipe": {1168 "description": "One typed Reactor request or preflight Reply. The shared Reactor retains the exact request bytes and durable response address.",1169 "type": "object",1170 "properties": {1171 "Reactor": {"$ref": "#/$defs/symbol"},1172 "Endpoint": {"$ref": "#/$defs/symbol"},1173 "Caller": {"$ref": "#/$defs/symbol"},1174 "RequestType": {"$ref": "#/$defs/symbol"},1175 "ReplyType": {"$ref": "#/$defs/symbol"},1176 "Request": {"$ref": "#/$defs/symbol"},1177 "Reply": {"$ref": "#/$defs/symbol"},1178 "SendError": {"$ref": "#/$defs/symbol"},1179 "Priority": {"enum": ["Interactive", "Maintenance"], "default": "Interactive"}1180 },1181 "required": ["Reactor", "Endpoint", "Caller", "RequestType", "ReplyType", "Request", "Reply", "SendError"],1182 "additionalProperties": false1183 },1184 "dispatchRecipe": {1185 "description": "One synchronous Rechain dispatch. Plan returns Dispatch/Done/Reject; Submit dispatches the typed action and Error maps its typed rejection.",1186 "type": "object",1187 "properties": {1188 "ActionType": {1189 "$ref": "#/$defs/symbol"1190 },1191 "Plan": {1192 "$ref": "#/$defs/symbol"1193 },1194 "Submit": {1195 "$ref": "#/$defs/symbol"1196 },1197 "Error": {1198 "$ref": "#/$defs/symbol"1199 }1200 },1201 "required": [1202 "ActionType",1203 "Plan",1204 "Submit",1205 "Error"1206 ],1207 "additionalProperties": false1208 }1209 }1210}