Jules-OC commited on
Commit
dabb9f7
·
verified ·
1 Parent(s): 2d47efe

Refresh the corpus: 242 -> 356 templates, 27 use cases, dataset card (part 3)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. edge-cases/edge-cases/missing-labels-workflow/README.md +19 -0
  2. edge-cases/edge-cases/missing-labels-workflow/workflow.fz +38 -0
  3. edge-cases/edge-cases/orphan-node-workflow/README.md +19 -0
  4. edge-cases/edge-cases/orphan-node-workflow/metadata.json +22 -0
  5. edge-cases/edge-cases/orphan-node-workflow/workflow.fz +13 -0
  6. edge-cases/edge-cases/sql-injection-label-workflow/README.md +19 -0
  7. edge-cases/edge-cases/sql-injection-label-workflow/metadata.json +23 -0
  8. edge-cases/edge-cases/sql-injection-label-workflow/workflow.fz +19 -0
  9. edge-cases/edge-cases/unicode-labels-workflow/README.md +19 -0
  10. edge-cases/edge-cases/unicode-labels-workflow/metadata.json +22 -0
  11. edge-cases/edge-cases/unicode-labels-workflow/workflow.fz +12 -0
  12. edge-cases/edge-cases/very-long-label-workflow/README.md +19 -0
  13. edge-cases/edge-cases/very-long-label-workflow/metadata.json +25 -0
  14. edge-cases/edge-cases/very-long-label-workflow/workflow.fz +14 -0
  15. edge-cases/edge-cases/xml-in-label-workflow/README.md +19 -0
  16. edge-cases/edge-cases/xml-in-label-workflow/metadata.json +23 -0
  17. edge-cases/edge-cases/xml-in-label-workflow/workflow.fz +44 -0
  18. edge-cases/edge-cases/xss-label-workflow/README.md +19 -0
  19. edge-cases/edge-cases/xss-label-workflow/metadata.json +22 -0
  20. edge-cases/edge-cases/xss-label-workflow/workflow.fz +29 -0
  21. edge-cases/syntax-primitives/16-max-nodes-workflow/README.md +19 -0
  22. edge-cases/syntax-primitives/16-max-nodes-workflow/metadata.json +23 -0
  23. edge-cases/syntax-primitives/16-max-nodes-workflow/workflow.fz +104 -0
  24. edge-cases/syntax-primitives/19-label-escaping-workflow/README.md +19 -0
  25. edge-cases/syntax-primitives/19-label-escaping-workflow/metadata.json +23 -0
  26. edge-cases/syntax-primitives/19-label-escaping-workflow/workflow.fz +18 -0
  27. handoff/architecture/bulkhead-isolation-architecture/README.md +1 -1
  28. handoff/architecture/bulkhead-isolation-architecture/metadata.json +5 -2
  29. handoff/architecture/bulkhead-isolation-architecture/workflow.fz +43 -43
  30. handoff/architecture/cell-based-architecture/workflow.fz +48 -48
  31. handoff/architecture/microservices-service-discovery-architecture/README.md +1 -1
  32. handoff/architecture/microservices-service-discovery-architecture/metadata.json +5 -2
  33. handoff/architecture/microservices-service-discovery-architecture/workflow.fz +59 -59
  34. handoff/architecture/serverless-edge-computing-architecture/README.md +1 -1
  35. handoff/architecture/serverless-edge-computing-architecture/metadata.json +5 -2
  36. handoff/architecture/serverless-edge-computing-architecture/workflow.fz +51 -51
  37. handoff/architecture/serverless-multi-cloud-architecture/README.md +1 -1
  38. handoff/architecture/serverless-multi-cloud-architecture/metadata.json +7 -2
  39. handoff/architecture/serverless-multi-cloud-architecture/workflow.fz +55 -55
  40. handoff/business-operations/support-ticket-workflow/workflow.fz +49 -49
  41. handoff/commerce-automation/ai-order-routing-workflow/README.md +19 -0
  42. handoff/commerce-automation/ai-order-routing-workflow/metadata.json +28 -0
  43. handoff/commerce-automation/ai-order-routing-workflow/workflow.fz +37 -0
  44. handoff/devops/mcp-tool-router/workflow.fz +41 -41
  45. handoff/devops/on-call-rotation-workflow/workflow.fz +47 -47
  46. handoff/finance/payment-run-workflow/workflow.fz +44 -44
  47. handoff/hr/offboarding-workflow/workflow.fz +55 -55
  48. handoff/llm-operations/dynamic-tool-schema-selection-workflow/README.md +19 -0
  49. handoff/llm-operations/dynamic-tool-schema-selection-workflow/metadata.json +30 -0
  50. handoff/llm-operations/dynamic-tool-schema-selection-workflow/workflow.fz +23 -0
