flowspec2 1.0.0__py3-none-any.whl
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.
- flowspec2/__init__.py +105 -0
- flowspec2/authoring/__init__.py +275 -0
- flowspec2/authoring/authoring-evidence-signature.schema.json +34 -0
- flowspec2/authoring/authoring-evidence.schema.json +455 -0
- flowspec2/authoring/authoring-operational-evidence.schema.json +160 -0
- flowspec2/authoring/benchmark.py +1409 -0
- flowspec2/authoring/corpus/await_correction.case.json +220 -0
- flowspec2/authoring/corpus/flowspec2.ctk.json +769 -0
- flowspec2/authoring/corpus/gated_derive.case.json +100 -0
- flowspec2/authoring/corpus/linear.case.json +55 -0
- flowspec2/authoring/corpus/manifest.json +31 -0
- flowspec2/authoring/corpus/subflow.case.json +66 -0
- flowspec2/authoring/corpus/terminal.case.json +94 -0
- flowspec2/authoring/corpus.py +307 -0
- flowspec2/authoring/ctk.py +836 -0
- flowspec2/authoring/detached_signature.py +120 -0
- flowspec2/authoring/evidence.py +311 -0
- flowspec2/authoring/evidence_signature.py +187 -0
- flowspec2/authoring/evidence_verification.py +229 -0
- flowspec2/authoring/gemini.py +215 -0
- flowspec2/authoring/operational-corpus.json +61 -0
- flowspec2/authoring/operational.py +956 -0
- flowspec2/authoring/operational_providers.py +167 -0
- flowspec2/authoring/presentation_review.py +1013 -0
- flowspec2/authoring/presentation_review_signature.py +305 -0
- flowspec2/authoring/projection.py +299 -0
- flowspec2/authoring/provider_prompt.py +83 -0
- flowspec2/backends/__init__.py +82 -0
- flowspec2/backends/http.py +189 -0
- flowspec2/checker.py +238 -0
- flowspec2/cli.py +789 -0
- flowspec2/cli_parser.py +345 -0
- flowspec2/clock.py +23 -0
- flowspec2/compat/__init__.py +47 -0
- flowspec2/compat/models.py +82 -0
- flowspec2/compat/open_workflow.py +616 -0
- flowspec2/compat/rasa.py +19 -0
- flowspec2/compat/rasa_export.py +876 -0
- flowspec2/compat/rasa_import.py +992 -0
- flowspec2/compat/rasa_shared.py +270 -0
- flowspec2/compat/schemas/open-workflow-conversation-1.schema.json +138 -0
- flowspec2/compat/schemas/vendor/open-workflow-1.0.3.LICENSE +201 -0
- flowspec2/compat/schemas/vendor/open-workflow-1.0.3.provenance.json +13 -0
- flowspec2/compat/schemas/vendor/open-workflow-1.0.3.workflow.yaml +1956 -0
- flowspec2/compat/tool_profiles.py +149 -0
- flowspec2/compat/yaml.py +147 -0
- flowspec2/compiler.py +957 -0
- flowspec2/compiler_contracts.py +17 -0
- flowspec2/compiler_resume_contracts.py +594 -0
- flowspec2/compiler_schema_relations.py +1830 -0
- flowspec2/compiler_tool_contracts.py +245 -0
- flowspec2/compiler_value_contracts.py +447 -0
- flowspec2/derive.py +32 -0
- flowspec2/diagnostics.py +94 -0
- flowspec2/domains.py +489 -0
- flowspec2/experimental/__init__.py +57 -0
- flowspec2/experimental/flowspec-3-draft.schema.json +923 -0
- flowspec2/experimental/v3-preview-loss-policy.json +161 -0
- flowspec2/experimental/v3_lowering.py +928 -0
- flowspec2/experimental/v3_preview.py +2460 -0
- flowspec2/flowspec-2.schema.json +635 -0
- flowspec2/interactive.py +300 -0
- flowspec2/ir.py +1459 -0
- flowspec2/json_codec.py +120 -0
- flowspec2/llm.py +366 -0
- flowspec2/models.py +121 -0
- flowspec2/nodes.py +1537 -0
- flowspec2/observability.py +151 -0
- flowspec2/predicates.py +89 -0
- flowspec2/profiles.py +118 -0
- flowspec2/py.typed +0 -0
- flowspec2/runtime.py +1059 -0
- flowspec2/schema.py +54 -0
- flowspec2/schema_contracts.py +203 -0
- flowspec2/semantic_derive_contracts.py +530 -0
- flowspec2/semantic_path_contracts.py +528 -0
- flowspec2/semantic_predicate_contracts.py +355 -0
- flowspec2/semantic_schema_contracts.py +137 -0
- flowspec2/semantic_source_contracts.py +21 -0
- flowspec2/semantic_state_contracts.py +450 -0
- flowspec2/semantic_support.py +40 -0
- flowspec2/semantics.py +410 -0
- flowspec2/state_migration.py +1034 -0
- flowspec2/subflows/__init__.py +1117 -0
- flowspec2/subflows/address.py +328 -0
- flowspec2/subflows/identification.py +1031 -0
- flowspec2/tools.py +1154 -0
- flowspec2-1.0.0.dist-info/METADATA +482 -0
- flowspec2-1.0.0.dist-info/RECORD +92 -0
- flowspec2-1.0.0.dist-info/WHEEL +4 -0
- flowspec2-1.0.0.dist-info/entry_points.txt +2 -0
- flowspec2-1.0.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_sections": {
|
|
3
|
+
"loss-policy": {
|
|
4
|
+
"description": "Closed policy for every non-native fragment emitted by the v2-to-v3 preview migrator.",
|
|
5
|
+
"keys": ["contract", "categories"]
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
"contract": "flowspec2/v3-preview-loss-policy@1",
|
|
9
|
+
"categories": {
|
|
10
|
+
"agent_capability": {
|
|
11
|
+
"disposition": "compatibility_only",
|
|
12
|
+
"handling": "rehydrate",
|
|
13
|
+
"source_path_pattern": "^/capabilities/(?:media_in|media_out|tts|location_in|handoff|session_reset)$",
|
|
14
|
+
"description": "A free-standing agent capability has no local preview owner."
|
|
15
|
+
},
|
|
16
|
+
"automatic_flow_contract": {
|
|
17
|
+
"disposition": "compatibility_only",
|
|
18
|
+
"handling": "rehydrate",
|
|
19
|
+
"source_path_pattern": "^/auto_flow$",
|
|
20
|
+
"description": "Automatic WhatsApp Flow behavior has no native preview contract."
|
|
21
|
+
},
|
|
22
|
+
"await_resume_contract": {
|
|
23
|
+
"disposition": "compatibility_only",
|
|
24
|
+
"handling": "rehydrate",
|
|
25
|
+
"source_path_pattern": "^/capabilities/await_external/resume$",
|
|
26
|
+
"description": "Await token, correlation, duplicate, and late-delivery behavior has no native preview contract."
|
|
27
|
+
},
|
|
28
|
+
"await_timeout_duration": {
|
|
29
|
+
"disposition": "compatibility_only",
|
|
30
|
+
"handling": "rehydrate",
|
|
31
|
+
"source_path_pattern": "^/capabilities/await_external/timeout_seconds$",
|
|
32
|
+
"description": "The await deadline duration has no native preview contract."
|
|
33
|
+
},
|
|
34
|
+
"duplicate_domain_row": {
|
|
35
|
+
"disposition": "excluded",
|
|
36
|
+
"handling": "reject",
|
|
37
|
+
"source_path_pattern": "^/domains/[^/]+/rows/[0-9]+$",
|
|
38
|
+
"description": "A domain option has shadowed presentation rows."
|
|
39
|
+
},
|
|
40
|
+
"duplicate_terminal_input_parameter": {
|
|
41
|
+
"disposition": "excluded",
|
|
42
|
+
"handling": "reject",
|
|
43
|
+
"source_path_pattern": "^/terminal/input/[0-9]+$",
|
|
44
|
+
"description": "A terminal parameter has shadowed input bindings."
|
|
45
|
+
},
|
|
46
|
+
"entry_contract": {
|
|
47
|
+
"disposition": "compatibility_only",
|
|
48
|
+
"handling": "rehydrate",
|
|
49
|
+
"source_path_pattern": "^/entry$",
|
|
50
|
+
"description": "Entry initialization has no native preview contract."
|
|
51
|
+
},
|
|
52
|
+
"implicit_await_capability": {
|
|
53
|
+
"disposition": "compatibility_only",
|
|
54
|
+
"handling": "rehydrate",
|
|
55
|
+
"source_path_pattern": "^/capabilities/await_external$",
|
|
56
|
+
"description": "An await capability not owned by an explicit path step cannot be localized safely."
|
|
57
|
+
},
|
|
58
|
+
"invalid_boolean_domain_field": {
|
|
59
|
+
"disposition": "excluded",
|
|
60
|
+
"handling": "reject",
|
|
61
|
+
"source_path_pattern": "^/domains/[^/]+/(?:values|rows)$",
|
|
62
|
+
"description": "A boolean domain contains a field outside its v2 contract."
|
|
63
|
+
},
|
|
64
|
+
"invalid_non_choice_domain_field": {
|
|
65
|
+
"disposition": "excluded",
|
|
66
|
+
"handling": "reject",
|
|
67
|
+
"source_path_pattern": "^/domains/[^/]+/(?:values|rows)$",
|
|
68
|
+
"description": "A non-choice domain contains canonical option data that has no meaning for its type."
|
|
69
|
+
},
|
|
70
|
+
"invalid_non_choice_synonyms": {
|
|
71
|
+
"disposition": "excluded",
|
|
72
|
+
"handling": "reject",
|
|
73
|
+
"source_path_pattern": "^/domains/[^/]+/normalize/synonyms$",
|
|
74
|
+
"description": "A non-choice domain contains choice-synonym normalization."
|
|
75
|
+
},
|
|
76
|
+
"invalid_synonym_target": {
|
|
77
|
+
"disposition": "excluded",
|
|
78
|
+
"handling": "reject",
|
|
79
|
+
"source_path_pattern": "^/domains/[^/]+/normalize/synonyms/[^/]+$",
|
|
80
|
+
"description": "A normalization synonym targets no canonical domain option."
|
|
81
|
+
},
|
|
82
|
+
"legacy_await_enrichment": {
|
|
83
|
+
"disposition": "excluded",
|
|
84
|
+
"handling": "reject",
|
|
85
|
+
"source_path_pattern": "^/capabilities/await_external/on_resume/enrich$",
|
|
86
|
+
"description": "A bare-name enrichment on an explicit await cannot lower into the executable object-form contract."
|
|
87
|
+
},
|
|
88
|
+
"legacy_interactive_gate": {
|
|
89
|
+
"disposition": "excluded",
|
|
90
|
+
"handling": "reject",
|
|
91
|
+
"source_path_pattern": "^/(?:path/[0-9]+|confirm|capabilities/await_external)/interactive/gate$",
|
|
92
|
+
"description": "A removed interactive environment gate cannot be restored into a valid current v2 source."
|
|
93
|
+
},
|
|
94
|
+
"mismatched_interactive_domain": {
|
|
95
|
+
"disposition": "excluded",
|
|
96
|
+
"handling": "reject",
|
|
97
|
+
"source_path_pattern": "^/(?:path/[0-9]+|confirm|capabilities/await_external)/interactive/from_domain$",
|
|
98
|
+
"description": "Interactive source-domain metadata disagrees with the slot domain localized by the preview."
|
|
99
|
+
},
|
|
100
|
+
"orphan_domain_row": {
|
|
101
|
+
"disposition": "excluded",
|
|
102
|
+
"handling": "reject",
|
|
103
|
+
"source_path_pattern": "^/domains/[^/]+/rows/[0-9]+$",
|
|
104
|
+
"description": "A domain presentation row has no matching canonical option."
|
|
105
|
+
},
|
|
106
|
+
"shadowed_await_presentation": {
|
|
107
|
+
"disposition": "compatibility_only",
|
|
108
|
+
"handling": "rehydrate",
|
|
109
|
+
"source_path_pattern": "^/capabilities/await_external/(?:prompt|interactive)$",
|
|
110
|
+
"description": "Path and capability presentation differ and the preview selects the path-owned form."
|
|
111
|
+
},
|
|
112
|
+
"unknown_derive_anchor": {
|
|
113
|
+
"disposition": "excluded",
|
|
114
|
+
"handling": "reject",
|
|
115
|
+
"source_path_pattern": "^/derive/[0-9]+/after$",
|
|
116
|
+
"description": "A derive ordering anchor cannot be resolved to a localized preview step."
|
|
117
|
+
},
|
|
118
|
+
"unknown_top_level_fragment": {
|
|
119
|
+
"disposition": "excluded",
|
|
120
|
+
"handling": "reject",
|
|
121
|
+
"source_path_pattern": "^/[^/]+$",
|
|
122
|
+
"description": "A source top-level field is outside the closed v2 schema."
|
|
123
|
+
},
|
|
124
|
+
"unused_confirmation_contract": {
|
|
125
|
+
"disposition": "compatibility_only",
|
|
126
|
+
"handling": "rehydrate",
|
|
127
|
+
"source_path_pattern": "^/confirm$",
|
|
128
|
+
"description": "A valid v2 confirmation declaration is not consumed by the authored path."
|
|
129
|
+
},
|
|
130
|
+
"unused_domain_declaration": {
|
|
131
|
+
"disposition": "compatibility_only",
|
|
132
|
+
"handling": "rehydrate",
|
|
133
|
+
"source_path_pattern": "^/domains/[^/]+$",
|
|
134
|
+
"description": "A valid v2 domain declaration is not consumed by a localized collect step."
|
|
135
|
+
},
|
|
136
|
+
"unused_override_gate": {
|
|
137
|
+
"disposition": "compatibility_only",
|
|
138
|
+
"handling": "rehydrate",
|
|
139
|
+
"source_path_pattern": "^/overrides/gates/[^/]+$",
|
|
140
|
+
"description": "A valid v2 override gate is not consumed by a localized step."
|
|
141
|
+
},
|
|
142
|
+
"unused_slot_declaration": {
|
|
143
|
+
"disposition": "compatibility_only",
|
|
144
|
+
"handling": "rehydrate",
|
|
145
|
+
"source_path_pattern": "^/slots/[^/]+$",
|
|
146
|
+
"description": "A valid v2 slot declaration is not consumed by a localized collect step."
|
|
147
|
+
},
|
|
148
|
+
"unused_subflow_declaration": {
|
|
149
|
+
"disposition": "compatibility_only",
|
|
150
|
+
"handling": "rehydrate",
|
|
151
|
+
"source_path_pattern": "^/uses/[0-9]+$",
|
|
152
|
+
"description": "A valid v2 subflow-use declaration is not consumed by the authored path."
|
|
153
|
+
},
|
|
154
|
+
"unused_terminal_contract": {
|
|
155
|
+
"disposition": "compatibility_only",
|
|
156
|
+
"handling": "rehydrate",
|
|
157
|
+
"source_path_pattern": "^/terminal$",
|
|
158
|
+
"description": "A valid v2 terminal declaration is not consumed by the authored path."
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|