@toolproof-npm/schema 0.1.80 → 0.1.82

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.
@@ -2301,8 +2301,7 @@
2301
2301
  "statelessStrategy": {
2302
2302
  "$ref": "#/$defs/StatelessStrategy"
2303
2303
  }
2304
- },
2305
- "unevaluatedProperties": false
2304
+ }
2306
2305
  }
2307
2306
  }
2308
2307
  },
@@ -2427,8 +2426,7 @@
2427
2426
  "strategyState": {
2428
2427
  "$ref": "#/$defs/StrategyState"
2429
2428
  }
2430
- },
2431
- "unevaluatedProperties": false
2429
+ }
2432
2430
  }
2433
2431
  }
2434
2432
  },
@@ -2656,8 +2654,7 @@
2656
2654
  "strategyThreadMap": {
2657
2655
  "$ref": "#/$defs/StrategyThreadMap"
2658
2656
  }
2659
- },
2660
- "unevaluatedProperties": false
2657
+ }
2661
2658
  }
2662
2659
  }
2663
2660
  },
@@ -2709,6 +2706,50 @@
2709
2706
  }
2710
2707
  }
2711
2708
  },
2709
+ "StrategyStateDelta": {
2710
+ "identity": "RESOURCE-StrategyStateDelta",
2711
+ "resourceTypeRef": "TYPE-ResourceType",
2712
+ "creationContext": {
2713
+ "resourceRoleRef": "ROLE-Genesis",
2714
+ "executionRef": "EXECUTION-StrategyStateDelta"
2715
+ },
2716
+ "kind": "materialized",
2717
+ "timestamp": "2025-11-30T00:00:00.000Z",
2718
+ "extractedData": {
2719
+ "identity": "TYPE-StrategyStateDelta",
2720
+ "name": "StrategyStateDelta",
2721
+ "description": "dummy-description",
2722
+ "resourceFormatRef": "FORMAT-ApplicationJson",
2723
+ "extractionSchema": {
2724
+ "$anchor": "StrategyStateDelta",
2725
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2726
+ "type": "object",
2727
+ "$comment": "Shared delta payload for strategy state updates; used both as standalone updates and embedded within run events.",
2728
+ "properties": {
2729
+ "strategyStateUpdate": {
2730
+ "type": "object",
2731
+ "propertyNames": {
2732
+ "$ref": "#/$defs/ExecutionIdentity"
2733
+ },
2734
+ "additionalProperties": {
2735
+ "$ref": "#/$defs/ExecutionSocketMaterialized"
2736
+ },
2737
+ "unevaluatedProperties": false
2738
+ },
2739
+ "strategyStateUpdateWide": {
2740
+ "type": "object",
2741
+ "propertyNames": {
2742
+ "$ref": "#/$defs/ExecutionIdentity"
2743
+ },
2744
+ "additionalProperties": {
2745
+ "$ref": "#/$defs/ExecutionSocket"
2746
+ },
2747
+ "unevaluatedProperties": false
2748
+ }
2749
+ }
2750
+ }
2751
+ }
2752
+ },
2712
2753
  "StrategyRunUpdate": {
2713
2754
  "identity": "RESOURCE-StrategyRunUpdate",
2714
2755
  "resourceTypeRef": "TYPE-ResourceType",
@@ -2738,26 +2779,478 @@
2738
2779
  "strategyRun": {
2739
2780
  "$comment": "Optional embedded snapshot; strategyRunRef remains the canonical pointer.",
2740
2781
  "$ref": "#/$defs/StrategyRun"
2782
+ }
2783
+ },
2784
+ "allOf": [
2785
+ {
2786
+ "$ref": "#/$defs/StrategyStateDelta"
2787
+ }
2788
+ ],
2789
+ "unevaluatedProperties": false
2790
+ }
2791
+ }
2792
+ },
2793
+ "RunEventKind": {
2794
+ "identity": "RESOURCE-RunEventKind",
2795
+ "resourceTypeRef": "TYPE-ResourceType",
2796
+ "creationContext": {
2797
+ "resourceRoleRef": "ROLE-Genesis",
2798
+ "executionRef": "EXECUTION-RunEventKind"
2799
+ },
2800
+ "kind": "materialized",
2801
+ "timestamp": "2025-11-30T00:00:00.000Z",
2802
+ "extractedData": {
2803
+ "identity": "TYPE-RunEventKind",
2804
+ "name": "RunEventKind",
2805
+ "description": "dummy-description",
2806
+ "resourceFormatRef": "FORMAT-ApplicationJson",
2807
+ "extractionSchema": {
2808
+ "$anchor": "RunEventKind",
2809
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2810
+ "type": "string",
2811
+ "enum": [
2812
+ "graph_start",
2813
+ "tick",
2814
+ "interrupt",
2815
+ "graph_end"
2816
+ ]
2817
+ }
2818
+ }
2819
+ },
2820
+ "RunEventCounters": {
2821
+ "identity": "RESOURCE-RunEventCounters",
2822
+ "resourceTypeRef": "TYPE-ResourceType",
2823
+ "creationContext": {
2824
+ "resourceRoleRef": "ROLE-Genesis",
2825
+ "executionRef": "EXECUTION-RunEventCounters"
2826
+ },
2827
+ "kind": "materialized",
2828
+ "timestamp": "2025-11-30T00:00:00.000Z",
2829
+ "extractedData": {
2830
+ "identity": "TYPE-RunEventCounters",
2831
+ "name": "RunEventCounters",
2832
+ "description": "dummy-description",
2833
+ "resourceFormatRef": "FORMAT-ApplicationJson",
2834
+ "extractionSchema": {
2835
+ "$anchor": "RunEventCounters",
2836
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2837
+ "type": "object",
2838
+ "properties": {
2839
+ "stepCounterAfter": {
2840
+ "type": "integer"
2741
2841
  },
2742
- "strategyStateUpdate": {
2842
+ "iterationCounterAfter": {
2843
+ "type": "integer"
2844
+ }
2845
+ }
2846
+ }
2847
+ }
2848
+ },
2849
+ "RunEventStepKind": {
2850
+ "identity": "RESOURCE-RunEventStepKind",
2851
+ "resourceTypeRef": "TYPE-ResourceType",
2852
+ "creationContext": {
2853
+ "resourceRoleRef": "ROLE-Genesis",
2854
+ "executionRef": "EXECUTION-RunEventStepKind"
2855
+ },
2856
+ "kind": "materialized",
2857
+ "timestamp": "2025-11-30T00:00:00.000Z",
2858
+ "extractedData": {
2859
+ "identity": "TYPE-RunEventStepKind",
2860
+ "name": "RunEventStepKind",
2861
+ "description": "dummy-description",
2862
+ "resourceFormatRef": "FORMAT-ApplicationJson",
2863
+ "extractionSchema": {
2864
+ "$anchor": "RunEventStepKind",
2865
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2866
+ "type": "string",
2867
+ "enum": [
2868
+ "work",
2869
+ "branch",
2870
+ "while",
2871
+ "for"
2872
+ ]
2873
+ }
2874
+ }
2875
+ },
2876
+ "RunEventStepMetaData": {
2877
+ "identity": "RESOURCE-RunEventStepMetaData",
2878
+ "resourceTypeRef": "TYPE-ResourceType",
2879
+ "creationContext": {
2880
+ "resourceRoleRef": "ROLE-Genesis",
2881
+ "executionRef": "EXECUTION-RunEventStepMetaData"
2882
+ },
2883
+ "kind": "materialized",
2884
+ "timestamp": "2025-11-30T00:00:00.000Z",
2885
+ "extractedData": {
2886
+ "identity": "TYPE-RunEventStepMetaData",
2887
+ "name": "RunEventStepMetaData",
2888
+ "description": "dummy-description",
2889
+ "resourceFormatRef": "FORMAT-ApplicationJson",
2890
+ "extractionSchema": {
2891
+ "$anchor": "RunEventStepMetaData",
2892
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2893
+ "type": "object",
2894
+ "required": [
2895
+ "stepRef",
2896
+ "stepKind",
2897
+ "threadStepIndex"
2898
+ ],
2899
+ "properties": {
2900
+ "stepRef": {
2901
+ "oneOf": [
2902
+ {
2903
+ "$ref": "#/$defs/WorkStepIdentity"
2904
+ },
2905
+ {
2906
+ "$ref": "#/$defs/BranchStepIdentity"
2907
+ },
2908
+ {
2909
+ "$ref": "#/$defs/WhileStepIdentity"
2910
+ },
2911
+ {
2912
+ "$ref": "#/$defs/ForStepIdentity"
2913
+ }
2914
+ ]
2915
+ },
2916
+ "stepKind": {
2917
+ "$ref": "#/$defs/RunEventStepKind"
2918
+ },
2919
+ "threadStepIndex": {
2920
+ "type": "integer"
2921
+ },
2922
+ "executionRef": {
2923
+ "$ref": "#/$defs/ExecutionIdentity"
2924
+ },
2925
+ "jobRef": {
2926
+ "$ref": "#/$defs/JobIdentity"
2927
+ }
2928
+ }
2929
+ }
2930
+ }
2931
+ },
2932
+ "RunEventUpdates": {
2933
+ "identity": "RESOURCE-RunEventUpdates",
2934
+ "resourceTypeRef": "TYPE-ResourceType",
2935
+ "creationContext": {
2936
+ "resourceRoleRef": "ROLE-Genesis",
2937
+ "executionRef": "EXECUTION-RunEventUpdates"
2938
+ },
2939
+ "kind": "materialized",
2940
+ "timestamp": "2025-11-30T00:00:00.000Z",
2941
+ "extractedData": {
2942
+ "identity": "TYPE-RunEventUpdates",
2943
+ "name": "RunEventUpdates",
2944
+ "description": "dummy-description",
2945
+ "resourceFormatRef": "FORMAT-ApplicationJson",
2946
+ "extractionSchema": {
2947
+ "$anchor": "RunEventUpdates",
2948
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2949
+ "type": "object",
2950
+ "allOf": [
2951
+ {
2952
+ "$ref": "#/$defs/StrategyStateDelta"
2953
+ }
2954
+ ],
2955
+ "properties": {
2956
+ "stepsMutation": {
2743
2957
  "type": "object",
2744
- "propertyNames": {
2745
- "$ref": "#/$defs/ExecutionIdentity"
2746
- },
2747
- "additionalProperties": {
2748
- "$ref": "#/$defs/ExecutionSocketMaterialized"
2749
- },
2750
- "unevaluatedProperties": false
2958
+ "required": [
2959
+ "insertAt",
2960
+ "inserted"
2961
+ ],
2962
+ "properties": {
2963
+ "insertAt": {
2964
+ "type": "integer"
2965
+ },
2966
+ "inserted": {
2967
+ "type": "array",
2968
+ "items": {
2969
+ "$ref": "#/$defs/Step"
2970
+ }
2971
+ }
2972
+ }
2751
2973
  },
2752
- "strategyStateUpdateWide": {
2974
+ "interruptData": {
2975
+ "$comment": "Kept permissive; the engine may evolve interrupt payloads.",
2976
+ "type": [
2977
+ "object",
2978
+ "null"
2979
+ ]
2980
+ }
2981
+ }
2982
+ }
2983
+ }
2984
+ },
2985
+ "RunEventBase": {
2986
+ "identity": "RESOURCE-RunEventBase",
2987
+ "resourceTypeRef": "TYPE-ResourceType",
2988
+ "creationContext": {
2989
+ "resourceRoleRef": "ROLE-Genesis",
2990
+ "executionRef": "EXECUTION-RunEventBase"
2991
+ },
2992
+ "kind": "materialized",
2993
+ "timestamp": "2025-11-30T00:00:00.000Z",
2994
+ "extractedData": {
2995
+ "identity": "TYPE-RunEventBase",
2996
+ "name": "RunEventBase",
2997
+ "description": "dummy-description",
2998
+ "resourceFormatRef": "FORMAT-ApplicationJson",
2999
+ "extractionSchema": {
3000
+ "$anchor": "RunEventBase",
3001
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3002
+ "type": "object",
3003
+ "required": [
3004
+ "kind",
3005
+ "strategyRunRef",
3006
+ "strategyThreadRef",
3007
+ "createdAt",
3008
+ "nodeName",
3009
+ "eventSeq"
3010
+ ],
3011
+ "properties": {
3012
+ "kind": {
3013
+ "$ref": "#/$defs/RunEventKind"
3014
+ },
3015
+ "strategyRunRef": {
3016
+ "$ref": "#/$defs/StrategyRunIdentity"
3017
+ },
3018
+ "strategyThreadRef": {
3019
+ "$ref": "#/$defs/StrategyThreadIdentity"
3020
+ },
3021
+ "createdAt": {
3022
+ "$ref": "#/$defs/Timestamp"
3023
+ },
3024
+ "nodeName": {
3025
+ "type": "string"
3026
+ },
3027
+ "eventSeq": {
3028
+ "type": "integer"
3029
+ },
3030
+ "counters": {
3031
+ "$ref": "#/$defs/RunEventCounters"
3032
+ },
3033
+ "stepMetaData": {
3034
+ "$ref": "#/$defs/RunEventStepMetaData"
3035
+ },
3036
+ "updates": {
3037
+ "$ref": "#/$defs/RunEventUpdates"
3038
+ }
3039
+ }
3040
+ }
3041
+ }
3042
+ },
3043
+ "GraphStartRunEvent": {
3044
+ "identity": "RESOURCE-GraphStartRunEvent",
3045
+ "resourceTypeRef": "TYPE-ResourceType",
3046
+ "creationContext": {
3047
+ "resourceRoleRef": "ROLE-Genesis",
3048
+ "executionRef": "EXECUTION-GraphStartRunEvent"
3049
+ },
3050
+ "kind": "materialized",
3051
+ "timestamp": "2025-11-30T00:00:00.000Z",
3052
+ "extractedData": {
3053
+ "identity": "TYPE-GraphStartRunEvent",
3054
+ "name": "GraphStartRunEvent",
3055
+ "description": "dummy-description",
3056
+ "resourceFormatRef": "FORMAT-ApplicationJson",
3057
+ "extractionSchema": {
3058
+ "$anchor": "GraphStartRunEvent",
3059
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3060
+ "allOf": [
3061
+ {
3062
+ "$ref": "#/$defs/RunEventBase"
3063
+ },
3064
+ {
2753
3065
  "type": "object",
2754
- "propertyNames": {
2755
- "$ref": "#/$defs/ExecutionIdentity"
2756
- },
2757
- "additionalProperties": {
2758
- "$ref": "#/$defs/ExecutionSocket"
2759
- },
2760
- "unevaluatedProperties": false
3066
+ "required": [
3067
+ "strategyRunSeed"
3068
+ ],
3069
+ "properties": {
3070
+ "kind": {
3071
+ "const": "graph_start"
3072
+ },
3073
+ "strategyRunSeed": {
3074
+ "$ref": "#/$defs/StrategyRun"
3075
+ }
3076
+ }
3077
+ }
3078
+ ]
3079
+ }
3080
+ }
3081
+ },
3082
+ "TickRunEvent": {
3083
+ "identity": "RESOURCE-TickRunEvent",
3084
+ "resourceTypeRef": "TYPE-ResourceType",
3085
+ "creationContext": {
3086
+ "resourceRoleRef": "ROLE-Genesis",
3087
+ "executionRef": "EXECUTION-TickRunEvent"
3088
+ },
3089
+ "kind": "materialized",
3090
+ "timestamp": "2025-11-30T00:00:00.000Z",
3091
+ "extractedData": {
3092
+ "identity": "TYPE-TickRunEvent",
3093
+ "name": "TickRunEvent",
3094
+ "description": "dummy-description",
3095
+ "resourceFormatRef": "FORMAT-ApplicationJson",
3096
+ "extractionSchema": {
3097
+ "$anchor": "TickRunEvent",
3098
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3099
+ "allOf": [
3100
+ {
3101
+ "$ref": "#/$defs/RunEventBase"
3102
+ },
3103
+ {
3104
+ "type": "object",
3105
+ "properties": {
3106
+ "kind": {
3107
+ "const": "tick"
3108
+ }
3109
+ }
3110
+ }
3111
+ ]
3112
+ }
3113
+ }
3114
+ },
3115
+ "InterruptRunEvent": {
3116
+ "identity": "RESOURCE-InterruptRunEvent",
3117
+ "resourceTypeRef": "TYPE-ResourceType",
3118
+ "creationContext": {
3119
+ "resourceRoleRef": "ROLE-Genesis",
3120
+ "executionRef": "EXECUTION-InterruptRunEvent"
3121
+ },
3122
+ "kind": "materialized",
3123
+ "timestamp": "2025-11-30T00:00:00.000Z",
3124
+ "extractedData": {
3125
+ "identity": "TYPE-InterruptRunEvent",
3126
+ "name": "InterruptRunEvent",
3127
+ "description": "dummy-description",
3128
+ "resourceFormatRef": "FORMAT-ApplicationJson",
3129
+ "extractionSchema": {
3130
+ "$anchor": "InterruptRunEvent",
3131
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3132
+ "allOf": [
3133
+ {
3134
+ "$ref": "#/$defs/RunEventBase"
3135
+ },
3136
+ {
3137
+ "type": "object",
3138
+ "properties": {
3139
+ "kind": {
3140
+ "const": "interrupt"
3141
+ }
3142
+ }
3143
+ }
3144
+ ]
3145
+ }
3146
+ }
3147
+ },
3148
+ "GraphEndRunEvent": {
3149
+ "identity": "RESOURCE-GraphEndRunEvent",
3150
+ "resourceTypeRef": "TYPE-ResourceType",
3151
+ "creationContext": {
3152
+ "resourceRoleRef": "ROLE-Genesis",
3153
+ "executionRef": "EXECUTION-GraphEndRunEvent"
3154
+ },
3155
+ "kind": "materialized",
3156
+ "timestamp": "2025-11-30T00:00:00.000Z",
3157
+ "extractedData": {
3158
+ "identity": "TYPE-GraphEndRunEvent",
3159
+ "name": "GraphEndRunEvent",
3160
+ "description": "dummy-description",
3161
+ "resourceFormatRef": "FORMAT-ApplicationJson",
3162
+ "extractionSchema": {
3163
+ "$anchor": "GraphEndRunEvent",
3164
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3165
+ "allOf": [
3166
+ {
3167
+ "$ref": "#/$defs/RunEventBase"
3168
+ },
3169
+ {
3170
+ "type": "object",
3171
+ "properties": {
3172
+ "kind": {
3173
+ "const": "graph_end"
3174
+ }
3175
+ }
3176
+ }
3177
+ ]
3178
+ }
3179
+ }
3180
+ },
3181
+ "RunEvent": {
3182
+ "identity": "RESOURCE-RunEvent",
3183
+ "resourceTypeRef": "TYPE-ResourceType",
3184
+ "creationContext": {
3185
+ "resourceRoleRef": "ROLE-Genesis",
3186
+ "executionRef": "EXECUTION-RunEvent"
3187
+ },
3188
+ "kind": "materialized",
3189
+ "timestamp": "2025-11-30T00:00:00.000Z",
3190
+ "extractedData": {
3191
+ "identity": "TYPE-RunEvent",
3192
+ "name": "RunEvent",
3193
+ "description": "dummy-description",
3194
+ "resourceFormatRef": "FORMAT-ApplicationJson",
3195
+ "extractionSchema": {
3196
+ "$anchor": "RunEvent",
3197
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3198
+ "oneOf": [
3199
+ {
3200
+ "$ref": "#/$defs/GraphStartRunEvent"
3201
+ },
3202
+ {
3203
+ "$ref": "#/$defs/TickRunEvent"
3204
+ },
3205
+ {
3206
+ "$ref": "#/$defs/InterruptRunEvent"
3207
+ },
3208
+ {
3209
+ "$ref": "#/$defs/GraphEndRunEvent"
3210
+ }
3211
+ ]
3212
+ }
3213
+ }
3214
+ },
3215
+ "RunRecording": {
3216
+ "identity": "RESOURCE-RunRecording",
3217
+ "resourceTypeRef": "TYPE-ResourceType",
3218
+ "creationContext": {
3219
+ "resourceRoleRef": "ROLE-Genesis",
3220
+ "executionRef": "EXECUTION-RunRecording"
3221
+ },
3222
+ "kind": "materialized",
3223
+ "timestamp": "2025-11-30T00:00:00.000Z",
3224
+ "extractedData": {
3225
+ "identity": "TYPE-RunRecording",
3226
+ "name": "RunRecording",
3227
+ "description": "dummy-description",
3228
+ "resourceFormatRef": "FORMAT-ApplicationJson",
3229
+ "extractionSchema": {
3230
+ "$anchor": "RunRecording",
3231
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3232
+ "type": "object",
3233
+ "required": [
3234
+ "runEvents"
3235
+ ],
3236
+ "properties": {
3237
+ "strategyRunRef": {
3238
+ "$comment": "Optional; derived from the first event but useful for indexing.",
3239
+ "$ref": "#/$defs/StrategyRunIdentity"
3240
+ },
3241
+ "strategyThreadRef": {
3242
+ "$comment": "Optional; derived from the first event but useful for indexing.",
3243
+ "$ref": "#/$defs/StrategyThreadIdentity"
3244
+ },
3245
+ "recordedAt": {
3246
+ "$comment": "Optional recording timestamp.",
3247
+ "$ref": "#/$defs/Timestamp"
3248
+ },
3249
+ "runEvents": {
3250
+ "type": "array",
3251
+ "items": {
3252
+ "$ref": "#/$defs/RunEvent"
3253
+ }
2761
3254
  }
2762
3255
  },
2763
3256
  "unevaluatedProperties": false