edge-cases/edge-cases/missing-labels-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Missing Labels Workflow
2
+
3
+ This workflow models nodes without label parameters.
4
+
5
+ **Template ID:** `missing-labels-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** edge-cases
8
+ **Primary use case:** edge-cases
9
+ **Secondary use cases:** None
10
+ **Complexity:** 4/5
11
+ **Nodes:** 13
12
+ **Lanes:** 4
13
+ **Tags:** [missing, labels, decision]
14
+ **Source path:** `edge-cases/missing-labels`
15
+ **Repo path:** `edge-cases/edge-cases/missing-labels-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
edge-cases/edge-cases/missing-labels-workflow/workflow.fz ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laneA { # Lanea
2
+ n1: circle label:"Start Missing Labels"
3
+ n2: diamond
4
+ n5: rectangle label:"Missing Labels step 5"
5
+ n9: rectangle label:"Missing Labels step 9"
6
+ n13: circle label:"End Missing Labels"
7
+
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(bottom) -> laneC.n3.handle(top) [label="Yes/Approved"]
10
+ n2.handle(bottom) -> laneD.n4.handle(top) [label="No/Rejected"]
11
+ n5.handle(bottom) -> laneB.n6.handle(top)
12
+ n9.handle(bottom) -> laneB.n10.handle(top)
13
+ }
14
+ laneB { # Laneb
15
+ n6: rectangle label:"Missing Labels step 6"
16
+ n10: rectangle label:"Missing Labels step 10"
17
+
18
+ n6.handle(bottom) -> laneC.n7.handle(top)
19
+ n10.handle(bottom) -> laneC.n11.handle(top)
20
+ }
21
+ laneC { # Lanec
22
+ n3: rectangle
23
+ n7: rectangle label:"Missing Labels step 7"
24
+ n11: rectangle label:"Missing Labels step 11"
25
+
26
+ n3.handle(bottom) -> laneA.n5.handle(top)
27
+ n7.handle(bottom) -> laneD.n8.handle(top)
28
+ n11.handle(bottom) -> laneD.n12.handle(top)
29
+ }
30
+ laneD { # Laned
31
+ n4: rectangle label:"Missing Labels step 4"
32
+ n8: rectangle label:"Missing Labels step 8"
33
+ n12: rectangle label:"Missing Labels step 12"
34
+
35
+ n4.handle(bottom) -> laneA.n5.handle(top)
36
+ n8.handle(bottom) -> laneA.n9.handle(top)
37
+ n12.handle(bottom) -> laneA.n13.handle(top)
38
+ }
edge-cases/edge-cases/orphan-node-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Orphan Node Workflow
2
+
3
+ This workflow models a node with no connections.
4
+
5
+ **Template ID:** `orphan-node-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** edge-cases
8
+ **Primary use case:** edge-cases
9
+ **Secondary use cases:** None
10
+ **Complexity:** 1/5
11
+ **Nodes:** 5
12
+ **Lanes:** 1
13
+ **Tags:** [orphan, node]
14
+ **Source path:** `edge-cases/orphan-node`
15
+ **Repo path:** `edge-cases/edge-cases/orphan-node-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
edge-cases/edge-cases/orphan-node-workflow/metadata.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "orphan-node-workflow",
3
+ "workflow_id": "orphan-node",
4
+ "title": "Orphan Node Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "edge-cases",
7
+ "primary_use_case": "edge-cases",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "edge-cases"
11
+ ],
12
+ "complexity": 1,
13
+ "num_nodes": 5,
14
+ "num_lanes": 1,
15
+ "tags": [
16
+ "orphan",
17
+ "node"
18
+ ],
19
+ "description": "This workflow models a node with no connections.",
20
+ "source_path": "edge-cases/orphan-node",
21
+ "repo_path": "edge-cases/edge-cases/orphan-node-workflow"
22
+ }
edge-cases/edge-cases/orphan-node-workflow/workflow.fz ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laneA { # Lanea
2
+ n1: circle label:"Start Orphan Node"
3
+ n2: rectangle label:"Orphan Node step 2"
4
+ n3: diamond label:"Orphan Node step 3"
5
+ n4: rectangle label:"Orphan Node step 4"
6
+ n5: circle label:"End Orphan Node"
7
+
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(right) -> n3.handle(left) [label="Next"]
10
+ n3.handle(right) -> n4.handle(left)
11
+ n3.handle(bottom) -> n2.handle(bottom) [label="Retry/Rejected"]
12
+ n4.handle(right) -> n5.handle(left)
13
+ }
edge-cases/edge-cases/sql-injection-label-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Sql Injection Label Workflow
2
+
3
+ This workflow models a label that looks like an SQL injection attempt.
4
+
5
+ **Template ID:** `sql-injection-label-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** edge-cases
8
+ **Primary use case:** edge-cases
9
+ **Secondary use cases:** None
10
+ **Complexity:** 2/5
11
+ **Nodes:** 7
12
+ **Lanes:** 2
13
+ **Tags:** [sql, injection, label]
14
+ **Source path:** `edge-cases/sql-injection-label`
15
+ **Repo path:** `edge-cases/edge-cases/sql-injection-label-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
edge-cases/edge-cases/sql-injection-label-workflow/metadata.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "sql-injection-label-workflow",
3
+ "workflow_id": "sql-injection-label",
4
+ "title": "Sql Injection Label Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "edge-cases",
7
+ "primary_use_case": "edge-cases",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "edge-cases"
11
+ ],
12
+ "complexity": 2,
13
+ "num_nodes": 7,
14
+ "num_lanes": 2,
15
+ "tags": [
16
+ "sql",
17
+ "injection",
18
+ "label"
19
+ ],
20
+ "description": "This workflow models a label that looks like an SQL injection attempt.",
21
+ "source_path": "edge-cases/sql-injection-label",
22
+ "repo_path": "edge-cases/edge-cases/sql-injection-label-workflow"
23
+ }
edge-cases/edge-cases/sql-injection-label-workflow/workflow.fz ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laneA { # Lanea
2
+ n1: circle label:"Start Sql Injection Label"
3
+ n3: rectangle label:"Sql Injection Label step 3"
4
+ n5: rectangle label:"Sql Injection Label step 5"
5
+ n7: circle label:"End Sql Injection Label"
6
+
7
+ n1.handle(bottom) -> laneB.n2.handle(top)
8
+ n3.handle(bottom) -> laneB.n4.handle(top) [label="Processed"]
9
+ n5.handle(bottom) -> laneB.n6.handle(top)
10
+ }
11
+ laneB { # Laneb
12
+ n2: rectangle label:"SELECT * FROM users WHERE name='admin' OR 1=1; --"
13
+ n4: rectangle label:"Sql Injection Label step 4"
14
+ n6: rectangle label:"Sql Injection Label step 6"
15
+
16
+ n2.handle(bottom) -> laneA.n3.handle(top)
17
+ n4.handle(bottom) -> laneA.n5.handle(top)
18
+ n6.handle(bottom) -> laneA.n7.handle(top) [label="Success"]
19
+ }
edge-cases/edge-cases/unicode-labels-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Unicode Labels Workflow
2
+
3
+ This workflow models emoji and international characters in labels.
4
+
5
+ **Template ID:** `unicode-labels-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** edge-cases
8
+ **Primary use case:** edge-cases
9
+ **Secondary use cases:** None
10
+ **Complexity:** 1/5
11
+ **Nodes:** 5
12
+ **Lanes:** 1
13
+ **Tags:** [unicode, labels]
14
+ **Source path:** `edge-cases/unicode-labels`
15
+ **Repo path:** `edge-cases/edge-cases/unicode-labels-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
edge-cases/edge-cases/unicode-labels-workflow/metadata.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "unicode-labels-workflow",
3
+ "workflow_id": "unicode-labels",
4
+ "title": "Unicode Labels Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "edge-cases",
7
+ "primary_use_case": "edge-cases",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "edge-cases"
11
+ ],
12
+ "complexity": 1,
13
+ "num_nodes": 5,
14
+ "num_lanes": 1,
15
+ "tags": [
16
+ "unicode",
17
+ "labels"
18
+ ],
19
+ "description": "This workflow models emoji and international characters in labels.",
20
+ "source_path": "edge-cases/unicode-labels",
21
+ "repo_path": "edge-cases/edge-cases/unicode-labels-workflow"
22
+ }
edge-cases/edge-cases/unicode-labels-workflow/workflow.fz ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laneA { # Lanea
2
+ n1: circle label:"Start Unicode Labels"
3
+ n2: rectangle label:"Unicode label (rocket)"
4
+ n3: rectangle label:"多言語ラベル"
5
+ n4: rectangle label:"Unicode Labels step 4"
6
+ n5: circle label:"End Unicode Labels"
7
+
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(right) -> n3.handle(left) [label="Next"]
10
+ n3.handle(right) -> n4.handle(left)
11
+ n4.handle(right) -> n5.handle(left)
12
+ }
edge-cases/edge-cases/very-long-label-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Very Long Label Workflow
2
+
3
+ This workflow models labels with very long text.
4
+
5
+ **Template ID:** `very-long-label-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** edge-cases
8
+ **Primary use case:** edge-cases
9
+ **Secondary use cases:** None
10
+ **Complexity:** 1/5
11
+ **Nodes:** 5
12
+ **Lanes:** 1
13
+ **Tags:** [very, long, label, decision, loop]
14
+ **Source path:** `edge-cases/very-long-label`
15
+ **Repo path:** `edge-cases/edge-cases/very-long-label-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
edge-cases/edge-cases/very-long-label-workflow/metadata.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "very-long-label-workflow",
3
+ "workflow_id": "very-long-label",
4
+ "title": "Very Long Label Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "edge-cases",
7
+ "primary_use_case": "edge-cases",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "edge-cases"
11
+ ],
12
+ "complexity": 1,
13
+ "num_nodes": 5,
14
+ "num_lanes": 1,
15
+ "tags": [
16
+ "very",
17
+ "long",
18
+ "label",
19
+ "decision",
20
+ "loop"
21
+ ],
22
+ "description": "This workflow models labels with very long text.",
23
+ "source_path": "edge-cases/very-long-label",
24
+ "repo_path": "edge-cases/edge-cases/very-long-label-workflow"
25
+ }
edge-cases/edge-cases/very-long-label-workflow/workflow.fz ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laneA { # Lanea
2
+ n1: circle label:"Start Very Long Label"
3
+ n2: diamond label:"Very long label for demonstration for demonstration for demonstration for demonstration for demonstration for demonstration for demonstration for demonstration "
4
+ n3: rectangle label:"Very Long Label step 3"
5
+ n4: rectangle label:"Very Long Label step 4"
6
+ n5: circle label:"End Very Long Label"
7
+
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(right) -> n3.handle(left) [label="Yes/Approved"]
10
+ n2.handle(bottom) -> n4.handle(top) [label="No/Rejected"]
11
+ n3.handle(right) -> n5.handle(left)
12
+ n4.handle(right) -> n5.handle(left)
13
+ loop [retry until success] n2 n3 n4
14
+ }
edge-cases/edge-cases/xml-in-label-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Xml In Label Workflow
2
+
3
+ This workflow models a label that contains XML text.
4
+
5
+ **Template ID:** `xml-in-label-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** edge-cases
8
+ **Primary use case:** edge-cases
9
+ **Secondary use cases:** None
10
+ **Complexity:** 5/5
11
+ **Nodes:** 16
12
+ **Lanes:** 4
13
+ **Tags:** [xml, in, label]
14
+ **Source path:** `edge-cases/xml-in-label`
15
+ **Repo path:** `edge-cases/edge-cases/xml-in-label-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
edge-cases/edge-cases/xml-in-label-workflow/metadata.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "xml-in-label-workflow",
3
+ "workflow_id": "xml-in-label",
4
+ "title": "Xml In Label Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "edge-cases",
7
+ "primary_use_case": "edge-cases",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "edge-cases"
11
+ ],
12
+ "complexity": 5,
13
+ "num_nodes": 16,
14
+ "num_lanes": 4,
15
+ "tags": [
16
+ "xml",
17
+ "in",
18
+ "label"
19
+ ],
20
+ "description": "This workflow models a label that contains XML text.",
21
+ "source_path": "edge-cases/xml-in-label",
22
+ "repo_path": "edge-cases/edge-cases/xml-in-label-workflow"
23
+ }
edge-cases/edge-cases/xml-in-label-workflow/workflow.fz ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laneA { # Lanea
2
+ n1: circle label:"Start Xml In Label"
3
+ n5: rectangle label:"Xml In Label step 5"
4
+ n9: rectangle label:"Xml In Label step 9"
5
+ n13: rectangle label:"Xml In Label step 13"
6
+
7
+ n1.handle(bottom) -> laneB.n2.handle(top) [label="Success"]
8
+ n5.handle(bottom) -> laneB.n6.handle(top)
9
+ n9.handle(bottom) -> laneB.n10.handle(top)
10
+ n13.handle(bottom) -> laneB.n14.handle(top) [label="Processed"]
11
+ }
12
+ laneB { # Laneb
13
+ n2: rectangle label:"<note><to>User</to><body>Example</body></note>"
14
+ n6: rectangle label:"Xml In Label step 6"
15
+ n10: rectangle label:"Xml In Label step 10"
16
+ n14: rectangle label:"Xml In Label step 14"
17
+
18
+ n2.handle(bottom) -> laneC.n3.handle(top)
19
+ n6.handle(bottom) -> laneC.n7.handle(top)
20
+ n10.handle(bottom) -> laneC.n11.handle(top) [label="Done"]
21
+ n14.handle(bottom) -> laneC.n15.handle(top)
22
+ }
23
+ laneC { # Lanec
24
+ n3: rectangle label:"Xml In Label step 3"
25
+ n7: rectangle label:"Xml In Label step 7"
26
+ n11: rectangle label:"Xml In Label step 11"
27
+ n15: rectangle label:"Xml In Label step 15"
28
+
29
+ n3.handle(bottom) -> laneD.n4.handle(top)
30
+ n7.handle(bottom) -> laneD.n8.handle(top) [label="Next"]
31
+ n11.handle(bottom) -> laneD.n12.handle(top)
32
+ n15.handle(bottom) -> laneD.n16.handle(top)
33
+ }
34
+ laneD { # Laned
35
+ n4: rectangle label:"Xml In Label step 4"
36
+ n8: diamond label:"Xml In Label step 8"
37
+ n12: rectangle label:"Xml In Label step 12"
38
+ n16: circle label:"End Xml In Label"
39
+
40
+ n4.handle(bottom) -> laneA.n5.handle(top) [label="Valid"]
41
+ n8.handle(bottom) -> laneA.n9.handle(top)
42
+ n8.handle(right) -> laneC.n7.handle(right) [label="Retry/Rejected"]
43
+ n12.handle(bottom) -> laneA.n13.handle(top)
44
+ }
edge-cases/edge-cases/xss-label-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Xss Label Workflow
2
+
3
+ This workflow models a label that looks like an XSS script.
4
+
5
+ **Template ID:** `xss-label-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** edge-cases
8
+ **Primary use case:** edge-cases
9
+ **Secondary use cases:** None
10
+ **Complexity:** 3/5
11
+ **Nodes:** 10
12
+ **Lanes:** 3
13
+ **Tags:** [xss, label]
14
+ **Source path:** `edge-cases/xss-label`
15
+ **Repo path:** `edge-cases/edge-cases/xss-label-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
edge-cases/edge-cases/xss-label-workflow/metadata.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "xss-label-workflow",
3
+ "workflow_id": "xss-label",
4
+ "title": "Xss Label Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "edge-cases",
7
+ "primary_use_case": "edge-cases",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "edge-cases"
11
+ ],
12
+ "complexity": 3,
13
+ "num_nodes": 10,
14
+ "num_lanes": 3,
15
+ "tags": [
16
+ "xss",
17
+ "label"
18
+ ],
19
+ "description": "This workflow models a label that looks like an XSS script.",
20
+ "source_path": "edge-cases/xss-label",
21
+ "repo_path": "edge-cases/edge-cases/xss-label-workflow"
22
+ }
edge-cases/edge-cases/xss-label-workflow/workflow.fz ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laneA { # Lanea
2
+ n1: circle label:"Start Xss Label"
3
+ n4: rectangle label:"Xss Label step 4"
4
+ n7: diamond label:"Xss Label step 7"
5
+ n10: circle label:"End Xss Label"
6
+
7
+ n1.handle(bottom) -> laneB.n2.handle(top) [label="Success"]
8
+ n4.handle(bottom) -> laneB.n5.handle(top) [label="Valid"]
9
+ n7.handle(bottom) -> laneB.n8.handle(top) [label="Next"]
10
+ n7.handle(right) -> laneC.n6.handle(right) [label="Retry/Rejected"]
11
+ }
12
+ laneB { # Laneb
13
+ n2: rectangle label:"<script>alert('xss')</script>"
14
+ n5: rectangle label:"Xss Label step 5"
15
+ n8: rectangle label:"Xss Label step 8"
16
+
17
+ n2.handle(bottom) -> laneC.n3.handle(top)
18
+ n5.handle(bottom) -> laneC.n6.handle(top)
19
+ n8.handle(bottom) -> laneC.n9.handle(top)
20
+ }
21
+ laneC { # Lanec
22
+ n3: rectangle label:"Xss Label step 3"
23
+ n6: rectangle label:"Xss Label step 6"
24
+ n9: rectangle label:"Xss Label step 9"
25
+
26
+ n3.handle(bottom) -> laneA.n4.handle(top)
27
+ n6.handle(bottom) -> laneA.n7.handle(top)
28
+ n9.handle(bottom) -> laneA.n10.handle(top)
29
+ }
edge-cases/syntax-primitives/16-max-nodes-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 16 Max Nodes Workflow
2
+
3
+ This workflow models 50 nodes in one lane as a stress test.
4
+
5
+ **Template ID:** `16-max-nodes-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** syntax-primitives
8
+ **Primary use case:** edge-cases
9
+ **Secondary use cases:** None
10
+ **Complexity:** 2/5
11
+ **Nodes:** 50
12
+ **Lanes:** 2
13
+ **Tags:** [16, max, nodes]
14
+ **Source path:** `syntax-primitives/16-max-nodes`
15
+ **Repo path:** `edge-cases/syntax-primitives/16-max-nodes-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
edge-cases/syntax-primitives/16-max-nodes-workflow/metadata.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "16-max-nodes-workflow",
3
+ "workflow_id": "16-max-nodes",
4
+ "title": "16 Max Nodes Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "syntax-primitives",
7
+ "primary_use_case": "edge-cases",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "edge-cases"
11
+ ],
12
+ "complexity": 2,
13
+ "num_nodes": 50,
14
+ "num_lanes": 2,
15
+ "tags": [
16
+ "16",
17
+ "max",
18
+ "nodes"
19
+ ],
20
+ "description": "This workflow models 50 nodes in one lane as a stress test.",
21
+ "source_path": "syntax-primitives/16-max-nodes",
22
+ "repo_path": "edge-cases/syntax-primitives/16-max-nodes-workflow"
23
+ }
edge-cases/syntax-primitives/16-max-nodes-workflow/workflow.fz ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laneA { # Lane A
2
+ n1: circle label:"Start 16 Max Nodes"
3
+ n3: rectangle label:"16 Max Nodes step 3"
4
+ n5: rectangle label:"16 Max Nodes step 5"
5
+ n7: rectangle label:"16 Max Nodes step 7"
6
+ n9: rectangle label:"16 Max Nodes step 9"
7
+ n11: rectangle label:"16 Max Nodes step 11"
8
+ n13: rectangle label:"16 Max Nodes step 13"
9
+ n15: rectangle label:"16 Max Nodes step 15"
10
+ n17: rectangle label:"16 Max Nodes step 17"
11
+ n19: rectangle label:"16 Max Nodes step 19"
12
+ n21: rectangle label:"16 Max Nodes step 21"
13
+ n23: rectangle label:"16 Max Nodes step 23"
14
+ n25: rectangle label:"16 Max Nodes step 25"
15
+ n27: rectangle label:"16 Max Nodes step 27"
16
+ n29: rectangle label:"16 Max Nodes step 29"
17
+ n31: rectangle label:"16 Max Nodes step 31"
18
+ n33: rectangle label:"16 Max Nodes step 33"
19
+ n35: rectangle label:"16 Max Nodes step 35"
20
+ n37: rectangle label:"16 Max Nodes step 37"
21
+ n39: rectangle label:"16 Max Nodes step 39"
22
+ n41: rectangle label:"16 Max Nodes step 41"
23
+ n43: rectangle label:"16 Max Nodes step 43"
24
+ n45: rectangle label:"16 Max Nodes step 45"
25
+ n47: rectangle label:"16 Max Nodes step 47"
26
+ n49: rectangle label:"16 Max Nodes step 49"
27
+ n1.handle(bottom) -> laneB.n2.handle(top)
28
+ n3.handle(bottom) -> laneB.n4.handle(top)
29
+ n5.handle(bottom) -> laneB.n6.handle(top)
30
+ n7.handle(bottom) -> laneB.n8.handle(top)
31
+ n9.handle(bottom) -> laneB.n10.handle(top)
32
+ n11.handle(bottom) -> laneB.n12.handle(top)
33
+ n13.handle(bottom) -> laneB.n14.handle(top)
34
+ n15.handle(bottom) -> laneB.n16.handle(top)
35
+ n17.handle(bottom) -> laneB.n18.handle(top)
36
+ n19.handle(bottom) -> laneB.n20.handle(top)
37
+ n21.handle(bottom) -> laneB.n22.handle(top)
38
+ n23.handle(bottom) -> laneB.n24.handle(top)
39
+ n25.handle(bottom) -> laneB.n26.handle(top)
40
+ n27.handle(bottom) -> laneB.n28.handle(top)
41
+ n29.handle(bottom) -> laneB.n30.handle(top)
42
+ n31.handle(bottom) -> laneB.n32.handle(top)
43
+ n33.handle(bottom) -> laneB.n34.handle(top)
44
+ n35.handle(bottom) -> laneB.n36.handle(top)
45
+ n37.handle(bottom) -> laneB.n38.handle(top)
46
+ n39.handle(bottom) -> laneB.n40.handle(top)
47
+ n41.handle(bottom) -> laneB.n42.handle(top)
48
+ n43.handle(bottom) -> laneB.n44.handle(top)
49
+ n45.handle(bottom) -> laneB.n46.handle(top)
50
+ n47.handle(bottom) -> laneB.n48.handle(top)
51
+ n49.handle(bottom) -> laneB.n50.handle(top)
52
+ }
53
+
54
+ laneB { # Lane B
55
+ n2: rectangle label:"16 Max Nodes step 2"
56
+ n4: rectangle label:"16 Max Nodes step 4"
57
+ n6: rectangle label:"16 Max Nodes step 6"
58
+ n8: rectangle label:"16 Max Nodes step 8"
59
+ n10: rectangle label:"16 Max Nodes step 10"
60
+ n12: rectangle label:"16 Max Nodes step 12"
61
+ n14: rectangle label:"16 Max Nodes step 14"
62
+ n16: rectangle label:"16 Max Nodes step 16"
63
+ n18: rectangle label:"16 Max Nodes step 18"
64
+ n20: rectangle label:"16 Max Nodes step 20"
65
+ n22: rectangle label:"16 Max Nodes step 22"
66
+ n24: rectangle label:"16 Max Nodes step 24"
67
+ n26: rectangle label:"16 Max Nodes step 26"
68
+ n28: rectangle label:"16 Max Nodes step 28"
69
+ n30: rectangle label:"16 Max Nodes step 30"
70
+ n32: rectangle label:"16 Max Nodes step 32"
71
+ n34: rectangle label:"16 Max Nodes step 34"
72
+ n36: rectangle label:"16 Max Nodes step 36"
73
+ n38: rectangle label:"16 Max Nodes step 38"
74
+ n40: rectangle label:"16 Max Nodes step 40"
75
+ n42: rectangle label:"16 Max Nodes step 42"
76
+ n44: rectangle label:"16 Max Nodes step 44"
77
+ n46: rectangle label:"16 Max Nodes step 46"
78
+ n48: rectangle label:"16 Max Nodes step 48"
79
+ n50: circle label:"End 16 Max Nodes"
80
+ n2.handle(right) -> laneA.n3.handle(left)
81
+ n4.handle(right) -> laneA.n5.handle(left)
82
+ n6.handle(right) -> laneA.n7.handle(left)
83
+ n8.handle(right) -> laneA.n9.handle(left)
84
+ n10.handle(right) -> laneA.n11.handle(left)
85
+ n12.handle(right) -> laneA.n13.handle(left)
86
+ n14.handle(right) -> laneA.n15.handle(left)
87
+ n16.handle(right) -> laneA.n17.handle(left)
88
+ n18.handle(right) -> laneA.n19.handle(left)
89
+ n20.handle(right) -> laneA.n21.handle(left)
90
+ n22.handle(right) -> laneA.n23.handle(left)
91
+ n24.handle(right) -> laneA.n25.handle(left)
92
+ n26.handle(right) -> laneA.n27.handle(left)
93
+ n28.handle(right) -> laneA.n29.handle(left)
94
+ n30.handle(right) -> laneA.n31.handle(left)
95
+ n32.handle(right) -> laneA.n33.handle(left)
96
+ n34.handle(right) -> laneA.n35.handle(left)
97
+ n36.handle(right) -> laneA.n37.handle(left)
98
+ n38.handle(right) -> laneA.n39.handle(left)
99
+ n40.handle(right) -> laneA.n41.handle(left)
100
+ n42.handle(right) -> laneA.n43.handle(left)
101
+ n44.handle(right) -> laneA.n45.handle(left)
102
+ n46.handle(right) -> laneA.n47.handle(left)
103
+ n48.handle(right) -> laneA.n49.handle(left)
104
+ }
edge-cases/syntax-primitives/19-label-escaping-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 19 Label Escaping Workflow
2
+
3
+ This workflow models labels that include quotes and special characters.
4
+
5
+ **Template ID:** `19-label-escaping-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** syntax-primitives
8
+ **Primary use case:** edge-cases
9
+ **Secondary use cases:** None
10
+ **Complexity:** 2/5
11
+ **Nodes:** 7
12
+ **Lanes:** 2
13
+ **Tags:** [19, label, escaping]
14
+ **Source path:** `syntax-primitives/19-label-escaping`
15
+ **Repo path:** `edge-cases/syntax-primitives/19-label-escaping-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
edge-cases/syntax-primitives/19-label-escaping-workflow/metadata.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "19-label-escaping-workflow",
3
+ "workflow_id": "19-label-escaping",
4
+ "title": "19 Label Escaping Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "syntax-primitives",
7
+ "primary_use_case": "edge-cases",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "edge-cases"
11
+ ],
12
+ "complexity": 2,
13
+ "num_nodes": 7,
14
+ "num_lanes": 2,
15
+ "tags": [
16
+ "19",
17
+ "label",
18
+ "escaping"
19
+ ],
20
+ "description": "This workflow models labels that include quotes and special characters.",
21
+ "source_path": "syntax-primitives/19-label-escaping",
22
+ "repo_path": "edge-cases/syntax-primitives/19-label-escaping-workflow"
23
+ }
edge-cases/syntax-primitives/19-label-escaping-workflow/workflow.fz ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laneA { # Lane A
2
+ n1: circle label:"Start 19 Label Escaping"
3
+ n3: rectangle label:"19 Label Escaping step 3"
4
+ n5: rectangle label:"19 Label Escaping step 5"
5
+ n7: circle label:"End 19 Label Escaping"
6
+ n1.handle(bottom) -> laneB.n2.handle(top)
7
+ n3.handle(bottom) -> laneB.n4.handle(top)
8
+ n5.handle(bottom) -> laneB.n6.handle(top)
9
+ }
10
+
11
+ laneB { # Lane B
12
+ n2: rectangle label:"19 Label Escaping step 2"
13
+ n4: rectangle label:"19 Label Escaping step 4"
14
+ n6: rectangle label:"19 Label Escaping step 6"
15
+ n2.handle(right) -> laneA.n3.handle(left)
16
+ n4.handle(right) -> laneA.n5.handle(left)
17
+ n6.handle(right) -> laneA.n7.handle(left)
18
+ }
handoff/architecture/bulkhead-isolation-architecture/README.md CHANGED
@@ -6,7 +6,7 @@ A bulkhead isolation architecture diagram with separate thread pools for critica
6
  **Kind:** architecture
