@parcha/agentrun-dsl 0.1.0-beta.4 → 0.1.0-beta.41
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/README.md +167 -23
- package/dist/author-references.d.ts +8 -0
- package/dist/author-references.js +8 -0
- package/dist/author.d.ts +13 -5
- package/dist/author.js +47 -18
- package/dist/authoring.js +2 -2
- package/dist/cli.js +17 -12
- package/dist/code-exec.d.ts +6 -0
- package/dist/code-exec.js +126 -0
- package/dist/decision-provider.d.ts +165 -0
- package/dist/decision-provider.js +238 -0
- package/dist/decision-receipts.d.ts +159 -0
- package/dist/decision-receipts.js +93 -0
- package/dist/dry-run.d.ts +45 -2
- package/dist/dry-run.js +159 -26
- package/dist/evidence.d.ts +19 -0
- package/dist/evidence.js +62 -0
- package/dist/graph.d.ts +169 -0
- package/dist/graph.js +433 -0
- package/dist/index.d.ts +19 -11
- package/dist/index.js +14 -9
- package/dist/inspection.d.ts +5 -0
- package/dist/inspection.js +16 -3
- package/dist/job.d.ts +14 -0
- package/dist/job.js +5 -0
- package/dist/long-timer.d.ts +7 -0
- package/dist/long-timer.js +22 -0
- package/dist/observer-snapshot.d.ts +3 -0
- package/dist/observer-snapshot.js +46 -0
- package/dist/predicates.d.ts +32 -0
- package/dist/predicates.js +61 -0
- package/dist/recovery/binding.d.ts +10 -0
- package/dist/recovery/binding.js +43 -0
- package/dist/recovery/call-key.d.ts +9 -0
- package/dist/recovery/call-key.js +17 -0
- package/dist/recovery/canonical-hash.d.ts +7 -0
- package/dist/recovery/canonical-hash.js +22 -0
- package/dist/recovery/driver.d.ts +235 -0
- package/dist/recovery/driver.js +1333 -0
- package/dist/recovery/errors.d.ts +31 -0
- package/dist/recovery/errors.js +51 -0
- package/dist/recovery/execution-path.d.ts +53 -0
- package/dist/recovery/execution-path.js +167 -0
- package/dist/recovery/file-store.d.ts +7 -0
- package/dist/recovery/file-store.js +131 -0
- package/dist/recovery/frozen-snapshot.d.ts +274 -0
- package/dist/recovery/frozen-snapshot.js +187 -0
- package/dist/recovery/handoff-receipts.d.ts +7 -0
- package/dist/recovery/handoff-receipts.js +10 -0
- package/dist/recovery/index.d.ts +14 -0
- package/dist/recovery/index.js +13 -0
- package/dist/recovery/item-state.d.ts +48 -0
- package/dist/recovery/item-state.js +89 -0
- package/dist/recovery/journal.d.ts +28 -0
- package/dist/recovery/journal.js +139 -0
- package/dist/recovery/memory-store.d.ts +4 -0
- package/dist/recovery/memory-store.js +20 -0
- package/dist/recovery/store.d.ts +105 -0
- package/dist/recovery/store.js +6 -0
- package/dist/recovery/testing/conformance.d.ts +4 -0
- package/dist/recovery/testing/conformance.js +268 -0
- package/dist/recovery/testing/crash-points.d.ts +18 -0
- package/dist/recovery/testing/crash-points.js +43 -0
- package/dist/recovery/testing/crash-sweep.d.ts +65 -0
- package/dist/recovery/testing/crash-sweep.js +146 -0
- package/dist/recovery/testing/index.d.ts +3 -0
- package/dist/recovery/testing/index.js +4 -0
- package/dist/recovery/testing/preload.d.ts +1 -0
- package/dist/recovery/testing/preload.js +3 -0
- package/dist/recovery/transport-facts.d.ts +23 -0
- package/dist/recovery/transport-facts.js +46 -0
- package/dist/recovery/with-recovery.d.ts +50 -0
- package/dist/recovery/with-recovery.js +144 -0
- package/dist/submit-envelope.d.ts +9 -0
- package/dist/submit-envelope.js +40 -0
- package/dist/system-one.d.ts +40 -2
- package/dist/system-one.js +141 -6
- package/dist/testing/decision-provider.d.ts +32 -0
- package/dist/testing/decision-provider.js +183 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +2 -0
- package/dist/vocabulary.d.ts +31 -3
- package/dist/vocabulary.js +46 -14
- package/dist/workflow-shape.d.ts +7 -0
- package/dist/workflow-shape.js +112 -68
- package/dist/workflow.d.ts +362 -29
- package/dist/workflow.js +1844 -430
- package/package.json +27 -4
- package/schema/workflow.schema.json +551 -12
- package/skills/author/SKILL.md +6 -1
- package/skills/author/references/jev-decisions.md +69 -12
- package/skills/author/references/language.md +41 -24
- package/skills/author/references/sdk-authoring.md +2 -0
|
@@ -51,6 +51,12 @@
|
|
|
51
51
|
"type": "string",
|
|
52
52
|
"title": "as"
|
|
53
53
|
},
|
|
54
|
+
"guard": {
|
|
55
|
+
"description": "A step guard as a document holds it (StepGuard once validateWorkflow accepted it): an object the validator reads field\nby field, so a wrong signal or threshold is refused in words an author can act on, never a schema union's.",
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": {},
|
|
58
|
+
"title": "guard"
|
|
59
|
+
},
|
|
54
60
|
"metadata": {
|
|
55
61
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
56
62
|
"type": "object",
|
|
@@ -184,6 +190,33 @@
|
|
|
184
190
|
"type": "string",
|
|
185
191
|
"title": "tier"
|
|
186
192
|
},
|
|
193
|
+
"budget_usd": {
|
|
194
|
+
"description": "The most the node asks to spend, in dollars.",
|
|
195
|
+
"exclusiveMinimum": 0,
|
|
196
|
+
"type": "number",
|
|
197
|
+
"title": "budget_usd"
|
|
198
|
+
},
|
|
199
|
+
"max_turns": {
|
|
200
|
+
"description": "The most turns the node asks its host for, per attempt. The host applies it within its own cap; the engine\nenforces nothing.",
|
|
201
|
+
"minimum": 1,
|
|
202
|
+
"type": "integer",
|
|
203
|
+
"title": "max_turns"
|
|
204
|
+
},
|
|
205
|
+
"context": {
|
|
206
|
+
"description": "An `agent` node's context (`AGENT_CONTEXTS`).",
|
|
207
|
+
"enum": [
|
|
208
|
+
"fork",
|
|
209
|
+
"fresh"
|
|
210
|
+
],
|
|
211
|
+
"type": "string",
|
|
212
|
+
"title": "context"
|
|
213
|
+
},
|
|
214
|
+
"guard": {
|
|
215
|
+
"description": "A step guard as a document holds it (StepGuard once validateWorkflow accepted it): an object the validator reads field\nby field, so a wrong signal or threshold is refused in words an author can act on, never a schema union's.",
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": {},
|
|
218
|
+
"title": "guard"
|
|
219
|
+
},
|
|
187
220
|
"metadata": {
|
|
188
221
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
189
222
|
"type": "object",
|
|
@@ -318,6 +351,12 @@
|
|
|
318
351
|
"type": "string",
|
|
319
352
|
"title": "tier"
|
|
320
353
|
},
|
|
354
|
+
"guard": {
|
|
355
|
+
"description": "A step guard as a document holds it (StepGuard once validateWorkflow accepted it): an object the validator reads field\nby field, so a wrong signal or threshold is refused in words an author can act on, never a schema union's.",
|
|
356
|
+
"type": "object",
|
|
357
|
+
"additionalProperties": {},
|
|
358
|
+
"title": "guard"
|
|
359
|
+
},
|
|
321
360
|
"metadata": {
|
|
322
361
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
323
362
|
"type": "object",
|
|
@@ -452,6 +491,12 @@
|
|
|
452
491
|
"type": "string",
|
|
453
492
|
"title": "tier"
|
|
454
493
|
},
|
|
494
|
+
"guard": {
|
|
495
|
+
"description": "A step guard as a document holds it (StepGuard once validateWorkflow accepted it): an object the validator reads field\nby field, so a wrong signal or threshold is refused in words an author can act on, never a schema union's.",
|
|
496
|
+
"type": "object",
|
|
497
|
+
"additionalProperties": {},
|
|
498
|
+
"title": "guard"
|
|
499
|
+
},
|
|
455
500
|
"metadata": {
|
|
456
501
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
457
502
|
"type": "object",
|
|
@@ -672,6 +717,20 @@
|
|
|
672
717
|
"type": "number",
|
|
673
718
|
"title": "maxConcurrency"
|
|
674
719
|
},
|
|
720
|
+
"onItemFailure": {
|
|
721
|
+
"description": "What an item's failure does: `stop` (the default) stops the map and the run; `collect` ends the item as a row\nof `failedAs` when its failure is an item failure (`isItemFailure`), and the other items finish.",
|
|
722
|
+
"enum": [
|
|
723
|
+
"collect",
|
|
724
|
+
"stop"
|
|
725
|
+
],
|
|
726
|
+
"type": "string",
|
|
727
|
+
"title": "onItemFailure"
|
|
728
|
+
},
|
|
729
|
+
"failedAs": {
|
|
730
|
+
"description": "With `onItemFailure: \"collect\"`, the state key the map writes its failed items under, one row each in item order:\n`{ item_index, label, code, message }`. `as` stays aligned with the items, `null` in a failed item's slot.",
|
|
731
|
+
"type": "string",
|
|
732
|
+
"title": "failedAs"
|
|
733
|
+
},
|
|
675
734
|
"metadata": {
|
|
676
735
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
677
736
|
"type": "object",
|
|
@@ -743,6 +802,10 @@
|
|
|
743
802
|
"type": "number",
|
|
744
803
|
"title": "maxIters"
|
|
745
804
|
},
|
|
805
|
+
"expect_iters": {
|
|
806
|
+
"type": "number",
|
|
807
|
+
"title": "expect_iters"
|
|
808
|
+
},
|
|
746
809
|
"metadata": {
|
|
747
810
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
748
811
|
"type": "object",
|
|
@@ -834,6 +897,39 @@
|
|
|
834
897
|
},
|
|
835
898
|
"title": "requires"
|
|
836
899
|
},
|
|
900
|
+
"provider": {
|
|
901
|
+
"type": "string",
|
|
902
|
+
"title": "provider"
|
|
903
|
+
},
|
|
904
|
+
"model": {
|
|
905
|
+
"type": "string",
|
|
906
|
+
"title": "model"
|
|
907
|
+
},
|
|
908
|
+
"evidence": {
|
|
909
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
910
|
+
"enum": [
|
|
911
|
+
"if_supported",
|
|
912
|
+
"off",
|
|
913
|
+
"required"
|
|
914
|
+
],
|
|
915
|
+
"type": "string",
|
|
916
|
+
"title": "evidence"
|
|
917
|
+
},
|
|
918
|
+
"timeoutMs": {
|
|
919
|
+
"type": "number",
|
|
920
|
+
"title": "timeoutMs"
|
|
921
|
+
},
|
|
922
|
+
"images": {
|
|
923
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
924
|
+
"$ref": "#/definitions/DecisionImages",
|
|
925
|
+
"title": "images"
|
|
926
|
+
},
|
|
927
|
+
"guard": {
|
|
928
|
+
"description": "A step guard as a document holds it (StepGuard once validateWorkflow accepted it): an object the validator reads field\nby field, so a wrong signal or threshold is refused in words an author can act on, never a schema union's.",
|
|
929
|
+
"type": "object",
|
|
930
|
+
"additionalProperties": {},
|
|
931
|
+
"title": "guard"
|
|
932
|
+
},
|
|
837
933
|
"metadata": {
|
|
838
934
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
839
935
|
"type": "object",
|
|
@@ -893,6 +989,39 @@
|
|
|
893
989
|
},
|
|
894
990
|
"title": "requires"
|
|
895
991
|
},
|
|
992
|
+
"provider": {
|
|
993
|
+
"type": "string",
|
|
994
|
+
"title": "provider"
|
|
995
|
+
},
|
|
996
|
+
"model": {
|
|
997
|
+
"type": "string",
|
|
998
|
+
"title": "model"
|
|
999
|
+
},
|
|
1000
|
+
"evidence": {
|
|
1001
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
1002
|
+
"enum": [
|
|
1003
|
+
"if_supported",
|
|
1004
|
+
"off",
|
|
1005
|
+
"required"
|
|
1006
|
+
],
|
|
1007
|
+
"type": "string",
|
|
1008
|
+
"title": "evidence"
|
|
1009
|
+
},
|
|
1010
|
+
"timeoutMs": {
|
|
1011
|
+
"type": "number",
|
|
1012
|
+
"title": "timeoutMs"
|
|
1013
|
+
},
|
|
1014
|
+
"images": {
|
|
1015
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
1016
|
+
"$ref": "#/definitions/DecisionImages",
|
|
1017
|
+
"title": "images"
|
|
1018
|
+
},
|
|
1019
|
+
"guard": {
|
|
1020
|
+
"description": "A step guard as a document holds it (StepGuard once validateWorkflow accepted it): an object the validator reads field\nby field, so a wrong signal or threshold is refused in words an author can act on, never a schema union's.",
|
|
1021
|
+
"type": "object",
|
|
1022
|
+
"additionalProperties": {},
|
|
1023
|
+
"title": "guard"
|
|
1024
|
+
},
|
|
896
1025
|
"metadata": {
|
|
897
1026
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
898
1027
|
"type": "object",
|
|
@@ -966,6 +1095,39 @@
|
|
|
966
1095
|
},
|
|
967
1096
|
"title": "requires"
|
|
968
1097
|
},
|
|
1098
|
+
"provider": {
|
|
1099
|
+
"type": "string",
|
|
1100
|
+
"title": "provider"
|
|
1101
|
+
},
|
|
1102
|
+
"model": {
|
|
1103
|
+
"type": "string",
|
|
1104
|
+
"title": "model"
|
|
1105
|
+
},
|
|
1106
|
+
"evidence": {
|
|
1107
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
1108
|
+
"enum": [
|
|
1109
|
+
"if_supported",
|
|
1110
|
+
"off",
|
|
1111
|
+
"required"
|
|
1112
|
+
],
|
|
1113
|
+
"type": "string",
|
|
1114
|
+
"title": "evidence"
|
|
1115
|
+
},
|
|
1116
|
+
"timeoutMs": {
|
|
1117
|
+
"type": "number",
|
|
1118
|
+
"title": "timeoutMs"
|
|
1119
|
+
},
|
|
1120
|
+
"images": {
|
|
1121
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
1122
|
+
"$ref": "#/definitions/DecisionImages",
|
|
1123
|
+
"title": "images"
|
|
1124
|
+
},
|
|
1125
|
+
"guard": {
|
|
1126
|
+
"description": "A step guard as a document holds it (StepGuard once validateWorkflow accepted it): an object the validator reads field\nby field, so a wrong signal or threshold is refused in words an author can act on, never a schema union's.",
|
|
1127
|
+
"type": "object",
|
|
1128
|
+
"additionalProperties": {},
|
|
1129
|
+
"title": "guard"
|
|
1130
|
+
},
|
|
969
1131
|
"metadata": {
|
|
970
1132
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
971
1133
|
"type": "object",
|
|
@@ -982,7 +1144,7 @@
|
|
|
982
1144
|
]
|
|
983
1145
|
},
|
|
984
1146
|
{
|
|
985
|
-
"description": "A choice among subgraphs. The options are the branch names, their criteria the branch\ndescriptions; the chosen branch runs on the state. `as` (optional) records the choice and its\ndistribution; `unsure` names the branch taken when confidence is below `gte`.",
|
|
1147
|
+
"description": "A choice among subgraphs that Jev makes. The options are the branch names, their criteria the branch\ndescriptions; the chosen branch runs on the state. `as` (optional) records the choice and its\ndistribution; `unsure` names the branch taken when confidence is below `gte`.",
|
|
986
1148
|
"type": "object",
|
|
987
1149
|
"properties": {
|
|
988
1150
|
"node": {
|
|
@@ -1051,6 +1213,33 @@
|
|
|
1051
1213
|
},
|
|
1052
1214
|
"title": "requires"
|
|
1053
1215
|
},
|
|
1216
|
+
"provider": {
|
|
1217
|
+
"type": "string",
|
|
1218
|
+
"title": "provider"
|
|
1219
|
+
},
|
|
1220
|
+
"model": {
|
|
1221
|
+
"type": "string",
|
|
1222
|
+
"title": "model"
|
|
1223
|
+
},
|
|
1224
|
+
"evidence": {
|
|
1225
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
1226
|
+
"enum": [
|
|
1227
|
+
"if_supported",
|
|
1228
|
+
"off",
|
|
1229
|
+
"required"
|
|
1230
|
+
],
|
|
1231
|
+
"type": "string",
|
|
1232
|
+
"title": "evidence"
|
|
1233
|
+
},
|
|
1234
|
+
"timeoutMs": {
|
|
1235
|
+
"type": "number",
|
|
1236
|
+
"title": "timeoutMs"
|
|
1237
|
+
},
|
|
1238
|
+
"images": {
|
|
1239
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
1240
|
+
"$ref": "#/definitions/DecisionImages",
|
|
1241
|
+
"title": "images"
|
|
1242
|
+
},
|
|
1054
1243
|
"metadata": {
|
|
1055
1244
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
1056
1245
|
"type": "object",
|
|
@@ -1064,7 +1253,102 @@
|
|
|
1064
1253
|
"label",
|
|
1065
1254
|
"node",
|
|
1066
1255
|
"state"
|
|
1067
|
-
]
|
|
1256
|
+
],
|
|
1257
|
+
"not": {
|
|
1258
|
+
"anyOf": [
|
|
1259
|
+
{
|
|
1260
|
+
"required": [
|
|
1261
|
+
"valuePath"
|
|
1262
|
+
]
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"required": [
|
|
1266
|
+
"otherwise"
|
|
1267
|
+
]
|
|
1268
|
+
}
|
|
1269
|
+
]
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"description": "A route by a value already in state: the string at `valuePath` names the branch. A missing value or\nan unknown name takes `otherwise` when declared and fails before any branch otherwise; a value that is\nnot a string always fails. `as` records `{value, taken, fallback}`.",
|
|
1274
|
+
"type": "object",
|
|
1275
|
+
"properties": {
|
|
1276
|
+
"node": {
|
|
1277
|
+
"type": "string",
|
|
1278
|
+
"const": "route",
|
|
1279
|
+
"title": "node"
|
|
1280
|
+
},
|
|
1281
|
+
"label": {
|
|
1282
|
+
"type": "string",
|
|
1283
|
+
"title": "label"
|
|
1284
|
+
},
|
|
1285
|
+
"valuePath": {
|
|
1286
|
+
"type": "string",
|
|
1287
|
+
"title": "valuePath"
|
|
1288
|
+
},
|
|
1289
|
+
"branches": {
|
|
1290
|
+
"type": "object",
|
|
1291
|
+
"additionalProperties": {
|
|
1292
|
+
"type": "object",
|
|
1293
|
+
"properties": {
|
|
1294
|
+
"body": {
|
|
1295
|
+
"$ref": "#/definitions/WorkflowNode",
|
|
1296
|
+
"title": "body"
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
"required": [
|
|
1300
|
+
"body"
|
|
1301
|
+
]
|
|
1302
|
+
},
|
|
1303
|
+
"title": "branches"
|
|
1304
|
+
},
|
|
1305
|
+
"otherwise": {
|
|
1306
|
+
"type": "string",
|
|
1307
|
+
"title": "otherwise"
|
|
1308
|
+
},
|
|
1309
|
+
"as": {
|
|
1310
|
+
"type": "string",
|
|
1311
|
+
"title": "as"
|
|
1312
|
+
},
|
|
1313
|
+
"requires": {
|
|
1314
|
+
"type": "array",
|
|
1315
|
+
"items": {
|
|
1316
|
+
"type": "string"
|
|
1317
|
+
},
|
|
1318
|
+
"title": "requires"
|
|
1319
|
+
},
|
|
1320
|
+
"metadata": {
|
|
1321
|
+
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
1322
|
+
"type": "object",
|
|
1323
|
+
"additionalProperties": {},
|
|
1324
|
+
"title": "metadata"
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
"required": [
|
|
1328
|
+
"branches",
|
|
1329
|
+
"label",
|
|
1330
|
+
"node",
|
|
1331
|
+
"valuePath"
|
|
1332
|
+
],
|
|
1333
|
+
"not": {
|
|
1334
|
+
"anyOf": [
|
|
1335
|
+
{
|
|
1336
|
+
"required": [
|
|
1337
|
+
"state"
|
|
1338
|
+
]
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"required": [
|
|
1342
|
+
"instructions"
|
|
1343
|
+
]
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"required": [
|
|
1347
|
+
"unsure"
|
|
1348
|
+
]
|
|
1349
|
+
}
|
|
1350
|
+
]
|
|
1351
|
+
}
|
|
1068
1352
|
},
|
|
1069
1353
|
{
|
|
1070
1354
|
"type": "object",
|
|
@@ -1150,6 +1434,7 @@
|
|
|
1150
1434
|
"title": "deadline_s"
|
|
1151
1435
|
},
|
|
1152
1436
|
"retry": {
|
|
1437
|
+
"description": "`on` names retry classes or effect failure codes; absent, the transient retry classes.",
|
|
1153
1438
|
"type": "object",
|
|
1154
1439
|
"properties": {
|
|
1155
1440
|
"attempts": {
|
|
@@ -1163,7 +1448,24 @@
|
|
|
1163
1448
|
"on": {
|
|
1164
1449
|
"type": "array",
|
|
1165
1450
|
"items": {
|
|
1166
|
-
"
|
|
1451
|
+
"enum": [
|
|
1452
|
+
"connection",
|
|
1453
|
+
"effect_code_unsafe",
|
|
1454
|
+
"effect_exit",
|
|
1455
|
+
"effect_not_granted",
|
|
1456
|
+
"effect_path_escape",
|
|
1457
|
+
"effect_produces_missing",
|
|
1458
|
+
"effect_timeout",
|
|
1459
|
+
"effect_transport",
|
|
1460
|
+
"effect_unknown_transport",
|
|
1461
|
+
"exit",
|
|
1462
|
+
"http_429",
|
|
1463
|
+
"http_5xx",
|
|
1464
|
+
"output_invalid",
|
|
1465
|
+
"state_invalid",
|
|
1466
|
+
"timeout"
|
|
1467
|
+
],
|
|
1468
|
+
"type": "string"
|
|
1167
1469
|
},
|
|
1168
1470
|
"title": "on"
|
|
1169
1471
|
}
|
|
@@ -1363,6 +1665,64 @@
|
|
|
1363
1665
|
"predicate",
|
|
1364
1666
|
"values"
|
|
1365
1667
|
]
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"type": "object",
|
|
1671
|
+
"properties": {
|
|
1672
|
+
"predicate": {
|
|
1673
|
+
"type": "string",
|
|
1674
|
+
"const": "field_type",
|
|
1675
|
+
"title": "predicate"
|
|
1676
|
+
},
|
|
1677
|
+
"path": {
|
|
1678
|
+
"type": "string",
|
|
1679
|
+
"title": "path"
|
|
1680
|
+
},
|
|
1681
|
+
"type": {
|
|
1682
|
+
"$ref": "#/definitions/FieldType",
|
|
1683
|
+
"title": "type"
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1686
|
+
"required": [
|
|
1687
|
+
"path",
|
|
1688
|
+
"predicate",
|
|
1689
|
+
"type"
|
|
1690
|
+
]
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"description": "Holds when a quote at `path` is in none of the page text at `pages`. `path` names a quote (a string) or a list of them;\nwith `field`, a list (or one record) of records, each holding its quote at `field`. Each of `pages` names a state value\nthis run wrote, a call's result most often: every string under it is page text.",
|
|
1694
|
+
"type": "object",
|
|
1695
|
+
"properties": {
|
|
1696
|
+
"predicate": {
|
|
1697
|
+
"type": "string",
|
|
1698
|
+
"const": "quote_missing",
|
|
1699
|
+
"title": "predicate"
|
|
1700
|
+
},
|
|
1701
|
+
"path": {
|
|
1702
|
+
"type": "string",
|
|
1703
|
+
"title": "path"
|
|
1704
|
+
},
|
|
1705
|
+
"field": {
|
|
1706
|
+
"type": "string",
|
|
1707
|
+
"title": "field"
|
|
1708
|
+
},
|
|
1709
|
+
"pages": {
|
|
1710
|
+
"type": "array",
|
|
1711
|
+
"items": {
|
|
1712
|
+
"type": "string"
|
|
1713
|
+
},
|
|
1714
|
+
"title": "pages"
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
"required": [
|
|
1718
|
+
"pages",
|
|
1719
|
+
"path",
|
|
1720
|
+
"predicate"
|
|
1721
|
+
]
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"$ref": "#/definitions/NotPredicate",
|
|
1725
|
+
"description": "Holds when `of` does not. `of` is mechanical: a judged question never sits inside a negation."
|
|
1366
1726
|
}
|
|
1367
1727
|
],
|
|
1368
1728
|
"title": "fail_when"
|
|
@@ -1390,6 +1750,12 @@
|
|
|
1390
1750
|
},
|
|
1391
1751
|
"title": "requires"
|
|
1392
1752
|
},
|
|
1753
|
+
"guard": {
|
|
1754
|
+
"description": "A step guard (StepGuard): its signal can only be `jev`, a call reports no confidence.",
|
|
1755
|
+
"type": "object",
|
|
1756
|
+
"additionalProperties": {},
|
|
1757
|
+
"title": "guard"
|
|
1758
|
+
},
|
|
1393
1759
|
"metadata": {
|
|
1394
1760
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
1395
1761
|
"type": "object",
|
|
@@ -1434,6 +1800,12 @@
|
|
|
1434
1800
|
"type": "string",
|
|
1435
1801
|
"title": "as"
|
|
1436
1802
|
},
|
|
1803
|
+
"guard": {
|
|
1804
|
+
"description": "A step guard as a document holds it (StepGuard once validateWorkflow accepted it): an object the validator reads field\nby field, so a wrong signal or threshold is refused in words an author can act on, never a schema union's.",
|
|
1805
|
+
"type": "object",
|
|
1806
|
+
"additionalProperties": {},
|
|
1807
|
+
"title": "guard"
|
|
1808
|
+
},
|
|
1437
1809
|
"metadata": {
|
|
1438
1810
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
1439
1811
|
"type": "object",
|
|
@@ -1639,6 +2011,64 @@
|
|
|
1639
2011
|
"values"
|
|
1640
2012
|
]
|
|
1641
2013
|
},
|
|
2014
|
+
{
|
|
2015
|
+
"type": "object",
|
|
2016
|
+
"properties": {
|
|
2017
|
+
"predicate": {
|
|
2018
|
+
"type": "string",
|
|
2019
|
+
"const": "field_type",
|
|
2020
|
+
"title": "predicate"
|
|
2021
|
+
},
|
|
2022
|
+
"path": {
|
|
2023
|
+
"type": "string",
|
|
2024
|
+
"title": "path"
|
|
2025
|
+
},
|
|
2026
|
+
"type": {
|
|
2027
|
+
"$ref": "#/definitions/FieldType",
|
|
2028
|
+
"title": "type"
|
|
2029
|
+
}
|
|
2030
|
+
},
|
|
2031
|
+
"required": [
|
|
2032
|
+
"path",
|
|
2033
|
+
"predicate",
|
|
2034
|
+
"type"
|
|
2035
|
+
]
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
"description": "Holds when a quote at `path` is in none of the page text at `pages`. `path` names a quote (a string) or a list of them;\nwith `field`, a list (or one record) of records, each holding its quote at `field`. Each of `pages` names a state value\nthis run wrote, a call's result most often: every string under it is page text.",
|
|
2039
|
+
"type": "object",
|
|
2040
|
+
"properties": {
|
|
2041
|
+
"predicate": {
|
|
2042
|
+
"type": "string",
|
|
2043
|
+
"const": "quote_missing",
|
|
2044
|
+
"title": "predicate"
|
|
2045
|
+
},
|
|
2046
|
+
"path": {
|
|
2047
|
+
"type": "string",
|
|
2048
|
+
"title": "path"
|
|
2049
|
+
},
|
|
2050
|
+
"field": {
|
|
2051
|
+
"type": "string",
|
|
2052
|
+
"title": "field"
|
|
2053
|
+
},
|
|
2054
|
+
"pages": {
|
|
2055
|
+
"type": "array",
|
|
2056
|
+
"items": {
|
|
2057
|
+
"type": "string"
|
|
2058
|
+
},
|
|
2059
|
+
"title": "pages"
|
|
2060
|
+
}
|
|
2061
|
+
},
|
|
2062
|
+
"required": [
|
|
2063
|
+
"pages",
|
|
2064
|
+
"path",
|
|
2065
|
+
"predicate"
|
|
2066
|
+
]
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
"$ref": "#/definitions/NotPredicate",
|
|
2070
|
+
"description": "Holds when `of` does not. `of` is mechanical: a judged question never sits inside a negation."
|
|
2071
|
+
},
|
|
1642
2072
|
{
|
|
1643
2073
|
"type": "object",
|
|
1644
2074
|
"properties": {
|
|
@@ -1672,6 +2102,33 @@
|
|
|
1672
2102
|
"gte": {
|
|
1673
2103
|
"type": "number",
|
|
1674
2104
|
"title": "gte"
|
|
2105
|
+
},
|
|
2106
|
+
"provider": {
|
|
2107
|
+
"type": "string",
|
|
2108
|
+
"title": "provider"
|
|
2109
|
+
},
|
|
2110
|
+
"model": {
|
|
2111
|
+
"type": "string",
|
|
2112
|
+
"title": "model"
|
|
2113
|
+
},
|
|
2114
|
+
"evidence": {
|
|
2115
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
2116
|
+
"enum": [
|
|
2117
|
+
"if_supported",
|
|
2118
|
+
"off",
|
|
2119
|
+
"required"
|
|
2120
|
+
],
|
|
2121
|
+
"type": "string",
|
|
2122
|
+
"title": "evidence"
|
|
2123
|
+
},
|
|
2124
|
+
"timeoutMs": {
|
|
2125
|
+
"type": "number",
|
|
2126
|
+
"title": "timeoutMs"
|
|
2127
|
+
},
|
|
2128
|
+
"images": {
|
|
2129
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
2130
|
+
"$ref": "#/definitions/DecisionImages",
|
|
2131
|
+
"title": "images"
|
|
1675
2132
|
}
|
|
1676
2133
|
},
|
|
1677
2134
|
"required": [
|
|
@@ -1681,20 +2138,19 @@
|
|
|
1681
2138
|
}
|
|
1682
2139
|
]
|
|
1683
2140
|
},
|
|
1684
|
-
"
|
|
1685
|
-
"
|
|
1686
|
-
"title": "CallRetryClass",
|
|
2141
|
+
"FieldType": {
|
|
2142
|
+
"title": "FieldType",
|
|
1687
2143
|
"enum": [
|
|
1688
|
-
"
|
|
1689
|
-
"
|
|
1690
|
-
"
|
|
1691
|
-
"
|
|
1692
|
-
"
|
|
2144
|
+
"array",
|
|
2145
|
+
"boolean",
|
|
2146
|
+
"null",
|
|
2147
|
+
"number",
|
|
2148
|
+
"object",
|
|
2149
|
+
"string"
|
|
1693
2150
|
],
|
|
1694
2151
|
"type": "string"
|
|
1695
2152
|
},
|
|
1696
2153
|
"AcceptPredicate": {
|
|
1697
|
-
"description": "A predicate a `call` evaluates against ITS OWN RESULT: paths are result-relative.",
|
|
1698
2154
|
"title": "AcceptPredicate",
|
|
1699
2155
|
"anyOf": [
|
|
1700
2156
|
{
|
|
@@ -1876,9 +2332,92 @@
|
|
|
1876
2332
|
"predicate",
|
|
1877
2333
|
"values"
|
|
1878
2334
|
]
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"type": "object",
|
|
2338
|
+
"properties": {
|
|
2339
|
+
"predicate": {
|
|
2340
|
+
"type": "string",
|
|
2341
|
+
"const": "field_type",
|
|
2342
|
+
"title": "predicate"
|
|
2343
|
+
},
|
|
2344
|
+
"path": {
|
|
2345
|
+
"type": "string",
|
|
2346
|
+
"title": "path"
|
|
2347
|
+
},
|
|
2348
|
+
"type": {
|
|
2349
|
+
"$ref": "#/definitions/FieldType",
|
|
2350
|
+
"title": "type"
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
"required": [
|
|
2354
|
+
"path",
|
|
2355
|
+
"predicate",
|
|
2356
|
+
"type"
|
|
2357
|
+
]
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
"description": "Holds when a quote at `path` is in none of the page text at `pages`. `path` names a quote (a string) or a list of them;\nwith `field`, a list (or one record) of records, each holding its quote at `field`. Each of `pages` names a state value\nthis run wrote, a call's result most often: every string under it is page text.",
|
|
2361
|
+
"type": "object",
|
|
2362
|
+
"properties": {
|
|
2363
|
+
"predicate": {
|
|
2364
|
+
"type": "string",
|
|
2365
|
+
"const": "quote_missing",
|
|
2366
|
+
"title": "predicate"
|
|
2367
|
+
},
|
|
2368
|
+
"path": {
|
|
2369
|
+
"type": "string",
|
|
2370
|
+
"title": "path"
|
|
2371
|
+
},
|
|
2372
|
+
"field": {
|
|
2373
|
+
"type": "string",
|
|
2374
|
+
"title": "field"
|
|
2375
|
+
},
|
|
2376
|
+
"pages": {
|
|
2377
|
+
"type": "array",
|
|
2378
|
+
"items": {
|
|
2379
|
+
"type": "string"
|
|
2380
|
+
},
|
|
2381
|
+
"title": "pages"
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2384
|
+
"required": [
|
|
2385
|
+
"pages",
|
|
2386
|
+
"path",
|
|
2387
|
+
"predicate"
|
|
2388
|
+
]
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"$ref": "#/definitions/NotPredicate",
|
|
2392
|
+
"description": "Holds when `of` does not. `of` is mechanical: a judged question never sits inside a negation."
|
|
1879
2393
|
}
|
|
1880
2394
|
]
|
|
1881
2395
|
},
|
|
2396
|
+
"NotPredicate": {
|
|
2397
|
+
"description": "Holds when `of` does not. `of` is mechanical: a judged question never sits inside a negation.",
|
|
2398
|
+
"title": "NotPredicate",
|
|
2399
|
+
"type": "object",
|
|
2400
|
+
"properties": {
|
|
2401
|
+
"predicate": {
|
|
2402
|
+
"type": "string",
|
|
2403
|
+
"const": "not",
|
|
2404
|
+
"title": "predicate"
|
|
2405
|
+
},
|
|
2406
|
+
"of": {
|
|
2407
|
+
"$ref": "#/definitions/AcceptPredicate",
|
|
2408
|
+
"title": "of"
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
"required": [
|
|
2412
|
+
"of",
|
|
2413
|
+
"predicate"
|
|
2414
|
+
]
|
|
2415
|
+
},
|
|
2416
|
+
"DecisionImages": {
|
|
2417
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
2418
|
+
"title": "DecisionImages",
|
|
2419
|
+
"type": "object"
|
|
2420
|
+
},
|
|
1882
2421
|
"Workflow": {
|
|
1883
2422
|
"title": "Workflow",
|
|
1884
2423
|
"type": "object",
|