7
  **Source domain:** Architecture
8
  **Primary use case:** handoff
9
- **Secondary use cases:** None
10
  **Complexity:** 4/5
11
  **Nodes:** 18
12
  **Lanes:** 4
 
6
  **Kind:** architecture
7
  **Source domain:** Architecture
8
  **Primary use case:** handoff
9
+ **Secondary use cases:** patterns
10
  **Complexity:** 4/5
11
  **Nodes:** 18
12
  **Lanes:** 4
handoff/architecture/bulkhead-isolation-architecture/metadata.json CHANGED
@@ -5,9 +5,12 @@
5
  "kind": "architecture",
6
  "source_domain": "Architecture",
7
  "primary_use_case": "handoff",
8
- "secondary_use_cases": [],
 
 
9
  "use_cases": [
10
- "handoff"
 
11
  ],
12
  "complexity": 4,
13
  "num_nodes": 18,
 
5
  "kind": "architecture",
6
  "source_domain": "Architecture",
7
  "primary_use_case": "handoff",
8
+ "secondary_use_cases": [
9
+ "patterns"
10
+ ],
11
  "use_cases": [
12
+ "handoff",
13
+ "patterns"
14
  ],
15
  "complexity": 4,
16
  "num_nodes": 18,
handoff/architecture/bulkhead-isolation-architecture/workflow.fz CHANGED
@@ -1,43 +1,43 @@
1
- Gateway { # API Gateway
2
- n1: circle label:"Incoming Request"
3
- n2: rectangle label:"Classify Request Type"
4
- n3: diamond label:"Request Category?"
5
- n4: rectangle label:"Route to Critical Pool"
6
- n5: rectangle label:"Route to Standard Pool"
7
- n6: rectangle label:"Route to Batch Pool"
8
- n1.handle(right) -> n2.handle(left)
9
- n2.handle(right) -> n3.handle(left)
10
- n3.handle(right) -> n4.handle(left) [label="Critical"]
11
- n3.handle(bottom) -> n5.handle(top) [label="Standard"]
12
- n3.handle(left) -> n6.handle(right) [label="Batch"]
13
- n4.handle(bottom) -> CriticalPool.n7.handle(top) [label="Priority"]
14
- n5.handle(bottom) -> StandardPool.n11.handle(top) [label="Normal"]
15
- n6.handle(bottom) -> BatchPool.n15.handle(top) [label="Low Priority"]
16
- }
17
- CriticalPool { # Critical Thread Pool (10 threads)
18
- n7: rectangle label:"Dedicated Connection Pool"
19
- n8: diamond label:"Pool Exhausted?"
20
- n9: rectangle label:"Process Payment Request"
21
- n10: rectangle label:"Queue with Timeout"
22
- n7.handle(right) -> n8.handle(left) [label="Check"]
23
- n8.handle(right) -> n9.handle(left) [label="Available"]
24
- n8.handle(bottom) -> n10.handle(top) [label="Exhausted"]
25
- }
26
- StandardPool { # Standard Thread Pool (20 threads)
27
- n11: rectangle label:"Shared Connection Pool"
28
- n12: diamond label:"Pool Exhausted?"
29
- n13: rectangle label:"Process API Request"
30
- n14: rectangle label:"Return 503 Service Unavailable"
31
- n11.handle(right) -> n12.handle(left) [label="Check"]
32
- n12.handle(right) -> n13.handle(left) [label="Available"]
33
- n12.handle(bottom) -> n14.handle(top) [label="Exhausted"]
34
- }
35
- BatchPool { # Batch Thread Pool (5 threads)
36
- n15: rectangle label:"Rate-Limited Pool"
37
- n16: diamond label:"Pool Exhausted?"
38
- n17: rectangle label:"Process Batch Job"
39
- n18: rectangle label:"Backpressure: Delay Retry"
40
- n15.handle(right) -> n16.handle(left) [label="Check"]
41
- n16.handle(right) -> n17.handle(left) [label="Available"]
42
- n16.handle(bottom) -> n18.handle(top) [label="Exhausted"]
43
- }
 
1
+ Gateway { # API Gateway
2
+ n1: circle label:"Incoming Request"
3
+ n2: rectangle label:"Classify Request Type"
4
+ n3: diamond label:"Request Category?"
5
+ n4: rectangle label:"Route to Critical Pool"
6
+ n5: rectangle label:"Route to Standard Pool"
7
+ n6: rectangle label:"Route to Batch Pool"
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(right) -> n3.handle(left)
10
+ n3.handle(right) -> n4.handle(left) [label="Critical"]
11
+ n3.handle(bottom) -> n5.handle(top) [label="Standard"]
12
+ n3.handle(left) -> n6.handle(right) [label="Batch"]
13
+ n4.handle(bottom) -> CriticalPool.n7.handle(top) [label="Priority"]
14
+ n5.handle(bottom) -> StandardPool.n11.handle(top) [label="Normal"]
15
+ n6.handle(bottom) -> BatchPool.n15.handle(top) [label="Low Priority"]
16
+ }
17
+ CriticalPool { # Critical Thread Pool (10 threads)
18
+ n7: rectangle label:"Dedicated Connection Pool"
19
+ n8: diamond label:"Pool Exhausted?"
20
+ n9: rectangle label:"Process Payment Request"
21
+ n10: rectangle label:"Queue with Timeout"
22
+ n7.handle(right) -> n8.handle(left) [label="Check"]
23
+ n8.handle(right) -> n9.handle(left) [label="Available"]
24
+ n8.handle(bottom) -> n10.handle(top) [label="Exhausted"]
25
+ }
26
+ StandardPool { # Standard Thread Pool (20 threads)
27
+ n11: rectangle label:"Shared Connection Pool"
28
+ n12: diamond label:"Pool Exhausted?"
29
+ n13: rectangle label:"Process API Request"
30
+ n14: rectangle label:"Return 503 Service Unavailable"
31
+ n11.handle(right) -> n12.handle(left) [label="Check"]
32
+ n12.handle(right) -> n13.handle(left) [label="Available"]
33
+ n12.handle(bottom) -> n14.handle(top) [label="Exhausted"]
34
+ }
35
+ BatchPool { # Batch Thread Pool (5 threads)
36
+ n15: rectangle label:"Rate-Limited Pool"
37
+ n16: diamond label:"Pool Exhausted?"
38
+ n17: rectangle label:"Process Batch Job"
39
+ n18: rectangle label:"Backpressure: Delay Retry"
40
+ n15.handle(right) -> n16.handle(left) [label="Check"]
41
+ n16.handle(right) -> n17.handle(left) [label="Available"]
42
+ n16.handle(bottom) -> n18.handle(top) [label="Exhausted"]
43
+ }
handoff/architecture/cell-based-architecture/workflow.fz CHANGED
@@ -1,48 +1,48 @@
1
- GlobalRouter { # Global Router
2
- n1: circle label:"User Request"
3
- n2: rectangle label:"Geographic Routing"
4
- n3: diamond label:"User Cell Assignment?"
5
- n4: rectangle label:"Route to Cell A"
6
- n5: rectangle label:"Route to Cell B"
7
- n1.handle(right) -> n2.handle(left)
8
- n2.handle(right) -> n3.handle(left)
9
- n3.handle(right) -> n4.handle(left) [label="US-East"]
10
- n3.handle(bottom) -> n5.handle(top) [label="EU-West"]
11
- n4.handle(bottom) -> CellA.n6.handle(top) [label="Forward"]
12
- n5.handle(bottom) -> CellB.n12.handle(top) [label="Forward"]
13
- }
14
- CellA { # Cell A (US-East)
15
- n6: rectangle label:"Cell Gateway"
16
- n7: rectangle label:"Compute Layer"
17
- n8: rectangle label:"Cell Database"
18
- n9: rectangle label:"Cell Cache"
19
- n10: rectangle label:"Cell Message Queue"
20
- n11: circle label:"Cell Response"
21
- n6.handle(right) -> n7.handle(left) [label="Process"]
22
- n7.handle(right) -> n8.handle(left) [label="Read/Write"]
23
- n7.handle(bottom) -> n9.handle(top) [label="Cache"]
24
- n7.handle(bottom) -> n10.handle(top) [label="Async"]
25
- n8.handle(right) -> n11.handle(left)
26
- n8.handle(bottom) -> SharedServices.n18.handle(top) [label="Replicate"]
27
- }
28
- CellB { # Cell B (EU-West)
29
- n12: rectangle label:"Cell Gateway"
30
- n13: rectangle label:"Compute Layer"
31
- n14: rectangle label:"Cell Database"
32
- n15: rectangle label:"Cell Cache"
33
- n16: rectangle label:"Cell Message Queue"
34
- n17: circle label:"Cell Response"
35
- n12.handle(right) -> n13.handle(left) [label="Process"]
36
- n13.handle(right) -> n14.handle(left) [label="Read/Write"]
37
- n13.handle(bottom) -> n15.handle(top) [label="Cache"]
38
- n13.handle(bottom) -> n16.handle(top) [label="Async"]
39
- n14.handle(right) -> n17.handle(left)
40
- n14.handle(bottom) -> SharedServices.n18.handle(top) [label="Replicate"]
41
- }
42
- SharedServices { # Shared Services (Cross-Cell)
43
- n18: rectangle label:"Cross-Cell Replication"
44
- n19: rectangle label:"Global Config Service"
45
- n20: rectangle label:"Monitoring and Alerting"
46
- n18.handle(right) -> n19.handle(left) [label="Sync Config"]
47
- n19.handle(right) -> n20.handle(left) [label="Health"]
48
- }
 
1
+ GlobalRouter { # Global Router
2
+ n1: circle label:"User Request"
3
+ n2: rectangle label:"Geographic Routing"
4
+ n3: diamond label:"User Cell Assignment?"
5
+ n4: rectangle label:"Route to Cell A"
6
+ n5: rectangle label:"Route to Cell B"
7
+ n1.handle(right) -> n2.handle(left)
8
+ n2.handle(right) -> n3.handle(left)
9
+ n3.handle(right) -> n4.handle(left) [label="US-East"]
10
+ n3.handle(bottom) -> n5.handle(top) [label="EU-West"]
11
+ n4.handle(bottom) -> CellA.n6.handle(top) [label="Forward"]
12
+ n5.handle(bottom) -> CellB.n12.handle(top) [label="Forward"]
13
+ }
14
+ CellA { # Cell A (US-East)
15
+ n6: rectangle label:"Cell Gateway"
16
+ n7: rectangle label:"Compute Layer"
17
+ n8: rectangle label:"Cell Database"
18
+ n9: rectangle label:"Cell Cache"
19
+ n10: rectangle label:"Cell Message Queue"
20
+ n11: circle label:"Cell Response"
21
+ n6.handle(right) -> n7.handle(left) [label="Process"]
22
+ n7.handle(right) -> n8.handle(left) [label="Read/Write"]
23
+ n7.handle(bottom) -> n9.handle(top) [label="Cache"]
24
+ n7.handle(bottom) -> n10.handle(top) [label="Async"]
25
+ n8.handle(right) -> n11.handle(left)
26
+ n8.handle(bottom) -> SharedServices.n18.handle(top) [label="Replicate"]
27
+ }
28
+ CellB { # Cell B (EU-West)
29
+ n12: rectangle label:"Cell Gateway"
30
+ n13: rectangle label:"Compute Layer"
31
+ n14: rectangle label:"Cell Database"
32
+ n15: rectangle label:"Cell Cache"
33
+ n16: rectangle label:"Cell Message Queue"
34
+ n17: circle label:"Cell Response"
35
+ n12.handle(right) -> n13.handle(left) [label="Process"]
36
+ n13.handle(right) -> n14.handle(left) [label="Read/Write"]
37
+ n13.handle(bottom) -> n15.handle(top) [label="Cache"]
38
+ n13.handle(bottom) -> n16.handle(top) [label="Async"]
39
+ n14.handle(right) -> n17.handle(left)
40
+ n14.handle(bottom) -> SharedServices.n18.handle(top) [label="Replicate"]
41
+ }
42
+ SharedServices { # Shared Services (Cross-Cell)
43
+ n18: rectangle label:"Cross-Cell Replication"
44
+ n19: rectangle label:"Global Config Service"
45
+ n20: rectangle label:"Monitoring and Alerting"
46
+ n18.handle(right) -> n19.handle(left) [label="Sync Config"]
47
+ n19.handle(right) -> n20.handle(left) [label="Health"]
48
+ }
handoff/architecture/microservices-service-discovery-architecture/README.md CHANGED
@@ -6,7 +6,7 @@ A service discovery architecture diagram with Consul or Eureka registry, client-
6
  **Kind:** architecture
7
  **Source domain:** Architecture
8
  **Primary use case:** handoff
9
- **Secondary use cases:** None
10
  **Complexity:** 3/5
11
  **Nodes:** 16
12
  **Lanes:** 3
 
6
  **Kind:** architecture
7
  **Source domain:** Architecture
8
  **Primary use case:** handoff
9
+ **Secondary use cases:** architecture
10
  **Complexity:** 3/5
11
  **Nodes:** 16
12
  **Lanes:** 3
handoff/architecture/microservices-service-discovery-architecture/metadata.json CHANGED
@@ -5,9 +5,12 @@
5
  "kind": "architecture",
6
  "source_domain": "Architecture",
7
  "primary_use_case": "handoff",
8
- "secondary_use_cases": [],
 
 
9
  "use_cases": [
10
- "handoff"
 
11
  ],
12
  "complexity": 3,
13
  "num_nodes": 16,
 
5
  "kind": "architecture",
6
  "source_domain": "Architecture",
7
  "primary_use_case": "handoff",
8
+ "secondary_use_cases": [
9
+ "architecture"
10
+ ],
11
  "use_cases": [
12
+ "handoff",
13
+ "architecture"
14
  ],
15
  "complexity": 3,
16
  "num_nodes": 16,
handoff/architecture/microservices-service-discovery-architecture/workflow.fz CHANGED
@@ -1,59 +1,59 @@
1
- Client { # Client Service
2
- n1: circle label:"Service Call Needed"
3
- n2: rectangle label:"Query Service Registry"
4
- n8: rectangle label:"Client-Side Load Balance"
5
- n9: rectangle label:"Send Request to Instance"
6
- n14: rectangle label:"Receive Response"
7
- n15: rectangle label:"Process Result"
8
- n1.handle(right) -> n2.handle(left)
9
- n2.handle(bottom) -> Registry.n3.handle(top) [label="Lookup"]
10
- n8.handle(right) -> n9.handle(left)
11
- n9.handle(bottom) -> Target.n10.handle(top) [label="HTTP/gRPC"]
12
- n14.handle(right) -> n15.handle(left)
13
- }
14
- Registry { # Service Registry (Consul/Eureka)
15
- n3: rectangle label:"Receive Lookup Request"
16
- n4: rectangle label:"Check Health Status"
17
- n5: diamond label:"Healthy Instances?"
18
- n6: rectangle label:"Return Instance List"
19
- n7: rectangle label:"Return Service Unavailable"
20
- n18: rectangle label:"Receive Heartbeat"
21
- n19: rectangle label:"Send Registration Ack"
22
- n21: rectangle label:"Receive Ready Signal"
23
- n22: rectangle label:"Send Health Ping"
24
- n24: rectangle label:"Update Health Status"
25
- n27: rectangle label:"Process Removal"
26
- n3.handle(right) -> n4.handle(left)
27
- n4.handle(right) -> n5.handle(left)
28
- n5.handle(right) -> n6.handle(left) [label="Yes"]
29
- n5.handle(bottom) -> n7.handle(top) [label="No"]
30
- n6.handle(top) -> Client.n8.handle(bottom) [label="Endpoints"]
31
- n7.handle(top) -> Client.n14.handle(bottom) [label="503"]
32
- n18.handle(right) -> n19.handle(left)
33
- n19.handle(bottom) -> Target.n20.handle(top) [label="Registered OK"]
34
- n21.handle(right) -> n22.handle(left)
35
- n22.handle(bottom) -> Target.n23.handle(top) [label="Ping"]
36
- }
37
- Target { # Target Service
38
- n10: rectangle label:"Instance A (Primary)"
39
- n11: rectangle label:"Instance B (Replica)"
40
- n12: rectangle label:"Instance C (Replica)"
41
- n13: rectangle label:"Send Response"
42
- n16: rectangle label:"Register on Startup"
43
- n17: rectangle label:"Send Heartbeat"
44
- n20: rectangle label:"Receive Registration Ack"
45
- n23: rectangle label:"Respond to Ping"
46
- n25: rectangle label:"Service Running"
47
- n26: rectangle label:"Deregister on Shutdown"
48
- n10.handle(right) -> n11.handle(left) [label="Replicate"]
49
- n11.handle(right) -> n12.handle(left) [label="Replicate"]
50
- n12.handle(right) -> n13.handle(left)
51
- n13.handle(top) -> Client.n14.handle(bottom) [label="Response"]
52
- n16.handle(right) -> n17.handle(left)
53
- n17.handle(top) -> Registry.n18.handle(bottom) [label="Heartbeat"]
54
- n20.handle(top) -> Registry.n21.handle(bottom) [label="Ready for Ping"]
55
- n23.handle(top) -> Registry.n24.handle(bottom) [label="Healthy"]
56
- n23.handle(right) -> n25.handle(left)
57
- n25.handle(right) -> n26.handle(left) [label="Shutdown"]
58
- n26.handle(top) -> Registry.n27.handle(bottom) [label="Remove"]
59
- }
 
1
+ Client { # Client Service
2
+ n1: circle label:"Service Call Needed"
3
+ n2: rectangle label:"Query Service Registry"
4
+ n8: rectangle label:"Client-Side Load Balance"
5
+ n9: rectangle label:"Send Request to Instance"
6
+ n14: rectangle label:"Receive Response"
7
+ n15: rectangle label:"Process Result"
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(bottom) -> Registry.n3.handle(top) [label="Lookup"]
10
+ n8.handle(right) -> n9.handle(left)
11
+ n9.handle(bottom) -> Target.n10.handle(top) [label="HTTP/gRPC"]
12
+ n14.handle(right) -> n15.handle(left)
13
+ }
14
+ Registry { # Service Registry (Consul/Eureka)
15
+ n3: rectangle label:"Receive Lookup Request"
16
+ n4: rectangle label:"Check Health Status"
17
+ n5: diamond label:"Healthy Instances?"
18
+ n6: rectangle label:"Return Instance List"
19
+ n7: rectangle label:"Return Service Unavailable"
20
+ n18: rectangle label:"Receive Heartbeat"
21
+ n19: rectangle label:"Send Registration Ack"
22
+ n21: rectangle label:"Receive Ready Signal"
23
+ n22: rectangle label:"Send Health Ping"
24
+ n24: rectangle label:"Update Health Status"
25
+ n27: rectangle label:"Process Removal"
26
+ n3.handle(right) -> n4.handle(left)
27
+ n4.handle(right) -> n5.handle(left)
28
+ n5.handle(right) -> n6.handle(left) [label="Yes"]
29
+ n5.handle(bottom) -> n7.handle(top) [label="No"]
30
+ n6.handle(top) -> Client.n8.handle(bottom) [label="Endpoints"]
31
+ n7.handle(top) -> Client.n14.handle(bottom) [label="503"]
32
+ n18.handle(right) -> n19.handle(left)
33
+ n19.handle(bottom) -> Target.n20.handle(top) [label="Registered OK"]
34
+ n21.handle(right) -> n22.handle(left)
35
+ n22.handle(bottom) -> Target.n23.handle(top) [label="Ping"]
36
+ }
37
+ Target { # Target Service
38
+ n10: rectangle label:"Instance A (Primary)"
39
+ n11: rectangle label:"Instance B (Replica)"
40
+ n12: rectangle label:"Instance C (Replica)"
41
+ n13: rectangle label:"Send Response"
42
+ n16: rectangle label:"Register on Startup"
43
+ n17: rectangle label:"Send Heartbeat"
44
+ n20: rectangle label:"Receive Registration Ack"
45
+ n23: rectangle label:"Respond to Ping"
46
+ n25: rectangle label:"Service Running"
47
+ n26: rectangle label:"Deregister on Shutdown"
48
+ n10.handle(right) -> n11.handle(left) [label="Replicate"]
49
+ n11.handle(right) -> n12.handle(left) [label="Replicate"]
50
+ n12.handle(right) -> n13.handle(left)
51
+ n13.handle(top) -> Client.n14.handle(bottom) [label="Response"]
52
+ n16.handle(right) -> n17.handle(left)
53
+ n17.handle(top) -> Registry.n18.handle(bottom) [label="Heartbeat"]
54
+ n20.handle(top) -> Registry.n21.handle(bottom) [label="Ready for Ping"]
55
+ n23.handle(top) -> Registry.n24.handle(bottom) [label="Healthy"]
56
+ n23.handle(right) -> n25.handle(left)
57
+ n25.handle(right) -> n26.handle(left) [label="Shutdown"]
58
+ n26.handle(top) -> Registry.n27.handle(bottom) [label="Remove"]
59
+ }
handoff/architecture/serverless-edge-computing-architecture/README.md CHANGED
@@ -6,7 +6,7 @@ A serverless edge computing architecture diagram with CloudFront or Cloudflare e
6
  **Kind:** architecture
7
  **Source domain:** Architecture
8
  **Primary use case:** handoff
9
- **Secondary use cases:** None
10
  **Complexity:** 3/5
11
  **Nodes:** 15
12
  **Lanes:** 3
 
6
  **Kind:** architecture
7
  **Source domain:** Architecture
8
  **Primary use case:** handoff
9
+ **Secondary use cases:** architecture
10
  **Complexity:** 3/5
11
  **Nodes:** 15
12
  **Lanes:** 3
handoff/architecture/serverless-edge-computing-architecture/metadata.json CHANGED
@@ -5,9 +5,12 @@
5
  "kind": "architecture",
6
  "source_domain": "Architecture",
7
  "primary_use_case": "handoff",
8
- "secondary_use_cases": [],
 
 
9
  "use_cases": [
10
- "handoff"
 
11
  ],
12
  "complexity": 3,
13
  "num_nodes": 15,
 
5
  "kind": "architecture",
6
  "source_domain": "Architecture",
7
  "primary_use_case": "handoff",
8
+ "secondary_use_cases": [
9
+ "architecture"
10
+ ],
11
  "use_cases": [
12
+ "handoff",
13
+ "architecture"
14
  ],
15
  "complexity": 3,
16
  "num_nodes": 15,
handoff/architecture/serverless-edge-computing-architecture/workflow.fz CHANGED
@@ -1,51 +1,51 @@
1
- User { # End User
2
- n1: circle label:"Browser Request"
3
- n2: rectangle label:"DNS Resolution (Route 53)"
4
- n21: rectangle label:"Receive Optimized Response"
5
- n22: circle label:"Page Rendered"
6
- n1.handle(right) -> n2.handle(left)
7
- n2.handle(bottom) -> Edge.n3.handle(top) [label="Nearest PoP"]
8
- n21.handle(right) -> n22.handle(left)
9
- }
10
- Edge { # Edge Network (CloudFront/Cloudflare)
11
- n3: rectangle label:"Edge Location PoP"
12
- n4: diamond label:"Cache Hit?"
13
- n5: rectangle label:"Return Cached Response"
14
- n6: rectangle label:"Edge Function (Lambda@Edge)"
15
- n7: rectangle label:"A/B Test Routing"
16
- n8: rectangle label:"Geo-Based Personalization"
17
- n19: rectangle label:"Cache and Forward Response"
18
- n20: rectangle label:"Send to User"
19
- n3.handle(right) -> n4.handle(left)
20
- n4.handle(right) -> n5.handle(left) [label="HIT"]
21
- n4.handle(bottom) -> n6.handle(top) [label="MISS"]
22
- n5.handle(top) -> User.n21.handle(bottom) [label="Fast Response"]
23
- n6.handle(right) -> n7.handle(left) [label="Modify Request"]
24
- n7.handle(right) -> n8.handle(left) [label="Personalize"]
25
- n8.handle(bottom) -> Origin.n9.handle(top) [label="Forward"]
26
- n19.handle(right) -> n20.handle(left)
27
- n20.handle(top) -> User.n21.handle(bottom) [label="Response"]
28
- }
29
- Origin { # Origin Services
30
- n9: rectangle label:"Origin Shield"
31
- n10: rectangle label:"Application Load Balancer"
32
- n11: rectangle label:"Serverless API"
33
- n12: rectangle label:"Static Asset Store (S3)"
34
- n13: rectangle label:"Generate Response"
35
- n14: rectangle label:"Prepare Origin Response"
36
- n15: rectangle label:"Package Response"
37
- n16: rectangle label:"Forward Origin Response"
38
- n17: rectangle label:"Send Cached Response"
39
- n18: rectangle label:"Deliver to Edge"
40
- n9.handle(right) -> n10.handle(left) [label="Collapse Requests"]
41
- n10.handle(right) -> n11.handle(left) [label="Dynamic"]
42
- n10.handle(bottom) -> n12.handle(top) [label="Static"]
43
- n11.handle(right) -> n13.handle(left) [label="Compute"]
44
- n12.handle(right) -> n13.handle(left) [label="Assets"]
45
- n13.handle(right) -> n14.handle(left)
46
- n14.handle(right) -> n15.handle(left)
47
- n15.handle(right) -> n16.handle(left)
48
- n16.handle(right) -> n17.handle(left)
49
- n17.handle(right) -> n18.handle(left)
50
- n18.handle(top) -> Edge.n19.handle(bottom) [label="Cache + Return"]
51
- }
 
1
+ User { # End User
2
+ n1: circle label:"Browser Request"
3
+ n2: rectangle label:"DNS Resolution (Route 53)"
4
+ n21: rectangle label:"Receive Optimized Response"
5
+ n22: circle label:"Page Rendered"
6
+ n1.handle(right) -> n2.handle(left)
7
+ n2.handle(bottom) -> Edge.n3.handle(top) [label="Nearest PoP"]
8
+ n21.handle(right) -> n22.handle(left)
9
+ }
10
+ Edge { # Edge Network (CloudFront/Cloudflare)
11
+ n3: rectangle label:"Edge Location PoP"
12
+ n4: diamond label:"Cache Hit?"
13
+ n5: rectangle label:"Return Cached Response"
14
+ n6: rectangle label:"Edge Function (Lambda@Edge)"
15
+ n7: rectangle label:"A/B Test Routing"
16
+ n8: rectangle label:"Geo-Based Personalization"
17
+ n19: rectangle label:"Cache and Forward Response"
18
+ n20: rectangle label:"Send to User"
19
+ n3.handle(right) -> n4.handle(left)
20
+ n4.handle(right) -> n5.handle(left) [label="HIT"]
21
+ n4.handle(bottom) -> n6.handle(top) [label="MISS"]
22
+ n5.handle(top) -> User.n21.handle(bottom) [label="Fast Response"]
23
+ n6.handle(right) -> n7.handle(left) [label="Modify Request"]
24
+ n7.handle(right) -> n8.handle(left) [label="Personalize"]
25
+ n8.handle(bottom) -> Origin.n9.handle(top) [label="Forward"]
26
+ n19.handle(right) -> n20.handle(left)
27
+ n20.handle(top) -> User.n21.handle(bottom) [label="Response"]
28
+ }
29
+ Origin { # Origin Services
30
+ n9: rectangle label:"Origin Shield"
31
+ n10: rectangle label:"Application Load Balancer"
32
+ n11: rectangle label:"Serverless API"
33
+ n12: rectangle label:"Static Asset Store (S3)"
34
+ n13: rectangle label:"Generate Response"
35
+ n14: rectangle label:"Prepare Origin Response"
36
+ n15: rectangle label:"Package Response"
37
+ n16: rectangle label:"Forward Origin Response"
38
+ n17: rectangle label:"Send Cached Response"
39
+ n18: rectangle label:"Deliver to Edge"
40
+ n9.handle(right) -> n10.handle(left) [label="Collapse Requests"]
41
+ n10.handle(right) -> n11.handle(left) [label="Dynamic"]
42
+ n10.handle(bottom) -> n12.handle(top) [label="Static"]
43
+ n11.handle(right) -> n13.handle(left) [label="Compute"]
44
+ n12.handle(right) -> n13.handle(left) [label="Assets"]
45
+ n13.handle(right) -> n14.handle(left)
46
+ n14.handle(right) -> n15.handle(left)
47
+ n15.handle(right) -> n16.handle(left)
48
+ n16.handle(right) -> n17.handle(left)
49
+ n17.handle(right) -> n18.handle(left)
50
+ n18.handle(top) -> Edge.n19.handle(bottom) [label="Cache + Return"]
51
+ }
handoff/architecture/serverless-multi-cloud-architecture/README.md CHANGED
@@ -6,7 +6,7 @@ A multi-cloud serverless architecture diagram with DNS-based traffic routing bet
6
  **Kind:** architecture
7
  **Source domain:** Architecture
8
  **Primary use case:** handoff
9
- **Secondary use cases:** None
10
  **Complexity:** 4/5
11
  **Nodes:** 18
12
  **Lanes:** 4
 
6
  **Kind:** architecture
7
  **Source domain:** Architecture
8
  **Primary use case:** handoff
9
+ **Secondary use cases:** platform-reliability, architecture
10
  **Complexity:** 4/5
11
  **Nodes:** 18
12
  **Lanes:** 4
handoff/architecture/serverless-multi-cloud-architecture/metadata.json CHANGED
@@ -5,9 +5,14 @@
5
  "kind": "architecture",
6
  "source_domain": "Architecture",
7
  "primary_use_case": "handoff",
8
- "secondary_use_cases": [],
 
 
 
9
  "use_cases": [
10
- "handoff"
 
 
11
  ],
12
  "complexity": 4,
13
  "num_nodes": 18,
 
5
  "kind": "architecture",
6
  "source_domain": "Architecture",
7
  "primary_use_case": "handoff",
8
+ "secondary_use_cases": [
9
+ "platform-reliability",
10
+ "architecture"
11
+ ],
12
  "use_cases": [
13
+ "handoff",
14
+ "platform-reliability",
15
+ "architecture"
16
  ],
17
  "complexity": 4,
18
  "num_nodes": 18,
handoff/architecture/serverless-multi-cloud-architecture/workflow.fz CHANGED
@@ -1,55 +1,55 @@
1
- TrafficManager { # Global Traffic Manager
2
- n1: circle label:"User Request"
3
- n2: rectangle label:"DNS-Based Routing"
4
- n3: diamond label:"Primary Cloud Healthy?"
5
- n4: rectangle label:"Route to Primary (AWS)"
6
- n5: rectangle label:"Failover to Secondary (Azure)"
7
- n20: rectangle label:"Receive Cloud Response"
8
- n21: circle label:"Return to User"
9
- n1.handle(right) -> n2.handle(left)
10
- n2.handle(right) -> n3.handle(left)
11
- n3.handle(right) -> n4.handle(left) [label="Healthy"]
12
- n3.handle(bottom) -> n5.handle(top) [label="Unhealthy"]
13
- n4.handle(bottom) -> AWS.n6.handle(top) [label="Forward"]
14
- n5.handle(bottom) -> Azure.n13.handle(top) [label="Forward"]
15
- n20.handle(right) -> n21.handle(left)
16
- }
17
- AWS { # AWS Region
18
- n6: rectangle label:"API Gateway"
19
- n7: rectangle label:"Lambda Functions"
20
- n8: rectangle label:"DynamoDB"
21
- n9: rectangle label:"S3 Storage"
22
- n10: rectangle label:"CloudWatch Monitoring"
23
- n11: rectangle label:"Prepare Response"
24
- n12: rectangle label:"Return to TrafficManager"
25
- n6.handle(right) -> n7.handle(left) [label="Invoke"]
26
- n7.handle(right) -> n8.handle(left) [label="Read/Write"]
27
- n7.handle(bottom) -> n9.handle(top) [label="Store"]
28
- n8.handle(right) -> n10.handle(left) [label="Monitor"]
29
- n10.handle(right) -> n11.handle(left)
30
- n11.handle(right) -> n12.handle(left)
31
- n12.handle(top) -> TrafficManager.n20.handle(bottom) [label="AWS Response"]
32
- }
33
- Azure { # Azure Region
34
- n13: rectangle label:"Azure API Management"
35
- n14: rectangle label:"Azure Functions"
36
- n15: rectangle label:"Cosmos DB"
37
- n16: rectangle label:"Blob Storage"
38
- n17: rectangle label:"Azure Monitor"
39
- n18: rectangle label:"Prepare Response"
40
- n19: rectangle label:"Return to TrafficManager"
41
- n13.handle(right) -> n14.handle(left) [label="Invoke"]
42
- n14.handle(right) -> n15.handle(left) [label="Read/Write"]
43
- n14.handle(bottom) -> n16.handle(top) [label="Store"]
44
- n15.handle(right) -> n17.handle(left) [label="Monitor"]
45
- n17.handle(right) -> n18.handle(left)
46
- n18.handle(right) -> n19.handle(left)
47
- n19.handle(top) -> TrafficManager.n20.handle(bottom) [label="Azure Response"]
48
- }
49
- DataSync { # Cross-Cloud Sync
50
- n22: rectangle label:"Event Bridge"
51
- n23: rectangle label:"Bi-Directional Replication"
52
- n24: rectangle label:"Conflict Resolution"
53
- n22.handle(right) -> n23.handle(left) [label="CDC Events"]
54
- n23.handle(right) -> n24.handle(left) [label="Last-Write-Wins"]
55
- }
 
1
+ TrafficManager { # Global Traffic Manager
2
+ n1: circle label:"User Request"
3
+ n2: rectangle label:"DNS-Based Routing"
4
+ n3: diamond label:"Primary Cloud Healthy?"
5
+ n4: rectangle label:"Route to Primary (AWS)"
6
+ n5: rectangle label:"Failover to Secondary (Azure)"
7
+ n20: rectangle label:"Receive Cloud Response"
8
+ n21: circle label:"Return to User"
9
+ n1.handle(right) -> n2.handle(left)
10
+ n2.handle(right) -> n3.handle(left)
11
+ n3.handle(right) -> n4.handle(left) [label="Healthy"]
12
+ n3.handle(bottom) -> n5.handle(top) [label="Unhealthy"]
13
+ n4.handle(bottom) -> AWS.n6.handle(top) [label="Forward"]
14
+ n5.handle(bottom) -> Azure.n13.handle(top) [label="Forward"]
15
+ n20.handle(right) -> n21.handle(left)
16
+ }
17
+ AWS { # AWS Region
18
+ n6: rectangle label:"API Gateway"
19
+ n7: rectangle label:"Lambda Functions"
20
+ n8: rectangle label:"DynamoDB"
21
+ n9: rectangle label:"S3 Storage"
22
+ n10: rectangle label:"CloudWatch Monitoring"
23
+ n11: rectangle label:"Prepare Response"
24
+ n12: rectangle label:"Return to TrafficManager"
25
+ n6.handle(right) -> n7.handle(left) [label="Invoke"]
26
+ n7.handle(right) -> n8.handle(left) [label="Read/Write"]
27
+ n7.handle(bottom) -> n9.handle(top) [label="Store"]
28
+ n8.handle(right) -> n10.handle(left) [label="Monitor"]
29
+ n10.handle(right) -> n11.handle(left)
30
+ n11.handle(right) -> n12.handle(left)
31
+ n12.handle(top) -> TrafficManager.n20.handle(bottom) [label="AWS Response"]
32
+ }
33
+ Azure { # Azure Region
34
+ n13: rectangle label:"Azure API Management"
35
+ n14: rectangle label:"Azure Functions"
36
+ n15: rectangle label:"Cosmos DB"
37
+ n16: rectangle label:"Blob Storage"
38
+ n17: rectangle label:"Azure Monitor"
39
+ n18: rectangle label:"Prepare Response"
40
+ n19: rectangle label:"Return to TrafficManager"
41
+ n13.handle(right) -> n14.handle(left) [label="Invoke"]
42
+ n14.handle(right) -> n15.handle(left) [label="Read/Write"]
43
+ n14.handle(bottom) -> n16.handle(top) [label="Store"]
44
+ n15.handle(right) -> n17.handle(left) [label="Monitor"]
45
+ n17.handle(right) -> n18.handle(left)
46
+ n18.handle(right) -> n19.handle(left)
47
+ n19.handle(top) -> TrafficManager.n20.handle(bottom) [label="Azure Response"]
48
+ }
49
+ DataSync { # Cross-Cloud Sync
50
+ n22: rectangle label:"Event Bridge"
51
+ n23: rectangle label:"Bi-Directional Replication"
52
+ n24: rectangle label:"Conflict Resolution"
53
+ n22.handle(right) -> n23.handle(left) [label="CDC Events"]
54
+ n23.handle(right) -> n24.handle(left) [label="Last-Write-Wins"]
55
+ }
handoff/business-operations/support-ticket-workflow/workflow.fz CHANGED
@@ -1,50 +1,50 @@
1
- Customer { # Customer
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Submit support request"
4
- n3: rectangle label:"Receive ticket number"
5
- n4: rectangle label:"Provide additional info"
6
- n5: rectangle label:"Rate support experience"
7
- n6: circle label:"End"
8
- n1.handle(right) -> n2.handle(left)
9
- n2.handle(bottom) -> Triage.n7.handle(top) [label="Create ticket"]
10
- n3.handle(bottom) -> Agent.n14.handle(top) [label="Reply"]
11
- n4.handle(bottom) -> Agent.n14.handle(top) [label="Update"]
12
- n5.handle(right) -> n6.handle(left)
13
- }
14
- Triage { # Triage System
15
- n7: rectangle label:"Parse ticket content"
16
- n8: rectangle label:"Classify by category"
17
- n9: diamond label:"Priority level?"
18
- n10: rectangle label:"Route to L1 queue"
19
- n11: rectangle label:"Route to L2 queue"
20
- n12: rectangle label:"Escalate to L3"
21
- n13: rectangle label:"Send confirmation email"
22
- n7.handle(right) -> n8.handle(left)
23
- n8.handle(right) -> n9.handle(left)
24
- n9.handle(right) -> n10.handle(left) [label="Low/Medium"]
25
- n9.handle(bottom) -> n11.handle(top) [label="High"]
26
- n9.handle(left) -> n12.handle(top) [label="Critical"]
27
- n10.handle(bottom) -> Agent.n14.handle(top) [label="Assign"]
28
- n11.handle(bottom) -> Agent.n14.handle(top) [label="Assign"]
29
- n12.handle(bottom) -> Agent.n14.handle(top) [label="Assign"]
30
- n13.handle(top) -> Customer.n3.handle(bottom) [label="Ticket created"]
31
- }
32
- Agent { # Support Agent
33
- n14: rectangle label:"Review ticket details"
34
- n15: diamond label:"Can resolve?"
35
- n16: rectangle label:"Provide solution"
36
- n17: rectangle label:"Request more info"
37
- n18: rectangle label:"Escalate to specialist"
38
- n19: diamond label:"Customer satisfied?"
39
- n20: rectangle label:"Close ticket"
40
- n14.handle(right) -> n15.handle(left)
41
- n15.handle(right) -> n16.handle(left) [label="Yes"]
42
- n15.handle(bottom) -> n17.handle(top) [label="Need info"]
43
- n15.handle(left) -> n18.handle(top) [label="No - Complex"]
44
- n16.handle(right) -> n19.handle(left)
45
- n17.handle(top) -> Customer.n4.handle(bottom) [label="Request sent"]
46
- n18.handle(bottom) -> Triage.n12.handle(bottom) [label="Escalate"]
47
- n19.handle(right) -> n20.handle(left) [label="Yes"]
48
- n19.handle(bottom) -> n14.handle(bottom) [label="No - Reopen"]
49
- n20.handle(top) -> Customer.n5.handle(bottom) [label="Survey sent"]
50
  }
 
1
+ Customer { # Customer
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Submit support request"
4
+ n3: rectangle label:"Receive ticket number"
5
+ n4: rectangle label:"Provide additional info"
6
+ n5: rectangle label:"Rate support experience"
7
+ n6: circle label:"End"
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(bottom) -> Triage.n7.handle(top) [label="Create ticket"]
10
+ n3.handle(bottom) -> Agent.n14.handle(top) [label="Reply"]
11
+ n4.handle(bottom) -> Agent.n14.handle(top) [label="Update"]
12
+ n5.handle(right) -> n6.handle(left)
13
+ }
14
+ Triage { # Triage System
15
+ n7: rectangle label:"Parse ticket content"
16
+ n8: rectangle label:"Classify by category"
17
+ n9: diamond label:"Priority level?"
18
+ n10: rectangle label:"Route to L1 queue"
19
+ n11: rectangle label:"Route to L2 queue"
20
+ n12: rectangle label:"Escalate to L3"
21
+ n13: rectangle label:"Send confirmation email"
22
+ n7.handle(right) -> n8.handle(left)
23
+ n8.handle(right) -> n9.handle(left)
24
+ n9.handle(right) -> n10.handle(left) [label="Low/Medium"]
25
+ n9.handle(bottom) -> n11.handle(top) [label="High"]
26
+ n9.handle(left) -> n12.handle(top) [label="Critical"]
27
+ n10.handle(bottom) -> Agent.n14.handle(top) [label="Assign"]
28
+ n11.handle(bottom) -> Agent.n14.handle(top) [label="Assign"]
29
+ n12.handle(bottom) -> Agent.n14.handle(top) [label="Assign"]
30
+ n13.handle(top) -> Customer.n3.handle(bottom) [label="Ticket created"]
31
+ }
32
+ Agent { # Support Agent
33
+ n14: rectangle label:"Review ticket details"
34
+ n15: diamond label:"Can resolve?"
35
+ n16: rectangle label:"Provide solution"
36
+ n17: rectangle label:"Request more info"
37
+ n18: rectangle label:"Escalate to specialist"
38
+ n19: diamond label:"Customer satisfied?"
39
+ n20: rectangle label:"Close ticket"
40
+ n14.handle(right) -> n15.handle(left)
41
+ n15.handle(right) -> n16.handle(left) [label="Yes"]
42
+ n15.handle(bottom) -> n17.handle(top) [label="Need info"]
43
+ n15.handle(left) -> n18.handle(top) [label="No - Complex"]
44
+ n16.handle(right) -> n19.handle(left)
45
+ n17.handle(top) -> Customer.n4.handle(bottom) [label="Request sent"]
46
+ n18.handle(bottom) -> Triage.n12.handle(bottom) [label="Escalate"]
47
+ n19.handle(right) -> n20.handle(left) [label="Yes"]
48
+ n19.handle(bottom) -> n14.handle(bottom) [label="No - Reopen"]
49
+ n20.handle(top) -> Customer.n5.handle(bottom) [label="Survey sent"]
50
  }
handoff/commerce-automation/ai-order-routing-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AI Order Routing Workflow
2
+
3
+ Order routing where an AI decision engine classifies each order, auto-processes the clean ones and sends the rest to a backorder queue before operations completes it.
4
+
5
+ **Template ID:** `ai-order-routing-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** Commerce Automation
8
+ **Primary use case:** handoff
9
+ **Secondary use cases:** commerce-automation
10
+ **Complexity:** 3/5
11
+ **Nodes:** 14
12
+ **Lanes:** 3
13
+ **Tags:** [n8n, order-routing, ai-decision, backorder, fulfillment]
14
+ **Source path:** ``
15
+ **Repo path:** `handoff/commerce-automation/ai-order-routing-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
handoff/commerce-automation/ai-order-routing-workflow/metadata.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "ai-order-routing-workflow",
3
+ "workflow_id": "ai-order-routing",
4
+ "title": "AI Order Routing Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "Commerce Automation",
7
+ "primary_use_case": "handoff",
8
+ "secondary_use_cases": [
9
+ "commerce-automation"
10
+ ],
11
+ "use_cases": [
12
+ "handoff",
13
+ "commerce-automation"
14
+ ],
15
+ "complexity": 3,
16
+ "num_nodes": 14,
17
+ "num_lanes": 3,
18
+ "tags": [
19
+ "n8n",
20
+ "order-routing",
21
+ "ai-decision",
22
+ "backorder",
23
+ "fulfillment"
24
+ ],
25
+ "description": "Order routing where an AI decision engine classifies each order, auto-processes the clean ones and sends the rest to a backorder queue before operations completes it.",
26
+ "source_path": "",
27
+ "repo_path": "handoff/commerce-automation/ai-order-routing-workflow"
28
+ }
handoff/commerce-automation/ai-order-routing-workflow/workflow.fz ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ channels { # Sales Channels
2
+ n1: rectangle label:"Order Received"
3
+ n2: diamond label:"Platform?"
4
+ n3: rectangle label:"Unified Order Payload"
5
+ n1.handle(right) -> n2.handle(left)
6
+ n2.handle(bottom) -> n3.handle(top)
7
+ n3.handle(right) -> agent.n4.handle(left) [label="new order"]
8
+ }
9
+
10
+ agent { # AI Decision Engine
11
+ n4: rectangle label:"AI: Classify Order"
12
+ n5: diamond label:"Risk Score?"
13
+ n6: rectangle label:"Auto-Process"
14
+ n7: rectangle label:"Flag for Review"
15
+ n8: diamond label:"Inventory Check"
16
+ n9: rectangle label:"Route to Warehouse"
17
+ n10: rectangle label:"Backorder Queue"
18
+ n4.handle(left) -> channels.n3.handle(right) [label="ack"]
19
+ n4.handle(right) -> n5.handle(left)
20
+ n5.handle(right) -> n6.handle(left) [label="low"]
21
+ n5.handle(bottom) -> n7.handle(top) [label="high"]
22
+ n6.handle(right) -> n8.handle(left)
23
+ n8.handle(right) -> n9.handle(left) [label="in stock"]
24
+ n8.handle(bottom) -> n10.handle(top) [label="none"]
25
+ n9.handle(right) -> ops.n11.handle(left) [label="dispatch"]
26
+ }
27
+
28
+ ops { # Operations
29
+ n11: rectangle label:"OMS / ERP Write"
30
+ n12: rectangle label:"Shipment Created"
31
+ n13: rectangle label:"Notify Customer"
32
+ n14: circle label:"Complete"
33
+ n11.handle(left) -> agent.n9.handle(right) [label="confirmed"]
34
+ n11.handle(right) -> n12.handle(left)
35
+ n12.handle(right) -> n13.handle(left)
36
+ n13.handle(right) -> n14.handle(left)
37
+ }
handoff/devops/mcp-tool-router/workflow.fz CHANGED
@@ -1,41 +1,41 @@
1
- Host {
2
- n1: circle label="User sends prompt"
3
- n2: rectangle label="Agent extracts intent"
4
- n3: rectangle label="Send intent to router"
5
- n4: rectangle label="Receive routed result"
6
- n5: rectangle label="Agent responds to user"
7
- n1.handle(right) -> n2.handle(left)
8
- n2.handle(right) -> n3.handle(left)
9
- n3.handle(bottom) -> Router.n6.handle(top) [label="Intent + tool request"]
10
- n4.handle(right) -> n5.handle(left)
11
- }
12
-
13
- Router {
14
- n6: rectangle label="Receive intent"
15
- n7: rectangle label="Semantic match via embeddings"
16
- n8: diamond label="Which MCP server?"
17
- n9: rectangle label="Forward to Server A"
18
- n10: rectangle label="Forward to Server B"
19
- n11: rectangle label="Normalize and return result"
20
- n6.handle(right) -> n7.handle(left)
21
- n7.handle(right) -> n8.handle(left)
22
- n8.handle(bottom) -> n9.handle(top) [label="Route A"]
23
- n8.handle(right) -> n10.handle(left) [label="Route B"]
24
- n9.handle(bottom) -> ServerA.n12.handle(top) [label="Call Server A"]
25
- n10.handle(bottom) -> ServerB.n14.handle(top) [label="Call Server B"]
26
- n11.handle(top) -> Host.n4.handle(bottom) [label="Final result"]
27
- }
28
-
29
- ServerA {
30
- n12: rectangle label="Execute tool A"
31
- n13: rectangle label="Return A result"
32
- n12.handle(right) -> n13.handle(left)
33
- n13.handle(top) -> Router.n11.handle(bottom) [label="Result A"]
34
- }
35
-
36
- ServerB {
37
- n14: rectangle label="Execute tool B"
38
- n15: rectangle label="Return B result"
39
- n14.handle(right) -> n15.handle(left)
40
- n15.handle(top) -> Router.n11.handle(left) [label="Result B"]
41
- }
 
1
+ Host {
2
+ n1: circle label="User sends prompt"
3
+ n2: rectangle label="Agent extracts intent"
4
+ n3: rectangle label="Send intent to router"
5
+ n4: rectangle label="Receive routed result"
6
+ n5: rectangle label="Agent responds to user"
7
+ n1.handle(right) -> n2.handle(left)
8
+ n2.handle(right) -> n3.handle(left)
9
+ n3.handle(bottom) -> Router.n6.handle(top) [label="Intent + tool request"]
10
+ n4.handle(right) -> n5.handle(left)
11
+ }
12
+
13
+ Router {
14
+ n6: rectangle label="Receive intent"
15
+ n7: rectangle label="Semantic match via embeddings"
16
+ n8: diamond label="Which MCP server?"
17
+ n9: rectangle label="Forward to Server A"
18
+ n10: rectangle label="Forward to Server B"
19
+ n11: rectangle label="Normalize and return result"
20
+ n6.handle(right) -> n7.handle(left)
21
+ n7.handle(right) -> n8.handle(left)
22
+ n8.handle(bottom) -> n9.handle(top) [label="Route A"]
23
+ n8.handle(right) -> n10.handle(left) [label="Route B"]
24
+ n9.handle(bottom) -> ServerA.n12.handle(top) [label="Call Server A"]
25
+ n10.handle(bottom) -> ServerB.n14.handle(top) [label="Call Server B"]
26
+ n11.handle(top) -> Host.n4.handle(bottom) [label="Final result"]
27
+ }
28
+
29
+ ServerA {
30
+ n12: rectangle label="Execute tool A"
31
+ n13: rectangle label="Return A result"
32
+ n12.handle(right) -> n13.handle(left)
33
+ n13.handle(top) -> Router.n11.handle(bottom) [label="Result A"]
34
+ }
35
+
36
+ ServerB {
37
+ n14: rectangle label="Execute tool B"
38
+ n15: rectangle label="Return B result"
39
+ n14.handle(right) -> n15.handle(left)
40
+ n15.handle(top) -> Router.n11.handle(left) [label="Result B"]
41
+ }
handoff/devops/on-call-rotation-workflow/workflow.fz CHANGED
@@ -1,47 +1,47 @@
1
- Scheduler { # On-Call Scheduler
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Load rotation schedule"
4
- n3: rectangle label:"Determine current on-call"
5
- n4: rectangle label:"Complete handoff"
6
- n5: circle label:"End"
7
- n1.handle(right) -> n2.handle(left)
8
- n2.handle(right) -> n3.handle(left)
9
- n3.handle(bottom) -> Handoff.n6.handle(top) [label="Rotation due"]
10
- n4.handle(right) -> n5.handle(left)
11
- }
12
- Handoff { # Handoff Process
13
- n6: rectangle label:"Notify outgoing engineer"
14
- n7: rectangle label:"Notify incoming engineer"
15
- n8: diamond label:"Handoff acknowledged?"
16
- n9: rectangle label:"Transfer pager access"
17
- n10: rectangle label:"Escalate to manager"
18
- n11: rectangle label:"Update PagerDuty schedule"
19
- n6.handle(right) -> n7.handle(left)
20
- n7.handle(right) -> n8.handle(left)
21
- n8.handle(right) -> n9.handle(left) [label="Yes"]
22
- n8.handle(bottom) -> n10.handle(top) [label="No"]
23
- n9.handle(right) -> n11.handle(left)
24
- n10.handle(right) -> n9.handle(top)
25
- n11.handle(bottom) -> Alerting.n12.handle(top) [label="Active"]
26
- }
27
- Alerting { # Alert Routing
28
- n12: rectangle label:"Receive incoming alert"
29
- n13: diamond label:"Severity level?"
30
- n14: rectangle label:"Page on-call immediately"
31
- n15: rectangle label:"Send Slack notification"
32
- n16: rectangle label:"Queue for review"
33
- n17: diamond label:"Acknowledged in 5 min?"
34
- n18: rectangle label:"Escalate to backup"
35
- n19: rectangle label:"Log acknowledgment"
36
- n12.handle(right) -> n13.handle(left)
37
- n13.handle(right) -> n14.handle(left) [label="Critical"]
38
- n13.handle(bottom) -> n15.handle(top) [label="Warning"]
39
- n13.handle(left) -> n16.handle(top) [label="Info"]
40
- n14.handle(right) -> n17.handle(left)
41
- n15.handle(right) -> n19.handle(left)
42
- n16.handle(right) -> n19.handle(top)
43
- n17.handle(right) -> n19.handle(left) [label="Yes"]
44
- n17.handle(bottom) -> n18.handle(top) [label="No"]
45
- n18.handle(right) -> n17.handle(top)
46
- n19.handle(top) -> Scheduler.n4.handle(bottom) [label="Handled"]
47
- }
 
1
+ Scheduler { # On-Call Scheduler
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Load rotation schedule"
4
+ n3: rectangle label:"Determine current on-call"
5
+ n4: rectangle label:"Complete handoff"
6
+ n5: circle label:"End"
7
+ n1.handle(right) -> n2.handle(left)
8
+ n2.handle(right) -> n3.handle(left)
9
+ n3.handle(bottom) -> Handoff.n6.handle(top) [label="Rotation due"]
10
+ n4.handle(right) -> n5.handle(left)
11
+ }
12
+ Handoff { # Handoff Process
13
+ n6: rectangle label:"Notify outgoing engineer"
14
+ n7: rectangle label:"Notify incoming engineer"
15
+ n8: diamond label:"Handoff acknowledged?"
16
+ n9: rectangle label:"Transfer pager access"
17
+ n10: rectangle label:"Escalate to manager"
18
+ n11: rectangle label:"Update PagerDuty schedule"
19
+ n6.handle(right) -> n7.handle(left)
20
+ n7.handle(right) -> n8.handle(left)
21
+ n8.handle(right) -> n9.handle(left) [label="Yes"]
22
+ n8.handle(bottom) -> n10.handle(top) [label="No"]
23
+ n9.handle(right) -> n11.handle(left)
24
+ n10.handle(right) -> n9.handle(top)
25
+ n11.handle(bottom) -> Alerting.n12.handle(top) [label="Active"]
26
+ }
27
+ Alerting { # Alert Routing
28
+ n12: rectangle label:"Receive incoming alert"
29
+ n13: diamond label:"Severity level?"
30
+ n14: rectangle label:"Page on-call immediately"
31
+ n15: rectangle label:"Send Slack notification"
32
+ n16: rectangle label:"Queue for review"
33
+ n17: diamond label:"Acknowledged in 5 min?"
34
+ n18: rectangle label:"Escalate to backup"
35
+ n19: rectangle label:"Log acknowledgment"
36
+ n12.handle(right) -> n13.handle(left)
37
+ n13.handle(right) -> n14.handle(left) [label="Critical"]
38
+ n13.handle(bottom) -> n15.handle(top) [label="Warning"]
39
+ n13.handle(left) -> n16.handle(top) [label="Info"]
40
+ n14.handle(right) -> n17.handle(left)
41
+ n15.handle(right) -> n19.handle(left)
42
+ n16.handle(right) -> n19.handle(top)
43
+ n17.handle(right) -> n19.handle(left) [label="Yes"]
44
+ n17.handle(bottom) -> n18.handle(top) [label="No"]
45
+ n18.handle(right) -> n17.handle(top)
46
+ n19.handle(top) -> Scheduler.n4.handle(bottom) [label="Handled"]
47
+ }
handoff/finance/payment-run-workflow/workflow.fz CHANGED
@@ -1,44 +1,44 @@
1
- APClerk { # AP Clerk
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Select invoices for payment"
4
- n3: rectangle label:"Create payment batch"
5
- n4: rectangle label:"Confirm payments sent"
6
- n5: circle label:"End"
7
- n1.handle(right) -> n2.handle(left)
8
- n2.handle(right) -> n3.handle(left)
9
- n3.handle(bottom) -> Approval.n6.handle(top) [label="Submit"]
10
- n4.handle(right) -> n5.handle(left)
11
- }
12
- Approval { # Payment Approval
13
- n6: rectangle label:"Review payment batch"
14
- n7: diamond label:"Batch amount?"
15
- n8: rectangle label:"Single approver"
16
- n9: rectangle label:"Dual approval required"
17
- n10: diamond label:"Approved?"
18
- n11: rectangle label:"Return for correction"
19
- n6.handle(right) -> n7.handle(left)
20
- n7.handle(right) -> n8.handle(left) [label="< $50K"]
21
- n7.handle(bottom) -> n9.handle(top) [label=">= $50K"]
22
- n8.handle(right) -> n10.handle(left)
23
- n9.handle(right) -> n10.handle(top)
24
- n10.handle(right) -> Banking.n12.handle(left) [label="Yes"]
25
- n10.handle(bottom) -> n11.handle(top) [label="No"]
26
- n11.handle(top) -> APClerk.n2.handle(bottom) [label="Revise"]
27
- }
28
- Banking { # Banking System
29
- n12: rectangle label:"Generate ACH file"
30
- n13: rectangle label:"Generate check run"
31
- n14: diamond label:"Payment method?"
32
- n15: rectangle label:"Submit to bank"
33
- n16: rectangle label:"Print checks"
34
- n17: rectangle label:"Confirm transmission"
35
- n18: rectangle label:"Update vendor records"
36
- n12.handle(right) -> n14.handle(left)
37
- n13.handle(right) -> n14.handle(top)
38
- n14.handle(right) -> n15.handle(left) [label="ACH"]
39
- n14.handle(bottom) -> n16.handle(top) [label="Check"]
40
- n15.handle(right) -> n17.handle(left)
41
- n16.handle(right) -> n17.handle(top)
42
- n17.handle(right) -> n18.handle(left)
43
- n18.handle(top) -> APClerk.n4.handle(bottom) [label="Complete"]
44
- }
 
1
+ APClerk { # AP Clerk
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Select invoices for payment"
4
+ n3: rectangle label:"Create payment batch"
5
+ n4: rectangle label:"Confirm payments sent"
6
+ n5: circle label:"End"
7
+ n1.handle(right) -> n2.handle(left)
8
+ n2.handle(right) -> n3.handle(left)
9
+ n3.handle(bottom) -> Approval.n6.handle(top) [label="Submit"]
10
+ n4.handle(right) -> n5.handle(left)
11
+ }
12
+ Approval { # Payment Approval
13
+ n6: rectangle label:"Review payment batch"
14
+ n7: diamond label:"Batch amount?"
15
+ n8: rectangle label:"Single approver"
16
+ n9: rectangle label:"Dual approval required"
17
+ n10: diamond label:"Approved?"
18
+ n11: rectangle label:"Return for correction"
19
+ n6.handle(right) -> n7.handle(left)
20
+ n7.handle(right) -> n8.handle(left) [label="< $50K"]
21
+ n7.handle(bottom) -> n9.handle(top) [label=">= $50K"]
22
+ n8.handle(right) -> n10.handle(left)
23
+ n9.handle(right) -> n10.handle(top)
24
+ n10.handle(right) -> Banking.n12.handle(left) [label="Yes"]
25
+ n10.handle(bottom) -> n11.handle(top) [label="No"]
26
+ n11.handle(top) -> APClerk.n2.handle(bottom) [label="Revise"]
27
+ }
28
+ Banking { # Banking System
29
+ n12: rectangle label:"Generate ACH file"
30
+ n13: rectangle label:"Generate check run"
31
+ n14: diamond label:"Payment method?"
32
+ n15: rectangle label:"Submit to bank"
33
+ n16: rectangle label:"Print checks"
34
+ n17: rectangle label:"Confirm transmission"
35
+ n18: rectangle label:"Update vendor records"
36
+ n12.handle(right) -> n14.handle(left)
37
+ n13.handle(right) -> n14.handle(top)
38
+ n14.handle(right) -> n15.handle(left) [label="ACH"]
39
+ n14.handle(bottom) -> n16.handle(top) [label="Check"]
40
+ n15.handle(right) -> n17.handle(left)
41
+ n16.handle(right) -> n17.handle(top)
42
+ n17.handle(right) -> n18.handle(left)
43
+ n18.handle(top) -> APClerk.n4.handle(bottom) [label="Complete"]
44
+ }
handoff/hr/offboarding-workflow/workflow.fz CHANGED
@@ -1,55 +1,55 @@
1
- DepartingEmployee { # Departing Employee
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Submit resignation"
4
- n3: rectangle label:"Complete exit interview"
5
- n4: rectangle label:"Return company equipment"
6
- n5: rectangle label:"Receive final paycheck"
7
- n6: circle label:"End"
8
- n1.handle(right) -> n2.handle(left)
9
- n2.handle(bottom) -> HR.n7.handle(top) [label="Resignation"]
10
- n3.handle(bottom) -> HR.n14.handle(top) [label="Feedback"]
11
- n4.handle(bottom) -> IT.n18.handle(top) [label="Equipment"]
12
- n5.handle(right) -> n6.handle(left)
13
- }
14
- HR { # Human Resources
15
- n7: rectangle label:"Process resignation"
16
- n8: rectangle label:"Calculate last working day"
17
- n9: rectangle label:"Notify payroll"
18
- n10: rectangle label:"Schedule exit interview"
19
- n11: diamond label:"Notice period waived?"
20
- n12: rectangle label:"Process immediate departure"
21
- n13: rectangle label:"Standard notice period"
22
- n14: rectangle label:"Conduct exit interview"
23
- n15: rectangle label:"Document feedback"
24
- n16: rectangle label:"Calculate final pay"
25
- n17: rectangle label:"Process severance if applicable"
26
- n7.handle(right) -> n8.handle(left)
27
- n8.handle(right) -> n9.handle(left)
28
- n9.handle(right) -> n10.handle(left)
29
- n10.handle(right) -> n11.handle(left)
30
- n11.handle(right) -> n12.handle(left) [label="Yes"]
31
- n11.handle(bottom) -> n13.handle(top) [label="No"]
32
- n12.handle(top) -> DepartingEmployee.n3.handle(bottom) [label="Exit now"]
33
- n13.handle(top) -> DepartingEmployee.n3.handle(bottom) [label="Work notice"]
34
- n14.handle(right) -> n15.handle(left)
35
- n15.handle(right) -> n16.handle(left)
36
- n16.handle(right) -> n17.handle(left)
37
- n17.handle(top) -> DepartingEmployee.n5.handle(bottom) [label="Pay ready"]
38
- }
39
- IT { # IT Department
40
- n18: rectangle label:"Revoke system access"
41
- n19: rectangle label:"Disable email account"
42
- n20: rectangle label:"Backup user data"
43
- n21: rectangle label:"Collect laptop and badge"
44
- n22: diamond label:"All equipment returned?"
45
- n23: rectangle label:"Clear security checklist"
46
- n24: rectangle label:"Charge for missing items"
47
- n18.handle(right) -> n19.handle(left)
48
- n19.handle(right) -> n20.handle(left)
49
- n20.handle(right) -> n21.handle(left)
50
- n21.handle(right) -> n22.handle(left)
51
- n22.handle(right) -> n23.handle(left) [label="Yes"]
52
- n22.handle(bottom) -> n24.handle(top) [label="No"]
53
- n23.handle(top) -> DepartingEmployee.n4.handle(bottom) [label="Cleared"]
54
- n24.handle(top) -> DepartingEmployee.n4.handle(bottom) [label="Deducted"]
55
- }
 
1
+ DepartingEmployee { # Departing Employee
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Submit resignation"
4
+ n3: rectangle label:"Complete exit interview"
5
+ n4: rectangle label:"Return company equipment"
6
+ n5: rectangle label:"Receive final paycheck"
7
+ n6: circle label:"End"
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(bottom) -> HR.n7.handle(top) [label="Resignation"]
10
+ n3.handle(bottom) -> HR.n14.handle(top) [label="Feedback"]
11
+ n4.handle(bottom) -> IT.n18.handle(top) [label="Equipment"]
12
+ n5.handle(right) -> n6.handle(left)
13
+ }
14
+ HR { # Human Resources
15
+ n7: rectangle label:"Process resignation"
16
+ n8: rectangle label:"Calculate last working day"
17
+ n9: rectangle label:"Notify payroll"
18
+ n10: rectangle label:"Schedule exit interview"
19
+ n11: diamond label:"Notice period waived?"
20
+ n12: rectangle label:"Process immediate departure"
21
+ n13: rectangle label:"Standard notice period"
22
+ n14: rectangle label:"Conduct exit interview"
23
+ n15: rectangle label:"Document feedback"
24
+ n16: rectangle label:"Calculate final pay"
25
+ n17: rectangle label:"Process severance if applicable"
26
+ n7.handle(right) -> n8.handle(left)
27
+ n8.handle(right) -> n9.handle(left)
28
+ n9.handle(right) -> n10.handle(left)
29
+ n10.handle(right) -> n11.handle(left)
30
+ n11.handle(right) -> n12.handle(left) [label="Yes"]
31
+ n11.handle(bottom) -> n13.handle(top) [label="No"]
32
+ n12.handle(top) -> DepartingEmployee.n3.handle(bottom) [label="Exit now"]
33
+ n13.handle(top) -> DepartingEmployee.n3.handle(bottom) [label="Work notice"]
34
+ n14.handle(right) -> n15.handle(left)
35
+ n15.handle(right) -> n16.handle(left)
36
+ n16.handle(right) -> n17.handle(left)
37
+ n17.handle(top) -> DepartingEmployee.n5.handle(bottom) [label="Pay ready"]
38
+ }
39
+ IT { # IT Department
40
+ n18: rectangle label:"Revoke system access"
41
+ n19: rectangle label:"Disable email account"
42
+ n20: rectangle label:"Backup user data"
43
+ n21: rectangle label:"Collect laptop and badge"
44
+ n22: diamond label:"All equipment returned?"
45
+ n23: rectangle label:"Clear security checklist"
46
+ n24: rectangle label:"Charge for missing items"
47
+ n18.handle(right) -> n19.handle(left)
48
+ n19.handle(right) -> n20.handle(left)
49
+ n20.handle(right) -> n21.handle(left)
50
+ n21.handle(right) -> n22.handle(left)
51
+ n22.handle(right) -> n23.handle(left) [label="Yes"]
52
+ n22.handle(bottom) -> n24.handle(top) [label="No"]
53
+ n23.handle(top) -> DepartingEmployee.n4.handle(bottom) [label="Cleared"]
54
+ n24.handle(top) -> DepartingEmployee.n4.handle(bottom) [label="Deducted"]
55
+ }
handoff/llm-operations/dynamic-tool-schema-selection-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dynamic Tool Schema Selection Workflow
2
+
3
+ Instead of loading all 50 tool schemas into every request, the agent analyses the step, queries the MCP tool registry and injects only the two schemas it needs.
4
+
5
+ **Template ID:** `dynamic-tool-schema-selection-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** LLM Operations
8
+ **Primary use case:** handoff
9
+ **Secondary use cases:** mcp, llm-operations
10
+ **Complexity:** 2/5
11
+ **Nodes:** 8
12
+ **Lanes:** 3
13
+ **Tags:** [token-optimization, mcp, tool-schemas, tool-routing, llmops]
14
+ **Source path:** ``
15
+ **Repo path:** `handoff/llm-operations/dynamic-tool-schema-selection-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
handoff/llm-operations/dynamic-tool-schema-selection-workflow/metadata.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "dynamic-tool-schema-selection-workflow",
3
+ "workflow_id": "dynamic-tool-schema-selection",
4
+ "title": "Dynamic Tool Schema Selection Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "LLM Operations",
7
+ "primary_use_case": "handoff",
8
+ "secondary_use_cases": [
9
+ "mcp",
10
+ "llm-operations"
11
+ ],
12
+ "use_cases": [
13
+ "handoff",
14
+ "mcp",
15
+ "llm-operations"
16
+ ],
17
+ "complexity": 2,
18
+ "num_nodes": 8,
19
+ "num_lanes": 3,
20
+ "tags": [
21
+ "token-optimization",
22
+ "mcp",
23
+ "tool-schemas",
24
+ "tool-routing",
25
+ "llmops"
26
+ ],
27
+ "description": "Instead of loading all 50 tool schemas into every request, the agent analyses the step, queries the MCP tool registry and injects only the two schemas it needs.",
28
+ "source_path": "",
29
+ "repo_path": "handoff/llm-operations/dynamic-tool-schema-selection-workflow"
30
+ }
handoff/llm-operations/dynamic-tool-schema-selection-workflow/workflow.fz ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ agent { # AI Agent
2
+ n1: circle label:"New objective"
3
+ n2: rectangle label:"Analyze required capabilities"
4
+ n5: rectangle label:"Construct prompt with 2 schemas"
5
+ n8: circle label:"Execute step"
6
+ n1.handle(right) -> n2.handle(left)
7
+ n2.handle(bottom) -> registry.n3.handle(top) [label="Request tools by intent"]
8
+ n5.handle(bottom) -> llm.n6.handle(top) [label="Send lean request"]
9
+ }
10
+
11
+ registry { # MCP Tool Registry
12
+ n3: diamond label:"Match intent to tools"
13
+ n4: rectangle label:"Extract specific schemas (not all 50)"
14
+ n3.handle(right) -> n4.handle(left)
15
+ n4.handle(top) -> agent.n5.handle(bottom) [label="Return 2 schemas"]
16
+ }
17
+
18
+ llm { # Model API
19
+ n6: rectangle label:"Process 500 tool tokens (not 10k)"
20
+ n7: rectangle label:"Select tool to call"
21
+ n6.handle(right) -> n7.handle(left)
22
+ n7.handle(top) -> agent.n8.handle(bottom) [label="Return tool call"]
23
+ }