diff --git a/README.md b/README.md index 1de53f2fd0850b39c20e4fd8180d2a3e4e7f09e7..5e9fd9eba32e35e29f350f3f13814a8f1149cb4d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,28 @@ +--- +license: other +language: + - en +pretty_name: FlowZap Code Template Corpus +task_categories: + - text-generation +tags: + - flowzap-code + - diagram-as-code + - dsl + - workflow + - sequence-diagram + - architecture-diagram + - mind-map + - llm-training + - synthetic +size_categories: + - n<1K +--- + + # sequence-workflows -A synchronized FlowZap template corpus with **242 canonical templates** sourced from `https://flowzap.xyz/sitemap-templates.xml` and organized by **primary Use Case**. +A synchronized FlowZap template corpus with **356 canonical templates**, mirrored from the FlowZap template library and organized by **primary Use Case**. ## Organization Model @@ -11,21 +33,34 @@ A synchronized FlowZap template corpus with **242 canonical templates** sourced ## Top-Level Folders -- `handoff/` — Handoff (15) -- `approval/` — Approval (17) -- `incident/` — Incident (10) -- `onboarding/` — Onboarding (6) +- `handoff/` — Handoff (22) +- `approval/` — Approval (21) +- `incident/` — Incident (12) +- `onboarding/` — Onboarding (8) - `offboarding/` — Offboarding (1) -- `billing/` — Billing & Payments (8) -- `security/` — Security & Access (13) +- `billing/` — Billing & Payments (11) +- `security/` — Security & Access (17) - `compliance/` — Compliance (13) -- `delivery/` — Delivery & DevOps (15) +- `delivery/` — Delivery & DevOps (23) - `support/` — Support (1) -- `agentic/` — Agentic Teams (15) -- `ai-orchestration/` — AI Orchestration (6) -- `mcp/` — MCP Architecture (10) -- `context-management/` — Context Management (6) -- `uncategorized/` — Unmatched canonical templates (106) +- `agentic/` — Agentic Teams (19) +- `ai-orchestration/` — AI Orchestration (7) +- `mcp/` — MCP Architecture (11) +- `context-management/` — Context Management (7) +- `commerce-automation/` — Commerce Automation (4) +- `process-mapping/` — Process Mapping (2) +- `agentic-architecture/` — Agentic Architecture (10) +- `agentic-security/` — Agentic Security (9) +- `agent-simulation/` — Agent Simulation (2) +- `llm-operations/` — LLM Operations (1) +- `diagram-authoring/` — Diagram Authoring (4) +- `platform-reliability/` — Platform Reliability (1) +- `mindmap/` — Mind Map (2) +- `syntax-primitives/` — Syntax Primitives (18) +- `edge-cases/` — Edge Cases (23) +- `architecture/` — Reference Architecture (22) +- `patterns/` — Patterns (40) +- `uncategorized/` — Unmatched canonical templates (45) ## Generated Indexes @@ -35,6 +70,20 @@ A synchronized FlowZap template corpus with **242 canonical templates** sourced ## Sync Source -- Canonical URL source: `https://flowzap.xyz/sitemap-templates.xml` -- Template metadata source: `FlowZap-App-v5/src/templateLibrary/templatesIndex.json` -- Template file source: `FlowZap-App-v5/public/template-files/*.fz` +- Template library (source of truth): `src/templateLibrary/templatesIndex.json` in the FlowZap app +- Template file source: `public/template-files/*.fz` in the FlowZap app +- Public listing check: `https://flowzap.xyz/sitemap-templates.xml` — a template missing from the sitemap is still mirrored, this list only reports the gap + +## What this is + +356 hand-authored FlowZap Code (`.fz`) diagrams: a plain-text DSL that renders as four views of the same source - workflow, sequence, architecture and mind map. Each file is valid against `https://flowzap.xyz/api/validate` and ships its own metadata (source domain, complexity, node and lane counts, tags). + +Use it as reference examples before generating new diagrams, as a fine-tuning corpus, or as a regression set for a flowzap-code generator. + +## Links + +- Syntax and generation rules: https://flowzap.xyz/flowzap-code +- LLM guidelines: https://flowzap.xyz/flowzap-code-guidelines.md +- MCP server (generate, validate, repair): https://flowzap.xyz/docs/mcp +- Agent skill: https://skills.sh/flowzap-xyz/flowzap-mcp/flowzap-diagrams +- Mirror on GitHub: https://github.com/flowzap-xyz/sequence-workflows diff --git a/patterns/patterns/filter-workflow/README.md b/patterns/patterns/filter-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..74d28e620771f901ca3c2b0c5ef3c19721b77107 --- /dev/null +++ b/patterns/patterns/filter-workflow/README.md @@ -0,0 +1,19 @@ +# Filter Workflow + +This workflow models removing items that do not meet criteria. + +**Template ID:** `filter-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [filter, patterns, decision, loop] +**Source path:** `patterns/filter` +**Repo path:** `patterns/patterns/filter-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/filter-workflow/metadata.json b/patterns/patterns/filter-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1e9de53871116ff76da322ad04896c043fbcb55c --- /dev/null +++ b/patterns/patterns/filter-workflow/metadata.json @@ -0,0 +1,24 @@ +{ + "template_id": "filter-workflow", + "workflow_id": "filter", + "title": "Filter Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "filter", + "patterns", + "decision", + "loop" + ], + "description": "This workflow models removing items that do not meet criteria.", + "source_path": "patterns/filter", + "repo_path": "patterns/patterns/filter-workflow" +} diff --git a/patterns/patterns/filter-workflow/workflow.fz b/patterns/patterns/filter-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..dd9feaa6a8048f2915d450b20cb40da5d5f9e8da --- /dev/null +++ b/patterns/patterns/filter-workflow/workflow.fz @@ -0,0 +1,38 @@ +user { # User + n1: circle label:"Start Filter" + n2: diamond label:"Receive Filter event" + n5: rectangle label:"Record Filter outcome" + n9: rectangle label:"Monitor Filter status" + n13: circle label:"End Filter" + n1.handle(right) -> n2.handle(left) + n2.handle(bottom) -> service.n3.handle(top) [label="Yes/Approved"] + n2.handle(bottom) -> database.n4.handle(top) [label="No/Rejected"] + n5.handle(bottom) -> app.n6.handle(top) + n9.handle(bottom) -> app.n10.handle(top) +} + +app { # App + n6: rectangle label:"Monitor Filter status" + n10: rectangle label:"Monitor Filter status" + n6.handle(bottom) -> service.n7.handle(top) + n10.handle(bottom) -> service.n11.handle(top) +} + +service { # Service + n3: rectangle label:"Validate Filter conditions" + n7: rectangle label:"Monitor Filter status" + n11: rectangle label:"Monitor Filter status" + n7.handle(bottom) -> database.n8.handle(top) + n11.handle(bottom) -> database.n12.handle(top) + n3.handle(right) -> user.n5.handle(top) +} + +database { # Database + n4: rectangle label:"Execute Filter action" + n8: rectangle label:"Monitor Filter status" + n12: rectangle label:"Monitor Filter status" + n12.handle(right) -> user.n13.handle(bottom) + n8.handle(right) -> user.n9.handle(left) + n4.handle(right) -> user.n5.handle(left) + loop [retry until success] n2 n5 n9 n6 n10 n3 n7 n11 n4 n8 n12 +} diff --git a/patterns/patterns/idempotent-consumer-workflow/README.md b/patterns/patterns/idempotent-consumer-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c1ca7c9fef14b9bfc5d8f13cce08087a751454a4 --- /dev/null +++ b/patterns/patterns/idempotent-consumer-workflow/README.md @@ -0,0 +1,19 @@ +# Idempotent Consumer Workflow + +This workflow models processing each message safely only once. + +**Template ID:** `idempotent-consumer-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 3/5 +**Nodes:** 10 +**Lanes:** 3 +**Tags:** [idempotent, consumer, patterns] +**Source path:** `patterns/idempotent-consumer` +**Repo path:** `patterns/patterns/idempotent-consumer-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/idempotent-consumer-workflow/metadata.json b/patterns/patterns/idempotent-consumer-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1a837abee323833098affacbc2d31c7ab9014e09 --- /dev/null +++ b/patterns/patterns/idempotent-consumer-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "idempotent-consumer-workflow", + "workflow_id": "idempotent-consumer", + "title": "Idempotent Consumer Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 3, + "num_nodes": 10, + "num_lanes": 3, + "tags": [ + "idempotent", + "consumer", + "patterns" + ], + "description": "This workflow models processing each message safely only once.", + "source_path": "patterns/idempotent-consumer", + "repo_path": "patterns/patterns/idempotent-consumer-workflow" +} diff --git a/patterns/patterns/idempotent-consumer-workflow/workflow.fz b/patterns/patterns/idempotent-consumer-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..f380e436ad350c402cdf99ef8ed0a870893c8abb --- /dev/null +++ b/patterns/patterns/idempotent-consumer-workflow/workflow.fz @@ -0,0 +1,28 @@ +user { # User + n1: circle label:"Start Idempotent Consumer" + n4: rectangle label:"Execute Idempotent Consumer action" + n7: rectangle label:"Monitor Idempotent Consumer status" + n10: circle label:"End Idempotent Consumer" + n1.handle(bottom) -> app.n2.handle(top) [label="Success"] + n4.handle(bottom) -> app.n5.handle(top) [label="Valid"] + n7.handle(bottom) -> app.n8.handle(top) [label="Next"] +} + +app { # App + n2: rectangle label:"Receive Idempotent Consumer event" + n5: rectangle label:"Record Idempotent Consumer outcome" + n8: diamond label:"Monitor Idempotent Consumer status" + n2.handle(bottom) -> service.n3.handle(top) + n5.handle(bottom) -> service.n6.handle(top) + n8.handle(bottom) -> service.n9.handle(top) + n8.handle(right) -> user.n7.handle(right) [label="Retry/Rejected"] +} + +service { # Service + n3: rectangle label:"Validate Idempotent Consumer conditions" + n6: rectangle label:"Monitor Idempotent Consumer status" + n9: rectangle label:"Monitor Idempotent Consumer status" + n9.handle(right) -> user.n10.handle(bottom) + n6.handle(right) -> user.n7.handle(left) + n3.handle(right) -> user.n4.handle(left) +} diff --git a/patterns/patterns/materialized-view-workflow/README.md b/patterns/patterns/materialized-view-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..9fa460c6fb60f302c84068f9e444424a3e8ec90e --- /dev/null +++ b/patterns/patterns/materialized-view-workflow/README.md @@ -0,0 +1,19 @@ +# Materialized View Workflow + +This workflow models serving queries from a precomputed view. + +**Template ID:** `materialized-view-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [materialized, view, patterns, decision, loop] +**Source path:** `patterns/materialized-view` +**Repo path:** `patterns/patterns/materialized-view-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/materialized-view-workflow/metadata.json b/patterns/patterns/materialized-view-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..d112ed3c81ab1096d5f452329c6a886bb9dc69a9 --- /dev/null +++ b/patterns/patterns/materialized-view-workflow/metadata.json @@ -0,0 +1,25 @@ +{ + "template_id": "materialized-view-workflow", + "workflow_id": "materialized-view", + "title": "Materialized View Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "materialized", + "view", + "patterns", + "decision", + "loop" + ], + "description": "This workflow models serving queries from a precomputed view.", + "source_path": "patterns/materialized-view", + "repo_path": "patterns/patterns/materialized-view-workflow" +} diff --git a/patterns/patterns/materialized-view-workflow/workflow.fz b/patterns/patterns/materialized-view-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..dcfd337704283929a96b9c44fe1792143a8b94e9 --- /dev/null +++ b/patterns/patterns/materialized-view-workflow/workflow.fz @@ -0,0 +1,37 @@ +user { # User + n1: circle label:"Start Materialized View" + n2: diamond label:"Receive Materialized View event" + n5: rectangle label:"Record Materialized View outcome" + n9: rectangle label:"Monitor Materialized View status" + n13: circle label:"End Materialized View" + n1.handle(right) -> n2.handle(left) + n2.handle(bottom) -> service.n3.handle(top) [label="Yes/Approved"] + n5.handle(bottom) -> app.n6.handle(top) + n9.handle(bottom) -> app.n10.handle(top) + n2.handle(right) -> database.n4.handle(top) [label="No/Rejected"] +} + +app { # App + n6: rectangle label:"Monitor Materialized View status" + n10: rectangle label:"Monitor Materialized View status" + n6.handle(bottom) -> service.n7.handle(top) + n10.handle(bottom) -> service.n11.handle(top) +} + +service { # Service + n3: rectangle label:"Validate Materialized View conditions" + n7: rectangle label:"Monitor Materialized View status" + n11: rectangle label:"Monitor Materialized View status" + n7.handle(bottom) -> database.n8.handle(top) + n11.handle(bottom) -> database.n12.handle(top) + n3.handle(right) -> user.n5.handle(top) +} + +database { # Database + n4: rectangle label:"Execute Materialized View action" + n8: rectangle label:"Monitor Materialized View status" + n12: rectangle label:"Monitor Materialized View status" + n12.handle(right) -> user.n13.handle(bottom) + n8.handle(right) -> user.n9.handle(left) + n4.handle(right) -> user.n5.handle(left) +} diff --git a/patterns/patterns/message-queue-workflow/README.md b/patterns/patterns/message-queue-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a2bd95c6710eb600c0ab6a320b4c03ebd662a5e9 --- /dev/null +++ b/patterns/patterns/message-queue-workflow/README.md @@ -0,0 +1,19 @@ +# Message Queue Workflow + +This workflow models asynchronous processing of work via a queue. + +**Template ID:** `message-queue-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 3/5 +**Nodes:** 10 +**Lanes:** 3 +**Tags:** [message, queue, patterns, decision] +**Source path:** `patterns/message-queue` +**Repo path:** `patterns/patterns/message-queue-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/message-queue-workflow/metadata.json b/patterns/patterns/message-queue-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..63b4785ceacec6f5b69a76f17aea5ba0e220ca1a --- /dev/null +++ b/patterns/patterns/message-queue-workflow/metadata.json @@ -0,0 +1,24 @@ +{ + "template_id": "message-queue-workflow", + "workflow_id": "message-queue", + "title": "Message Queue Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 3, + "num_nodes": 10, + "num_lanes": 3, + "tags": [ + "message", + "queue", + "patterns", + "decision" + ], + "description": "This workflow models asynchronous processing of work via a queue.", + "source_path": "patterns/message-queue", + "repo_path": "patterns/patterns/message-queue-workflow" +} diff --git a/patterns/patterns/message-queue-workflow/workflow.fz b/patterns/patterns/message-queue-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..911ac9527135a59d008d80a9e5dd3f4e8e8fb4e0 --- /dev/null +++ b/patterns/patterns/message-queue-workflow/workflow.fz @@ -0,0 +1,28 @@ +user { # User + n1: circle label:"Start Message Queue" + n2: diamond label:"Receive Message Queue event" + n4: rectangle label:"Execute Message Queue action" + n7: rectangle label:"Monitor Message Queue status" + n10: circle label:"End Message Queue" + n1.handle(right) -> n2.handle(left) + n2.handle(bottom) -> service.n3.handle(top) [label="Yes/Approved"] + n4.handle(bottom) -> app.n5.handle(top) + n7.handle(bottom) -> app.n8.handle(top) + n2.handle(top) -> n4.handle(top) [label="No/Rejected"] +} + +app { # App + n5: rectangle label:"Record Message Queue outcome" + n8: rectangle label:"Monitor Message Queue status" + n5.handle(bottom) -> service.n6.handle(top) + n8.handle(bottom) -> service.n9.handle(top) +} + +service { # Service + n3: rectangle label:"Validate Message Queue conditions" + n6: rectangle label:"Monitor Message Queue status" + n9: rectangle label:"Monitor Message Queue status" + n9.handle(right) -> user.n10.handle(left) + n6.handle(right) -> user.n7.handle(left) + n3.handle(right) -> app.n5.handle(left) +} diff --git a/patterns/patterns/nested-decisions-workflow/README.md b/patterns/patterns/nested-decisions-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b231c01ae2e9239a9b4b72cf50a611c570c90393 --- /dev/null +++ b/patterns/patterns/nested-decisions-workflow/README.md @@ -0,0 +1,19 @@ +# Nested Decisions Workflow + +This workflow models multiple layers of decisions before completion. + +**Template ID:** `nested-decisions-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 3/5 +**Nodes:** 10 +**Lanes:** 3 +**Tags:** [nested, decisions, patterns, decision, loop] +**Source path:** `patterns/nested-decisions` +**Repo path:** `patterns/patterns/nested-decisions-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/nested-decisions-workflow/metadata.json b/patterns/patterns/nested-decisions-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..346b592fdb875a415feb9a31e7fe782ae5ded9fd --- /dev/null +++ b/patterns/patterns/nested-decisions-workflow/metadata.json @@ -0,0 +1,25 @@ +{ + "template_id": "nested-decisions-workflow", + "workflow_id": "nested-decisions", + "title": "Nested Decisions Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 3, + "num_nodes": 10, + "num_lanes": 3, + "tags": [ + "nested", + "decisions", + "patterns", + "decision", + "loop" + ], + "description": "This workflow models multiple layers of decisions before completion.", + "source_path": "patterns/nested-decisions", + "repo_path": "patterns/patterns/nested-decisions-workflow" +} diff --git a/patterns/patterns/nested-decisions-workflow/workflow.fz b/patterns/patterns/nested-decisions-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..408154f23e25bf6368b4ea812ad76164fe009548 --- /dev/null +++ b/patterns/patterns/nested-decisions-workflow/workflow.fz @@ -0,0 +1,28 @@ +user { # User + n1: circle label:"Start Nested Decisions" + n2: diamond label:"Receive Nested Decisions event" + n4: rectangle label:"Execute Nested Decisions action" + n7: rectangle label:"Monitor Nested Decisions status" + n10: circle label:"End Nested Decisions" + n1.handle(right) -> n2.handle(left) + n2.handle(bottom) -> service.n3.handle(top) [label="Yes/Approved"] + n4.handle(bottom) -> app.n5.handle(top) + n7.handle(bottom) -> app.n8.handle(top) + n2.handle(top) -> n4.handle(top) [label="No/Rejected"] +} + +app { # App + n5: rectangle label:"Record Nested Decisions outcome" + n8: rectangle label:"Monitor Nested Decisions status" + n5.handle(bottom) -> service.n6.handle(top) + n8.handle(bottom) -> service.n9.handle(top) +} + +service { # Service + n3: diamond label:"Validate Nested Decisions conditions" + n6: rectangle label:"Monitor Nested Decisions status" + n9: rectangle label:"Monitor Nested Decisions status" + n9.handle(right) -> user.n10.handle(bottom) + n6.handle(right) -> user.n7.handle(left) + n3.handle(right) -> app.n5.handle(left) +} diff --git a/patterns/patterns/normalizer-workflow/README.md b/patterns/patterns/normalizer-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..882b343b553f6135d482615d4ca4412df33bc7a8 --- /dev/null +++ b/patterns/patterns/normalizer-workflow/README.md @@ -0,0 +1,19 @@ +# Normalizer Workflow + +This workflow models converting varied inputs to a standard format. + +**Template ID:** `normalizer-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [normalizer, patterns] +**Source path:** `patterns/normalizer` +**Repo path:** `patterns/patterns/normalizer-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/normalizer-workflow/metadata.json b/patterns/patterns/normalizer-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..c84e4b304592790b114835a83952ffcb4f0121cc --- /dev/null +++ b/patterns/patterns/normalizer-workflow/metadata.json @@ -0,0 +1,22 @@ +{ + "template_id": "normalizer-workflow", + "workflow_id": "normalizer", + "title": "Normalizer Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "normalizer", + "patterns" + ], + "description": "This workflow models converting varied inputs to a standard format.", + "source_path": "patterns/normalizer", + "repo_path": "patterns/patterns/normalizer-workflow" +} diff --git a/patterns/patterns/normalizer-workflow/workflow.fz b/patterns/patterns/normalizer-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..dc6657fde49421798a3ebe4bffdb70013c9a9a8f --- /dev/null +++ b/patterns/patterns/normalizer-workflow/workflow.fz @@ -0,0 +1,38 @@ +user { # User + n1: circle label:"Start Normalizer" + n5: rectangle label:"Record Normalizer outcome" + n9: rectangle label:"Monitor Normalizer status" + n13: circle label:"End Normalizer" + n1.handle(bottom) -> app.n2.handle(top) + n5.handle(bottom) -> app.n6.handle(top) [label="Done"] + n9.handle(bottom) -> app.n10.handle(top) +} + +app { # App + n2: rectangle label:"Receive Normalizer event" + n6: rectangle label:"Monitor Normalizer status" + n10: rectangle label:"Monitor Normalizer status" + n2.handle(bottom) -> service.n3.handle(top) [label="Next"] + n6.handle(bottom) -> service.n7.handle(top) + n10.handle(bottom) -> service.n11.handle(top) +} + +service { # Service + n3: rectangle label:"Validate Normalizer conditions" + n7: rectangle label:"Monitor Normalizer status" + n11: rectangle label:"Monitor Normalizer status" + n3.handle(bottom) -> database.n4.handle(top) + n7.handle(bottom) -> database.n8.handle(top) + n11.handle(bottom) -> database.n12.handle(top) [label="Success"] +} + +database { # Database + n4: diamond label:"Execute Normalizer action" + n8: rectangle label:"Monitor Normalizer status" + n12: diamond label:"Monitor Normalizer status" + n4.handle(left) -> service.n3.handle(left) [label="Retry/Rejected"] + n4.handle(right) -> user.n5.handle(left) + n8.handle(right) -> user.n9.handle(left) [label="Processed"] + n12.handle(left) -> service.n11.handle(left) [label="Retry/Rejected"] + n12.handle(right) -> user.n13.handle(bottom) +} diff --git a/patterns/patterns/notification-pattern-workflow/README.md b/patterns/patterns/notification-pattern-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..17fcdfdd5f17293871fa3c67a6e1e458e65d3033 --- /dev/null +++ b/patterns/patterns/notification-pattern-workflow/README.md @@ -0,0 +1,19 @@ +# Notification Pattern Workflow + +This workflow models sending alerts via multiple channels. + +**Template ID:** `notification-pattern-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [notification, pattern, patterns] +**Source path:** `patterns/notification-pattern` +**Repo path:** `patterns/patterns/notification-pattern-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/notification-pattern-workflow/metadata.json b/patterns/patterns/notification-pattern-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4ee20ef8b9436ec1540caf1a4eccd8060b287b68 --- /dev/null +++ b/patterns/patterns/notification-pattern-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "notification-pattern-workflow", + "workflow_id": "notification-pattern", + "title": "Notification Pattern Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "notification", + "pattern", + "patterns" + ], + "description": "This workflow models sending alerts via multiple channels.", + "source_path": "patterns/notification-pattern", + "repo_path": "patterns/patterns/notification-pattern-workflow" +} diff --git a/patterns/patterns/notification-pattern-workflow/workflow.fz b/patterns/patterns/notification-pattern-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..e06407b45592d1534d1fced4d8d5fafe776e8c51 --- /dev/null +++ b/patterns/patterns/notification-pattern-workflow/workflow.fz @@ -0,0 +1,18 @@ +user { # User + n1: circle label:"Start Notification Pattern" + n3: rectangle label:"Validate Notification Pattern conditions" + n5: rectangle label:"Record Notification Pattern outcome" + n7: circle label:"End Notification Pattern" + n1.handle(bottom) -> app.n2.handle(top) + n3.handle(bottom) -> app.n4.handle(top) + n5.handle(bottom) -> app.n6.handle(top) [label="Done"] +} + +app { # App + n2: rectangle label:"Receive Notification Pattern event" + n4: rectangle label:"Execute Notification Pattern action" + n6: rectangle label:"Monitor Notification Pattern status" + n2.handle(right) -> user.n3.handle(left) [label="Next"] + n4.handle(right) -> user.n5.handle(left) + n6.handle(right) -> user.n7.handle(left) +} diff --git a/patterns/patterns/parallel-execution-workflow/README.md b/patterns/patterns/parallel-execution-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6edcb303a799fc775825c8f4f61359d0b41ebf4c --- /dev/null +++ b/patterns/patterns/parallel-execution-workflow/README.md @@ -0,0 +1,19 @@ +# Parallel Execution Workflow + +This workflow models multiple tasks that run at the same time. + +**Template ID:** `parallel-execution-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [parallel, execution, patterns, loop] +**Source path:** `patterns/parallel-execution` +**Repo path:** `patterns/patterns/parallel-execution-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/parallel-execution-workflow/metadata.json b/patterns/patterns/parallel-execution-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..23ababe3888137d0cd3302f02df747b14518b8be --- /dev/null +++ b/patterns/patterns/parallel-execution-workflow/metadata.json @@ -0,0 +1,24 @@ +{ + "template_id": "parallel-execution-workflow", + "workflow_id": "parallel-execution", + "title": "Parallel Execution Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "parallel", + "execution", + "patterns", + "loop" + ], + "description": "This workflow models multiple tasks that run at the same time.", + "source_path": "patterns/parallel-execution", + "repo_path": "patterns/patterns/parallel-execution-workflow" +} diff --git a/patterns/patterns/parallel-execution-workflow/workflow.fz b/patterns/patterns/parallel-execution-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..1c0269cadc6afd4f3620e3ea0f1d61ac3afdff1b --- /dev/null +++ b/patterns/patterns/parallel-execution-workflow/workflow.fz @@ -0,0 +1,46 @@ +user { # User + n1: circle label:"Start Parallel Execution" + n5: rectangle label:"Record Parallel Execution outcome" + n9: diamond label:"Monitor Parallel Execution status" + n13: circle label:"End Parallel Execution" + n1.handle(bottom) -> app.n2.handle(top) + n1.handle(bottom) -> service.n3.handle(top) + n1.handle(bottom) -> database.n4.handle(top) + n1.handle(right) -> n5.handle(left) + n1.handle(bottom) -> app.n6.handle(top) + n1.handle(bottom) -> service.n7.handle(top) + n1.handle(bottom) -> database.n8.handle(top) + n1.handle(bottom) -> app.n10.handle(top) + n1.handle(bottom) -> service.n11.handle(top) + n1.handle(bottom) -> database.n12.handle(top) + n5.handle(right) -> n13.handle(left) + n9.handle(right) -> n13.handle(left) + n1.handle(top) -> n9.handle(top) +} + +app { # App + n2: rectangle label:"Receive Parallel Execution event" + n6: rectangle label:"Monitor Parallel Execution status" + n10: rectangle label:"Monitor Parallel Execution status" + n10.handle(right) -> user.n13.handle(bottom) + n6.handle(right) -> user.n13.handle(bottom) + n2.handle(right) -> user.n13.handle(bottom) +} + +service { # Service + n3: rectangle label:"Validate Parallel Execution conditions" + n7: rectangle label:"Monitor Parallel Execution status" + n11: rectangle label:"Monitor Parallel Execution status" + n3.handle(right) -> user.n13.handle(bottom) + n7.handle(right) -> user.n13.handle(bottom) + n11.handle(right) -> user.n13.handle(bottom) +} + +database { # Database + n4: rectangle label:"Execute Parallel Execution action" + n8: rectangle label:"Monitor Parallel Execution status" + n12: rectangle label:"Monitor Parallel Execution status" + n12.handle(right) -> user.n13.handle(bottom) + n8.handle(right) -> user.n13.handle(bottom) + n4.handle(right) -> user.n13.handle(bottom) +} diff --git a/patterns/patterns/polling-pattern-workflow/README.md b/patterns/patterns/polling-pattern-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c1d917a8d86bf460e6911c4806c960d212d91821 --- /dev/null +++ b/patterns/patterns/polling-pattern-workflow/README.md @@ -0,0 +1,19 @@ +# Polling Pattern Workflow + +This workflow models periodically checking status until work is done. + +**Template ID:** `polling-pattern-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [polling, pattern, patterns, loop] +**Source path:** `patterns/polling-pattern` +**Repo path:** `patterns/patterns/polling-pattern-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/polling-pattern-workflow/metadata.json b/patterns/patterns/polling-pattern-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8ba544e4b144a2ee9aad5e2596553b443605b697 --- /dev/null +++ b/patterns/patterns/polling-pattern-workflow/metadata.json @@ -0,0 +1,24 @@ +{ + "template_id": "polling-pattern-workflow", + "workflow_id": "polling-pattern", + "title": "Polling Pattern Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "polling", + "pattern", + "patterns", + "loop" + ], + "description": "This workflow models periodically checking status until work is done.", + "source_path": "patterns/polling-pattern", + "repo_path": "patterns/patterns/polling-pattern-workflow" +} diff --git a/patterns/patterns/polling-pattern-workflow/workflow.fz b/patterns/patterns/polling-pattern-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..953a302a115cb210f8e0650113e3ade8ae33553e --- /dev/null +++ b/patterns/patterns/polling-pattern-workflow/workflow.fz @@ -0,0 +1,38 @@ +user { # User + n1: circle label:"Start Polling Pattern" + n5: rectangle label:"Record Polling Pattern outcome" + n9: rectangle label:"Monitor Polling Pattern status" + n13: circle label:"End Polling Pattern" + n1.handle(bottom) -> app.n2.handle(top) + n5.handle(bottom) -> app.n6.handle(top) [label="Done"] + n9.handle(bottom) -> app.n10.handle(top) +} + +app { # App + n2: rectangle label:"Receive Polling Pattern event" + n6: rectangle label:"Monitor Polling Pattern status" + n10: rectangle label:"Monitor Polling Pattern status" + n2.handle(bottom) -> service.n3.handle(top) [label="Next"] + n6.handle(bottom) -> service.n7.handle(top) + n10.handle(bottom) -> service.n11.handle(top) +} + +service { # Service + n3: rectangle label:"Validate Polling Pattern conditions" + n7: rectangle label:"Monitor Polling Pattern status" + n11: rectangle label:"Monitor Polling Pattern status" + n3.handle(bottom) -> database.n4.handle(top) + n7.handle(bottom) -> database.n8.handle(top) + n11.handle(bottom) -> database.n12.handle(top) [label="Success"] +} + +database { # Database + n4: diamond label:"Execute Polling Pattern action" + n8: rectangle label:"Monitor Polling Pattern status" + n12: diamond label:"Monitor Polling Pattern status" + n12.handle(left) -> service.n11.handle(left) [label="Retry/Rejected"] + n12.handle(right) -> user.n13.handle(left) + n8.handle(right) -> user.n9.handle(left) [label="Processed"] + n4.handle(left) -> service.n3.handle(left) [label="Retry/Rejected"] + n4.handle(right) -> user.n5.handle(left) +} diff --git a/patterns/patterns/process-manager-workflow/README.md b/patterns/patterns/process-manager-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..02b17eb9581e5974f431518701e9256f2103ace7 --- /dev/null +++ b/patterns/patterns/process-manager-workflow/README.md @@ -0,0 +1,19 @@ +# Process Manager Workflow + +This workflow models orchestrating multiple services to complete a process. + +**Template ID:** `process-manager-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 3/5 +**Nodes:** 10 +**Lanes:** 3 +**Tags:** [process, manager, patterns] +**Source path:** `patterns/process-manager` +**Repo path:** `patterns/patterns/process-manager-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/process-manager-workflow/metadata.json b/patterns/patterns/process-manager-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..705c12b1c7054d30b69df59ac54155fca15799d4 --- /dev/null +++ b/patterns/patterns/process-manager-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "process-manager-workflow", + "workflow_id": "process-manager", + "title": "Process Manager Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 3, + "num_nodes": 10, + "num_lanes": 3, + "tags": [ + "process", + "manager", + "patterns" + ], + "description": "This workflow models orchestrating multiple services to complete a process.", + "source_path": "patterns/process-manager", + "repo_path": "patterns/patterns/process-manager-workflow" +} diff --git a/patterns/patterns/process-manager-workflow/workflow.fz b/patterns/patterns/process-manager-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..6228dfc6e1a7ccf300f340412f4a88bea78e3f2e --- /dev/null +++ b/patterns/patterns/process-manager-workflow/workflow.fz @@ -0,0 +1,28 @@ +user { # User + n1: circle label:"Start Process Manager" + n4: rectangle label:"Execute Process Manager action" + n7: rectangle label:"Monitor Process Manager status" + n10: circle label:"End Process Manager" + n1.handle(bottom) -> app.n2.handle(top) + n4.handle(bottom) -> app.n5.handle(top) + n7.handle(bottom) -> app.n8.handle(top) +} + +app { # App + n2: rectangle label:"Receive Process Manager event" + n5: rectangle label:"Record Process Manager outcome" + n8: rectangle label:"Monitor Process Manager status" + n2.handle(bottom) -> service.n3.handle(top) + n5.handle(bottom) -> service.n6.handle(top) + n8.handle(bottom) -> service.n9.handle(top) +} + +service { # Service + n3: rectangle label:"Validate Process Manager conditions" + n6: rectangle label:"Monitor Process Manager status" + n9: diamond label:"Monitor Process Manager status" + n3.handle(right) -> user.n4.handle(left) [label="Processed"] + n6.handle(right) -> user.n7.handle(left) [label="Success"] + n9.handle(left) -> app.n8.handle(left) [label="Retry/Rejected"] + n9.handle(right) -> user.n10.handle(bottom) [label="Valide"] +} diff --git a/patterns/patterns/pub-sub-workflow/README.md b/patterns/patterns/pub-sub-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4b6628217b1e3fc750f26bd11a10531c059b18f9 --- /dev/null +++ b/patterns/patterns/pub-sub-workflow/README.md @@ -0,0 +1,19 @@ +# Pub Sub Workflow + +This workflow models one publisher notifying many subscribers of events. + +**Template ID:** `pub-sub-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [pub, sub, patterns] +**Source path:** `patterns/pub-sub` +**Repo path:** `patterns/patterns/pub-sub-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/pub-sub-workflow/metadata.json b/patterns/patterns/pub-sub-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..e4911002c648fd8da0c5f9fdcc80c10881ee11f5 --- /dev/null +++ b/patterns/patterns/pub-sub-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "pub-sub-workflow", + "workflow_id": "pub-sub", + "title": "Pub Sub Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "pub", + "sub", + "patterns" + ], + "description": "This workflow models one publisher notifying many subscribers of events.", + "source_path": "patterns/pub-sub", + "repo_path": "patterns/patterns/pub-sub-workflow" +} diff --git a/patterns/patterns/pub-sub-workflow/workflow.fz b/patterns/patterns/pub-sub-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..2e55adca826064ad79891ca987e32769eb368ccd --- /dev/null +++ b/patterns/patterns/pub-sub-workflow/workflow.fz @@ -0,0 +1,44 @@ +Publisher { # Publisher +n1: circle label:"Start" +n2: rectangle label:"Create message payload" +n3: rectangle label:"Serialize to JSON" +n4: rectangle label:"Publish to topic" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(bottom) -> MessageBroker.n6.handle(top) [label="Publish"] +n4.handle(right) -> n5.handle(left) +} +MessageBroker { # Message Broker +n6: rectangle label:"Receive message" +n7: rectangle label:"Validate message schema" +n8: diamond label:"Topic exists?" +n9: rectangle label:"Store in topic partition" +n10: rectangle label:"Create topic" +n11: rectangle label:"Notify subscribers" +n6.handle(right) -> n7.handle(left) +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n9.handle(left) [label="Yes"] +n8.handle(bottom) -> n10.handle(top) [label="No"] +n9.handle(right) -> n11.handle(left) +n10.handle(right) -> n9.handle(top) +n11.handle(bottom) -> Subscriber.n12.handle(top) [label="Deliver"] +n11.handle(top) -> Publisher.n4.handle(bottom) [label="ACK"] +} +Subscriber { # Subscriber +n12: rectangle label:"Receive notification" +n13: rectangle label:"Fetch message from topic" +n14: rectangle label:"Deserialize payload" +n15: diamond label:"Processing successful?" +n16: rectangle label:"Acknowledge message" +n17: rectangle label:"Negative acknowledge" +n18: rectangle label:"Update consumer offset" +n12.handle(right) -> n13.handle(left) +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) +n15.handle(right) -> n16.handle(left) [label="Yes"] +n15.handle(bottom) -> n17.handle(top) [label="No"] +n16.handle(right) -> n18.handle(left) +n17.handle(top) -> n13.handle(bottom) [label="Retry"] +n18.handle(top) -> Publisher.n5.handle(bottom) [label="Complete"] +} diff --git a/patterns/patterns/rate-limiter-workflow/README.md b/patterns/patterns/rate-limiter-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6c0c7b2aa9650b4e8f85f04cc3a70912360a74a0 --- /dev/null +++ b/patterns/patterns/rate-limiter-workflow/README.md @@ -0,0 +1,19 @@ +# Rate Limiter Workflow + +This workflow models preventing too many requests from being processed. + +**Template ID:** `rate-limiter-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [rate, limiter, patterns] +**Source path:** `patterns/rate-limiter` +**Repo path:** `patterns/patterns/rate-limiter-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/rate-limiter-workflow/metadata.json b/patterns/patterns/rate-limiter-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..914d58b0d108e3907e4a32f7778692d77a4ab42f --- /dev/null +++ b/patterns/patterns/rate-limiter-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "rate-limiter-workflow", + "workflow_id": "rate-limiter", + "title": "Rate Limiter Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "rate", + "limiter", + "patterns" + ], + "description": "This workflow models preventing too many requests from being processed.", + "source_path": "patterns/rate-limiter", + "repo_path": "patterns/patterns/rate-limiter-workflow" +} diff --git a/patterns/patterns/rate-limiter-workflow/workflow.fz b/patterns/patterns/rate-limiter-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..9fedb1d4f107f575b0acb85b6fb5f140de885fcb --- /dev/null +++ b/patterns/patterns/rate-limiter-workflow/workflow.fz @@ -0,0 +1,44 @@ +Client { # Client +n1: circle label:"Start" +n2: rectangle label:"Send API request" +n3: rectangle label:"Receive response" +n4: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> RateLimiter.n5.handle(top) [label="Request"] +n3.handle(right) -> n4.handle(left) +} +RateLimiter { # Rate Limiter +n5: rectangle label:"Extract client identifier" +n6: rectangle label:"Get current window count" +n7: diamond label:"Within rate limit?" +n8: rectangle label:"Increment request count" +n9: rectangle label:"Return 429 Too Many Requests" +n10: diamond label:"Algorithm type?" +n11: rectangle label:"Token bucket check" +n12: rectangle label:"Sliding window check" +n5.handle(right) -> n6.handle(left) +n6.handle(right) -> n10.handle(left) +n10.handle(right) -> n11.handle(left) [label="Token bucket"] +n10.handle(bottom) -> n12.handle(top) [label="Sliding window"] +n11.handle(right) -> n7.handle(left) +n12.handle(right) -> n7.handle(top) +n7.handle(right) -> n8.handle(left) [label="Yes"] +n7.handle(bottom) -> n9.handle(top) [label="No"] +n8.handle(bottom) -> Backend.n13.handle(top) [label="Allow"] +n9.handle(top) -> Client.n3.handle(bottom) [label="Rejected"] +} +Backend { # Backend Service +n13: rectangle label:"Process request" +n14: rectangle label:"Execute business logic" +n15: diamond label:"Request successful?" +n16: rectangle label:"Return 200 OK" +n17: rectangle label:"Return error response" +n18: rectangle label:"Add rate limit headers" +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) +n15.handle(right) -> n16.handle(left) [label="Yes"] +n15.handle(bottom) -> n17.handle(top) [label="No"] +n16.handle(right) -> n18.handle(left) +n17.handle(right) -> n18.handle(top) +n18.handle(top) -> Client.n3.handle(bottom) [label="Response"] +} diff --git a/patterns/patterns/request-reply-workflow/README.md b/patterns/patterns/request-reply-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4faa67f5ced03f7c655d228669be82747abfb646 --- /dev/null +++ b/patterns/patterns/request-reply-workflow/README.md @@ -0,0 +1,19 @@ +# Request Reply Workflow + +This workflow models a synchronous request that waits for a reply. + +**Template ID:** `request-reply-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [request, reply, patterns] +**Source path:** `patterns/request-reply` +**Repo path:** `patterns/patterns/request-reply-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/request-reply-workflow/metadata.json b/patterns/patterns/request-reply-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..52a0869e314bba7d1b957bdba1240b79b345323c --- /dev/null +++ b/patterns/patterns/request-reply-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "request-reply-workflow", + "workflow_id": "request-reply", + "title": "Request Reply Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "request", + "reply", + "patterns" + ], + "description": "This workflow models a synchronous request that waits for a reply.", + "source_path": "patterns/request-reply", + "repo_path": "patterns/patterns/request-reply-workflow" +} diff --git a/patterns/patterns/request-reply-workflow/workflow.fz b/patterns/patterns/request-reply-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..65cb09d91207d635d01b7feb2a27754620db5ad7 --- /dev/null +++ b/patterns/patterns/request-reply-workflow/workflow.fz @@ -0,0 +1,19 @@ +user { # User + n1: circle label:"Start Request Reply" + n3: rectangle label:"Validate Request Reply conditions" + n5: rectangle label:"Record Request Reply outcome" + n7: circle label:"End Request Reply" + n1.handle(bottom) -> app.n2.handle(top) [label="Success"] + n3.handle(bottom) -> app.n4.handle(top) + n5.handle(bottom) -> app.n6.handle(top) +} + +app { # App + n2: rectangle label:"Receive Request Reply event" + n4: rectangle label:"Execute Request Reply action" + n6: diamond label:"Monitor Request Reply status" + n2.handle(right) -> user.n3.handle(left) + n4.handle(right) -> user.n5.handle(left) [label="Valid"] + n6.handle(left) -> user.n5.handle(left) [label="Retry/Rejected"] + n6.handle(right) -> user.n7.handle(bottom) +} diff --git a/patterns/patterns/retry-with-backoff-workflow/README.md b/patterns/patterns/retry-with-backoff-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f95560a343f9fa16b940156cb853ad1d436bbb46 --- /dev/null +++ b/patterns/patterns/retry-with-backoff-workflow/README.md @@ -0,0 +1,19 @@ +# Retry With Backoff Workflow + +Exponential backoff retry pattern for API calls with configurable retry limits, delay calculation, retryable error detection, and graceful degradation on permanent failures. + +**Template ID:** `retry-with-backoff-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 20 +**Lanes:** 3 +**Tags:** [retry-pattern, exponential-backoff, fault-tolerance, api-resilience, transient-errors, http-retry, jitter] +**Source path:** `patterns/retry-with-backoff` +**Repo path:** `patterns/patterns/retry-with-backoff-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/retry-with-backoff-workflow/metadata.json b/patterns/patterns/retry-with-backoff-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5ff42e58051ab7ac42e864df10b34735ebadfb66 --- /dev/null +++ b/patterns/patterns/retry-with-backoff-workflow/metadata.json @@ -0,0 +1,27 @@ +{ + "template_id": "retry-with-backoff-workflow", + "workflow_id": "retry-with-backoff", + "title": "Retry With Backoff Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 20, + "num_lanes": 3, + "tags": [ + "retry-pattern", + "exponential-backoff", + "fault-tolerance", + "api-resilience", + "transient-errors", + "http-retry", + "jitter" + ], + "description": "Exponential backoff retry pattern for API calls with configurable retry limits, delay calculation, retryable error detection, and graceful degradation on permanent failures.", + "source_path": "patterns/retry-with-backoff", + "repo_path": "patterns/patterns/retry-with-backoff-workflow" +} diff --git a/patterns/patterns/retry-with-backoff-workflow/workflow.fz b/patterns/patterns/retry-with-backoff-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..e184f1b75b8ec99f8bdc802b4f329b71633eb85a --- /dev/null +++ b/patterns/patterns/retry-with-backoff-workflow/workflow.fz @@ -0,0 +1,50 @@ +Client { # Client +n1: circle label:"Start" +n2: rectangle label:"Prepare API request" +n3: rectangle label:"Process successful response" +n4: rectangle label:"Handle permanent failure" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> RetryHandler.n6.handle(top) [label="Send request"] +n3.handle(right) -> n5.handle(left) +n4.handle(right) -> n5.handle(left) +} +RetryHandler { # Retry Handler +n6: rectangle label:"Initialize retry state" +n7: rectangle label:"Execute HTTP request" +n8: diamond label:"Response status?" +n9: rectangle label:"Return success" +n10: diamond label:"Retryable error?" +n11: diamond label:"Retries remaining?" +n12: rectangle label:"Calculate backoff delay" +n13: rectangle label:"Wait exponential delay" +n14: rectangle label:"Increment retry counter" +n15: rectangle label:"Return final error" +n6.handle(right) -> n7.handle(left) +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n9.handle(left) [label="2xx"] +n8.handle(bottom) -> n10.handle(top) [label="4xx/5xx"] +n9.handle(top) -> Client.n3.handle(bottom) [label="Success"] +n10.handle(right) -> n11.handle(left) [label="Yes"] +n10.handle(bottom) -> n15.handle(top) [label="No"] +n11.handle(right) -> n12.handle(left) [label="Yes"] +n11.handle(bottom) -> n15.handle(top) [label="No"] +n12.handle(right) -> n13.handle(left) +n13.handle(right) -> n14.handle(left) +n14.handle(top) -> n7.handle(bottom) [label="Retry"] +n15.handle(top) -> Client.n4.handle(bottom) [label="Failed"] +loop [retry up to 3 times] n7 n8 n10 n11 n12 n13 n14 +} +APIServer { # API Server +n16: rectangle label:"Receive request" +n17: diamond label:"Server healthy?" +n18: rectangle label:"Process request" +n19: rectangle label:"Return 503 Service Unavailable" +n20: rectangle label:"Return 200 OK" +n16.handle(right) -> n17.handle(left) +n17.handle(right) -> n18.handle(left) [label="Yes"] +n17.handle(bottom) -> n19.handle(top) [label="No"] +n18.handle(right) -> n20.handle(left) +n19.handle(top) -> RetryHandler.n8.handle(bottom) [label="Error"] +n20.handle(top) -> RetryHandler.n8.handle(bottom) [label="Success"] +} diff --git a/patterns/patterns/router-workflow/README.md b/patterns/patterns/router-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..94b96cd948f4e1250ea5821c3c47950c50616eae --- /dev/null +++ b/patterns/patterns/router-workflow/README.md @@ -0,0 +1,19 @@ +# Router Workflow + +This workflow models routing messages based on their content. + +**Template ID:** `router-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 3/5 +**Nodes:** 10 +**Lanes:** 3 +**Tags:** [router, patterns, decision] +**Source path:** `patterns/router` +**Repo path:** `patterns/patterns/router-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/router-workflow/metadata.json b/patterns/patterns/router-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..577542ea2ae4f8f8809c6f26f7f7acb7dd354e77 --- /dev/null +++ b/patterns/patterns/router-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "router-workflow", + "workflow_id": "router", + "title": "Router Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 3, + "num_nodes": 10, + "num_lanes": 3, + "tags": [ + "router", + "patterns", + "decision" + ], + "description": "This workflow models routing messages based on their content.", + "source_path": "patterns/router", + "repo_path": "patterns/patterns/router-workflow" +} diff --git a/patterns/patterns/router-workflow/workflow.fz b/patterns/patterns/router-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..2ebc0640b93309689c0de93b09418db412200ce3 --- /dev/null +++ b/patterns/patterns/router-workflow/workflow.fz @@ -0,0 +1,28 @@ +user { # User + n1: circle label:"Start Router" + n2: diamond label:"Receive Router event" + n4: rectangle label:"Execute Router action" + n7: rectangle label:"Monitor Router status" + n10: circle label:"End Router" + n1.handle(right) -> n2.handle(left) + n2.handle(bottom) -> service.n3.handle(top) [label="Yes/Approved"] + n4.handle(bottom) -> app.n5.handle(top) + n7.handle(bottom) -> app.n8.handle(top) + n2.handle(top) -> n4.handle(top) [label="No/Rejected"] +} + +app { # App + n5: rectangle label:"Record Router outcome" + n8: rectangle label:"Monitor Router status" + n5.handle(bottom) -> service.n6.handle(top) + n8.handle(bottom) -> service.n9.handle(top) +} + +service { # Service + n3: rectangle label:"Validate Router conditions" + n6: rectangle label:"Monitor Router status" + n9: rectangle label:"Monitor Router status" + n9.handle(right) -> user.n10.handle(bottom) + n6.handle(right) -> user.n7.handle(left) + n3.handle(right) -> app.n5.handle(left) +} diff --git a/patterns/patterns/snapshot-pattern-workflow/README.md b/patterns/patterns/snapshot-pattern-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..861bcc06f4e86961a923f75655396f0e407e585c --- /dev/null +++ b/patterns/patterns/snapshot-pattern-workflow/README.md @@ -0,0 +1,19 @@ +# Snapshot Pattern Workflow + +This workflow models taking periodic snapshots of important state. + +**Template ID:** `snapshot-pattern-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [snapshot, pattern, patterns, decision, loop] +**Source path:** `patterns/snapshot-pattern` +**Repo path:** `patterns/patterns/snapshot-pattern-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/snapshot-pattern-workflow/metadata.json b/patterns/patterns/snapshot-pattern-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..2997f491ee7b5a9fbd1fcb25eff9d33104a7e0a2 --- /dev/null +++ b/patterns/patterns/snapshot-pattern-workflow/metadata.json @@ -0,0 +1,25 @@ +{ + "template_id": "snapshot-pattern-workflow", + "workflow_id": "snapshot-pattern", + "title": "Snapshot Pattern Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "snapshot", + "pattern", + "patterns", + "decision", + "loop" + ], + "description": "This workflow models taking periodic snapshots of important state.", + "source_path": "patterns/snapshot-pattern", + "repo_path": "patterns/patterns/snapshot-pattern-workflow" +} diff --git a/patterns/patterns/snapshot-pattern-workflow/workflow.fz b/patterns/patterns/snapshot-pattern-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..a6410bf67d51cb10e40d5ccc5a56d934899ad43c --- /dev/null +++ b/patterns/patterns/snapshot-pattern-workflow/workflow.fz @@ -0,0 +1,19 @@ +user { # User + n1: circle label:"Start Snapshot Pattern" + n2: diamond label:"Receive Snapshot Pattern event" + n3: rectangle label:"Validate Snapshot Pattern conditions" + n5: rectangle label:"Record Snapshot Pattern outcome" + n7: circle label:"End Snapshot Pattern" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) [label="Yes/Approved"] + n2.handle(bottom) -> app.n4.handle(top) [label="No/Rejected"] + n3.handle(right) -> n5.handle(left) + n5.handle(bottom) -> app.n6.handle(top) +} + +app { # App + n4: rectangle label:"Execute Snapshot Pattern action" + n6: rectangle label:"Monitor Snapshot Pattern status" + n6.handle(right) -> user.n7.handle(bottom) + n4.handle(right) -> user.n5.handle(top) +} diff --git a/patterns/patterns/state-machine-workflow/README.md b/patterns/patterns/state-machine-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..01ab6b14f29160e4fcd96bb56acf5de46059dac6 --- /dev/null +++ b/patterns/patterns/state-machine-workflow/README.md @@ -0,0 +1,19 @@ +# State Machine Workflow + +This workflow models tracking object state changes over time. + +**Template ID:** `state-machine-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [state, machine, patterns, parallel] +**Source path:** `patterns/state-machine` +**Repo path:** `patterns/patterns/state-machine-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/state-machine-workflow/metadata.json b/patterns/patterns/state-machine-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..e3d040a2d060c4819dedd31735c654432dadb337 --- /dev/null +++ b/patterns/patterns/state-machine-workflow/metadata.json @@ -0,0 +1,24 @@ +{ + "template_id": "state-machine-workflow", + "workflow_id": "state-machine", + "title": "State Machine Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "state", + "machine", + "patterns", + "parallel" + ], + "description": "This workflow models tracking object state changes over time.", + "source_path": "patterns/state-machine", + "repo_path": "patterns/patterns/state-machine-workflow" +} diff --git a/patterns/patterns/state-machine-workflow/workflow.fz b/patterns/patterns/state-machine-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..f117e572654fe7010a85f318b577339826965130 --- /dev/null +++ b/patterns/patterns/state-machine-workflow/workflow.fz @@ -0,0 +1,47 @@ +OrderSystem { # Order System +n1: circle label:"Start" +n2: rectangle label:"Receive order event" +n3: rectangle label:"Load current state" +n4: rectangle label:"Order completed" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(bottom) -> StateMachine.n6.handle(top) [label="Process"] +n4.handle(right) -> n5.handle(left) +} +StateMachine { # State Machine +n6: diamond label:"Current state?" +n7: rectangle label:"Pending to Confirmed" +n8: rectangle label:"Confirmed to Processing" +n9: rectangle label:"Processing to Shipped" +n10: rectangle label:"Shipped to Delivered" +n11: rectangle label:"Any to Cancelled" +n12: diamond label:"Valid transition?" +n13: rectangle label:"Update state" +n14: rectangle label:"Reject invalid transition" +n6.handle(right) -> n7.handle(left) [label="Pending"] +n6.handle(bottom) -> n8.handle(top) [label="Confirmed"] +n6.handle(left) -> n9.handle(top) [label="Processing"] +n7.handle(bottom) -> n12.handle(top) +n8.handle(bottom) -> n12.handle(top) +n9.handle(bottom) -> n12.handle(top) +n10.handle(bottom) -> n12.handle(top) +n11.handle(bottom) -> n12.handle(top) +n12.handle(right) -> n13.handle(left) [label="Yes"] +n12.handle(bottom) -> n14.handle(top) [label="No"] +n13.handle(bottom) -> EventLog.n15.handle(top) [label="Persist"] +n14.handle(top) -> OrderSystem.n4.handle(bottom) [label="Error"] +} +EventLog { # Event Log +n15: rectangle label:"Record state transition" +n16: rectangle label:"Emit state changed event" +n17: diamond label:"Final state?" +n18: rectangle label:"Trigger completion handlers" +n19: rectangle label:"Continue processing" +n15.handle(right) -> n16.handle(left) +n16.handle(right) -> n17.handle(left) +n17.handle(right) -> n18.handle(left) [label="Yes"] +n17.handle(bottom) -> n19.handle(top) [label="No"] +n18.handle(top) -> OrderSystem.n4.handle(bottom) [label="Complete"] +n19.handle(top) -> OrderSystem.n4.handle(bottom) [label="Updated"] +} diff --git a/patterns/patterns/strangler-fig-workflow/README.md b/patterns/patterns/strangler-fig-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b95a3d80eb18a47cb12beb9922b3d9143787add5 --- /dev/null +++ b/patterns/patterns/strangler-fig-workflow/README.md @@ -0,0 +1,19 @@ +# Strangler Fig Workflow + +This workflow models gradually replacing an old system with a new one. + +**Template ID:** `strangler-fig-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [strangler, fig, patterns, decision] +**Source path:** `patterns/strangler-fig` +**Repo path:** `patterns/patterns/strangler-fig-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/strangler-fig-workflow/metadata.json b/patterns/patterns/strangler-fig-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..43a1b39a27a9b16be3ae46f3811ce2bda134e52a --- /dev/null +++ b/patterns/patterns/strangler-fig-workflow/metadata.json @@ -0,0 +1,24 @@ +{ + "template_id": "strangler-fig-workflow", + "workflow_id": "strangler-fig", + "title": "Strangler Fig Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "strangler", + "fig", + "patterns", + "decision" + ], + "description": "This workflow models gradually replacing an old system with a new one.", + "source_path": "patterns/strangler-fig", + "repo_path": "patterns/patterns/strangler-fig-workflow" +} diff --git a/patterns/patterns/strangler-fig-workflow/workflow.fz b/patterns/patterns/strangler-fig-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..dbdb8a0ad50f8a47aa56b91181fcd2c1c9067521 --- /dev/null +++ b/patterns/patterns/strangler-fig-workflow/workflow.fz @@ -0,0 +1,19 @@ +user { # User + n1: circle label:"Start Strangler Fig" + n2: diamond label:"Receive Strangler Fig event" + n3: rectangle label:"Validate Strangler Fig conditions" + n5: rectangle label:"Record Strangler Fig outcome" + n7: circle label:"End Strangler Fig" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) [label="Yes/Approved"] + n2.handle(bottom) -> app.n4.handle(top) [label="No/Rejected"] + n3.handle(right) -> n5.handle(left) + n5.handle(bottom) -> app.n6.handle(top) +} + +app { # App + n4: rectangle label:"Execute Strangler Fig action" + n6: rectangle label:"Monitor Strangler Fig status" + n4.handle(right) -> user.n5.handle(left) + n6.handle(right) -> user.n7.handle(bottom) +} diff --git a/patterns/patterns/timeout-pattern-workflow/README.md b/patterns/patterns/timeout-pattern-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..52ed40fe18e1510c9478952d1f9f46bb8f7bbaac --- /dev/null +++ b/patterns/patterns/timeout-pattern-workflow/README.md @@ -0,0 +1,19 @@ +# Timeout Pattern Workflow + +This workflow models an operation that times out after a delay. + +**Template ID:** `timeout-pattern-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [timeout, pattern, patterns] +**Source path:** `patterns/timeout-pattern` +**Repo path:** `patterns/patterns/timeout-pattern-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/timeout-pattern-workflow/metadata.json b/patterns/patterns/timeout-pattern-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4accf3692fd56481400c32ea688adad6c171bf67 --- /dev/null +++ b/patterns/patterns/timeout-pattern-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "timeout-pattern-workflow", + "workflow_id": "timeout-pattern", + "title": "Timeout Pattern Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "timeout", + "pattern", + "patterns" + ], + "description": "This workflow models an operation that times out after a delay.", + "source_path": "patterns/timeout-pattern", + "repo_path": "patterns/patterns/timeout-pattern-workflow" +} diff --git a/patterns/patterns/timeout-pattern-workflow/workflow.fz b/patterns/patterns/timeout-pattern-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..b895b9e3cbc0a36b1c4209686771e838cfa5d1c4 --- /dev/null +++ b/patterns/patterns/timeout-pattern-workflow/workflow.fz @@ -0,0 +1,37 @@ +user { # User + n1: circle label:"Start Timeout Pattern" + n5: diamond label:"Record Timeout Pattern outcome" + n9: rectangle label:"Monitor Timeout Pattern status" + n13: circle label:"End Timeout Pattern" + n1.handle(bottom) -> app.n2.handle(top) + n5.handle(bottom) -> app.n6.handle(top) + n5.handle(right) -> database.n4.handle(right) [label="Retry/Rejected"] + n9.handle(bottom) -> app.n10.handle(top) [label="Valid"] +} + +app { # App + n2: rectangle label:"Receive Timeout Pattern event" + n6: rectangle label:"Monitor Timeout Pattern status" + n10: rectangle label:"Monitor Timeout Pattern status" + n2.handle(bottom) -> service.n3.handle(top) + n6.handle(bottom) -> service.n7.handle(top) [label="Success"] + n10.handle(bottom) -> service.n11.handle(top) +} + +service { # Service + n3: rectangle label:"Validate Timeout Pattern conditions" + n7: rectangle label:"Monitor Timeout Pattern status" + n11: rectangle label:"Monitor Timeout Pattern status" + n3.handle(bottom) -> database.n4.handle(top) [label="Processed"] + n7.handle(bottom) -> database.n8.handle(top) + n11.handle(bottom) -> database.n12.handle(top) +} + +database { # Database + n4: rectangle label:"Execute Timeout Pattern action" + n8: rectangle label:"Monitor Timeout Pattern status" + n12: rectangle label:"Monitor Timeout Pattern status" + n12.handle(right) -> user.n13.handle(bottom) [label="Next"] + n8.handle(right) -> user.n9.handle(left) + n4.handle(bottom) -> user.n5.handle(left) +} diff --git a/patterns/patterns/transactional-outbox-workflow/README.md b/patterns/patterns/transactional-outbox-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e6f468dc5b6b3612b06e92753b744281bab04a36 --- /dev/null +++ b/patterns/patterns/transactional-outbox-workflow/README.md @@ -0,0 +1,19 @@ +# Transactional Outbox Workflow + +This workflow models writing data and publishing messages in one transaction. + +**Template ID:** `transactional-outbox-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 4/5 +**Nodes:** 13 +**Lanes:** 4 +**Tags:** [transactional, outbox, patterns, parallel] +**Source path:** `patterns/transactional-outbox` +**Repo path:** `patterns/patterns/transactional-outbox-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/transactional-outbox-workflow/metadata.json b/patterns/patterns/transactional-outbox-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1b166bcb226598cca218e04934d9aaccd3dea26b --- /dev/null +++ b/patterns/patterns/transactional-outbox-workflow/metadata.json @@ -0,0 +1,24 @@ +{ + "template_id": "transactional-outbox-workflow", + "workflow_id": "transactional-outbox", + "title": "Transactional Outbox Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 4, + "num_nodes": 13, + "num_lanes": 4, + "tags": [ + "transactional", + "outbox", + "patterns", + "parallel" + ], + "description": "This workflow models writing data and publishing messages in one transaction.", + "source_path": "patterns/transactional-outbox", + "repo_path": "patterns/patterns/transactional-outbox-workflow" +} diff --git a/patterns/patterns/transactional-outbox-workflow/workflow.fz b/patterns/patterns/transactional-outbox-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..d6f08a1b2a749f4f2b86c260365eb0ef294c3612 --- /dev/null +++ b/patterns/patterns/transactional-outbox-workflow/workflow.fz @@ -0,0 +1,46 @@ +user { # User + n1: circle label:"Start Transactional Outbox" + n5: rectangle label:"Record Transactional Outbox outcome" + n9: rectangle label:"Monitor Transactional Outbox status" + n13: circle label:"End Transactional Outbox" + n1.handle(bottom) -> app.n2.handle(top) + n1.handle(bottom) -> service.n3.handle(top) + n1.handle(bottom) -> database.n4.handle(top) + n1.handle(right) -> n5.handle(left) + n1.handle(bottom) -> app.n6.handle(top) + n1.handle(bottom) -> service.n7.handle(top) + n1.handle(bottom) -> database.n8.handle(top) + n1.handle(bottom) -> app.n10.handle(top) + n1.handle(bottom) -> service.n11.handle(top) + n1.handle(bottom) -> database.n12.handle(top) + n9.handle(right) -> n13.handle(left) + n5.handle(right) -> n13.handle(top) + n1.handle(right) -> n9.handle(bottom) +} + +app { # App + n2: rectangle label:"Receive Transactional Outbox event" + n6: rectangle label:"Monitor Transactional Outbox status" + n10: rectangle label:"Monitor Transactional Outbox status" + n10.handle(right) -> user.n13.handle(bottom) + n6.handle(right) -> user.n13.handle(bottom) + n2.handle(right) -> user.n13.handle(bottom) +} + +service { # Service + n3: rectangle label:"Validate Transactional Outbox conditions" + n7: rectangle label:"Monitor Transactional Outbox status" + n11: rectangle label:"Monitor Transactional Outbox status" + n11.handle(right) -> user.n13.handle(bottom) + n7.handle(right) -> user.n13.handle(bottom) + n3.handle(right) -> user.n13.handle(bottom) +} + +database { # Database + n4: diamond label:"Execute Transactional Outbox action" + n8: rectangle label:"Monitor Transactional Outbox status" + n12: diamond label:"Monitor Transactional Outbox status" + n12.handle(right) -> user.n13.handle(bottom) + n8.handle(right) -> user.n13.handle(bottom) + n4.handle(right) -> user.n13.handle(bottom) +} diff --git a/patterns/patterns/transform-workflow/README.md b/patterns/patterns/transform-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8fa88e83baa6ae4a38747160684c5f810d01d12b --- /dev/null +++ b/patterns/patterns/transform-workflow/README.md @@ -0,0 +1,19 @@ +# Transform Workflow + +This workflow models converting messages into a new shape. + +**Template ID:** `transform-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [transform, patterns] +**Source path:** `patterns/transform` +**Repo path:** `patterns/patterns/transform-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/transform-workflow/metadata.json b/patterns/patterns/transform-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4db9be42ff8e78af2e3493dc8341aa9376c9acd4 --- /dev/null +++ b/patterns/patterns/transform-workflow/metadata.json @@ -0,0 +1,22 @@ +{ + "template_id": "transform-workflow", + "workflow_id": "transform", + "title": "Transform Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "transform", + "patterns" + ], + "description": "This workflow models converting messages into a new shape.", + "source_path": "patterns/transform", + "repo_path": "patterns/patterns/transform-workflow" +} diff --git a/patterns/patterns/transform-workflow/workflow.fz b/patterns/patterns/transform-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..336bae9aa4de52d5e180a571fe03b4926b934b31 --- /dev/null +++ b/patterns/patterns/transform-workflow/workflow.fz @@ -0,0 +1,19 @@ +user { # User + n1: circle label:"Start Transform" + n3: rectangle label:"Validate Transform conditions" + n5: diamond label:"Record Transform outcome" + n7: circle label:"End Transform" + n1.handle(bottom) -> app.n2.handle(top) + n3.handle(bottom) -> app.n4.handle(top) [label="Processed"] + n5.handle(bottom) -> app.n6.handle(top) + n5.handle(right) -> app.n4.handle(right) [label="Retry/Rejected"] +} + +app { # App + n2: rectangle label:"Receive Transform event" + n4: rectangle label:"Execute Transform action" + n6: rectangle label:"Monitor Transform status" + n6.handle(right) -> user.n7.handle(bottom) [label="Success"] + n4.handle(bottom) -> user.n5.handle(left) + n2.handle(right) -> user.n3.handle(left) +} diff --git a/patterns/patterns/validator-workflow/README.md b/patterns/patterns/validator-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5f7d92f43236a3c5d0f1f89d3b680b6f50de15b2 --- /dev/null +++ b/patterns/patterns/validator-workflow/README.md @@ -0,0 +1,19 @@ +# Validator Workflow + +This workflow models checking that incoming data is valid. + +**Template ID:** `validator-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [validator, patterns, parallel] +**Source path:** `patterns/validator` +**Repo path:** `patterns/patterns/validator-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/validator-workflow/metadata.json b/patterns/patterns/validator-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4d6ee0ae37d9d6edd8988e7fc8b9fa352061dc18 --- /dev/null +++ b/patterns/patterns/validator-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "validator-workflow", + "workflow_id": "validator", + "title": "Validator Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "validator", + "patterns", + "parallel" + ], + "description": "This workflow models checking that incoming data is valid.", + "source_path": "patterns/validator", + "repo_path": "patterns/patterns/validator-workflow" +} diff --git a/patterns/patterns/validator-workflow/workflow.fz b/patterns/patterns/validator-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..0572d96558184dbc0bcee9ec9d1386a072c97c85 --- /dev/null +++ b/patterns/patterns/validator-workflow/workflow.fz @@ -0,0 +1,22 @@ +user { # User + n1: circle label:"Start Validator" + n3: rectangle label:"Validate Validator conditions" + n5: rectangle label:"Record Validator outcome" + n7: circle label:"End Validator" + n1.handle(bottom) -> app.n2.handle(top) + n1.handle(right) -> n3.handle(left) + n1.handle(bottom) -> app.n4.handle(top) + n1.handle(bottom) -> app.n6.handle(top) + n5.handle(right) -> n7.handle(left) + n3.handle(top) -> n7.handle(top) + n1.handle(right) -> n5.handle(bottom) +} + +app { # App + n2: rectangle label:"Receive Validator event" + n4: rectangle label:"Execute Validator action" + n6: diamond label:"Monitor Validator status" + n6.handle(right) -> user.n7.handle(bottom) + n4.handle(right) -> user.n7.handle(bottom) + n2.handle(right) -> user.n7.handle(bottom) +} diff --git a/patterns/patterns/webhook-pattern-workflow/README.md b/patterns/patterns/webhook-pattern-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..9bc45669fcd76036ff086d49d676ca13de8134b7 --- /dev/null +++ b/patterns/patterns/webhook-pattern-workflow/README.md @@ -0,0 +1,19 @@ +# Webhook Pattern Workflow + +This workflow models an HTTP callback when an event occurs. + +**Template ID:** `webhook-pattern-workflow` +**Kind:** workflow +**Source domain:** patterns +**Primary use case:** patterns +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [webhook, pattern, patterns, decision, loop] +**Source path:** `patterns/webhook-pattern` +**Repo path:** `patterns/patterns/webhook-pattern-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/patterns/patterns/webhook-pattern-workflow/metadata.json b/patterns/patterns/webhook-pattern-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..7aacc81fd0cfda9c62fcc91faa11e070f38c6bef --- /dev/null +++ b/patterns/patterns/webhook-pattern-workflow/metadata.json @@ -0,0 +1,25 @@ +{ + "template_id": "webhook-pattern-workflow", + "workflow_id": "webhook-pattern", + "title": "Webhook Pattern Workflow", + "kind": "workflow", + "source_domain": "patterns", + "primary_use_case": "patterns", + "secondary_use_cases": [], + "use_cases": [ + "patterns" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "webhook", + "pattern", + "patterns", + "decision", + "loop" + ], + "description": "This workflow models an HTTP callback when an event occurs.", + "source_path": "patterns/webhook-pattern", + "repo_path": "patterns/patterns/webhook-pattern-workflow" +} diff --git a/patterns/patterns/webhook-pattern-workflow/workflow.fz b/patterns/patterns/webhook-pattern-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..b9db292ab6ef154e15ec51f6ad1b1fa9c45bc26e --- /dev/null +++ b/patterns/patterns/webhook-pattern-workflow/workflow.fz @@ -0,0 +1,47 @@ +Sender { # Webhook Sender +n1: circle label:"Start" +n2: rectangle label:"Event occurs in system" +n3: rectangle label:"Build webhook payload" +n4: rectangle label:"Log delivery result" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(bottom) -> Delivery.n6.handle(top) [label="Send"] +n4.handle(right) -> n5.handle(left) +} +Delivery { # Webhook Delivery +n6: rectangle label:"Sign payload with HMAC" +n7: rectangle label:"POST to subscriber URL" +n8: diamond label:"Response status?" +n9: rectangle label:"Mark as delivered" +n10: rectangle label:"Schedule retry" +n11: diamond label:"Max retries reached?" +n12: rectangle label:"Mark as failed" +n6.handle(right) -> n7.handle(left) +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n9.handle(left) [label="2xx"] +n8.handle(bottom) -> n10.handle(top) [label="4xx/5xx"] +n9.handle(top) -> Sender.n4.handle(bottom) [label="Success"] +n10.handle(right) -> n11.handle(left) +n11.handle(right) -> n12.handle(left) [label="Yes"] +n11.handle(bottom) -> n7.handle(bottom) [label="No"] +n12.handle(top) -> Sender.n4.handle(bottom) [label="Failed"] +loop [retry up to 5 times] n7 n8 n10 n11 +} +Receiver { # Webhook Receiver +n13: rectangle label:"Receive POST request" +n14: rectangle label:"Verify HMAC signature" +n15: diamond label:"Signature valid?" +n16: rectangle label:"Parse JSON payload" +n17: rectangle label:"Return 401 Unauthorized" +n18: rectangle label:"Process event" +n19: rectangle label:"Return 200 OK" +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) +n15.handle(right) -> n16.handle(left) [label="Yes"] +n15.handle(bottom) -> n17.handle(top) [label="No"] +n16.handle(right) -> n18.handle(left) +n17.handle(top) -> Sender.n4.handle(bottom) [label="Rejected"] +n18.handle(right) -> n19.handle(left) +n19.handle(top) -> Sender.n4.handle(bottom) [label="Processed"] +} diff --git a/platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture/README.md b/platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d82cca8d25e217c6ed4008b794aae2a7aaff9edd --- /dev/null +++ b/platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture/README.md @@ -0,0 +1,19 @@ +# Multi-Cloud Mesh Resilience Architecture + +Traffic through any edge proxy to a mesh control plane spread over AWS, GCP and metal, with quorum databases and no single-cloud dependency in the routing path. + +**Template ID:** `multi-cloud-mesh-resilience-architecture` +**Kind:** workflow +**Source domain:** Platform Reliability +**Primary use case:** platform-reliability +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 9 +**Lanes:** 1 +**Tags:** [multi-cloud, resilience, mesh, quorum, architecture] +**Source path:** `` +**Repo path:** `platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture/metadata.json b/platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5aae00aa408fc3e91c9778a7983c16f20604cafc --- /dev/null +++ b/platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture/metadata.json @@ -0,0 +1,25 @@ +{ + "template_id": "multi-cloud-mesh-resilience-architecture", + "workflow_id": "multi-cloud-mesh-resilience-architecture", + "title": "Multi-Cloud Mesh Resilience Architecture", + "kind": "workflow", + "source_domain": "Platform Reliability", + "primary_use_case": "platform-reliability", + "secondary_use_cases": [], + "use_cases": [ + "platform-reliability" + ], + "complexity": 2, + "num_nodes": 9, + "num_lanes": 1, + "tags": [ + "multi-cloud", + "resilience", + "mesh", + "quorum", + "architecture" + ], + "description": "Traffic through any edge proxy to a mesh control plane spread over AWS, GCP and metal, with quorum databases and no single-cloud dependency in the routing path.", + "source_path": "", + "repo_path": "platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture" +} diff --git a/platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture/workflow.fz b/platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..32bb3f628ebd7324f8fe94c62340a7034871ba4b --- /dev/null +++ b/platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture/workflow.fz @@ -0,0 +1,19 @@ +resilient { # Multi-Cloud Mesh Architecture + n1: rectangle label:"Traffic → Any Edge Proxy" + n2: rectangle label:"Mesh Control Plane (AWS/GCP/Metal)" + n3: rectangle label:"Route Discovery — No Single Cloud Dependency" + n4: rectangle label:"DB Quorum (AWS)" + n5: rectangle label:"DB Quorum (GCP)" + n6: rectangle label:"DB Quorum (Metal)" + n7: rectangle label:"Compute (AWS)" + n8: rectangle label:"Compute (GCP)" + n9: rectangle label:"Compute (Metal)" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n3.handle(top) -> n5.handle(top) + n3.handle(bottom) -> n6.handle(bottom) + n4.handle(right) -> n7.handle(left) + n5.handle(top) -> n8.handle(top) + n6.handle(top) -> n9.handle(top) +} diff --git a/process-mapping/process-mapping/process-analysis-future-state-workflow/README.md b/process-mapping/process-mapping/process-analysis-future-state-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..aa6833d64e445f9a0881b9c5fdadf2612ff9815c --- /dev/null +++ b/process-mapping/process-mapping/process-analysis-future-state-workflow/README.md @@ -0,0 +1,19 @@ +# Process Analysis & Future State Workflow + +Process redesign workflow that identifies bottlenecks, designs the future state, adjusts the design and deploys the technology solution on the new baseline. + +**Template ID:** `process-analysis-future-state-workflow` +**Kind:** workflow +**Source domain:** Process Mapping +**Primary use case:** process-mapping +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 12 +**Lanes:** 2 +**Tags:** [process-mapping, process-analysis, future-state, bottlenecks, redesign] +**Source path:** `` +**Repo path:** `process-mapping/process-mapping/process-analysis-future-state-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/process-mapping/process-mapping/process-analysis-future-state-workflow/metadata.json b/process-mapping/process-mapping/process-analysis-future-state-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..43ab4af0647822c59029bd3d4197f520113115fb --- /dev/null +++ b/process-mapping/process-mapping/process-analysis-future-state-workflow/metadata.json @@ -0,0 +1,25 @@ +{ + "template_id": "process-analysis-future-state-workflow", + "workflow_id": "process-analysis-future-state", + "title": "Process Analysis & Future State Workflow", + "kind": "workflow", + "source_domain": "Process Mapping", + "primary_use_case": "process-mapping", + "secondary_use_cases": [], + "use_cases": [ + "process-mapping" + ], + "complexity": 2, + "num_nodes": 12, + "num_lanes": 2, + "tags": [ + "process-mapping", + "process-analysis", + "future-state", + "bottlenecks", + "redesign" + ], + "description": "Process redesign workflow that identifies bottlenecks, designs the future state, adjusts the design and deploys the technology solution on the new baseline.", + "source_path": "", + "repo_path": "process-mapping/process-mapping/process-analysis-future-state-workflow" +} diff --git a/process-mapping/process-mapping/process-analysis-future-state-workflow/workflow.fz b/process-mapping/process-mapping/process-analysis-future-state-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..61082dcca3b3ca625d1d20a5465d26262fac8d12 --- /dev/null +++ b/process-mapping/process-mapping/process-analysis-future-state-workflow/workflow.fz @@ -0,0 +1,30 @@ +ProcessAnalysis { # ProcessAnalysis + n1: circle label:"Technology Need Identified" + n2: rectangle label:"Map Current Process State" + n3: rectangle label:"Identify Process Bottlenecks" + n4: diamond label:"Is Process the Root Cause?" + n5: rectangle label:"Optimize Process First" + n6: circle label:"Ready for Technology Solution" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(top) -> n6.handle(top) [label="No - Tech required"] + n4.handle(right) -> n5.handle(left) [label="Yes"] + n5.handle(right) -> n6.handle(left) + n6.handle(right) -> ImplementationStrategy.n7.handle(left) +} + +ImplementationStrategy { # ImplementationStrategy + n7: rectangle label:"Select Appropriate Technology" + n8: rectangle label:"Design Future State Process" + n9: rectangle label:"Deploy Technology Solution" + n10: diamond label:"Process Improvement Achieved?" + n11: rectangle label:"Adjust Process Design" + n12: circle label:"Successful Implementation" + n10.handle(right) -> n12.handle(left) [label="Yes"] + n10.handle(bottom) -> n11.handle(top) [label="No"] + n7.handle(right) -> n8.handle(left) + n9.handle(right) -> n10.handle(left) + n11.handle(left) -> n9.handle(bottom) + n8.handle(right) -> n9.handle(left) +} diff --git a/process-mapping/process-mapping/work-tracking-dashboard-workflow/README.md b/process-mapping/process-mapping/work-tracking-dashboard-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a13717cecd71f18119d7a5bb9e6bed7bb4786d0b --- /dev/null +++ b/process-mapping/process-mapping/work-tracking-dashboard-workflow/README.md @@ -0,0 +1,19 @@ +# Work Tracking Dashboard Workflow + +Work visibility workflow: create the centralized tracking record, define status categories, keep the information current and publish it on a central dashboard. + +**Template ID:** `work-tracking-dashboard-workflow` +**Kind:** workflow +**Source domain:** Process Mapping +**Primary use case:** process-mapping +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 12 +**Lanes:** 2 +**Tags:** [process-mapping, tracking, dashboard, status, visibility] +**Source path:** `` +**Repo path:** `process-mapping/process-mapping/work-tracking-dashboard-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/process-mapping/process-mapping/work-tracking-dashboard-workflow/metadata.json b/process-mapping/process-mapping/work-tracking-dashboard-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5ad951d0bc0a8cfad270ba8c5a3ba058d79c24ff --- /dev/null +++ b/process-mapping/process-mapping/work-tracking-dashboard-workflow/metadata.json @@ -0,0 +1,25 @@ +{ + "template_id": "work-tracking-dashboard-workflow", + "workflow_id": "work-tracking-dashboard", + "title": "Work Tracking Dashboard Workflow", + "kind": "workflow", + "source_domain": "Process Mapping", + "primary_use_case": "process-mapping", + "secondary_use_cases": [], + "use_cases": [ + "process-mapping" + ], + "complexity": 2, + "num_nodes": 12, + "num_lanes": 2, + "tags": [ + "process-mapping", + "tracking", + "dashboard", + "status", + "visibility" + ], + "description": "Work visibility workflow: create the centralized tracking record, define status categories, keep the information current and publish it on a central dashboard.", + "source_path": "", + "repo_path": "process-mapping/process-mapping/work-tracking-dashboard-workflow" +} diff --git a/process-mapping/process-mapping/work-tracking-dashboard-workflow/workflow.fz b/process-mapping/process-mapping/work-tracking-dashboard-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..1dd8f1f987e0641fd8174141e73a4d7d030c0b95 --- /dev/null +++ b/process-mapping/process-mapping/work-tracking-dashboard-workflow/workflow.fz @@ -0,0 +1,32 @@ +WorkInitiation { # WorkInitiation + n1: circle label:"Work Item Initiated" + n2: rectangle label:"Create Centralized Tracking Record" + n3: rectangle label:"Define Status Categories" + n4: rectangle label:"Update Progress Regularly" + n5: diamond label:"Milestone Achieved?" + n6: rectangle label:"Update Status Category" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n5.handle(top) -> n4.handle(top) [label="No - Continue work"] + n4.handle(right) -> n5.handle(left) + n5.handle(right) -> n6.handle(left) [label="Yes"] + n6.handle(bottom) -> n4.handle(bottom) + n6.handle(right) -> InformationAccess.n7.handle(left) +} + +InformationAccess { # InformationAccess + n7: circle label:"Status Query Initiated" + n8: rectangle label:"Access Central Dashboard" + n9: diamond label:"Information Current?" + n10: rectangle label:"Request Status Update" + n11: rectangle label:"Provide Current Status" + n12: circle label:"Query Resolved" + n9.handle(right) -> n12.handle(left) [label="Yes"] + n9.handle(bottom) -> n10.handle(top) [label="No - Update Required"] + n7.handle(right) -> n8.handle(left) + n8.handle(right) -> n9.handle(left) + n10.handle(right) -> n11.handle(left) + n12.handle(top) -> n4.handle(bottom) [label="Update dashboard"] + n11.handle(top) -> n12.handle(bottom) +} diff --git a/scripts/sync_templates.py b/scripts/sync_templates.py index 2fcfb45e36af1dc8045d71fdd15f82fff1458449..d283e0b66ac3f480071900ad2b259b9dc70dd2f9 100644 --- a/scripts/sync_templates.py +++ b/scripts/sync_templates.py @@ -2,6 +2,7 @@ from __future__ import annotations import csv import json +import os import re import shutil import urllib.request @@ -10,7 +11,9 @@ from collections import Counter from pathlib import Path REPO_ROOT = Path(__file__).resolve().parents[1] -FLOWZAP_APP_ROOT = REPO_ROOT.parent / 'FlowZap-App-v5' +FLOWZAP_APP_ROOT = Path( + os.environ.get('FLOWZAP_APP_ROOT') or (REPO_ROOT.parent / 'FlowZap-App-v5') +) TEMPLATES_INDEX_PATH = FLOWZAP_APP_ROOT / 'src' / 'templateLibrary' / 'templatesIndex.json' TEMPLATE_FILES_DIR = FLOWZAP_APP_ROOT / 'public' / 'template-files' SITEMAP_URL = 'https://flowzap.xyz/sitemap-templates.xml' @@ -86,6 +89,90 @@ USE_CASES = [ 'labels': {'en': 'Context Management', 'fr': 'Gestion de Contexte', 'zh': '上下文管理'}, 'keywords': ['context-management', 'session-memory', 'rolling-summary', 'profile-memory', 'semantic-memory', 'episodic-memory', 'hybrid-retrieval', 'shared-memory', 'vector-db', 'memory'], }, + # Domains the FlowZap library added after the first taxonomy. They are + # matched on the `domain` field, never guessed from keywords. + { + 'id': 'commerce-automation', + 'labels': {'en': 'Commerce Automation', 'fr': 'Automatisation commerciale', 'zh': '商业自动化'}, + 'domains': ['Commerce Automation'], + 'keywords': ['commerce', 'shopify', 'stripe', 'checkout', 'product sync'], + }, + { + 'id': 'process-mapping', + 'labels': {'en': 'Process Mapping', 'fr': 'Cartographie de processus', 'zh': '流程映射'}, + 'domains': ['Process Mapping'], + 'keywords': ['process mapping', 'as-is', 'to-be', 'process analysis'], + }, + { + 'id': 'agentic-architecture', + 'exclusive': True, + 'labels': {'en': 'Agentic Architecture', 'fr': 'Architecture agentique', 'zh': '智能体架构'}, + 'domains': ['Agentic Architecture'], + 'keywords': ['agentic architecture', 'self-improvement', 'reflection loop'], + }, + { + 'id': 'agentic-security', + 'exclusive': True, + 'labels': {'en': 'Agentic Security', 'fr': 'Sécurité agentique', 'zh': '智能体安全'}, + 'domains': ['Agentic Security'], + 'keywords': ['containment', 'permission gate', 'mandate', 'provenance', 'sandbox'], + }, + { + 'id': 'agent-simulation', + 'labels': {'en': 'Agent Simulation', 'fr': 'Simulation agentique', 'zh': '智能体模拟'}, + 'domains': ['Agent Simulation'], + 'keywords': ['synthetic focus group', 'simulation', 'agent world'], + }, + { + 'id': 'llm-operations', + 'labels': {'en': 'LLM Operations', 'fr': 'Opérations LLM', 'zh': 'LLM 运维'}, + 'domains': ['LLM Operations'], + 'keywords': ['prompt caching', 'model router', 'tool schema', 'compaction'], + }, + { + 'id': 'diagram-authoring', + 'exclusive': True, + 'labels': {'en': 'Diagram Authoring', 'fr': 'Rédaction de diagrammes', 'zh': '图表编写'}, + 'domains': ['Diagram Authoring'], + 'keywords': ['fz file', 'example diagram', 'authoring'], + }, + { + 'id': 'platform-reliability', + 'labels': {'en': 'Platform Reliability', 'fr': 'Fiabilité de plateforme', 'zh': '平台可靠性'}, + 'domains': ['Platform Reliability'], + 'keywords': ['failover', 'outage', 'multi-cloud mesh'], + }, + { + 'id': 'mindmap', + 'exclusive': True, + 'labels': {'en': 'Mind Map', 'fr': 'Carte mentale', 'zh': '思维导图'}, + 'domains': ['Mindmap'], + 'keywords': ['mind map', 'mindmap', 'root cause map'], + }, + { + 'id': 'syntax-primitives', + 'labels': {'en': 'Syntax Primitives', 'fr': 'Primitives de syntaxe', 'zh': '语法基础'}, + 'domains': ['syntax-primitives'], + 'keywords': ['basic lane', 'handle positions', 'all shapes'], + }, + { + 'id': 'edge-cases', + 'labels': {'en': 'Edge Cases', 'fr': 'Cas limites', 'zh': '边界情况'}, + 'domains': ['edge-cases'], + 'keywords': ['edge case', 'escaping', 'max nodes', 'duplicate node ids'], + }, + { + 'id': 'architecture', + 'labels': {'en': 'Reference Architecture', 'fr': 'Architectures de référence', 'zh': '参考架构'}, + 'domains': ['Architecture'], + 'keywords': ['microservices', 'event-driven', 'serverless', 'saga'], + }, + { + 'id': 'patterns', + 'labels': {'en': 'Patterns', 'fr': 'Patrons', 'zh': '模式'}, + 'domains': ['patterns'], + 'keywords': ['pattern', 'retry', 'circuit breaker', 'pub sub'], + }, ] LEGACY_TOP_LEVEL_DIRS = [ @@ -165,9 +252,30 @@ def compute_use_cases(entry: dict) -> list[str]: if part ) ) - matches: list[str] = [] + entry_domain = normalize_text(entry.get('domain') or '') + # A product area carried by the domain itself wins over wording: a template + # filed under "Agentic Architecture" stays there even though its text also + # says "agent". Without this the four newest areas stay empty forever. + matches: list[str] = [ + use_case['id'] + for use_case in USE_CASES + if use_case.get('exclusive') and entry_domain in [normalize_text(d) for d in use_case.get('domains') or []] + ] + # Intent next: a handoff stays a handoff even when its source domain is + # "Architecture". The domain mapping only rescues templates that no + # keyword classified. + matches += [ + use_case['id'] + for use_case in USE_CASES + if use_case['id'] not in matches + and any(normalize_text(keyword) in haystack for keyword in use_case['keywords']) + ] + if matches: + return matches + for use_case in USE_CASES: - if any(normalize_text(keyword) in haystack for keyword in use_case['keywords']): + domains = [normalize_text(d) for d in use_case.get('domains') or []] + if entry_domain and entry_domain in domains: matches.append(use_case['id']) return matches @@ -201,10 +309,15 @@ def make_readme(entry: dict, primary_use_case: str, secondary_use_cases: list[st return '\n'.join(lines).strip() + '\n' +KEPT_TOP_LEVEL_DIRS = {'scripts'} + + def clean_repo_root() -> None: - for name in LEGACY_TOP_LEVEL_DIRS: - path = REPO_ROOT / name - if path.is_dir(): + # Remove every generated top-level directory, not a hardcoded list: when the + # taxonomy changes, folders produced by an earlier run would otherwise + # survive and leave the same template committed in two paths. + for path in REPO_ROOT.iterdir(): + if path.is_dir() and path.name not in KEPT_TOP_LEVEL_DIRS and not path.name.startswith('.'): shutil.rmtree(path) for name in ('metadata.csv', 'templates.index.json', 'use-cases.index.json', 'README.md', 'CONTRIBUTING.md'): path = REPO_ROOT / name @@ -216,7 +329,7 @@ def write_root_docs(total_templates: int, counts: Counter) -> None: readme_lines = [ '# sequence-workflows', '', - f'A synchronized FlowZap template corpus with **{total_templates} canonical templates** sourced from `https://flowzap.xyz/sitemap-templates.xml` and organized by **primary Use Case**.', + f'A synchronized FlowZap template corpus with **{total_templates} canonical templates**, mirrored from the FlowZap template library and organized by **primary Use Case**.', '', '## Organization Model', '', @@ -241,9 +354,9 @@ def write_root_docs(total_templates: int, counts: Counter) -> None: '', '## Sync Source', '', - '- Canonical URL source: `https://flowzap.xyz/sitemap-templates.xml`', - '- Template metadata source: `FlowZap-App-v5/src/templateLibrary/templatesIndex.json`', - '- Template file source: `FlowZap-App-v5/public/template-files/*.fz`', + '- Template library (source of truth): `src/templateLibrary/templatesIndex.json` in the FlowZap app', + '- Template file source: `public/template-files/*.fz` in the FlowZap app', + '- Public listing check: `https://flowzap.xyz/sitemap-templates.xml` — a template missing from the sitemap is still mirrored, this list only reports the gap', ]) (REPO_ROOT / 'README.md').write_text('\n'.join(readme_lines).strip() + '\n', encoding='utf-8') @@ -276,17 +389,21 @@ def main() -> None: app_index = load_app_index() clean_repo_root() + # The app index is the source of truth: it holds every template the product + # ships. The sitemap only says which of them are publicly listed, so it can + # lag behind a release and must never shrink the corpus. + sitemap_slugs = set(canonical_slugs) + app_order = list(app_index.keys()) + sitemap_only = [slug for slug in canonical_slugs if slug not in app_index] + missing_from_sitemap = [slug for slug in app_order if slug not in sitemap_slugs] + templates_index: list[dict] = [] use_case_index = {use_case['id']: {'label': use_case['labels']['en'], 'count': 0, 'templates': []} for use_case in USE_CASES} use_case_index['uncategorized'] = {'label': 'Uncategorized', 'count': 0, 'templates': []} counts: Counter = Counter() - skipped_slugs: list[str] = [] - for slug in canonical_slugs: - entry = app_index.get(slug) - if entry is None: - skipped_slugs.append(slug) - continue + for slug in app_order: + entry = app_index[slug] template_file = TEMPLATE_FILES_DIR / f'{slug}.fz' if not template_file.exists(): raise SystemExit(f'Missing template file: {template_file}') @@ -372,9 +489,11 @@ def main() -> None: }) write_root_docs(len(templates_index), counts) - if skipped_slugs: - print('Skipped sitemap entries without template metadata:', ', '.join(skipped_slugs)) print(f'Synchronized {len(templates_index)} templates into {REPO_ROOT}') + if missing_from_sitemap: + print(f'Not yet in sitemap-templates.xml ({len(missing_from_sitemap)}): {", ".join(missing_from_sitemap[:15])}') + if sitemap_only: + print(f'Sitemap entries without template metadata, skipped ({len(sitemap_only)}): {", ".join(sitemap_only[:10])}') if __name__ == '__main__': diff --git a/security/architecture/event-driven-domain-events-architecture/README.md b/security/architecture/event-driven-domain-events-architecture/README.md index 383f6138d9a554612c733efb06889839996c03a4..c4bbe6787fbe1b2ea2f7f149b2889129c96ba0c2 100644 --- a/security/architecture/event-driven-domain-events-architecture/README.md +++ b/security/architecture/event-driven-domain-events-architecture/README.md @@ -6,7 +6,7 @@ A domain events architecture diagram showing how aggregate roots raise domain ev **Kind:** architecture **Source domain:** Architecture **Primary use case:** security -**Secondary use cases:** None +**Secondary use cases:** architecture **Complexity:** 4/5 **Nodes:** 17 **Lanes:** 4 diff --git a/security/architecture/event-driven-domain-events-architecture/metadata.json b/security/architecture/event-driven-domain-events-architecture/metadata.json index 646dda37e436678232bd23e62857c09eb8ea925d..284274f616e384a138e4165b2b0dd2ce6e40dd7a 100644 --- a/security/architecture/event-driven-domain-events-architecture/metadata.json +++ b/security/architecture/event-driven-domain-events-architecture/metadata.json @@ -5,9 +5,12 @@ "kind": "architecture", "source_domain": "Architecture", "primary_use_case": "security", - "secondary_use_cases": [], + "secondary_use_cases": [ + "architecture" + ], "use_cases": [ - "security" + "security", + "architecture" ], "complexity": 4, "num_nodes": 17, diff --git a/security/architecture/event-driven-domain-events-architecture/workflow.fz b/security/architecture/event-driven-domain-events-architecture/workflow.fz index 0c2a4aefe7e146e35206e87d42495b1c4befd6ab..e75a2d11edea7d7ba08e37702beafb2c19978dd6 100644 --- a/security/architecture/event-driven-domain-events-architecture/workflow.fz +++ b/security/architecture/event-driven-domain-events-architecture/workflow.fz @@ -1,42 +1,42 @@ -Domain { # Domain Layer -n1: circle label:"Business Operation" -n2: rectangle label:"Aggregate Root" -n3: rectangle label:"Apply Domain Logic" -n4: rectangle label:"Raise Domain Event" -n5: rectangle label:"Commit Unit of Work" -n1.handle(right) -> n2.handle(left) -n2.handle(right) -> n3.handle(left) [label="State Transition"] -n3.handle(right) -> n4.handle(left) [label="OrderShipped"] -n4.handle(right) -> n5.handle(left) [label="Transactional"] -n5.handle(bottom) -> Dispatcher.n6.handle(top) [label="After Commit"] -} -Dispatcher { # Event Dispatcher -n6: rectangle label:"Collect Pending Events" -n7: rectangle label:"Resolve Event Handlers" -n8: rectangle label:"Dispatch In-Process" -n9: rectangle label:"Dispatch Cross-Boundary" -n6.handle(right) -> n7.handle(left) [label="Event Queue"] -n7.handle(right) -> n8.handle(left) [label="Same Bounded Context"] -n7.handle(bottom) -> n9.handle(top) [label="External Context"] -n8.handle(bottom) -> Handlers.n10.handle(top) [label="Sync"] -n9.handle(bottom) -> Integration.n14.handle(top) [label="Async"] -} -Handlers { # In-Process Handlers -n10: rectangle label:"Update Read Cache" -n11: rectangle label:"Send Notification" -n12: rectangle label:"Trigger Side Effect" -n13: rectangle label:"Log Audit Entry" -n10.handle(right) -> n11.handle(left) -n11.handle(right) -> n12.handle(left) -n12.handle(right) -> n13.handle(left) -} -Integration { # Integration Events -n14: rectangle label:"Publish to Message Bus" -n15: rectangle label:"Billing Context Subscribes" -n16: rectangle label:"Shipping Context Subscribes" -n17: rectangle label:"Analytics Context Subscribes" -n14.handle(right) -> n15.handle(left) [label="BillingEvent"] -n14.handle(bottom) -> n16.handle(top) [label="ShippingEvent"] -n15.handle(right) -> n17.handle(left) -n16.handle(right) -> n17.handle(left) -} +Domain { # Domain Layer +n1: circle label:"Business Operation" +n2: rectangle label:"Aggregate Root" +n3: rectangle label:"Apply Domain Logic" +n4: rectangle label:"Raise Domain Event" +n5: rectangle label:"Commit Unit of Work" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) [label="State Transition"] +n3.handle(right) -> n4.handle(left) [label="OrderShipped"] +n4.handle(right) -> n5.handle(left) [label="Transactional"] +n5.handle(bottom) -> Dispatcher.n6.handle(top) [label="After Commit"] +} +Dispatcher { # Event Dispatcher +n6: rectangle label:"Collect Pending Events" +n7: rectangle label:"Resolve Event Handlers" +n8: rectangle label:"Dispatch In-Process" +n9: rectangle label:"Dispatch Cross-Boundary" +n6.handle(right) -> n7.handle(left) [label="Event Queue"] +n7.handle(right) -> n8.handle(left) [label="Same Bounded Context"] +n7.handle(bottom) -> n9.handle(top) [label="External Context"] +n8.handle(bottom) -> Handlers.n10.handle(top) [label="Sync"] +n9.handle(bottom) -> Integration.n14.handle(top) [label="Async"] +} +Handlers { # In-Process Handlers +n10: rectangle label:"Update Read Cache" +n11: rectangle label:"Send Notification" +n12: rectangle label:"Trigger Side Effect" +n13: rectangle label:"Log Audit Entry" +n10.handle(right) -> n11.handle(left) +n11.handle(right) -> n12.handle(left) +n12.handle(right) -> n13.handle(left) +} +Integration { # Integration Events +n14: rectangle label:"Publish to Message Bus" +n15: rectangle label:"Billing Context Subscribes" +n16: rectangle label:"Shipping Context Subscribes" +n17: rectangle label:"Analytics Context Subscribes" +n14.handle(right) -> n15.handle(left) [label="BillingEvent"] +n14.handle(bottom) -> n16.handle(top) [label="ShippingEvent"] +n15.handle(right) -> n17.handle(left) +n16.handle(right) -> n17.handle(left) +} diff --git a/security/architecture/mcp-zero-trust-boundary/README.md b/security/architecture/mcp-zero-trust-boundary/README.md new file mode 100644 index 0000000000000000000000000000000000000000..daabc40fa9ca03fdedda916b1d61d98eb0d47cf4 --- /dev/null +++ b/security/architecture/mcp-zero-trust-boundary/README.md @@ -0,0 +1,19 @@ +# MCP Zero-Trust Boundary + +MCP security gateway architecture that authenticates tool calls, routes execution into isolated sandboxes, sanitizes responses, and returns clean results to the AI agent. + +**Template ID:** `mcp-zero-trust-boundary` +**Kind:** architecture +**Source domain:** Architecture +**Primary use case:** security +**Secondary use cases:** mcp, agentic-security +**Complexity:** 3/5 +**Nodes:** 12 +**Lanes:** 3 +**Tags:** [MCP, Model Context Protocol, AI Agent Security, Zero Trust, MCP Security, Tool Sandbox, Sandbox, Prompt Injection, Secure Tool Calling] +**Source path:** `` +**Repo path:** `security/architecture/mcp-zero-trust-boundary` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/security/architecture/mcp-zero-trust-boundary/metadata.json b/security/architecture/mcp-zero-trust-boundary/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..64a3a1d202e2accd377ed5082b6316c3fe04be7a --- /dev/null +++ b/security/architecture/mcp-zero-trust-boundary/metadata.json @@ -0,0 +1,34 @@ +{ + "template_id": "mcp-zero-trust-boundary", + "workflow_id": "mcp-zero-trust-boundary", + "title": "MCP Zero-Trust Boundary", + "kind": "architecture", + "source_domain": "Architecture", + "primary_use_case": "security", + "secondary_use_cases": [ + "mcp", + "agentic-security" + ], + "use_cases": [ + "security", + "mcp", + "agentic-security" + ], + "complexity": 3, + "num_nodes": 12, + "num_lanes": 3, + "tags": [ + "MCP", + "Model Context Protocol", + "AI Agent Security", + "Zero Trust", + "MCP Security", + "Tool Sandbox", + "Sandbox", + "Prompt Injection", + "Secure Tool Calling" + ], + "description": "MCP security gateway architecture that authenticates tool calls, routes execution into isolated sandboxes, sanitizes responses, and returns clean results to the AI agent.", + "source_path": "", + "repo_path": "security/architecture/mcp-zero-trust-boundary" +} diff --git a/security/architecture/mcp-zero-trust-boundary/workflow.fz b/security/architecture/mcp-zero-trust-boundary/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..ba93128618adc5e832e7c4de027405f0380245e2 --- /dev/null +++ b/security/architecture/mcp-zero-trust-boundary/workflow.fz @@ -0,0 +1,31 @@ +Agent { # AI Agent +n1: circle label:"Start" +n2: rectangle label:"Request tool invocation" +n3: rectangle label:"Receive clean response" +n4: circle label:"Done" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> MCPGateway.n5.handle(top) [label="Tool call + OBO token"] +n3.handle(right) -> n4.handle(left) +} + +MCPGateway { # MCP Security Gateway +n5: rectangle label:"Authenticate + check registry" +n6: rectangle label:"Route to sandbox" +n7: rectangle label:"Receive sandbox result" +n8: rectangle label:"Forward clean response" +n5.handle(right) -> n6.handle(left) +n6.handle(bottom) -> ToolSandbox.n9.handle(top) [label="Sandbox request"] +n7.handle(right) -> n8.handle(left) +n8.handle(top) -> Agent.n3.handle(bottom) [label="Sanitized response"] +} + +ToolSandbox { # Tool Sandbox +n9: rectangle label:"Execute in isolated container" +n10: rectangle label:"Validate response" +n11: rectangle label:"Strip injection payloads" +n12: rectangle label:"Return clean result" +n9.handle(right) -> n10.handle(left) +n10.handle(right) -> n11.handle(left) +n11.handle(right) -> n12.handle(left) +n12.handle(top) -> MCPGateway.n7.handle(bottom) [label="Clean result"] +} diff --git a/security/architecture/microservices-api-gateway-architecture/README.md b/security/architecture/microservices-api-gateway-architecture/README.md index c2f9453841e548555198c51631a798b655bf785c..9986aa11fde51d07e6abb7cfe239733f791482f8 100644 --- a/security/architecture/microservices-api-gateway-architecture/README.md +++ b/security/architecture/microservices-api-gateway-architecture/README.md @@ -6,7 +6,7 @@ A microservices API gateway architecture diagram showing request routing, JWT au **Kind:** architecture **Source domain:** Architecture **Primary use case:** security -**Secondary use cases:** mcp +**Secondary use cases:** mcp, architecture **Complexity:** 4/5 **Nodes:** 17 **Lanes:** 3 diff --git a/security/architecture/microservices-api-gateway-architecture/metadata.json b/security/architecture/microservices-api-gateway-architecture/metadata.json index 049c644a79ddb0f40b12299b591412748cb9a452..95e47dbd84c143f6503ff777f96bada6b25ab1b6 100644 --- a/security/architecture/microservices-api-gateway-architecture/metadata.json +++ b/security/architecture/microservices-api-gateway-architecture/metadata.json @@ -6,11 +6,13 @@ "source_domain": "Architecture", "primary_use_case": "security", "secondary_use_cases": [ - "mcp" + "mcp", + "architecture" ], "use_cases": [ "security", - "mcp" + "mcp", + "architecture" ], "complexity": 4, "num_nodes": 17, diff --git a/security/architecture/microservices-api-gateway-architecture/workflow.fz b/security/architecture/microservices-api-gateway-architecture/workflow.fz index 248d0f02497ab261a3d50803ee74d107a738ffca..72680228519bdd93af5c899ea50596cd50da04c0 100644 --- a/security/architecture/microservices-api-gateway-architecture/workflow.fz +++ b/security/architecture/microservices-api-gateway-architecture/workflow.fz @@ -1,52 +1,52 @@ -Client { # Client Application -n1: circle label:"Incoming Request" -n2: rectangle label:"Load Balancer" -n21: rectangle label:"Receive API Response" -n22: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(bottom) -> Gateway.n3.handle(top) [label="Route Request"] -n21.handle(right) -> n22.handle(left) -} -Gateway { # API Gateway -n3: rectangle label:"Authenticate JWT Token" -n4: diamond label:"Token Valid?" -n5: rectangle label:"Apply Rate Limiting" -n6: rectangle label:"Return 401 Unauthorized" -n7: diamond label:"Rate Limit OK?" -n8: rectangle label:"Route to Microservice" -n9: rectangle label:"Return 429 Throttled" -n18: rectangle label:"Aggregate Responses" -n19: rectangle label:"Format Response" -n20: rectangle label:"Send to Client" -n3.handle(right) -> n4.handle(left) -n4.handle(right) -> n5.handle(left) [label="Yes"] -n4.handle(bottom) -> n6.handle(top) [label="No"] -n5.handle(right) -> n7.handle(left) -n6.handle(top) -> Client.n21.handle(bottom) [label="401"] -n7.handle(right) -> n8.handle(left) [label="Yes"] -n7.handle(bottom) -> n9.handle(top) [label="No"] -n8.handle(bottom) -> Services.n10.handle(top) [label="Forward"] -n9.handle(top) -> Client.n21.handle(bottom) [label="429"] -n18.handle(right) -> n19.handle(left) -n19.handle(right) -> n20.handle(left) -n20.handle(top) -> Client.n21.handle(bottom) [label="Response"] -} -Services { # Microservices Cluster -n10: rectangle label:"Service Discovery Lookup" -n11: rectangle label:"User Service" -n12: rectangle label:"Order Service" -n13: rectangle label:"Inventory Service" -n14: rectangle label:"Compose Response" -n15: rectangle label:"Prepare Aggregated Data" -n16: rectangle label:"Forward Aggregated Data" -n17: rectangle label:"Send to Gateway" -n10.handle(right) -> n11.handle(left) [label="Users"] -n10.handle(bottom) -> n12.handle(top) [label="Orders"] -n11.handle(right) -> n14.handle(left) -n12.handle(right) -> n13.handle(left) [label="Check Stock"] -n13.handle(right) -> n14.handle(left) -n14.handle(right) -> n15.handle(left) -n15.handle(right) -> n16.handle(left) -n16.handle(right) -> n17.handle(left) -n17.handle(top) -> Gateway.n18.handle(bottom) [label="Aggregated"] -} +Client { # Client Application +n1: circle label:"Incoming Request" +n2: rectangle label:"Load Balancer" +n21: rectangle label:"Receive API Response" +n22: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> Gateway.n3.handle(top) [label="Route Request"] +n21.handle(right) -> n22.handle(left) +} +Gateway { # API Gateway +n3: rectangle label:"Authenticate JWT Token" +n4: diamond label:"Token Valid?" +n5: rectangle label:"Apply Rate Limiting" +n6: rectangle label:"Return 401 Unauthorized" +n7: diamond label:"Rate Limit OK?" +n8: rectangle label:"Route to Microservice" +n9: rectangle label:"Return 429 Throttled" +n18: rectangle label:"Aggregate Responses" +n19: rectangle label:"Format Response" +n20: rectangle label:"Send to Client" +n3.handle(right) -> n4.handle(left) +n4.handle(right) -> n5.handle(left) [label="Yes"] +n4.handle(bottom) -> n6.handle(top) [label="No"] +n5.handle(right) -> n7.handle(left) +n6.handle(top) -> Client.n21.handle(bottom) [label="401"] +n7.handle(right) -> n8.handle(left) [label="Yes"] +n7.handle(bottom) -> n9.handle(top) [label="No"] +n8.handle(bottom) -> Services.n10.handle(top) [label="Forward"] +n9.handle(top) -> Client.n21.handle(bottom) [label="429"] +n18.handle(right) -> n19.handle(left) +n19.handle(right) -> n20.handle(left) +n20.handle(top) -> Client.n21.handle(bottom) [label="Response"] +} +Services { # Microservices Cluster +n10: rectangle label:"Service Discovery Lookup" +n11: rectangle label:"User Service" +n12: rectangle label:"Order Service" +n13: rectangle label:"Inventory Service" +n14: rectangle label:"Compose Response" +n15: rectangle label:"Prepare Aggregated Data" +n16: rectangle label:"Forward Aggregated Data" +n17: rectangle label:"Send to Gateway" +n10.handle(right) -> n11.handle(left) [label="Users"] +n10.handle(bottom) -> n12.handle(top) [label="Orders"] +n11.handle(right) -> n14.handle(left) +n12.handle(right) -> n13.handle(left) [label="Check Stock"] +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) +n15.handle(right) -> n16.handle(left) +n16.handle(right) -> n17.handle(left) +n17.handle(top) -> Gateway.n18.handle(bottom) [label="Aggregated"] +} diff --git a/security/architecture/multi-tenant-saas-architecture/workflow.fz b/security/architecture/multi-tenant-saas-architecture/workflow.fz index 333f84ef5ee508e1d0930b41f9632c0d5bb1c61f..d9d92a7365fe0f7a2777aef262aec5e697201820 100644 --- a/security/architecture/multi-tenant-saas-architecture/workflow.fz +++ b/security/architecture/multi-tenant-saas-architecture/workflow.fz @@ -1,50 +1,50 @@ -Tenant { # Tenant Request -n1: circle label:"Tenant API Call" -n2: rectangle label:"Tenant Identification" -n20: rectangle label:"Receive Response" -n21: circle label:"End" -n1.handle(right) -> n2.handle(left) [label="X-Tenant-ID"] -n2.handle(bottom) -> Routing.n3.handle(top) [label="Resolve Tenant"] -n20.handle(right) -> n21.handle(left) -} -Routing { # Tenant Routing Layer -n3: rectangle label:"Tenant Config Lookup" -n4: diamond label:"Isolation Model?" -n5: rectangle label:"Route to Shared Pool" -n6: rectangle label:"Route to Dedicated Pool" -n7: rectangle label:"Apply Tenant Rate Limits" -n18: rectangle label:"Receive App Response" -n19: rectangle label:"Forward to Tenant" -n3.handle(right) -> n4.handle(left) [label="Tier"] -n4.handle(right) -> n5.handle(left) [label="Standard Tier"] -n4.handle(bottom) -> n6.handle(top) [label="Enterprise Tier"] -n5.handle(right) -> n7.handle(left) -n6.handle(right) -> n7.handle(left) -n7.handle(bottom) -> Application.n8.handle(top) [label="Tenant Context"] -n18.handle(right) -> n19.handle(left) -n19.handle(top) -> Tenant.n20.handle(bottom) [label="Response"] -} -Application { # Application Layer -n8: rectangle label:"Inject Tenant Context" -n9: rectangle label:"Execute Business Logic" -n10: rectangle label:"Apply Row-Level Security" -n15: rectangle label:"Receive Query Results" -n16: rectangle label:"Return Tenant-Scoped Data" -n17: rectangle label:"Forward to Routing" -n8.handle(right) -> n9.handle(left) [label="Middleware"] -n9.handle(right) -> n10.handle(left) [label="Query"] -n10.handle(bottom) -> DataLayer.n11.handle(top) [label="Tenant Filter"] -n15.handle(right) -> n16.handle(left) [label="Filtered"] -n16.handle(right) -> n17.handle(left) -n17.handle(top) -> Routing.n18.handle(bottom) [label="App Response"] -} -DataLayer { # Data Isolation -n11: rectangle label:"Shared Database (Schema per Tenant)" -n12: rectangle label:"Dedicated Database (Enterprise)" -n13: rectangle label:"Tenant Encryption Keys" -n14: rectangle label:"Return Query Results" -n11.handle(right) -> n13.handle(left) [label="Encrypt at Rest"] -n12.handle(right) -> n13.handle(left) [label="Dedicated Key"] -n13.handle(right) -> n14.handle(left) -n14.handle(top) -> Application.n15.handle(bottom) [label="Data Results"] -} +Tenant { # Tenant Request +n1: circle label:"Tenant API Call" +n2: rectangle label:"Tenant Identification" +n20: rectangle label:"Receive Response" +n21: circle label:"End" +n1.handle(right) -> n2.handle(left) [label="X-Tenant-ID"] +n2.handle(bottom) -> Routing.n3.handle(top) [label="Resolve Tenant"] +n20.handle(right) -> n21.handle(left) +} +Routing { # Tenant Routing Layer +n3: rectangle label:"Tenant Config Lookup" +n4: diamond label:"Isolation Model?" +n5: rectangle label:"Route to Shared Pool" +n6: rectangle label:"Route to Dedicated Pool" +n7: rectangle label:"Apply Tenant Rate Limits" +n18: rectangle label:"Receive App Response" +n19: rectangle label:"Forward to Tenant" +n3.handle(right) -> n4.handle(left) [label="Tier"] +n4.handle(right) -> n5.handle(left) [label="Standard Tier"] +n4.handle(bottom) -> n6.handle(top) [label="Enterprise Tier"] +n5.handle(right) -> n7.handle(left) +n6.handle(right) -> n7.handle(left) +n7.handle(bottom) -> Application.n8.handle(top) [label="Tenant Context"] +n18.handle(right) -> n19.handle(left) +n19.handle(top) -> Tenant.n20.handle(bottom) [label="Response"] +} +Application { # Application Layer +n8: rectangle label:"Inject Tenant Context" +n9: rectangle label:"Execute Business Logic" +n10: rectangle label:"Apply Row-Level Security" +n15: rectangle label:"Receive Query Results" +n16: rectangle label:"Return Tenant-Scoped Data" +n17: rectangle label:"Forward to Routing" +n8.handle(right) -> n9.handle(left) [label="Middleware"] +n9.handle(right) -> n10.handle(left) [label="Query"] +n10.handle(bottom) -> DataLayer.n11.handle(top) [label="Tenant Filter"] +n15.handle(right) -> n16.handle(left) [label="Filtered"] +n16.handle(right) -> n17.handle(left) +n17.handle(top) -> Routing.n18.handle(bottom) [label="App Response"] +} +DataLayer { # Data Isolation +n11: rectangle label:"Shared Database (Schema per Tenant)" +n12: rectangle label:"Dedicated Database (Enterprise)" +n13: rectangle label:"Tenant Encryption Keys" +n14: rectangle label:"Return Query Results" +n11.handle(right) -> n13.handle(left) [label="Encrypt at Rest"] +n12.handle(right) -> n13.handle(left) [label="Dedicated Key"] +n13.handle(right) -> n14.handle(left) +n14.handle(top) -> Application.n15.handle(bottom) [label="Data Results"] +} diff --git a/security/architecture/runtime-permission-gating/README.md b/security/architecture/runtime-permission-gating/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2d617426d563e145e209430a3f9c04455db486e1 --- /dev/null +++ b/security/architecture/runtime-permission-gating/README.md @@ -0,0 +1,19 @@ +# Runtime Permission Gating + +Least-privilege AI agent architecture with policy-engine evaluation, just-in-time access, short-lived credentials, and action-scoped grants before tool execution. + +**Template ID:** `runtime-permission-gating` +**Kind:** architecture +**Source domain:** Architecture +**Primary use case:** security +**Secondary use cases:** compliance +**Complexity:** 3/5 +**Nodes:** 11 +**Lanes:** 3 +**Tags:** [AI Agent Security, Least Privilege, Permission Gating, AI Agent Permissions, JIT Access, Policy Engine, RBAC, ABAC, OPA, Cerbos] +**Source path:** `` +**Repo path:** `security/architecture/runtime-permission-gating` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/security/architecture/runtime-permission-gating/metadata.json b/security/architecture/runtime-permission-gating/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1c298c3ae5c1c3be547304b0d9772722b0a5f393 --- /dev/null +++ b/security/architecture/runtime-permission-gating/metadata.json @@ -0,0 +1,33 @@ +{ + "template_id": "runtime-permission-gating", + "workflow_id": "runtime-permission-gating", + "title": "Runtime Permission Gating", + "kind": "architecture", + "source_domain": "Architecture", + "primary_use_case": "security", + "secondary_use_cases": [ + "compliance" + ], + "use_cases": [ + "security", + "compliance" + ], + "complexity": 3, + "num_nodes": 11, + "num_lanes": 3, + "tags": [ + "AI Agent Security", + "Least Privilege", + "Permission Gating", + "AI Agent Permissions", + "JIT Access", + "Policy Engine", + "RBAC", + "ABAC", + "OPA", + "Cerbos" + ], + "description": "Least-privilege AI agent architecture with policy-engine evaluation, just-in-time access, short-lived credentials, and action-scoped grants before tool execution.", + "source_path": "", + "repo_path": "security/architecture/runtime-permission-gating" +} diff --git a/security/architecture/runtime-permission-gating/workflow.fz b/security/architecture/runtime-permission-gating/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..59339659be34801fbf9b3e03b895ee46608bcecb --- /dev/null +++ b/security/architecture/runtime-permission-gating/workflow.fz @@ -0,0 +1,29 @@ +Agent { # AI Agent +n1: circle label:"Start" +n2: rectangle label:"Request tool action" +n3: rectangle label:"Receive grant" +n4: rectangle label:"Execute scoped action" +n5: circle label:"Done" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> PolicyEngine.n6.handle(top) [label="Action + context"] +n3.handle(right) -> n4.handle(left) +n4.handle(right) -> n5.handle(left) +} + +PolicyEngine { # Policy Engine +n6: rectangle label:"Evaluate RBAC + ABAC" +n7: rectangle label:"Issue JIT grant request" +n8: rectangle label:"Receive JIT credential" +n9: rectangle label:"Return scoped grant" +n6.handle(right) -> n7.handle(left) +n7.handle(bottom) -> JITManager.n10.handle(top) [label="Grant request"] +n8.handle(right) -> n9.handle(left) +n9.handle(top) -> Agent.n3.handle(bottom) [label="Scoped grant"] +} + +JITManager { # JIT Access Manager +n10: rectangle label:"Create short-lived credential" +n11: rectangle label:"Return JIT credential" +n10.handle(right) -> n11.handle(left) +n11.handle(top) -> PolicyEngine.n8.handle(bottom) [label="JIT credential"] +} diff --git a/security/architecture/secure-multi-agent-communication/README.md b/security/architecture/secure-multi-agent-communication/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ad8c5e6faf6538f4045476be8206efc45b1e743e --- /dev/null +++ b/security/architecture/secure-multi-agent-communication/README.md @@ -0,0 +1,19 @@ +# Secure Multi-Agent Communication + +Multi-agent security architecture with scoped tokens, API gateway enforcement, mTLS-protected worker calls, and orchestrator-driven result aggregation. + +**Template ID:** `secure-multi-agent-communication` +**Kind:** architecture +**Source domain:** Architecture +**Primary use case:** security +**Secondary use cases:** agentic, mcp +**Complexity:** 4/5 +**Nodes:** 20 +**Lanes:** 4 +**Tags:** [Multi-Agent, AI Agent Security, Secure Multi-Agent, mTLS, API Gateway, Scoped Tokens, Agent-to-Agent Communication, A2A, Orchestrator, Worker Agent] +**Source path:** `` +**Repo path:** `security/architecture/secure-multi-agent-communication` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/security/architecture/secure-multi-agent-communication/metadata.json b/security/architecture/secure-multi-agent-communication/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ae6bf6b6e1675972a8ad7f3c383913f05b75b5ab --- /dev/null +++ b/security/architecture/secure-multi-agent-communication/metadata.json @@ -0,0 +1,35 @@ +{ + "template_id": "secure-multi-agent-communication", + "workflow_id": "secure-multi-agent-communication", + "title": "Secure Multi-Agent Communication", + "kind": "architecture", + "source_domain": "Architecture", + "primary_use_case": "security", + "secondary_use_cases": [ + "agentic", + "mcp" + ], + "use_cases": [ + "security", + "agentic", + "mcp" + ], + "complexity": 4, + "num_nodes": 20, + "num_lanes": 4, + "tags": [ + "Multi-Agent", + "AI Agent Security", + "Secure Multi-Agent", + "mTLS", + "API Gateway", + "Scoped Tokens", + "Agent-to-Agent Communication", + "A2A", + "Orchestrator", + "Worker Agent" + ], + "description": "Multi-agent security architecture with scoped tokens, API gateway enforcement, mTLS-protected worker calls, and orchestrator-driven result aggregation.", + "source_path": "", + "repo_path": "security/architecture/secure-multi-agent-communication" +} diff --git a/security/architecture/secure-multi-agent-communication/workflow.fz b/security/architecture/secure-multi-agent-communication/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..8857a38f5265139c71d61f3b663200ab41f8ca18 --- /dev/null +++ b/security/architecture/secure-multi-agent-communication/workflow.fz @@ -0,0 +1,50 @@ +Orchestrator { # Orchestrator Agent +n1: circle label:"Receive task" +n2: rectangle label:"Decompose subtasks" +n3: rectangle label:"Send subtask A" +n4: rectangle label:"Receive result A" +n5: rectangle label:"Send subtask B" +n6: rectangle label:"Receive result B" +n7: rectangle label:"Aggregate results" +n8: circle label:"Return answer" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(bottom) -> Gateway.n9.handle(top) [label="Subtask A + scoped token"] +n4.handle(right) -> n5.handle(left) +n5.handle(bottom) -> Gateway.n13.handle(top) [label="Subtask B + scoped token"] +n6.handle(right) -> n7.handle(left) +n7.handle(right) -> n8.handle(left) +} + +Gateway { # API Gateway +n9: rectangle label:"Validate request A" +n10: rectangle label:"Route to worker A" +n11: rectangle label:"Receive result A" +n12: rectangle label:"Forward result A" +n13: rectangle label:"Validate request B" +n14: rectangle label:"Route to worker B" +n15: rectangle label:"Receive result B" +n16: rectangle label:"Forward result B" +n9.handle(right) -> n10.handle(left) +n10.handle(right) -> WorkerA.n17.handle(left) [label="Validated request A"] +n11.handle(right) -> n12.handle(left) +n12.handle(top) -> Orchestrator.n4.handle(bottom) [label="Result A"] +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> WorkerB.n19.handle(left) [label="Validated request B"] +n15.handle(right) -> n16.handle(left) +n16.handle(top) -> Orchestrator.n6.handle(bottom) [label="Result B"] +} + +WorkerA { # Worker Agent A +n17: rectangle label:"Validate token + execute" +n18: rectangle label:"Return result A" +n17.handle(right) -> n18.handle(left) +n18.handle(top) -> Gateway.n11.handle(bottom) [label="mTLS result A"] +} + +WorkerB { # Worker Agent B +n19: rectangle label:"Validate token + execute" +n20: rectangle label:"Return result B" +n19.handle(right) -> n20.handle(left) +n20.handle(top) -> Gateway.n15.handle(bottom) [label="mTLS result B"] +} diff --git a/security/architecture/zero-trust-agent-identity-pipeline/README.md b/security/architecture/zero-trust-agent-identity-pipeline/README.md new file mode 100644 index 0000000000000000000000000000000000000000..090eaec3eaf1424e37ddeccab82400ef5e08cf02 --- /dev/null +++ b/security/architecture/zero-trust-agent-identity-pipeline/README.md @@ -0,0 +1,19 @@ +# Zero Trust Agent Identity Pipeline + +Zero-trust AI agent identity architecture with JWT validation, scoped OBO token exchange, SPIFFE/SVID workload identity, and MCP tool authorization. + +**Template ID:** `zero-trust-agent-identity-pipeline` +**Kind:** architecture +**Source domain:** Architecture +**Primary use case:** security +**Secondary use cases:** delivery, mcp +**Complexity:** 3/5 +**Nodes:** 12 +**Lanes:** 3 +**Tags:** [AI Agent Security, Zero Trust, Agent Identity, Non-Human Identity, NHI, OAuth 2.0 Token Exchange, OBO Token, SPIFFE, MCP, JWT] +**Source path:** `` +**Repo path:** `security/architecture/zero-trust-agent-identity-pipeline` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/security/architecture/zero-trust-agent-identity-pipeline/metadata.json b/security/architecture/zero-trust-agent-identity-pipeline/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..baacc3a0dafa167da312ccad22091dfb0eddb339 --- /dev/null +++ b/security/architecture/zero-trust-agent-identity-pipeline/metadata.json @@ -0,0 +1,35 @@ +{ + "template_id": "zero-trust-agent-identity-pipeline", + "workflow_id": "zero-trust-agent-identity-pipeline", + "title": "Zero Trust Agent Identity Pipeline", + "kind": "architecture", + "source_domain": "Architecture", + "primary_use_case": "security", + "secondary_use_cases": [ + "delivery", + "mcp" + ], + "use_cases": [ + "security", + "delivery", + "mcp" + ], + "complexity": 3, + "num_nodes": 12, + "num_lanes": 3, + "tags": [ + "AI Agent Security", + "Zero Trust", + "Agent Identity", + "Non-Human Identity", + "NHI", + "OAuth 2.0 Token Exchange", + "OBO Token", + "SPIFFE", + "MCP", + "JWT" + ], + "description": "Zero-trust AI agent identity architecture with JWT validation, scoped OBO token exchange, SPIFFE/SVID workload identity, and MCP tool authorization.", + "source_path": "", + "repo_path": "security/architecture/zero-trust-agent-identity-pipeline" +} diff --git a/security/architecture/zero-trust-agent-identity-pipeline/workflow.fz b/security/architecture/zero-trust-agent-identity-pipeline/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..653b153bd70db851716be8bab6b15f204536b0d5 --- /dev/null +++ b/security/architecture/zero-trust-agent-identity-pipeline/workflow.fz @@ -0,0 +1,31 @@ +User { # User +n1: circle label:"Start" +n2: rectangle label:"Send request + user JWT" +n3: rectangle label:"Receive approval" +n4: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> AgentPlatform.n5.handle(top) [label="User JWT"] +n3.handle(right) -> n4.handle(left) +} + +AgentPlatform { # Agent Platform +n5: rectangle label:"Validate JWT + agent ID" +n6: rectangle label:"Exchange for scoped OBO token" +n7: rectangle label:"Receive tool result" +n8: rectangle label:"Return approval" +n5.handle(right) -> n6.handle(left) +n6.handle(bottom) -> MCPTool.n9.handle(top) [label="Scoped OBO token"] +n7.handle(right) -> n8.handle(left) +n8.handle(top) -> User.n3.handle(bottom) [label="Approved"] +} + +MCPTool { # MCP Tool +n9: rectangle label:"Validate scoped token" +n10: rectangle label:"Check SPIFFE SVID" +n11: rectangle label:"Execute tool call" +n12: rectangle label:"Return tool result" +n9.handle(right) -> n10.handle(left) +n10.handle(right) -> n11.handle(left) +n11.handle(right) -> n12.handle(left) +n12.handle(top) -> AgentPlatform.n7.handle(bottom) [label="Result"] +} diff --git a/security/architecture/zero-trust-security-architecture/workflow.fz b/security/architecture/zero-trust-security-architecture/workflow.fz index 05084745258deddc32fb780365504772596ff5cd..c7bab98776668293a31b868c04ed442033d53e15 100644 --- a/security/architecture/zero-trust-security-architecture/workflow.fz +++ b/security/architecture/zero-trust-security-architecture/workflow.fz @@ -1,65 +1,65 @@ -User { # User / Device -n1: circle label:"Access Request" -n2: rectangle label:"Device Posture Check" -n3: rectangle label:"Identity Verification (MFA)" -n28: rectangle label:"Receive Access Decision" -n29: circle label:"Access Granted or Denied" -n1.handle(right) -> n2.handle(left) -n2.handle(right) -> n3.handle(left) [label="Device Compliant"] -n3.handle(bottom) -> PolicyEngine.n4.handle(top) [label="Authenticate"] -n28.handle(right) -> n29.handle(left) -} -PolicyEngine { # Policy Decision Point -n4: rectangle label:"Evaluate Identity Context" -n5: rectangle label:"Check Risk Score" -n6: diamond label:"Trust Level Sufficient?" -n7: rectangle label:"Issue Short-Lived Token" -n8: rectangle label:"Deny and Log" -n9: rectangle label:"Step-Up Authentication" -n24: rectangle label:"Receive Enforcement Result" -n25: rectangle label:"Forward to User" -n4.handle(right) -> n5.handle(left) [label="Context"] -n5.handle(right) -> n6.handle(left) -n6.handle(right) -> n7.handle(left) [label="Trusted"] -n6.handle(bottom) -> n8.handle(top) [label="Denied"] -n6.handle(left) -> n9.handle(right) [label="Elevated"] -n7.handle(bottom) -> Enforcement.n10.handle(top) [label="JWT (5 min TTL)"] -n8.handle(top) -> User.n28.handle(bottom) [label="403"] -n24.handle(right) -> n25.handle(left) -n25.handle(top) -> User.n28.handle(bottom) [label="Access Result"] -} -Enforcement { # Policy Enforcement Points -n10: rectangle label:"Micro-Segmentation Gateway" -n11: rectangle label:"Encrypt All Traffic (mTLS)" -n12: rectangle label:"Least-Privilege Access" -n22: rectangle label:"Receive Resource Response" -n23: rectangle label:"Forward to PolicyEngine" -n26: rectangle label:"Monitoring Dashboard" -n27: rectangle label:"Threat Detection" -n10.handle(right) -> n11.handle(left) [label="Segment"] -n11.handle(right) -> n12.handle(left) [label="Encrypted"] -n12.handle(bottom) -> Resources.n13.handle(top) [label="Scoped Access"] -n22.handle(right) -> n23.handle(left) -n23.handle(top) -> PolicyEngine.n24.handle(bottom) [label="Enforcement Result"] -n26.handle(right) -> n27.handle(left) [label="Detect"] -} -Resources { # Protected Resources -n13: rectangle label:"Application Service" -n14: rectangle label:"Database" -n15: rectangle label:"API Endpoint" -n16: rectangle label:"Audit Log" -n17: rectangle label:"Prepare Response" -n18: rectangle label:"Package Response" -n19: rectangle label:"Forward Response" -n20: rectangle label:"Continuous Monitoring" -n21: rectangle label:"Send to Enforcement" -n13.handle(right) -> n14.handle(left) [label="Query"] -n14.handle(right) -> n15.handle(left) [label="Call"] -n15.handle(right) -> n16.handle(left) [label="Log Access"] -n16.handle(right) -> n17.handle(left) -n17.handle(right) -> n18.handle(left) -n18.handle(right) -> n19.handle(left) -n19.handle(right) -> n20.handle(left) -n20.handle(right) -> n21.handle(left) -n21.handle(top) -> Enforcement.n22.handle(bottom) [label="Resource Response"] -} +User { # User / Device +n1: circle label:"Access Request" +n2: rectangle label:"Device Posture Check" +n3: rectangle label:"Identity Verification (MFA)" +n28: rectangle label:"Receive Access Decision" +n29: circle label:"Access Granted or Denied" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) [label="Device Compliant"] +n3.handle(bottom) -> PolicyEngine.n4.handle(top) [label="Authenticate"] +n28.handle(right) -> n29.handle(left) +} +PolicyEngine { # Policy Decision Point +n4: rectangle label:"Evaluate Identity Context" +n5: rectangle label:"Check Risk Score" +n6: diamond label:"Trust Level Sufficient?" +n7: rectangle label:"Issue Short-Lived Token" +n8: rectangle label:"Deny and Log" +n9: rectangle label:"Step-Up Authentication" +n24: rectangle label:"Receive Enforcement Result" +n25: rectangle label:"Forward to User" +n4.handle(right) -> n5.handle(left) [label="Context"] +n5.handle(right) -> n6.handle(left) +n6.handle(right) -> n7.handle(left) [label="Trusted"] +n6.handle(bottom) -> n8.handle(top) [label="Denied"] +n6.handle(left) -> n9.handle(right) [label="Elevated"] +n7.handle(bottom) -> Enforcement.n10.handle(top) [label="JWT (5 min TTL)"] +n8.handle(top) -> User.n28.handle(bottom) [label="403"] +n24.handle(right) -> n25.handle(left) +n25.handle(top) -> User.n28.handle(bottom) [label="Access Result"] +} +Enforcement { # Policy Enforcement Points +n10: rectangle label:"Micro-Segmentation Gateway" +n11: rectangle label:"Encrypt All Traffic (mTLS)" +n12: rectangle label:"Least-Privilege Access" +n22: rectangle label:"Receive Resource Response" +n23: rectangle label:"Forward to PolicyEngine" +n26: rectangle label:"Monitoring Dashboard" +n27: rectangle label:"Threat Detection" +n10.handle(right) -> n11.handle(left) [label="Segment"] +n11.handle(right) -> n12.handle(left) [label="Encrypted"] +n12.handle(bottom) -> Resources.n13.handle(top) [label="Scoped Access"] +n22.handle(right) -> n23.handle(left) +n23.handle(top) -> PolicyEngine.n24.handle(bottom) [label="Enforcement Result"] +n26.handle(right) -> n27.handle(left) [label="Detect"] +} +Resources { # Protected Resources +n13: rectangle label:"Application Service" +n14: rectangle label:"Database" +n15: rectangle label:"API Endpoint" +n16: rectangle label:"Audit Log" +n17: rectangle label:"Prepare Response" +n18: rectangle label:"Package Response" +n19: rectangle label:"Forward Response" +n20: rectangle label:"Continuous Monitoring" +n21: rectangle label:"Send to Enforcement" +n13.handle(right) -> n14.handle(left) [label="Query"] +n14.handle(right) -> n15.handle(left) [label="Call"] +n15.handle(right) -> n16.handle(left) [label="Log Access"] +n16.handle(right) -> n17.handle(left) +n17.handle(right) -> n18.handle(left) +n18.handle(right) -> n19.handle(left) +n19.handle(right) -> n20.handle(left) +n20.handle(right) -> n21.handle(left) +n21.handle(top) -> Enforcement.n22.handle(bottom) [label="Resource Response"] +} diff --git a/security/business-operations/api-key-rotation-workflow/workflow.fz b/security/business-operations/api-key-rotation-workflow/workflow.fz index 46ba024f37c6099a9558fe869ba16918f550f73a..e093078ce95321b19cc2d0afa3dad0cc783a9ded 100644 --- a/security/business-operations/api-key-rotation-workflow/workflow.fz +++ b/security/business-operations/api-key-rotation-workflow/workflow.fz @@ -1,47 +1,47 @@ -Scheduler { # Scheduler - n1: circle label:"Start" - n2: rectangle label:"Trigger rotation job" - n3: rectangle label:"Log rotation event" - n4: circle label:"End" - n1.handle(right) -> n2.handle(left) - n2.handle(bottom) -> KeyVault.n5.handle(top) [label="Initiate"] - n3.handle(right) -> n4.handle(left) -} - -KeyVault { # Key Vault - n5: rectangle label:"Generate new API key" - n6: rectangle label:"Store new key securely" - n7: diamond label:"Key generated?" - n8: rectangle label:"Update key metadata" - n5.handle(right) -> n7.handle(left) - n7.handle(right) -> n6.handle(left) [label="Yes"] - n7.handle(bottom) -> n5.handle(bottom) [label="No - Retry"] - n6.handle(right) -> n8.handle(left) - n8.handle(bottom) -> Services.n9.handle(top) [label="Distribute"] - loop [retry up to 3 times] n5 n7 -} - -Services { # Services - n9: rectangle label:"Receive new key" - n10: rectangle label:"Update configuration" - n11: diamond label:"Health check passed?" - n12: rectangle label:"Confirm deployment" - n13: rectangle label:"Rollback to old key" - n9.handle(right) -> n10.handle(left) - n10.handle(right) -> n11.handle(left) - n11.handle(right) -> n12.handle(left) [label="Yes"] - n11.handle(bottom) -> n13.handle(top) [label="No"] - n12.handle(bottom) -> Cleanup.n14.handle(top) [label="Success"] - n13.handle(bottom) -> Cleanup.n17.handle(top) [label="Alert"] -} - -Cleanup { # Cleanup - n14: rectangle label:"Mark old key for deletion" - n15: rectangle label:"Wait grace period" - n16: rectangle label:"Revoke old key" - n17: rectangle label:"Send alert to ops team" - n14.handle(right) -> n15.handle(left) - n15.handle(right) -> n16.handle(left) - n16.handle(top) -> Scheduler.n3.handle(bottom) [label="Complete"] - n17.handle(top) -> Scheduler.n3.handle(bottom) [label="Failed"] +Scheduler { # Scheduler + n1: circle label:"Start" + n2: rectangle label:"Trigger rotation job" + n3: rectangle label:"Log rotation event" + n4: circle label:"End" + n1.handle(right) -> n2.handle(left) + n2.handle(bottom) -> KeyVault.n5.handle(top) [label="Initiate"] + n3.handle(right) -> n4.handle(left) +} + +KeyVault { # Key Vault + n5: rectangle label:"Generate new API key" + n6: rectangle label:"Store new key securely" + n7: diamond label:"Key generated?" + n8: rectangle label:"Update key metadata" + n5.handle(right) -> n7.handle(left) + n7.handle(right) -> n6.handle(left) [label="Yes"] + n7.handle(bottom) -> n5.handle(bottom) [label="No - Retry"] + n6.handle(right) -> n8.handle(left) + n8.handle(bottom) -> Services.n9.handle(top) [label="Distribute"] + loop [retry up to 3 times] n5 n7 +} + +Services { # Services + n9: rectangle label:"Receive new key" + n10: rectangle label:"Update configuration" + n11: diamond label:"Health check passed?" + n12: rectangle label:"Confirm deployment" + n13: rectangle label:"Rollback to old key" + n9.handle(right) -> n10.handle(left) + n10.handle(right) -> n11.handle(left) + n11.handle(right) -> n12.handle(left) [label="Yes"] + n11.handle(bottom) -> n13.handle(top) [label="No"] + n12.handle(bottom) -> Cleanup.n14.handle(top) [label="Success"] + n13.handle(bottom) -> Cleanup.n17.handle(top) [label="Alert"] +} + +Cleanup { # Cleanup + n14: rectangle label:"Mark old key for deletion" + n15: rectangle label:"Wait grace period" + n16: rectangle label:"Revoke old key" + n17: rectangle label:"Send alert to ops team" + n14.handle(right) -> n15.handle(left) + n15.handle(right) -> n16.handle(left) + n16.handle(top) -> Scheduler.n3.handle(bottom) [label="Complete"] + n17.handle(top) -> Scheduler.n3.handle(bottom) [label="Failed"] } \ No newline at end of file diff --git a/security/business-operations/sms-verification-workflow/workflow.fz b/security/business-operations/sms-verification-workflow/workflow.fz index d0e8e27b0fc322c92b14a607858c6e2c2210ea08..c9afdb33ca497eeda53b188890e15e3079db31f9 100644 --- a/security/business-operations/sms-verification-workflow/workflow.fz +++ b/security/business-operations/sms-verification-workflow/workflow.fz @@ -1,47 +1,47 @@ -User { # User -n1: circle label:"Start" -n2: rectangle label:"Enter phone number" -n3: rectangle label:"Receive SMS code" -n4: rectangle label:"Enter verification code" -n5: rectangle label:"Access granted" -n6: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(bottom) -> App.n7.handle(top) [label="Submit"] -n3.handle(right) -> n4.handle(left) -n4.handle(bottom) -> App.n12.handle(top) [label="Verify"] -n5.handle(right) -> n6.handle(left) -} -App { # Application -n7: rectangle label:"Validate phone format" -n8: diamond label:"Valid E.164 format?" -n9: rectangle label:"Generate 6-digit OTP" -n10: rectangle label:"Store OTP with expiry" -n11: rectangle label:"Return format error" -n12: diamond label:"Code matches?" -n13: rectangle label:"Mark phone verified" -n14: rectangle label:"Increment attempt counter" -n7.handle(right) -> n8.handle(left) -n8.handle(right) -> n9.handle(left) [label="Yes"] -n8.handle(bottom) -> n11.handle(top) [label="No"] -n9.handle(right) -> n10.handle(left) -n10.handle(bottom) -> Twilio.n15.handle(top) [label="Send SMS"] -n11.handle(top) -> User.n2.handle(bottom) [label="Try again"] -n12.handle(right) -> n13.handle(left) [label="Yes"] -n12.handle(bottom) -> n14.handle(top) [label="No"] -n13.handle(top) -> User.n5.handle(bottom) [label="Verified"] -n14.handle(top) -> User.n4.handle(bottom) [label="Retry"] -loop [retry up to 3 times] n12 n14 -} -Twilio { # Twilio API -n15: rectangle label:"Format SMS message" -n16: rectangle label:"POST to Messages API" -n17: diamond label:"Delivery status?" -n18: rectangle label:"Log successful delivery" -n19: rectangle label:"Queue for retry" -n15.handle(right) -> n16.handle(left) -n16.handle(right) -> n17.handle(left) -n17.handle(right) -> n18.handle(left) [label="delivered"] -n17.handle(bottom) -> n19.handle(top) [label="failed"] -n18.handle(top) -> User.n3.handle(bottom) [label="SMS sent"] -n19.handle(top) -> n16.handle(bottom) [label="Retry"] +User { # User +n1: circle label:"Start" +n2: rectangle label:"Enter phone number" +n3: rectangle label:"Receive SMS code" +n4: rectangle label:"Enter verification code" +n5: rectangle label:"Access granted" +n6: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> App.n7.handle(top) [label="Submit"] +n3.handle(right) -> n4.handle(left) +n4.handle(bottom) -> App.n12.handle(top) [label="Verify"] +n5.handle(right) -> n6.handle(left) +} +App { # Application +n7: rectangle label:"Validate phone format" +n8: diamond label:"Valid E.164 format?" +n9: rectangle label:"Generate 6-digit OTP" +n10: rectangle label:"Store OTP with expiry" +n11: rectangle label:"Return format error" +n12: diamond label:"Code matches?" +n13: rectangle label:"Mark phone verified" +n14: rectangle label:"Increment attempt counter" +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n9.handle(left) [label="Yes"] +n8.handle(bottom) -> n11.handle(top) [label="No"] +n9.handle(right) -> n10.handle(left) +n10.handle(bottom) -> Twilio.n15.handle(top) [label="Send SMS"] +n11.handle(top) -> User.n2.handle(bottom) [label="Try again"] +n12.handle(right) -> n13.handle(left) [label="Yes"] +n12.handle(bottom) -> n14.handle(top) [label="No"] +n13.handle(top) -> User.n5.handle(bottom) [label="Verified"] +n14.handle(top) -> User.n4.handle(bottom) [label="Retry"] +loop [retry up to 3 times] n12 n14 +} +Twilio { # Twilio API +n15: rectangle label:"Format SMS message" +n16: rectangle label:"POST to Messages API" +n17: diamond label:"Delivery status?" +n18: rectangle label:"Log successful delivery" +n19: rectangle label:"Queue for retry" +n15.handle(right) -> n16.handle(left) +n16.handle(right) -> n17.handle(left) +n17.handle(right) -> n18.handle(left) [label="delivered"] +n17.handle(bottom) -> n19.handle(top) [label="failed"] +n18.handle(top) -> User.n3.handle(bottom) [label="SMS sent"] +n19.handle(top) -> n16.handle(bottom) [label="Retry"] } \ No newline at end of file diff --git a/security/devops/certificate-renewal-workflow/workflow.fz b/security/devops/certificate-renewal-workflow/workflow.fz index 0dc2fe49f1a4d1e128cfbd1edab079179e6f7691..4be4c781a521162d41cefbda397212aa477a2c03 100644 --- a/security/devops/certificate-renewal-workflow/workflow.fz +++ b/security/devops/certificate-renewal-workflow/workflow.fz @@ -1,47 +1,47 @@ -Monitor { # Certificate Monitor -n1: circle label:"Start" -n2: rectangle label:"Scan certificate inventory" -n3: rectangle label:"Check expiration dates" -n4: rectangle label:"Verify renewal complete" -n5: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(right) -> n3.handle(left) -n3.handle(bottom) -> CertManager.n6.handle(top) [label="Expiring soon"] -n4.handle(right) -> n5.handle(left) -} -CertManager { # Certificate Manager -n6: diamond label:"Certificate type?" -n7: rectangle label:"Request from Let's Encrypt" -n8: rectangle label:"Request from DigiCert" -n9: rectangle label:"Generate self-signed" -n10: rectangle label:"Complete ACME challenge" -n11: diamond label:"Validation passed?" -n12: rectangle label:"Download new certificate" -n13: rectangle label:"Retry validation" -n6.handle(right) -> n7.handle(left) [label="Public"] -n6.handle(bottom) -> n8.handle(top) [label="Enterprise"] -n6.handle(left) -> n9.handle(top) [label="Internal"] -n7.handle(right) -> n10.handle(left) -n8.handle(right) -> n10.handle(top) -n9.handle(right) -> n12.handle(top) -n10.handle(right) -> n11.handle(left) -n11.handle(right) -> n12.handle(left) [label="Yes"] -n11.handle(bottom) -> n13.handle(top) [label="No"] -n12.handle(bottom) -> Deployment.n14.handle(top) [label="Install"] -n13.handle(top) -> n10.handle(bottom) [label="Retry"] -} -Deployment { # Certificate Deployment -n14: rectangle label:"Update load balancer" -n15: rectangle label:"Update Kubernetes ingress" -n16: rectangle label:"Reload web servers" -n17: diamond label:"SSL handshake OK?" -n18: rectangle label:"Update certificate inventory" -n19: rectangle label:"Rollback to previous cert" -n14.handle(right) -> n15.handle(left) -n15.handle(right) -> n16.handle(left) -n16.handle(right) -> n17.handle(left) -n17.handle(right) -> n18.handle(left) [label="Yes"] -n17.handle(bottom) -> n19.handle(top) [label="No"] -n18.handle(top) -> Monitor.n4.handle(bottom) [label="Renewed"] -n19.handle(top) -> CertManager.n6.handle(bottom) [label="Retry"] +Monitor { # Certificate Monitor +n1: circle label:"Start" +n2: rectangle label:"Scan certificate inventory" +n3: rectangle label:"Check expiration dates" +n4: rectangle label:"Verify renewal complete" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(bottom) -> CertManager.n6.handle(top) [label="Expiring soon"] +n4.handle(right) -> n5.handle(left) +} +CertManager { # Certificate Manager +n6: diamond label:"Certificate type?" +n7: rectangle label:"Request from Let's Encrypt" +n8: rectangle label:"Request from DigiCert" +n9: rectangle label:"Generate self-signed" +n10: rectangle label:"Complete ACME challenge" +n11: diamond label:"Validation passed?" +n12: rectangle label:"Download new certificate" +n13: rectangle label:"Retry validation" +n6.handle(right) -> n7.handle(left) [label="Public"] +n6.handle(bottom) -> n8.handle(top) [label="Enterprise"] +n6.handle(left) -> n9.handle(top) [label="Internal"] +n7.handle(right) -> n10.handle(left) +n8.handle(right) -> n10.handle(top) +n9.handle(right) -> n12.handle(top) +n10.handle(right) -> n11.handle(left) +n11.handle(right) -> n12.handle(left) [label="Yes"] +n11.handle(bottom) -> n13.handle(top) [label="No"] +n12.handle(bottom) -> Deployment.n14.handle(top) [label="Install"] +n13.handle(top) -> n10.handle(bottom) [label="Retry"] +} +Deployment { # Certificate Deployment +n14: rectangle label:"Update load balancer" +n15: rectangle label:"Update Kubernetes ingress" +n16: rectangle label:"Reload web servers" +n17: diamond label:"SSL handshake OK?" +n18: rectangle label:"Update certificate inventory" +n19: rectangle label:"Rollback to previous cert" +n14.handle(right) -> n15.handle(left) +n15.handle(right) -> n16.handle(left) +n16.handle(right) -> n17.handle(left) +n17.handle(right) -> n18.handle(left) [label="Yes"] +n17.handle(bottom) -> n19.handle(top) [label="No"] +n18.handle(top) -> Monitor.n4.handle(bottom) [label="Renewed"] +n19.handle(top) -> CertManager.n6.handle(bottom) [label="Retry"] } \ No newline at end of file diff --git a/security/devops/mcp-gateway-proxy/workflow.fz b/security/devops/mcp-gateway-proxy/workflow.fz index f1ff5ff90b492408a02a6e7d84a9c27483491975..31408cabf98e30f6a1e076dbec2f49bec6024a3e 100644 --- a/security/devops/mcp-gateway-proxy/workflow.fz +++ b/security/devops/mcp-gateway-proxy/workflow.fz @@ -1,32 +1,32 @@ -Host { # Host Application - n1: circle label="User sends prompt" - n2: rectangle label="Agent builds tool call" - n3: rectangle label="Send request to gateway" - n4: rectangle label="Receive gateway response" - n5: rectangle label="Agent responds to user" - n1.handle(right) -> n2.handle(left) - n2.handle(right) -> n3.handle(left) - n3.handle(bottom) -> Gateway.n6.handle(top) [label="Tool request"] - n4.handle(right) -> n5.handle(left) -} - -Gateway { # MCP Gateway - n6: rectangle label="Receive and log request" - n7: diamond label="Authorized?" - n8: rectangle label="Forward to MCP server" - n9: rectangle label="Receive MCP response" - n10: rectangle label="Log response and return" - n6.handle(right) -> n7.handle(left) - n7.handle(right) -> n8.handle(left) [label="Yes"] - n7.handle(top) -> Host.n4.handle(left) [label="401 Unauthorized"] - n8.handle(bottom) -> MCPServer.n11.handle(top) [label="Forwarded request"] - n9.handle(right) -> n10.handle(left) - n10.handle(top) -> Host.n4.handle(bottom) [label="Authorized response"] -} - -MCPServer { # MCP Server - n11: rectangle label="Execute tool" - n12: rectangle label="Return result" - n11.handle(right) -> n12.handle(left) - n12.handle(top) -> Gateway.n9.handle(bottom) [label="Tool result"] -} +Host { # Host Application + n1: circle label="User sends prompt" + n2: rectangle label="Agent builds tool call" + n3: rectangle label="Send request to gateway" + n4: rectangle label="Receive gateway response" + n5: rectangle label="Agent responds to user" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(bottom) -> Gateway.n6.handle(top) [label="Tool request"] + n4.handle(right) -> n5.handle(left) +} + +Gateway { # MCP Gateway + n6: rectangle label="Receive and log request" + n7: diamond label="Authorized?" + n8: rectangle label="Forward to MCP server" + n9: rectangle label="Receive MCP response" + n10: rectangle label="Log response and return" + n6.handle(right) -> n7.handle(left) + n7.handle(right) -> n8.handle(left) [label="Yes"] + n7.handle(top) -> Host.n4.handle(left) [label="401 Unauthorized"] + n8.handle(bottom) -> MCPServer.n11.handle(top) [label="Forwarded request"] + n9.handle(right) -> n10.handle(left) + n10.handle(top) -> Host.n4.handle(bottom) [label="Authorized response"] +} + +MCPServer { # MCP Server + n11: rectangle label="Execute tool" + n12: rectangle label="Return result" + n11.handle(right) -> n12.handle(left) + n12.handle(top) -> Gateway.n9.handle(bottom) [label="Tool result"] +} diff --git a/security/devops/secret-rotation-workflow/workflow.fz b/security/devops/secret-rotation-workflow/workflow.fz index cb3f84607b3864202793f2f61065d7940d90259a..7d84a22e04a4c5a46757e4ebe2da0bc41428019c 100644 --- a/security/devops/secret-rotation-workflow/workflow.fz +++ b/security/devops/secret-rotation-workflow/workflow.fz @@ -1,44 +1,44 @@ -Scheduler { # Rotation Scheduler -n1: circle label:"Start" -n2: rectangle label:"Check secret expiration dates" -n3: rectangle label:"Identify secrets due for rotation" -n4: rectangle label:"Verify rotation complete" -n5: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(right) -> n3.handle(left) -n3.handle(bottom) -> Vault.n6.handle(top) [label="Rotate"] -n4.handle(right) -> n5.handle(left) -} -Vault { # Secret Vault -n6: rectangle label:"Generate new secret value" -n7: rectangle label:"Store new version" -n8: diamond label:"Secret type?" -n9: rectangle label:"Rotate API key" -n10: rectangle label:"Rotate database password" -n11: rectangle label:"Rotate certificate" -n12: rectangle label:"Update secret metadata" -n6.handle(right) -> n7.handle(left) -n7.handle(right) -> n8.handle(left) -n8.handle(right) -> n9.handle(left) [label="API key"] -n8.handle(bottom) -> n10.handle(top) [label="DB password"] -n8.handle(left) -> n11.handle(top) [label="Certificate"] -n9.handle(bottom) -> n12.handle(top) -n10.handle(bottom) -> n12.handle(top) -n11.handle(bottom) -> n12.handle(top) -n12.handle(bottom) -> Deployment.n13.handle(top) [label="Deploy"] -} -Deployment { # Secret Deployment -n13: rectangle label:"Update Kubernetes secrets" -n14: rectangle label:"Trigger rolling restart" -n15: diamond label:"Services healthy?" -n16: rectangle label:"Mark rotation successful" -n17: rectangle label:"Rollback to previous" -n18: rectangle label:"Send rotation report" -n13.handle(right) -> n14.handle(left) -n14.handle(right) -> n15.handle(left) -n15.handle(right) -> n16.handle(left) [label="Yes"] -n15.handle(bottom) -> n17.handle(top) [label="No"] -n16.handle(right) -> n18.handle(left) -n17.handle(right) -> n18.handle(top) -n18.handle(top) -> Scheduler.n4.handle(bottom) [label="Complete"] -} +Scheduler { # Rotation Scheduler +n1: circle label:"Start" +n2: rectangle label:"Check secret expiration dates" +n3: rectangle label:"Identify secrets due for rotation" +n4: rectangle label:"Verify rotation complete" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(bottom) -> Vault.n6.handle(top) [label="Rotate"] +n4.handle(right) -> n5.handle(left) +} +Vault { # Secret Vault +n6: rectangle label:"Generate new secret value" +n7: rectangle label:"Store new version" +n8: diamond label:"Secret type?" +n9: rectangle label:"Rotate API key" +n10: rectangle label:"Rotate database password" +n11: rectangle label:"Rotate certificate" +n12: rectangle label:"Update secret metadata" +n6.handle(right) -> n7.handle(left) +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n9.handle(left) [label="API key"] +n8.handle(bottom) -> n10.handle(top) [label="DB password"] +n8.handle(left) -> n11.handle(top) [label="Certificate"] +n9.handle(bottom) -> n12.handle(top) +n10.handle(bottom) -> n12.handle(top) +n11.handle(bottom) -> n12.handle(top) +n12.handle(bottom) -> Deployment.n13.handle(top) [label="Deploy"] +} +Deployment { # Secret Deployment +n13: rectangle label:"Update Kubernetes secrets" +n14: rectangle label:"Trigger rolling restart" +n15: diamond label:"Services healthy?" +n16: rectangle label:"Mark rotation successful" +n17: rectangle label:"Rollback to previous" +n18: rectangle label:"Send rotation report" +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) +n15.handle(right) -> n16.handle(left) [label="Yes"] +n15.handle(bottom) -> n17.handle(top) [label="No"] +n16.handle(right) -> n18.handle(left) +n17.handle(right) -> n18.handle(top) +n18.handle(top) -> Scheduler.n4.handle(bottom) [label="Complete"] +} diff --git a/security/devops/security-scan-workflow/workflow.fz b/security/devops/security-scan-workflow/workflow.fz index 230ddfc98e5f95697efc557f2a7afb91b8da7209..e5a12e4b6c0b54dbf21e0c38f196e004536f070d 100644 --- a/security/devops/security-scan-workflow/workflow.fz +++ b/security/devops/security-scan-workflow/workflow.fz @@ -1,53 +1,53 @@ -CI { # CI Pipeline -n1: circle label:"Start" -n2: rectangle label:"Checkout code" -n3: rectangle label:"Install dependencies" -n4: rectangle label:"Trigger security scans" -n5: rectangle label:"Review scan results" -n6: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(right) -> n3.handle(left) -n3.handle(right) -> n4.handle(left) -n4.handle(bottom) -> SAST.n7.handle(top) [label="Static analysis"] -n4.handle(bottom) -> SCA.n12.handle(top) [label="Dependency scan"] -n5.handle(right) -> n6.handle(left) -} -SAST { # Static Analysis -n7: rectangle label:"Run Semgrep rules" -n8: rectangle label:"Scan for secrets" -n9: diamond label:"Critical findings?" -n10: rectangle label:"Generate SARIF report" -n11: rectangle label:"Block pipeline" -n7.handle(right) -> n8.handle(left) -n8.handle(right) -> n9.handle(left) -n9.handle(right) -> n10.handle(left) [label="No"] -n9.handle(bottom) -> n11.handle(top) [label="Yes"] -n10.handle(bottom) -> SecurityDashboard.n17.handle(top) [label="Upload"] -n11.handle(top) -> CI.n5.handle(bottom) [label="Failed"] -} -SCA { # Software Composition Analysis -n12: rectangle label:"Parse dependency manifest" -n13: rectangle label:"Check CVE databases" -n14: diamond label:"High severity CVEs?" -n15: rectangle label:"Generate SBOM" -n16: rectangle label:"Flag vulnerable packages" -n12.handle(right) -> n13.handle(left) -n13.handle(right) -> n14.handle(left) -n14.handle(right) -> n15.handle(left) [label="No"] -n14.handle(bottom) -> n16.handle(top) [label="Yes"] -n15.handle(bottom) -> SecurityDashboard.n17.handle(top) [label="Upload"] -n16.handle(bottom) -> SecurityDashboard.n17.handle(top) [label="Report"] -} -SecurityDashboard { # Security Dashboard -n17: rectangle label:"Aggregate scan results" -n18: rectangle label:"Calculate risk score" -n19: diamond label:"Meets security policy?" -n20: rectangle label:"Approve for deployment" -n21: rectangle label:"Create remediation tickets" -n17.handle(right) -> n18.handle(left) -n18.handle(right) -> n19.handle(left) -n19.handle(right) -> n20.handle(left) [label="Yes"] -n19.handle(bottom) -> n21.handle(top) [label="No"] -n20.handle(top) -> CI.n5.handle(bottom) [label="Passed"] -n21.handle(top) -> CI.n5.handle(bottom) [label="Action required"] -} +CI { # CI Pipeline +n1: circle label:"Start" +n2: rectangle label:"Checkout code" +n3: rectangle label:"Install dependencies" +n4: rectangle label:"Trigger security scans" +n5: rectangle label:"Review scan results" +n6: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(right) -> n4.handle(left) +n4.handle(bottom) -> SAST.n7.handle(top) [label="Static analysis"] +n4.handle(bottom) -> SCA.n12.handle(top) [label="Dependency scan"] +n5.handle(right) -> n6.handle(left) +} +SAST { # Static Analysis +n7: rectangle label:"Run Semgrep rules" +n8: rectangle label:"Scan for secrets" +n9: diamond label:"Critical findings?" +n10: rectangle label:"Generate SARIF report" +n11: rectangle label:"Block pipeline" +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n9.handle(left) +n9.handle(right) -> n10.handle(left) [label="No"] +n9.handle(bottom) -> n11.handle(top) [label="Yes"] +n10.handle(bottom) -> SecurityDashboard.n17.handle(top) [label="Upload"] +n11.handle(top) -> CI.n5.handle(bottom) [label="Failed"] +} +SCA { # Software Composition Analysis +n12: rectangle label:"Parse dependency manifest" +n13: rectangle label:"Check CVE databases" +n14: diamond label:"High severity CVEs?" +n15: rectangle label:"Generate SBOM" +n16: rectangle label:"Flag vulnerable packages" +n12.handle(right) -> n13.handle(left) +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) [label="No"] +n14.handle(bottom) -> n16.handle(top) [label="Yes"] +n15.handle(bottom) -> SecurityDashboard.n17.handle(top) [label="Upload"] +n16.handle(bottom) -> SecurityDashboard.n17.handle(top) [label="Report"] +} +SecurityDashboard { # Security Dashboard +n17: rectangle label:"Aggregate scan results" +n18: rectangle label:"Calculate risk score" +n19: diamond label:"Meets security policy?" +n20: rectangle label:"Approve for deployment" +n21: rectangle label:"Create remediation tickets" +n17.handle(right) -> n18.handle(left) +n18.handle(right) -> n19.handle(left) +n19.handle(right) -> n20.handle(left) [label="Yes"] +n19.handle(bottom) -> n21.handle(top) [label="No"] +n20.handle(top) -> CI.n5.handle(bottom) [label="Passed"] +n21.handle(top) -> CI.n5.handle(bottom) [label="Action required"] +} diff --git a/security/devops/vulnerability-patch-workflow/workflow.fz b/security/devops/vulnerability-patch-workflow/workflow.fz index 74b81cc5d50f38f058c23424a969498203cc2e97..c4c83aa0eb6fd7f1b42390e936ae279f54101d40 100644 --- a/security/devops/vulnerability-patch-workflow/workflow.fz +++ b/security/devops/vulnerability-patch-workflow/workflow.fz @@ -1,47 +1,47 @@ -Scanner { # Vulnerability Scanner -n1: circle label:"Start" -n2: rectangle label:"Run dependency scan" -n3: rectangle label:"Analyze CVE database" -n4: rectangle label:"Verify patch applied" -n5: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(right) -> n3.handle(left) -n3.handle(bottom) -> Triage.n6.handle(top) [label="Vulnerabilities found"] -n4.handle(right) -> n5.handle(left) -} -Triage { # Vulnerability Triage -n6: rectangle label:"Assess CVSS score" -n7: diamond label:"Severity level?" -n8: rectangle label:"Create critical ticket" -n9: rectangle label:"Create high priority ticket" -n10: rectangle label:"Add to backlog" -n11: rectangle label:"Assign to security team" -n6.handle(right) -> n7.handle(left) -n7.handle(right) -> n8.handle(left) [label="Critical"] -n7.handle(bottom) -> n9.handle(top) [label="High"] -n7.handle(left) -> n10.handle(top) [label="Medium/Low"] -n8.handle(right) -> n11.handle(left) -n9.handle(right) -> n11.handle(top) -n10.handle(top) -> Scanner.n4.handle(bottom) [label="Scheduled"] -n11.handle(bottom) -> Patching.n12.handle(top) [label="Remediate"] -} -Patching { # Patch Application -n12: rectangle label:"Update dependency version" -n13: rectangle label:"Run regression tests" -n14: diamond label:"Tests pass?" -n15: rectangle label:"Deploy to staging" -n16: rectangle label:"Investigate failures" -n17: diamond label:"Staging healthy?" -n18: rectangle label:"Deploy to production" -n19: rectangle label:"Rollback changes" -n12.handle(right) -> n13.handle(left) -n13.handle(right) -> n14.handle(left) -n14.handle(right) -> n15.handle(left) [label="Yes"] -n14.handle(bottom) -> n16.handle(top) [label="No"] -n15.handle(right) -> n17.handle(left) -n16.handle(top) -> n12.handle(bottom) [label="Fix"] -n17.handle(right) -> n18.handle(left) [label="Yes"] -n17.handle(bottom) -> n19.handle(top) [label="No"] -n18.handle(top) -> Scanner.n4.handle(bottom) [label="Patched"] -n19.handle(top) -> n12.handle(bottom) [label="Retry"] -} +Scanner { # Vulnerability Scanner +n1: circle label:"Start" +n2: rectangle label:"Run dependency scan" +n3: rectangle label:"Analyze CVE database" +n4: rectangle label:"Verify patch applied" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(bottom) -> Triage.n6.handle(top) [label="Vulnerabilities found"] +n4.handle(right) -> n5.handle(left) +} +Triage { # Vulnerability Triage +n6: rectangle label:"Assess CVSS score" +n7: diamond label:"Severity level?" +n8: rectangle label:"Create critical ticket" +n9: rectangle label:"Create high priority ticket" +n10: rectangle label:"Add to backlog" +n11: rectangle label:"Assign to security team" +n6.handle(right) -> n7.handle(left) +n7.handle(right) -> n8.handle(left) [label="Critical"] +n7.handle(bottom) -> n9.handle(top) [label="High"] +n7.handle(left) -> n10.handle(top) [label="Medium/Low"] +n8.handle(right) -> n11.handle(left) +n9.handle(right) -> n11.handle(top) +n10.handle(top) -> Scanner.n4.handle(bottom) [label="Scheduled"] +n11.handle(bottom) -> Patching.n12.handle(top) [label="Remediate"] +} +Patching { # Patch Application +n12: rectangle label:"Update dependency version" +n13: rectangle label:"Run regression tests" +n14: diamond label:"Tests pass?" +n15: rectangle label:"Deploy to staging" +n16: rectangle label:"Investigate failures" +n17: diamond label:"Staging healthy?" +n18: rectangle label:"Deploy to production" +n19: rectangle label:"Rollback changes" +n12.handle(right) -> n13.handle(left) +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) [label="Yes"] +n14.handle(bottom) -> n16.handle(top) [label="No"] +n15.handle(right) -> n17.handle(left) +n16.handle(top) -> n12.handle(bottom) [label="Fix"] +n17.handle(right) -> n18.handle(left) [label="Yes"] +n17.handle(bottom) -> n19.handle(top) [label="No"] +n18.handle(top) -> Scanner.n4.handle(bottom) [label="Patched"] +n19.handle(top) -> n12.handle(bottom) [label="Retry"] +} diff --git a/security/logistics/shipping-process-workflow/workflow.fz b/security/logistics/shipping-process-workflow/workflow.fz index 3803fbed8d1891e5509dc9af2e189d2d42f24a06..84fd2afab3be00b51d8e5a07c62a7409f65b5399 100644 --- a/security/logistics/shipping-process-workflow/workflow.fz +++ b/security/logistics/shipping-process-workflow/workflow.fz @@ -1,48 +1,48 @@ -OrderSystem { # Order System -n1: circle label:"Start" -n2: rectangle label:"Receive shipping request" -n3: rectangle label:"Validate shipping address" -n4: rectangle label:"Update tracking status" -n5: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(bottom) -> Warehouse.n6.handle(top) [label="Pick order"] -n3.handle(bottom) -> Carrier.n14.handle(top) [label="Ship"] -n4.handle(right) -> n5.handle(left) -} -Warehouse { # Warehouse -n6: rectangle label:"Locate items in inventory" -n7: rectangle label:"Pick items from shelves" -n8: diamond label:"All items available?" -n9: rectangle label:"Pack items securely" -n10: rectangle label:"Flag backorder items" -n11: rectangle label:"Generate packing slip" -n12: rectangle label:"Apply shipping label" -n13: rectangle label:"Move to shipping dock" -n6.handle(right) -> n7.handle(left) -n7.handle(right) -> n8.handle(left) -n8.handle(right) -> n9.handle(left) [label="Yes"] -n8.handle(bottom) -> n10.handle(top) [label="No"] -n9.handle(right) -> n11.handle(left) -n10.handle(top) -> OrderSystem.n4.handle(bottom) [label="Partial ship"] -n11.handle(right) -> n12.handle(left) -n12.handle(right) -> n13.handle(left) -n13.handle(top) -> OrderSystem.n3.handle(bottom) [label="Ready"] -} -Carrier { # Carrier -n14: rectangle label:"Scan package barcode" -n15: rectangle label:"Load onto delivery vehicle" -n16: rectangle label:"Update tracking number" -n17: diamond label:"Delivery attempt?" -n18: rectangle label:"Deliver to recipient" -n19: rectangle label:"Leave at door" -n20: rectangle label:"Return to facility" -n14.handle(right) -> n15.handle(left) -n15.handle(right) -> n16.handle(left) -n16.handle(right) -> n17.handle(left) -n17.handle(right) -> n18.handle(left) [label="Recipient home"] -n17.handle(bottom) -> n19.handle(top) [label="Safe location"] -n17.handle(left) -> n20.handle(top) [label="Failed"] -n18.handle(top) -> OrderSystem.n4.handle(bottom) [label="Delivered"] -n19.handle(top) -> OrderSystem.n4.handle(bottom) [label="Delivered"] -n20.handle(top) -> OrderSystem.n4.handle(bottom) [label="Exception"] -} +OrderSystem { # Order System +n1: circle label:"Start" +n2: rectangle label:"Receive shipping request" +n3: rectangle label:"Validate shipping address" +n4: rectangle label:"Update tracking status" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> Warehouse.n6.handle(top) [label="Pick order"] +n3.handle(bottom) -> Carrier.n14.handle(top) [label="Ship"] +n4.handle(right) -> n5.handle(left) +} +Warehouse { # Warehouse +n6: rectangle label:"Locate items in inventory" +n7: rectangle label:"Pick items from shelves" +n8: diamond label:"All items available?" +n9: rectangle label:"Pack items securely" +n10: rectangle label:"Flag backorder items" +n11: rectangle label:"Generate packing slip" +n12: rectangle label:"Apply shipping label" +n13: rectangle label:"Move to shipping dock" +n6.handle(right) -> n7.handle(left) +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n9.handle(left) [label="Yes"] +n8.handle(bottom) -> n10.handle(top) [label="No"] +n9.handle(right) -> n11.handle(left) +n10.handle(top) -> OrderSystem.n4.handle(bottom) [label="Partial ship"] +n11.handle(right) -> n12.handle(left) +n12.handle(right) -> n13.handle(left) +n13.handle(top) -> OrderSystem.n3.handle(bottom) [label="Ready"] +} +Carrier { # Carrier +n14: rectangle label:"Scan package barcode" +n15: rectangle label:"Load onto delivery vehicle" +n16: rectangle label:"Update tracking number" +n17: diamond label:"Delivery attempt?" +n18: rectangle label:"Deliver to recipient" +n19: rectangle label:"Leave at door" +n20: rectangle label:"Return to facility" +n14.handle(right) -> n15.handle(left) +n15.handle(right) -> n16.handle(left) +n16.handle(right) -> n17.handle(left) +n17.handle(right) -> n18.handle(left) [label="Recipient home"] +n17.handle(bottom) -> n19.handle(top) [label="Safe location"] +n17.handle(left) -> n20.handle(top) [label="Failed"] +n18.handle(top) -> OrderSystem.n4.handle(bottom) [label="Delivered"] +n19.handle(top) -> OrderSystem.n4.handle(bottom) [label="Delivered"] +n20.handle(top) -> OrderSystem.n4.handle(bottom) [label="Exception"] +} diff --git a/security/patterns/authentication-flow-workflow/README.md b/security/patterns/authentication-flow-workflow/README.md index 475c07b65ef464aba9838438ad68744bdb607826..e99725e350de3a74009ac9c7fdce518888e7dcfd 100644 --- a/security/patterns/authentication-flow-workflow/README.md +++ b/security/patterns/authentication-flow-workflow/README.md @@ -6,7 +6,7 @@ User authentication workflow with credential validation, MFA challenge, JWT toke **Kind:** workflow **Source domain:** patterns **Primary use case:** security -**Secondary use cases:** None +**Secondary use cases:** patterns **Complexity:** 3/5 **Nodes:** 7 **Lanes:** 2 diff --git a/security/patterns/authentication-flow-workflow/metadata.json b/security/patterns/authentication-flow-workflow/metadata.json index bc9678df70542500717b92f5d7c4f8cd4e18410c..8354b524159c6e6f77cc803e1b994f822c9c44ca 100644 --- a/security/patterns/authentication-flow-workflow/metadata.json +++ b/security/patterns/authentication-flow-workflow/metadata.json @@ -5,9 +5,12 @@ "kind": "workflow", "source_domain": "patterns", "primary_use_case": "security", - "secondary_use_cases": [], + "secondary_use_cases": [ + "patterns" + ], "use_cases": [ - "security" + "security", + "patterns" ], "complexity": 3, "num_nodes": 7, diff --git a/security/patterns/authentication-flow-workflow/workflow.fz b/security/patterns/authentication-flow-workflow/workflow.fz index 70bdb88c9f44d96880cacd276a1d0fe5ba32216e..551344b94838948968e069a847fdb08084cf0f4c 100644 --- a/security/patterns/authentication-flow-workflow/workflow.fz +++ b/security/patterns/authentication-flow-workflow/workflow.fz @@ -1,47 +1,47 @@ -User { # User -n1: circle label:"Start" -n2: rectangle label:"Enter credentials" -n3: rectangle label:"Submit login form" -n4: rectangle label:"Receive access token" -n5: rectangle label:"Access protected resource" -n6: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(right) -> n3.handle(left) -n3.handle(bottom) -> AuthServer.n7.handle(top) [label="Login request"] -n4.handle(right) -> n5.handle(left) -n5.handle(right) -> n6.handle(left) -} -AuthServer { # Auth Server -n7: rectangle label:"Receive credentials" -n8: rectangle label:"Lookup user in database" -n9: diamond label:"User exists?" -n10: rectangle label:"Verify password hash" -n11: rectangle label:"Return invalid user" -n12: diamond label:"Password correct?" -n13: diamond label:"MFA enabled?" -n14: rectangle label:"Return invalid password" -n15: rectangle label:"Generate JWT token" -n7.handle(right) -> n8.handle(left) -n8.handle(right) -> n9.handle(left) -n9.handle(right) -> n10.handle(left) [label="Yes"] -n9.handle(bottom) -> n11.handle(top) [label="No"] -n10.handle(right) -> n12.handle(left) -n11.handle(top) -> User.n2.handle(bottom) [label="Try again"] -n12.handle(right) -> n13.handle(left) [label="Yes"] -n12.handle(bottom) -> n14.handle(top) [label="No"] -n13.handle(right) -> n15.handle(left) [label="No"] -n13.handle(bottom) -> MFA.n16.handle(top) [label="Yes"] -n14.handle(top) -> User.n2.handle(bottom) [label="Try again"] -n15.handle(top) -> User.n4.handle(bottom) [label="Token issued"] -} -MFA { # Multi-Factor Auth -n16: rectangle label:"Send OTP to device" -n17: rectangle label:"Verify OTP code" -n18: diamond label:"OTP valid?" -n19: rectangle label:"Return MFA failure" -n16.handle(right) -> n17.handle(left) -n17.handle(right) -> n18.handle(left) -n18.handle(right) -> AuthServer.n15.handle(bottom) [label="Yes"] -n18.handle(bottom) -> n19.handle(top) [label="No"] -n19.handle(top) -> User.n2.handle(bottom) [label="Retry"] -} +User { # User +n1: circle label:"Start" +n2: rectangle label:"Enter credentials" +n3: rectangle label:"Submit login form" +n4: rectangle label:"Receive access token" +n5: rectangle label:"Access protected resource" +n6: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(bottom) -> AuthServer.n7.handle(top) [label="Login request"] +n4.handle(right) -> n5.handle(left) +n5.handle(right) -> n6.handle(left) +} +AuthServer { # Auth Server +n7: rectangle label:"Receive credentials" +n8: rectangle label:"Lookup user in database" +n9: diamond label:"User exists?" +n10: rectangle label:"Verify password hash" +n11: rectangle label:"Return invalid user" +n12: diamond label:"Password correct?" +n13: diamond label:"MFA enabled?" +n14: rectangle label:"Return invalid password" +n15: rectangle label:"Generate JWT token" +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n9.handle(left) +n9.handle(right) -> n10.handle(left) [label="Yes"] +n9.handle(bottom) -> n11.handle(top) [label="No"] +n10.handle(right) -> n12.handle(left) +n11.handle(top) -> User.n2.handle(bottom) [label="Try again"] +n12.handle(right) -> n13.handle(left) [label="Yes"] +n12.handle(bottom) -> n14.handle(top) [label="No"] +n13.handle(right) -> n15.handle(left) [label="No"] +n13.handle(bottom) -> MFA.n16.handle(top) [label="Yes"] +n14.handle(top) -> User.n2.handle(bottom) [label="Try again"] +n15.handle(top) -> User.n4.handle(bottom) [label="Token issued"] +} +MFA { # Multi-Factor Auth +n16: rectangle label:"Send OTP to device" +n17: rectangle label:"Verify OTP code" +n18: diamond label:"OTP valid?" +n19: rectangle label:"Return MFA failure" +n16.handle(right) -> n17.handle(left) +n17.handle(right) -> n18.handle(left) +n18.handle(right) -> AuthServer.n15.handle(bottom) [label="Yes"] +n18.handle(bottom) -> n19.handle(top) [label="No"] +n19.handle(top) -> User.n2.handle(bottom) [label="Retry"] +} diff --git a/support/business-operations/knowledge-base-workflow/workflow.fz b/support/business-operations/knowledge-base-workflow/workflow.fz index 5dd481d6f77d8176d53b37b59baf1c56180f135a..1bb7fb458701288442409690ca4b2c6265d93b57 100644 --- a/support/business-operations/knowledge-base-workflow/workflow.fz +++ b/support/business-operations/knowledge-base-workflow/workflow.fz @@ -1,44 +1,44 @@ -Author { # Content Author - n1: circle label:"Start" - n2: rectangle label:"Draft article content" - n3: rectangle label:"Add media attachments" - n4: rectangle label:"Receive publication notice" - n5: circle label:"End" - n1.handle(right) -> n2.handle(left) - n2.handle(right) -> n3.handle(left) - n3.handle(bottom) -> Review.n6.handle(top) [label="Submit"] - n4.handle(right) -> n5.handle(left) -} -Review { # Editorial Review - n6: rectangle label:"Check content accuracy" - n7: rectangle label:"Review SEO optimization" - n8: diamond label:"Content quality?" - n9: rectangle label:"Approve for publication" - n10: rectangle label:"Request revisions" - n11: rectangle label:"Reject article" - n6.handle(right) -> n7.handle(left) - n7.handle(right) -> n8.handle(left) - n8.handle(right) -> n9.handle(left) [label="Approved"] - n8.handle(bottom) -> n10.handle(top) [label="Needs work"] - n8.handle(left) -> n11.handle(top) [label="Rejected"] - n9.handle(bottom) -> CMS.n12.handle(top) [label="Publish"] - n10.handle(top) -> Author.n2.handle(bottom) [label="Revise"] - n11.handle(top) -> Author.n5.handle(bottom) [label="Closed"] -} -CMS { # Content Management System - n12: rectangle label:"Assign categories and tags" - n13: rectangle label:"Generate URL slug" - n14: rectangle label:"Index for search" - n15: rectangle label:"Publish to live site" - n16: diamond label:"Featured article?" - n17: rectangle label:"Add to homepage" - n18: rectangle label:"Standard listing" - n12.handle(right) -> n13.handle(left) - n13.handle(right) -> n14.handle(left) - n14.handle(right) -> n15.handle(left) - n15.handle(right) -> n16.handle(left) - n16.handle(right) -> n17.handle(left) [label="Yes"] - n16.handle(bottom) -> n18.handle(top) [label="No"] - n17.handle(top) -> Author.n4.handle(bottom) [label="Published"] - n18.handle(top) -> Author.n4.handle(bottom) [label="Published"] +Author { # Content Author + n1: circle label:"Start" + n2: rectangle label:"Draft article content" + n3: rectangle label:"Add media attachments" + n4: rectangle label:"Receive publication notice" + n5: circle label:"End" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(bottom) -> Review.n6.handle(top) [label="Submit"] + n4.handle(right) -> n5.handle(left) +} +Review { # Editorial Review + n6: rectangle label:"Check content accuracy" + n7: rectangle label:"Review SEO optimization" + n8: diamond label:"Content quality?" + n9: rectangle label:"Approve for publication" + n10: rectangle label:"Request revisions" + n11: rectangle label:"Reject article" + n6.handle(right) -> n7.handle(left) + n7.handle(right) -> n8.handle(left) + n8.handle(right) -> n9.handle(left) [label="Approved"] + n8.handle(bottom) -> n10.handle(top) [label="Needs work"] + n8.handle(left) -> n11.handle(top) [label="Rejected"] + n9.handle(bottom) -> CMS.n12.handle(top) [label="Publish"] + n10.handle(top) -> Author.n2.handle(bottom) [label="Revise"] + n11.handle(top) -> Author.n5.handle(bottom) [label="Closed"] +} +CMS { # Content Management System + n12: rectangle label:"Assign categories and tags" + n13: rectangle label:"Generate URL slug" + n14: rectangle label:"Index for search" + n15: rectangle label:"Publish to live site" + n16: diamond label:"Featured article?" + n17: rectangle label:"Add to homepage" + n18: rectangle label:"Standard listing" + n12.handle(right) -> n13.handle(left) + n13.handle(right) -> n14.handle(left) + n14.handle(right) -> n15.handle(left) + n15.handle(right) -> n16.handle(left) + n16.handle(right) -> n17.handle(left) [label="Yes"] + n16.handle(bottom) -> n18.handle(top) [label="No"] + n17.handle(top) -> Author.n4.handle(bottom) [label="Published"] + n18.handle(top) -> Author.n4.handle(bottom) [label="Published"] } \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/01-basic-lane-workflow/README.md b/syntax-primitives/syntax-primitives/01-basic-lane-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2b7243b9ed865eb3df22f37f7ebc5f04887332dd --- /dev/null +++ b/syntax-primitives/syntax-primitives/01-basic-lane-workflow/README.md @@ -0,0 +1,19 @@ +# 01 Basic Lane Workflow + +This workflow models two connected nodes in a single lane showing basic flow. + +**Template ID:** `01-basic-lane-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 1 +**Tags:** [01, basic, lane] +**Source path:** `syntax-primitives/01-basic-lane` +**Repo path:** `syntax-primitives/syntax-primitives/01-basic-lane-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/01-basic-lane-workflow/metadata.json b/syntax-primitives/syntax-primitives/01-basic-lane-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..2e0a4c4515ef1ec3cb25b8d7aef06b968a095d89 --- /dev/null +++ b/syntax-primitives/syntax-primitives/01-basic-lane-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "01-basic-lane-workflow", + "workflow_id": "01-basic-lane", + "title": "01 Basic Lane Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 1, + "tags": [ + "01", + "basic", + "lane" + ], + "description": "This workflow models two connected nodes in a single lane showing basic flow.", + "source_path": "syntax-primitives/01-basic-lane", + "repo_path": "syntax-primitives/syntax-primitives/01-basic-lane-workflow" +} diff --git a/syntax-primitives/syntax-primitives/01-basic-lane-workflow/workflow.fz b/syntax-primitives/syntax-primitives/01-basic-lane-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..9241e9e0774209687bdfd3d6329c6d2b0aec8905 --- /dev/null +++ b/syntax-primitives/syntax-primitives/01-basic-lane-workflow/workflow.fz @@ -0,0 +1,12 @@ +laneA { # Lanea + n1: circle label:"Start 01 Basic Lane" + n2: rectangle label:"01 Basic Lane step 2" + n3: rectangle label:"01 Basic Lane step 3" + n4: rectangle label:"01 Basic Lane step 4" + n5: circle label:"End 01 Basic Lane" + + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(right) -> n5.handle(left) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/02-handle-positions-workflow/README.md b/syntax-primitives/syntax-primitives/02-handle-positions-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..fcc444e7dfe31311f06a551751ce5a63b23793ab --- /dev/null +++ b/syntax-primitives/syntax-primitives/02-handle-positions-workflow/README.md @@ -0,0 +1,19 @@ +# 02 Handle Positions Workflow + +This workflow models nodes with explicit top, bottom, left, and right handle connections. + +**Template ID:** `02-handle-positions-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 1 +**Tags:** [02, handle, positions] +**Source path:** `syntax-primitives/02-handle-positions` +**Repo path:** `syntax-primitives/syntax-primitives/02-handle-positions-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/02-handle-positions-workflow/metadata.json b/syntax-primitives/syntax-primitives/02-handle-positions-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..9aa75b7f2bbfb3bce4e38ca1c83daaf5ec8fbbfa --- /dev/null +++ b/syntax-primitives/syntax-primitives/02-handle-positions-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "02-handle-positions-workflow", + "workflow_id": "02-handle-positions", + "title": "02 Handle Positions Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 1, + "tags": [ + "02", + "handle", + "positions" + ], + "description": "This workflow models nodes with explicit top, bottom, left, and right handle connections.", + "source_path": "syntax-primitives/02-handle-positions", + "repo_path": "syntax-primitives/syntax-primitives/02-handle-positions-workflow" +} diff --git a/syntax-primitives/syntax-primitives/02-handle-positions-workflow/workflow.fz b/syntax-primitives/syntax-primitives/02-handle-positions-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..4df1c9096abb8f6596f887ddb3488793e43c3652 --- /dev/null +++ b/syntax-primitives/syntax-primitives/02-handle-positions-workflow/workflow.fz @@ -0,0 +1,12 @@ +laneA { # Lane A + n1: circle label:"Start 02 Handle Positions" + n2: rectangle label:"02 Handle Positions step 2" + n3: rectangle label:"02 Handle Positions step 3" + n4: rectangle label:"02 Handle Positions step 4" + n5: circle label:"End 02 Handle Positions" + + n1.handle(bottom) -> n2.handle(top) [label="Bottom to Top"] + n2.handle(right) -> n3.handle(left) [label="Right to Left"] + n3.handle(top) -> n4.handle(bottom) [label="Top to Bottom"] + n4.handle(right) -> n5.handle(left) [label="Right to Left"] +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/03-all-shapes-workflow/README.md b/syntax-primitives/syntax-primitives/03-all-shapes-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..26d55f4559e4779b282064d0bfef607701dd8165 --- /dev/null +++ b/syntax-primitives/syntax-primitives/03-all-shapes-workflow/README.md @@ -0,0 +1,19 @@ +# 03 All Shapes Workflow + +This workflow models a workflow that demonstrates circle, rectangle, diamond, and taskbox shapes. + +**Template ID:** `03-all-shapes-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 1 +**Tags:** [03, all, shapes] +**Source path:** `syntax-primitives/03-all-shapes` +**Repo path:** `syntax-primitives/syntax-primitives/03-all-shapes-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/03-all-shapes-workflow/metadata.json b/syntax-primitives/syntax-primitives/03-all-shapes-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..2ccad9fb62d60e91569ee16fc341d38244e13cae --- /dev/null +++ b/syntax-primitives/syntax-primitives/03-all-shapes-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "03-all-shapes-workflow", + "workflow_id": "03-all-shapes", + "title": "03 All Shapes Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 1, + "tags": [ + "03", + "all", + "shapes" + ], + "description": "This workflow models a workflow that demonstrates circle, rectangle, diamond, and taskbox shapes.", + "source_path": "syntax-primitives/03-all-shapes", + "repo_path": "syntax-primitives/syntax-primitives/03-all-shapes-workflow" +} diff --git a/syntax-primitives/syntax-primitives/03-all-shapes-workflow/workflow.fz b/syntax-primitives/syntax-primitives/03-all-shapes-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..17b384a1c86c37148d6e1ec941ce7b8a042dd9fa --- /dev/null +++ b/syntax-primitives/syntax-primitives/03-all-shapes-workflow/workflow.fz @@ -0,0 +1,12 @@ +laneA { # Lane A + n1: circle label:"Start 03 All Shapes" + n2: circle label:"03 All Shapes step 2" + n3: rectangle label:"03 All Shapes step 3" + n4: diamond label:"03 All Shapes step 4" + n5: circle label:"End 03 All Shapes" + + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(right) -> n5.handle(left) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/04-labeled-arrows-workflow/README.md b/syntax-primitives/syntax-primitives/04-labeled-arrows-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d80a9d666346a5d005137ef7450bfcf2172717f8 --- /dev/null +++ b/syntax-primitives/syntax-primitives/04-labeled-arrows-workflow/README.md @@ -0,0 +1,19 @@ +# 04 Labeled Arrows Workflow + +This workflow models connections with descriptive labels between nodes. + +**Template ID:** `04-labeled-arrows-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 1 +**Tags:** [04, labeled, arrows] +**Source path:** `syntax-primitives/04-labeled-arrows` +**Repo path:** `syntax-primitives/syntax-primitives/04-labeled-arrows-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/04-labeled-arrows-workflow/metadata.json b/syntax-primitives/syntax-primitives/04-labeled-arrows-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..80235bb2bb2196e2d0dc5a09231908df78445562 --- /dev/null +++ b/syntax-primitives/syntax-primitives/04-labeled-arrows-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "04-labeled-arrows-workflow", + "workflow_id": "04-labeled-arrows", + "title": "04 Labeled Arrows Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 1, + "tags": [ + "04", + "labeled", + "arrows" + ], + "description": "This workflow models connections with descriptive labels between nodes.", + "source_path": "syntax-primitives/04-labeled-arrows", + "repo_path": "syntax-primitives/syntax-primitives/04-labeled-arrows-workflow" +} diff --git a/syntax-primitives/syntax-primitives/04-labeled-arrows-workflow/workflow.fz b/syntax-primitives/syntax-primitives/04-labeled-arrows-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..f9fb8fdc4f2c22f0eb0a5eb331a96d87140981c3 --- /dev/null +++ b/syntax-primitives/syntax-primitives/04-labeled-arrows-workflow/workflow.fz @@ -0,0 +1,12 @@ +laneA { # Lane A + n1: circle label:"Start 04 Labeled Arrows" + n2: rectangle label:"04 Labeled Arrows step 2" + n3: rectangle label:"04 Labeled Arrows step 3" + n4: rectangle label:"04 Labeled Arrows step 4" + n5: circle label:"End 04 Labeled Arrows" + + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(right) -> n5.handle(left) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/05-multiple-lanes-workflow/README.md b/syntax-primitives/syntax-primitives/05-multiple-lanes-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..bf75e41c954d2947c0d309053ae6476c2c519787 --- /dev/null +++ b/syntax-primitives/syntax-primitives/05-multiple-lanes-workflow/README.md @@ -0,0 +1,19 @@ +# 05 Multiple Lanes Workflow + +This workflow models three lanes with cross-lane communication. + +**Template ID:** `05-multiple-lanes-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 3 +**Tags:** [05, multiple, lanes] +**Source path:** `syntax-primitives/05-multiple-lanes` +**Repo path:** `syntax-primitives/syntax-primitives/05-multiple-lanes-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/05-multiple-lanes-workflow/metadata.json b/syntax-primitives/syntax-primitives/05-multiple-lanes-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..d9743153523de78c02c6321ba5e6429f14788ac5 --- /dev/null +++ b/syntax-primitives/syntax-primitives/05-multiple-lanes-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "05-multiple-lanes-workflow", + "workflow_id": "05-multiple-lanes", + "title": "05 Multiple Lanes Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 3, + "tags": [ + "05", + "multiple", + "lanes" + ], + "description": "This workflow models three lanes with cross-lane communication.", + "source_path": "syntax-primitives/05-multiple-lanes", + "repo_path": "syntax-primitives/syntax-primitives/05-multiple-lanes-workflow" +} diff --git a/syntax-primitives/syntax-primitives/05-multiple-lanes-workflow/workflow.fz b/syntax-primitives/syntax-primitives/05-multiple-lanes-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..99cca37abd4236e7276b1118e15c88fb062fd45c --- /dev/null +++ b/syntax-primitives/syntax-primitives/05-multiple-lanes-workflow/workflow.fz @@ -0,0 +1,18 @@ +laneA { # Lane A + n1: circle label:"Start 05 Multiple Lanes" + n4: rectangle label:"05 Multiple Lanes step 4" + + n1.handle(bottom) -> laneB.n2.handle(top) + n4.handle(bottom) -> laneB.n5.handle(top) +} +laneB { # Lane B + n2: rectangle label:"05 Multiple Lanes step 2" + n5: circle label:"End 05 Multiple Lanes" + + n2.handle(bottom) -> laneC.n3.handle(top) +} +laneC { # Lane C + n3: rectangle label:"05 Multiple Lanes step 3" + + n3.handle(bottom) -> laneA.n4.handle(top) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/06-nested-lanes-workflow/README.md b/syntax-primitives/syntax-primitives/06-nested-lanes-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..bc4341cc917e1710a0d754f8ae4a71705cb51952 --- /dev/null +++ b/syntax-primitives/syntax-primitives/06-nested-lanes-workflow/README.md @@ -0,0 +1,19 @@ +# 06 Nested Lanes Workflow + +This workflow models lanes that conceptually contain other lanes. + +**Template ID:** `06-nested-lanes-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 3 +**Tags:** [06, nested, lanes] +**Source path:** `syntax-primitives/06-nested-lanes` +**Repo path:** `syntax-primitives/syntax-primitives/06-nested-lanes-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/06-nested-lanes-workflow/metadata.json b/syntax-primitives/syntax-primitives/06-nested-lanes-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f5aeb033367585c397cd7ed760feee2a3ccd67d3 --- /dev/null +++ b/syntax-primitives/syntax-primitives/06-nested-lanes-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "06-nested-lanes-workflow", + "workflow_id": "06-nested-lanes", + "title": "06 Nested Lanes Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 3, + "tags": [ + "06", + "nested", + "lanes" + ], + "description": "This workflow models lanes that conceptually contain other lanes.", + "source_path": "syntax-primitives/06-nested-lanes", + "repo_path": "syntax-primitives/syntax-primitives/06-nested-lanes-workflow" +} diff --git a/syntax-primitives/syntax-primitives/06-nested-lanes-workflow/workflow.fz b/syntax-primitives/syntax-primitives/06-nested-lanes-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..af9d935745772231eeab198415c886964845254e --- /dev/null +++ b/syntax-primitives/syntax-primitives/06-nested-lanes-workflow/workflow.fz @@ -0,0 +1,18 @@ +laneA { # Lane A + n1: circle label:"Start 06 Nested Lanes" + n4: rectangle label:"06 Nested Lanes step 4" + + n1.handle(bottom) -> laneB.n2.handle(top) + n4.handle(bottom) -> laneB.n5.handle(top) +} +laneB { # Lane B + n2: rectangle label:"06 Nested Lanes step 2" + n5: circle label:"End 06 Nested Lanes" + + n2.handle(bottom) -> laneC.n3.handle(top) +} +laneC { # Lane C + n3: rectangle label:"06 Nested Lanes step 3" + + n3.handle(bottom) -> laneA.n4.handle(top) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/07-unicode-labels-workflow/README.md b/syntax-primitives/syntax-primitives/07-unicode-labels-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6fd964cfc59ea3b1cca7031cc595eb0cc0a62054 --- /dev/null +++ b/syntax-primitives/syntax-primitives/07-unicode-labels-workflow/README.md @@ -0,0 +1,19 @@ +# 07 Unicode Labels Workflow + +This workflow models a workflow with emoji and international characters in labels. + +**Template ID:** `07-unicode-labels-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 1 +**Tags:** [07, unicode, labels] +**Source path:** `syntax-primitives/07-unicode-labels` +**Repo path:** `syntax-primitives/syntax-primitives/07-unicode-labels-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/07-unicode-labels-workflow/metadata.json b/syntax-primitives/syntax-primitives/07-unicode-labels-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..46d9f0b57b6d0b50624ae2469c14fba7b8dcaeb9 --- /dev/null +++ b/syntax-primitives/syntax-primitives/07-unicode-labels-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "07-unicode-labels-workflow", + "workflow_id": "07-unicode-labels", + "title": "07 Unicode Labels Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 1, + "tags": [ + "07", + "unicode", + "labels" + ], + "description": "This workflow models a workflow with emoji and international characters in labels.", + "source_path": "syntax-primitives/07-unicode-labels", + "repo_path": "syntax-primitives/syntax-primitives/07-unicode-labels-workflow" +} diff --git a/syntax-primitives/syntax-primitives/07-unicode-labels-workflow/workflow.fz b/syntax-primitives/syntax-primitives/07-unicode-labels-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..214cc5e28a256c6119709c59a93829009b331bd7 --- /dev/null +++ b/syntax-primitives/syntax-primitives/07-unicode-labels-workflow/workflow.fz @@ -0,0 +1,12 @@ +laneA { # Lane A + n1: circle label:"Start 07 Unicode Labels" + n2: rectangle label:"Unicode label (rocket)" + n3: rectangle label:"多言語ラベル" + n4: rectangle label:"07 Unicode Labels step 4" + n5: circle label:"End 07 Unicode Labels" + + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(right) -> n5.handle(left) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/08-empty-lane-workflow/README.md b/syntax-primitives/syntax-primitives/08-empty-lane-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..cc3ae0a0ed80b3e299ff12f2dbe5f1d52a353241 --- /dev/null +++ b/syntax-primitives/syntax-primitives/08-empty-lane-workflow/README.md @@ -0,0 +1,19 @@ +# 08 Empty Lane Workflow + +This workflow models a lane with no nodes to test empty-lane handling. + +**Template ID:** `08-empty-lane-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 1 +**Tags:** [08, empty, lane] +**Source path:** `syntax-primitives/08-empty-lane` +**Repo path:** `syntax-primitives/syntax-primitives/08-empty-lane-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/08-empty-lane-workflow/metadata.json b/syntax-primitives/syntax-primitives/08-empty-lane-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..50c8f75465ecc364ae8fae9bb1a320628448a179 --- /dev/null +++ b/syntax-primitives/syntax-primitives/08-empty-lane-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "08-empty-lane-workflow", + "workflow_id": "08-empty-lane", + "title": "08 Empty Lane Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 1, + "tags": [ + "08", + "empty", + "lane" + ], + "description": "This workflow models a lane with no nodes to test empty-lane handling.", + "source_path": "syntax-primitives/08-empty-lane", + "repo_path": "syntax-primitives/syntax-primitives/08-empty-lane-workflow" +} diff --git a/syntax-primitives/syntax-primitives/08-empty-lane-workflow/workflow.fz b/syntax-primitives/syntax-primitives/08-empty-lane-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..891cfbabcf6fd8a850866b8420af7ef93efc4ecd --- /dev/null +++ b/syntax-primitives/syntax-primitives/08-empty-lane-workflow/workflow.fz @@ -0,0 +1,12 @@ +laneA { # Lane A + n1: circle label:"Start 08 Empty Lane" + n2: rectangle label:"08 Empty Lane step 2" + n3: rectangle label:"08 Empty Lane step 3" + n4: rectangle label:"08 Empty Lane step 4" + n5: circle label:"End 08 Empty Lane" + + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(right) -> n5.handle(left) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow/README.md b/syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ae3aba767c019fc65b6d8735a1e469b20d848265 --- /dev/null +++ b/syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow/README.md @@ -0,0 +1,19 @@ +# 09 Cross Lane Circular Workflow + +This workflow models an arrow that loops back across lanes in a circular fashion. + +**Template ID:** `09-cross-lane-circular-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 1 +**Tags:** [09, cross, lane, circular] +**Source path:** `syntax-primitives/09-cross-lane-circular` +**Repo path:** `syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow/metadata.json b/syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..d33bb735caeaba0ff98d50aa9c9fc8994973c823 --- /dev/null +++ b/syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow/metadata.json @@ -0,0 +1,24 @@ +{ + "template_id": "09-cross-lane-circular-workflow", + "workflow_id": "09-cross-lane-circular", + "title": "09 Cross Lane Circular Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 1, + "tags": [ + "09", + "cross", + "lane", + "circular" + ], + "description": "This workflow models an arrow that loops back across lanes in a circular fashion.", + "source_path": "syntax-primitives/09-cross-lane-circular", + "repo_path": "syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow" +} diff --git a/syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow/workflow.fz b/syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..a3ab67343aee0b3ebe4851a0b71f94036d714884 --- /dev/null +++ b/syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow/workflow.fz @@ -0,0 +1,12 @@ +laneA { # Lane A + n1: circle label:"Start 09 Cross Lane Circular" + n2: rectangle label:"09 Cross Lane Circular step 2" + n3: rectangle label:"09 Cross Lane Circular step 3" + n4: rectangle label:"09 Cross Lane Circular step 4" + n5: circle label:"End 09 Cross Lane Circular" + + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(right) -> n5.handle(left) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/10-long-labels-workflow/README.md b/syntax-primitives/syntax-primitives/10-long-labels-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..eeaebd478e8a21af36a9c1086979593a804f98e7 --- /dev/null +++ b/syntax-primitives/syntax-primitives/10-long-labels-workflow/README.md @@ -0,0 +1,19 @@ +# 10 Long Labels Workflow + +This workflow models labels with extra-long descriptive text. + +**Template ID:** `10-long-labels-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 1/5 +**Nodes:** 5 +**Lanes:** 1 +**Tags:** [10, long, labels] +**Source path:** `syntax-primitives/10-long-labels` +**Repo path:** `syntax-primitives/syntax-primitives/10-long-labels-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/10-long-labels-workflow/metadata.json b/syntax-primitives/syntax-primitives/10-long-labels-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..c285292bc43086a614c5f14643a0aff034e5eef0 --- /dev/null +++ b/syntax-primitives/syntax-primitives/10-long-labels-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "10-long-labels-workflow", + "workflow_id": "10-long-labels", + "title": "10 Long Labels Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 1, + "num_nodes": 5, + "num_lanes": 1, + "tags": [ + "10", + "long", + "labels" + ], + "description": "This workflow models labels with extra-long descriptive text.", + "source_path": "syntax-primitives/10-long-labels", + "repo_path": "syntax-primitives/syntax-primitives/10-long-labels-workflow" +} diff --git a/syntax-primitives/syntax-primitives/10-long-labels-workflow/workflow.fz b/syntax-primitives/syntax-primitives/10-long-labels-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..385ac5c4ec59ec8126a6f3bcb4a84a3d3f0a441a --- /dev/null +++ b/syntax-primitives/syntax-primitives/10-long-labels-workflow/workflow.fz @@ -0,0 +1,12 @@ +laneA { # Lane A + n1: circle label:"Start 10 Long Labels" + n2: rectangle label:"10 Long Labels step 2" + n3: rectangle label:"10 Long Labels step 3" + n4: rectangle label:"10 Long Labels step 4" + n5: circle label:"End 10 Long Labels" + + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(right) -> n5.handle(left) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/11-taskbox-complete-workflow/README.md b/syntax-primitives/syntax-primitives/11-taskbox-complete-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6ccd7378c0ab5d8db441ba7a2172f8026a2b6123 --- /dev/null +++ b/syntax-primitives/syntax-primitives/11-taskbox-complete-workflow/README.md @@ -0,0 +1,19 @@ +# 11 Taskbox Complete Workflow + +This workflow models a taskbox with owner, description, and system parameters. + +**Template ID:** `11-taskbox-complete-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [11, taskbox, complete] +**Source path:** `syntax-primitives/11-taskbox-complete` +**Repo path:** `syntax-primitives/syntax-primitives/11-taskbox-complete-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/11-taskbox-complete-workflow/metadata.json b/syntax-primitives/syntax-primitives/11-taskbox-complete-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..94b56f8631e5184330ed9e0244148d823893a8a1 --- /dev/null +++ b/syntax-primitives/syntax-primitives/11-taskbox-complete-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "11-taskbox-complete-workflow", + "workflow_id": "11-taskbox-complete", + "title": "11 Taskbox Complete Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "11", + "taskbox", + "complete" + ], + "description": "This workflow models a taskbox with owner, description, and system parameters.", + "source_path": "syntax-primitives/11-taskbox-complete", + "repo_path": "syntax-primitives/syntax-primitives/11-taskbox-complete-workflow" +} diff --git a/syntax-primitives/syntax-primitives/11-taskbox-complete-workflow/workflow.fz b/syntax-primitives/syntax-primitives/11-taskbox-complete-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..53a50017dd6a4364ff9b5dba6fba1b7ced437dfc --- /dev/null +++ b/syntax-primitives/syntax-primitives/11-taskbox-complete-workflow/workflow.fz @@ -0,0 +1,18 @@ +laneA { # Lane A + n1: circle label:"Start 11 Taskbox Complete" + n3: taskbox owner:"" description:"" system:"" + n5: rectangle label:"11 Taskbox Complete step 5" + n7: circle label:"End 11 Taskbox Complete" + n1.handle(bottom) -> laneB.n2.handle(top) + n3.handle(bottom) -> laneB.n4.handle(top) + n5.handle(bottom) -> laneB.n6.handle(top) +} + +laneB { # Lane B + n2: rectangle label:"11 Taskbox Complete step 2" + n4: taskbox owner:"" description:"" system:"" + n6: rectangle label:"11 Taskbox Complete step 6" + n6.handle(right) -> laneA.n7.handle(left) + n4.handle(right) -> laneA.n5.handle(left) + n2.handle(right) -> laneA.n3.handle(left) +} diff --git a/syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow/README.md b/syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..fcec9e85c72cb7281ba24f82045753ea3b8e55e9 --- /dev/null +++ b/syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow/README.md @@ -0,0 +1,19 @@ +# 12 Bidirectional Arrows Workflow + +This workflow models two-way connections between the same pair of nodes. + +**Template ID:** `12-bidirectional-arrows-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [12, bidirectional, arrows] +**Source path:** `syntax-primitives/12-bidirectional-arrows` +**Repo path:** `syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow/metadata.json b/syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a130e41184be67d44f163174feea49f7d2123b44 --- /dev/null +++ b/syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "12-bidirectional-arrows-workflow", + "workflow_id": "12-bidirectional-arrows", + "title": "12 Bidirectional Arrows Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "12", + "bidirectional", + "arrows" + ], + "description": "This workflow models two-way connections between the same pair of nodes.", + "source_path": "syntax-primitives/12-bidirectional-arrows", + "repo_path": "syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow" +} diff --git a/syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow/workflow.fz b/syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..f2b278d0507e4cc0fce03dacaaa9b46d4b454705 --- /dev/null +++ b/syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow/workflow.fz @@ -0,0 +1,18 @@ +laneA { # Lane A + n1: circle label:"Start 12 Bidirectional Arrows" + n3: rectangle label:"12 Bidirectional Arrows step 3" + n5: rectangle label:"12 Bidirectional Arrows step 5" + n7: circle label:"End 12 Bidirectional Arrows" + n1.handle(bottom) -> laneB.n2.handle(top) + n3.handle(bottom) -> laneB.n4.handle(top) + n5.handle(bottom) -> laneB.n6.handle(top) +} + +laneB { # Lane B + n2: rectangle label:"12 Bidirectional Arrows step 2" + n4: rectangle label:"12 Bidirectional Arrows step 4" + n6: rectangle label:"12 Bidirectional Arrows step 6" + n2.handle(right) -> laneA.n3.handle(left) + n4.handle(right) -> laneA.n5.handle(left) + n6.handle(right) -> laneA.n7.handle(left) +} diff --git a/syntax-primitives/syntax-primitives/13-parallel-flows-workflow/README.md b/syntax-primitives/syntax-primitives/13-parallel-flows-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..80366311cc9845aafefb7779bf0cfb086baa7a93 --- /dev/null +++ b/syntax-primitives/syntax-primitives/13-parallel-flows-workflow/README.md @@ -0,0 +1,19 @@ +# 13 Parallel Flows Workflow + +This workflow models one node splitting into three parallel tasks. + +**Template ID:** `13-parallel-flows-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [13, parallel, flows] +**Source path:** `syntax-primitives/13-parallel-flows` +**Repo path:** `syntax-primitives/syntax-primitives/13-parallel-flows-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/13-parallel-flows-workflow/metadata.json b/syntax-primitives/syntax-primitives/13-parallel-flows-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f5426f7f3778dc2192c128cf7d3f27eeeeaf9b76 --- /dev/null +++ b/syntax-primitives/syntax-primitives/13-parallel-flows-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "13-parallel-flows-workflow", + "workflow_id": "13-parallel-flows", + "title": "13 Parallel Flows Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "13", + "parallel", + "flows" + ], + "description": "This workflow models one node splitting into three parallel tasks.", + "source_path": "syntax-primitives/13-parallel-flows", + "repo_path": "syntax-primitives/syntax-primitives/13-parallel-flows-workflow" +} diff --git a/syntax-primitives/syntax-primitives/13-parallel-flows-workflow/workflow.fz b/syntax-primitives/syntax-primitives/13-parallel-flows-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..e318c02c606c65b9378590ba43767e39b9d0166a --- /dev/null +++ b/syntax-primitives/syntax-primitives/13-parallel-flows-workflow/workflow.fz @@ -0,0 +1,22 @@ +laneA { # Lane A + n1: circle label:"Start 13 Parallel Flows" + n3: rectangle label:"13 Parallel Flows step 3" + n5: rectangle label:"13 Parallel Flows step 5" + n7: circle label:"End 13 Parallel Flows" + n1.handle(right) -> n3.handle(left) + n3.handle(right) -> n7.handle(left) + n1.handle(right) -> laneB.n4.handle(left) + n1.handle(right) -> n5.handle(left) + n5.handle(right) -> n7.handle(left) + n1.handle(right) -> laneB.n6.handle(left) + n1.handle(bottom) -> laneB.n2.handle(top) +} + +laneB { # Lane B + n2: rectangle label:"13 Parallel Flows step 2" + n4: rectangle label:"13 Parallel Flows step 4" + n6: rectangle label:"13 Parallel Flows step 6" + n2.handle(right) -> laneA.n7.handle(left) + n6.handle(right) -> laneA.n7.handle(bottom) + n4.handle(right) -> laneA.n7.handle(bottom) +} diff --git a/syntax-primitives/syntax-primitives/14-error-handling-workflow/README.md b/syntax-primitives/syntax-primitives/14-error-handling-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d72c32dff3bb3510e7034a526652c866d2c9e21e --- /dev/null +++ b/syntax-primitives/syntax-primitives/14-error-handling-workflow/README.md @@ -0,0 +1,19 @@ +# 14 Error Handling Workflow + +This workflow models a try and retry style pattern for handling errors. + +**Template ID:** `14-error-handling-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [14, error, handling] +**Source path:** `syntax-primitives/14-error-handling` +**Repo path:** `syntax-primitives/syntax-primitives/14-error-handling-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/14-error-handling-workflow/metadata.json b/syntax-primitives/syntax-primitives/14-error-handling-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ce952c64d00ec2916642bbea6134fab0a3f7c2de --- /dev/null +++ b/syntax-primitives/syntax-primitives/14-error-handling-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "14-error-handling-workflow", + "workflow_id": "14-error-handling", + "title": "14 Error Handling Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "14", + "error", + "handling" + ], + "description": "This workflow models a try and retry style pattern for handling errors.", + "source_path": "syntax-primitives/14-error-handling", + "repo_path": "syntax-primitives/syntax-primitives/14-error-handling-workflow" +} diff --git a/syntax-primitives/syntax-primitives/14-error-handling-workflow/workflow.fz b/syntax-primitives/syntax-primitives/14-error-handling-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..9c05975d45d49d540c6caff3b9744796a0a28692 --- /dev/null +++ b/syntax-primitives/syntax-primitives/14-error-handling-workflow/workflow.fz @@ -0,0 +1,18 @@ +laneA { # Lane A + n1: circle label:"Start 14 Error Handling" + n3: rectangle label:"14 Error Handling step 3" + n5: rectangle label:"14 Error Handling step 5" + n7: circle label:"End 14 Error Handling" + n1.handle(bottom) -> laneB.n2.handle(top) + n3.handle(bottom) -> laneB.n4.handle(top) + n5.handle(bottom) -> laneB.n6.handle(top) +} + +laneB { # Lane B + n2: rectangle label:"14 Error Handling step 2" + n4: rectangle label:"14 Error Handling step 4" + n6: rectangle label:"14 Error Handling step 6" + n2.handle(right) -> laneA.n3.handle(left) + n4.handle(right) -> laneA.n5.handle(left) + n6.handle(right) -> laneA.n7.handle(left) +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/15-optional-parameters-workflow/README.md b/syntax-primitives/syntax-primitives/15-optional-parameters-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1cd4eee1a2c3c22f4c0578655d5d34aca9dea186 --- /dev/null +++ b/syntax-primitives/syntax-primitives/15-optional-parameters-workflow/README.md @@ -0,0 +1,19 @@ +# 15 Optional Parameters Workflow + +This workflow models a taskbox with some optional fields left out. + +**Template ID:** `15-optional-parameters-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [15, optional, parameters] +**Source path:** `syntax-primitives/15-optional-parameters` +**Repo path:** `syntax-primitives/syntax-primitives/15-optional-parameters-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/15-optional-parameters-workflow/metadata.json b/syntax-primitives/syntax-primitives/15-optional-parameters-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..2ad724c7a0ac5413f4dcdacb57f0a4be3992e8c5 --- /dev/null +++ b/syntax-primitives/syntax-primitives/15-optional-parameters-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "15-optional-parameters-workflow", + "workflow_id": "15-optional-parameters", + "title": "15 Optional Parameters Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "15", + "optional", + "parameters" + ], + "description": "This workflow models a taskbox with some optional fields left out.", + "source_path": "syntax-primitives/15-optional-parameters", + "repo_path": "syntax-primitives/syntax-primitives/15-optional-parameters-workflow" +} diff --git a/syntax-primitives/syntax-primitives/15-optional-parameters-workflow/workflow.fz b/syntax-primitives/syntax-primitives/15-optional-parameters-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..d166a03e5773fd8315c52cf35eee37c1089d2861 --- /dev/null +++ b/syntax-primitives/syntax-primitives/15-optional-parameters-workflow/workflow.fz @@ -0,0 +1,18 @@ +laneA { # Lane A + n1: circle label:"Start 15 Optional Parameters" + n3: rectangle label:"15 Optional Parameters step 3" + n5: rectangle label:"15 Optional Parameters step 5" + n7: circle label:"End 15 Optional Parameters" + n1.handle(bottom) -> laneB.n2.handle(top) + n3.handle(bottom) -> laneB.n4.handle(top) + n5.handle(bottom) -> laneB.n6.handle(top) +} + +laneB { # Lane B + n2: rectangle label:"15 Optional Parameters step 2" + n4: rectangle label:"15 Optional Parameters step 4" + n6: rectangle label:"15 Optional Parameters step 6" + n2.handle(right) -> laneA.n3.handle(left) + n4.handle(right) -> laneA.n5.handle(left) + n6.handle(right) -> laneA.n7.handle(left) +} diff --git a/syntax-primitives/syntax-primitives/17-minimal-nodes-workflow/README.md b/syntax-primitives/syntax-primitives/17-minimal-nodes-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f596ae91b634030acc817e8cc77d806cf03110c9 --- /dev/null +++ b/syntax-primitives/syntax-primitives/17-minimal-nodes-workflow/README.md @@ -0,0 +1,19 @@ +# 17 Minimal Nodes Workflow + +This workflow models a workflow with a single start node only. + +**Template ID:** `17-minimal-nodes-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 1 +**Lanes:** 1 +**Tags:** [17, minimal, nodes] +**Source path:** `syntax-primitives/17-minimal-nodes` +**Repo path:** `syntax-primitives/syntax-primitives/17-minimal-nodes-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/17-minimal-nodes-workflow/metadata.json b/syntax-primitives/syntax-primitives/17-minimal-nodes-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..e522ce7fc8ae28aa52753b64fb2afb991a141259 --- /dev/null +++ b/syntax-primitives/syntax-primitives/17-minimal-nodes-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "17-minimal-nodes-workflow", + "workflow_id": "17-minimal-nodes", + "title": "17 Minimal Nodes Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 2, + "num_nodes": 1, + "num_lanes": 1, + "tags": [ + "17", + "minimal", + "nodes" + ], + "description": "This workflow models a workflow with a single start node only.", + "source_path": "syntax-primitives/17-minimal-nodes", + "repo_path": "syntax-primitives/syntax-primitives/17-minimal-nodes-workflow" +} diff --git a/syntax-primitives/syntax-primitives/17-minimal-nodes-workflow/workflow.fz b/syntax-primitives/syntax-primitives/17-minimal-nodes-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..22925c4f062ab2396fd72160e48f22a54d31c16c --- /dev/null +++ b/syntax-primitives/syntax-primitives/17-minimal-nodes-workflow/workflow.fz @@ -0,0 +1,3 @@ +laneA { # Lane A + n1: circle label:"Start 17 Minimal Nodes" +} \ No newline at end of file diff --git a/syntax-primitives/syntax-primitives/18-complex-handles-workflow/README.md b/syntax-primitives/syntax-primitives/18-complex-handles-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..838ac9a2a1644e1ecd59889e342dbd05220cfb07 --- /dev/null +++ b/syntax-primitives/syntax-primitives/18-complex-handles-workflow/README.md @@ -0,0 +1,19 @@ +# 18 Complex Handles Workflow + +This workflow models a workflow that uses every handle position in one diagram. + +**Template ID:** `18-complex-handles-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 2 +**Tags:** [18, complex, handles] +**Source path:** `syntax-primitives/18-complex-handles` +**Repo path:** `syntax-primitives/syntax-primitives/18-complex-handles-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/18-complex-handles-workflow/metadata.json b/syntax-primitives/syntax-primitives/18-complex-handles-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..152f1481030293b06f84a2f2ef957ffef29648d9 --- /dev/null +++ b/syntax-primitives/syntax-primitives/18-complex-handles-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "18-complex-handles-workflow", + "workflow_id": "18-complex-handles", + "title": "18 Complex Handles Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 2, + "tags": [ + "18", + "complex", + "handles" + ], + "description": "This workflow models a workflow that uses every handle position in one diagram.", + "source_path": "syntax-primitives/18-complex-handles", + "repo_path": "syntax-primitives/syntax-primitives/18-complex-handles-workflow" +} diff --git a/syntax-primitives/syntax-primitives/18-complex-handles-workflow/workflow.fz b/syntax-primitives/syntax-primitives/18-complex-handles-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..0184b2fa5dc8bb3759a3ac479dc01fad9dde6db7 --- /dev/null +++ b/syntax-primitives/syntax-primitives/18-complex-handles-workflow/workflow.fz @@ -0,0 +1,18 @@ +laneA { # Lane A + n1: circle label:"Start 18 Complex Handles" + n3: rectangle label:"18 Complex Handles step 3" + n5: rectangle label:"18 Complex Handles step 5" + n7: circle label:"End 18 Complex Handles" + n1.handle(bottom) -> laneB.n2.handle(top) + n3.handle(bottom) -> laneB.n4.handle(top) + n5.handle(bottom) -> laneB.n6.handle(top) +} + +laneB { # Lane B + n2: rectangle label:"18 Complex Handles step 2" + n4: rectangle label:"18 Complex Handles step 4" + n6: rectangle label:"18 Complex Handles step 6" + n2.handle(right) -> laneA.n3.handle(left) + n4.handle(right) -> laneA.n5.handle(left) + n6.handle(right) -> laneA.n7.handle(left) +} diff --git a/syntax-primitives/syntax-primitives/20-syntax-complete-workflow/README.md b/syntax-primitives/syntax-primitives/20-syntax-complete-workflow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f372fe1e917135686273a9cdc933c7970d9aada5 --- /dev/null +++ b/syntax-primitives/syntax-primitives/20-syntax-complete-workflow/README.md @@ -0,0 +1,19 @@ +# 20 Syntax Complete Workflow + +This workflow models one workflow using most available language features. + +**Template ID:** `20-syntax-complete-workflow` +**Kind:** workflow +**Source domain:** syntax-primitives +**Primary use case:** syntax-primitives +**Secondary use cases:** None +**Complexity:** 2/5 +**Nodes:** 7 +**Lanes:** 3 +**Tags:** [20, syntax, complete] +**Source path:** `syntax-primitives/20-syntax-complete` +**Repo path:** `syntax-primitives/syntax-primitives/20-syntax-complete-workflow` + +## Files +- `workflow.fz` — FlowZap Code source +- `metadata.json` — Structured metadata diff --git a/syntax-primitives/syntax-primitives/20-syntax-complete-workflow/metadata.json b/syntax-primitives/syntax-primitives/20-syntax-complete-workflow/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..3a57bf730fee63d4b6f7eaab786f22e41d330836 --- /dev/null +++ b/syntax-primitives/syntax-primitives/20-syntax-complete-workflow/metadata.json @@ -0,0 +1,23 @@ +{ + "template_id": "20-syntax-complete-workflow", + "workflow_id": "20-syntax-complete", + "title": "20 Syntax Complete Workflow", + "kind": "workflow", + "source_domain": "syntax-primitives", + "primary_use_case": "syntax-primitives", + "secondary_use_cases": [], + "use_cases": [ + "syntax-primitives" + ], + "complexity": 2, + "num_nodes": 7, + "num_lanes": 3, + "tags": [ + "20", + "syntax", + "complete" + ], + "description": "This workflow models one workflow using most available language features.", + "source_path": "syntax-primitives/20-syntax-complete", + "repo_path": "syntax-primitives/syntax-primitives/20-syntax-complete-workflow" +} diff --git a/syntax-primitives/syntax-primitives/20-syntax-complete-workflow/workflow.fz b/syntax-primitives/syntax-primitives/20-syntax-complete-workflow/workflow.fz new file mode 100644 index 0000000000000000000000000000000000000000..610fb36445ee0577b4c727fafc7dc34521f16dda --- /dev/null +++ b/syntax-primitives/syntax-primitives/20-syntax-complete-workflow/workflow.fz @@ -0,0 +1,21 @@ +laneA { # Lane A + n1: circle label:"Start 20 Syntax Complete" + n4: rectangle label:"20 Syntax Complete step 4" + n7: circle label:"End 20 Syntax Complete" + n1.handle(bottom) -> laneB.n2.handle(top) + n4.handle(bottom) -> laneB.n5.handle(top) +} + +laneB { # Lane B + n2: rectangle label:"20 Syntax Complete step 2" + n5: rectangle label:"20 Syntax Complete step 5" + n2.handle(bottom) -> laneC.n3.handle(top) + n5.handle(bottom) -> laneC.n6.handle(top) +} + +laneC { # Lane C + n3: rectangle label:"20 Syntax Complete step 3" + n6: rectangle label:"20 Syntax Complete step 6" + n3.handle(right) -> laneA.n4.handle(left) + n6.handle(right) -> laneA.n7.handle(left) +} diff --git a/templates.index.json b/templates.index.json index 8f5aa45e430b612f84e23552271b77833cadba6b..e71c0122f425533542262ae88c5a7ddc776e5e31 100644 --- a/templates.index.json +++ b/templates.index.json @@ -1,14 +1,457 @@ { "templates": [ + { + "slug": "01-basic-lane-workflow", + "title": "01 Basic Lane Workflow", + "description": "This workflow models two connected nodes in a single lane showing basic flow.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "01", + "basic", + "lane" + ], + "sourcePath": "syntax-primitives/01-basic-lane", + "repoPath": "syntax-primitives/syntax-primitives/01-basic-lane-workflow" + }, + { + "slug": "02-handle-positions-workflow", + "title": "02 Handle Positions Workflow", + "description": "This workflow models nodes with explicit top, bottom, left, and right handle connections.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "02", + "handle", + "positions" + ], + "sourcePath": "syntax-primitives/02-handle-positions", + "repoPath": "syntax-primitives/syntax-primitives/02-handle-positions-workflow" + }, + { + "slug": "03-all-shapes-workflow", + "title": "03 All Shapes Workflow", + "description": "This workflow models a workflow that demonstrates circle, rectangle, diamond, and taskbox shapes.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "03", + "all", + "shapes" + ], + "sourcePath": "syntax-primitives/03-all-shapes", + "repoPath": "syntax-primitives/syntax-primitives/03-all-shapes-workflow" + }, + { + "slug": "04-labeled-arrows-workflow", + "title": "04 Labeled Arrows Workflow", + "description": "This workflow models connections with descriptive labels between nodes.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "04", + "labeled", + "arrows" + ], + "sourcePath": "syntax-primitives/04-labeled-arrows", + "repoPath": "syntax-primitives/syntax-primitives/04-labeled-arrows-workflow" + }, + { + "slug": "05-multiple-lanes-workflow", + "title": "05 Multiple Lanes Workflow", + "description": "This workflow models three lanes with cross-lane communication.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 3, + "tags": [ + "05", + "multiple", + "lanes" + ], + "sourcePath": "syntax-primitives/05-multiple-lanes", + "repoPath": "syntax-primitives/syntax-primitives/05-multiple-lanes-workflow" + }, + { + "slug": "06-nested-lanes-workflow", + "title": "06 Nested Lanes Workflow", + "description": "This workflow models lanes that conceptually contain other lanes.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 3, + "tags": [ + "06", + "nested", + "lanes" + ], + "sourcePath": "syntax-primitives/06-nested-lanes", + "repoPath": "syntax-primitives/syntax-primitives/06-nested-lanes-workflow" + }, + { + "slug": "07-unicode-labels-workflow", + "title": "07 Unicode Labels Workflow", + "description": "This workflow models a workflow with emoji and international characters in labels.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "07", + "unicode", + "labels" + ], + "sourcePath": "syntax-primitives/07-unicode-labels", + "repoPath": "syntax-primitives/syntax-primitives/07-unicode-labels-workflow" + }, + { + "slug": "08-empty-lane-workflow", + "title": "08 Empty Lane Workflow", + "description": "This workflow models a lane with no nodes to test empty-lane handling.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "08", + "empty", + "lane" + ], + "sourcePath": "syntax-primitives/08-empty-lane", + "repoPath": "syntax-primitives/syntax-primitives/08-empty-lane-workflow" + }, + { + "slug": "09-cross-lane-circular-workflow", + "title": "09 Cross Lane Circular Workflow", + "description": "This workflow models an arrow that loops back across lanes in a circular fashion.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "09", + "cross", + "lane", + "circular" + ], + "sourcePath": "syntax-primitives/09-cross-lane-circular", + "repoPath": "syntax-primitives/syntax-primitives/09-cross-lane-circular-workflow" + }, + { + "slug": "10-long-labels-workflow", + "title": "10 Long Labels Workflow", + "description": "This workflow models labels with extra-long descriptive text.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "10", + "long", + "labels" + ], + "sourcePath": "syntax-primitives/10-long-labels", + "repoPath": "syntax-primitives/syntax-primitives/10-long-labels-workflow" + }, + { + "slug": "11-taskbox-complete-workflow", + "title": "11 Taskbox Complete Workflow", + "description": "This workflow models a taskbox with owner, description, and system parameters.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 2, + "tags": [ + "11", + "taskbox", + "complete" + ], + "sourcePath": "syntax-primitives/11-taskbox-complete", + "repoPath": "syntax-primitives/syntax-primitives/11-taskbox-complete-workflow" + }, + { + "slug": "12-bidirectional-arrows-workflow", + "title": "12 Bidirectional Arrows Workflow", + "description": "This workflow models two-way connections between the same pair of nodes.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 2, + "tags": [ + "12", + "bidirectional", + "arrows" + ], + "sourcePath": "syntax-primitives/12-bidirectional-arrows", + "repoPath": "syntax-primitives/syntax-primitives/12-bidirectional-arrows-workflow" + }, + { + "slug": "13-parallel-flows-workflow", + "title": "13 Parallel Flows Workflow", + "description": "This workflow models one node splitting into three parallel tasks.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 2, + "tags": [ + "13", + "parallel", + "flows" + ], + "sourcePath": "syntax-primitives/13-parallel-flows", + "repoPath": "syntax-primitives/syntax-primitives/13-parallel-flows-workflow" + }, + { + "slug": "14-error-handling-workflow", + "title": "14 Error Handling Workflow", + "description": "This workflow models a try and retry style pattern for handling errors.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 2, + "tags": [ + "14", + "error", + "handling" + ], + "sourcePath": "syntax-primitives/14-error-handling", + "repoPath": "syntax-primitives/syntax-primitives/14-error-handling-workflow" + }, + { + "slug": "15-optional-parameters-workflow", + "title": "15 Optional Parameters Workflow", + "description": "This workflow models a taskbox with some optional fields left out.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 2, + "tags": [ + "15", + "optional", + "parameters" + ], + "sourcePath": "syntax-primitives/15-optional-parameters", + "repoPath": "syntax-primitives/syntax-primitives/15-optional-parameters-workflow" + }, + { + "slug": "16-max-nodes-workflow", + "title": "16 Max Nodes Workflow", + "description": "This workflow models 50 nodes in one lane as a stress test.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 2, + "numNodes": 50, + "numLanes": 2, + "tags": [ + "16", + "max", + "nodes" + ], + "sourcePath": "syntax-primitives/16-max-nodes", + "repoPath": "edge-cases/syntax-primitives/16-max-nodes-workflow" + }, + { + "slug": "17-minimal-nodes-workflow", + "title": "17 Minimal Nodes Workflow", + "description": "This workflow models a workflow with a single start node only.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 2, + "numNodes": 1, + "numLanes": 1, + "tags": [ + "17", + "minimal", + "nodes" + ], + "sourcePath": "syntax-primitives/17-minimal-nodes", + "repoPath": "syntax-primitives/syntax-primitives/17-minimal-nodes-workflow" + }, + { + "slug": "18-complex-handles-workflow", + "title": "18 Complex Handles Workflow", + "description": "This workflow models a workflow that uses every handle position in one diagram.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 2, + "tags": [ + "18", + "complex", + "handles" + ], + "sourcePath": "syntax-primitives/18-complex-handles", + "repoPath": "syntax-primitives/syntax-primitives/18-complex-handles-workflow" + }, + { + "slug": "19-label-escaping-workflow", + "title": "19 Label Escaping Workflow", + "description": "This workflow models labels that include quotes and special characters.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 2, + "tags": [ + "19", + "label", + "escaping" + ], + "sourcePath": "syntax-primitives/19-label-escaping", + "repoPath": "edge-cases/syntax-primitives/19-label-escaping-workflow" + }, + { + "slug": "20-syntax-complete-workflow", + "title": "20 Syntax Complete Workflow", + "description": "This workflow models one workflow using most available language features.", + "kind": "workflow", + "sourceDomain": "syntax-primitives", + "primaryUseCase": "syntax-primitives", + "secondaryUseCases": [], + "useCases": [ + "syntax-primitives" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 3, + "tags": [ + "20", + "syntax", + "complete" + ], + "sourcePath": "syntax-primitives/20-syntax-complete", + "repoPath": "syntax-primitives/syntax-primitives/20-syntax-complete-workflow" + }, { "slug": "a-b-testing-workflow", "title": "A B Testing Workflow", "description": "This workflow models comparing two versions to see which performs better.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -19,7 +462,7 @@ "patterns" ], "sourcePath": "patterns/a-b-testing", - "repoPath": "uncategorized/patterns/a-b-testing-workflow" + "repoPath": "patterns/patterns/a-b-testing-workflow" }, { "slug": "ab-test-setup-workflow", @@ -112,12 +555,16 @@ "primaryUseCase": "handoff", "secondaryUseCases": [ "security", - "mcp" + "mcp", + "architecture", + "patterns" ], "useCases": [ "handoff", "security", - "mcp" + "mcp", + "architecture", + "patterns" ], "complexity": 3, "numNodes": 7, @@ -168,9 +615,12 @@ "kind": "workflow", "sourceDomain": "patterns", "primaryUseCase": "compliance", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "compliance" + "compliance", + "patterns" ], "complexity": 4, "numNodes": 13, @@ -192,9 +642,12 @@ "kind": "workflow", "sourceDomain": "patterns", "primaryUseCase": "security", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "security" + "security", + "patterns" ], "complexity": 3, "numNodes": 7, @@ -218,11 +671,13 @@ "sourceDomain": "patterns", "primaryUseCase": "approval", "secondaryUseCases": [ - "security" + "security", + "patterns" ], "useCases": [ "approval", - "security" + "security", + "patterns" ], "complexity": 3, "numNodes": 10, @@ -312,9 +767,11 @@ "description": "Batch processing pattern with job scheduling, chunk-based processing, checkpoint/restart capability, error handling, and completion reporting.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 7, "numLanes": 2, @@ -327,21 +784,45 @@ "job-scheduler" ], "sourcePath": "patterns/batch-processing", - "repoPath": "uncategorized/patterns/batch-processing-workflow" + "repoPath": "patterns/patterns/batch-processing-workflow" }, { - "slug": "billing-dispute-workflow", - "title": "Billing Dispute Workflow", - "description": "Billing dispute workflow with dispute intake, transaction review, fraud analysis, resolution decision, and chargeback response handling.", + "slug": "bidirectional-loop-workflow", + "title": "Bidirectional Loop Workflow", + "description": "This workflow models circular references between nodes in both directions.", "kind": "workflow", - "sourceDomain": "business-operations", - "primaryUseCase": "approval", - "secondaryUseCases": [ - "billing" - ], + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 5, + "numNodes": 16, + "numLanes": 4, + "tags": [ + "bidirectional", + "loop", + "decision" + ], + "sourcePath": "edge-cases/bidirectional-loop", + "repoPath": "edge-cases/edge-cases/bidirectional-loop-workflow" + }, + { + "slug": "billing-dispute-workflow", + "title": "Billing Dispute Workflow", + "description": "Billing dispute workflow with dispute intake, transaction review, fraud analysis, resolution decision, and chargeback response handling.", + "kind": "workflow", + "sourceDomain": "business-operations", + "primaryUseCase": "approval", + "secondaryUseCases": [ + "billing", + "commerce-automation" + ], "useCases": [ "approval", - "billing" + "billing", + "commerce-automation" ], "complexity": 4, "numNodes": 13, @@ -364,9 +845,12 @@ "kind": "workflow", "sourceDomain": "patterns", "primaryUseCase": "delivery", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "delivery" + "delivery", + "patterns" ], "complexity": 4, "numNodes": 13, @@ -437,9 +921,11 @@ "description": "Cache-aside pattern with cache lookup, database fallback on miss, cache population, TTL-based expiration, and write-through invalidation.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -452,7 +938,7 @@ "performance" ], "sourcePath": "patterns/cache-aside", - "repoPath": "uncategorized/patterns/cache-aside-workflow" + "repoPath": "patterns/patterns/cache-aside-workflow" }, { "slug": "callback-pattern-workflow", @@ -460,9 +946,11 @@ "description": "This workflow models an async operation that notifies a callback when done.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -474,7 +962,7 @@ "loop" ], "sourcePath": "patterns/callback-pattern", - "repoPath": "uncategorized/patterns/callback-pattern-workflow" + "repoPath": "patterns/patterns/callback-pattern-workflow" }, { "slug": "canary-deploy-workflow", @@ -484,11 +972,13 @@ "sourceDomain": "patterns", "primaryUseCase": "incident", "secondaryUseCases": [ - "delivery" + "delivery", + "patterns" ], "useCases": [ "incident", - "delivery" + "delivery", + "patterns" ], "complexity": 3, "numNodes": 7, @@ -656,9 +1146,14 @@ "kind": "workflow", "sourceDomain": "patterns", "primaryUseCase": "mcp", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture", + "patterns" + ], "useCases": [ - "mcp" + "mcp", + "architecture", + "patterns" ], "complexity": 4, "numNodes": 19, @@ -681,9 +1176,11 @@ "description": "This workflow models keeping large payloads external and only passing references.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -693,7 +1190,7 @@ "patterns" ], "sourcePath": "patterns/claim-check", - "repoPath": "uncategorized/patterns/claim-check-workflow" + "repoPath": "patterns/patterns/claim-check-workflow" }, { "slug": "cohort-analysis-workflow", @@ -743,6 +1240,28 @@ "sourcePath": "logistics/cold-chain-monitoring", "repoPath": "incident/logistics/cold-chain-monitoring-workflow" }, + { + "slug": "comment-like-labels-workflow", + "title": "Comment Like Labels Workflow", + "description": "This workflow models labels that look like code comments.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "comment", + "like", + "labels" + ], + "sourcePath": "edge-cases/comment-like-labels", + "repoPath": "edge-cases/edge-cases/comment-like-labels-workflow" + }, { "slug": "community-moderation-workflow", "title": "Community Moderation Workflow", @@ -772,9 +1291,11 @@ "description": "This workflow models rolling back work when a later step fails.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -786,7 +1307,7 @@ "loop" ], "sourcePath": "patterns/compensation-transaction", - "repoPath": "uncategorized/patterns/compensation-transaction-workflow" + "repoPath": "patterns/patterns/compensation-transaction-workflow" }, { "slug": "conflict-resolution-workflow", @@ -867,9 +1388,11 @@ "description": "This workflow models adding extra data from other sources.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -880,7 +1403,7 @@ "decision" ], "sourcePath": "patterns/content-enricher", - "repoPath": "uncategorized/patterns/content-enricher-workflow" + "repoPath": "patterns/patterns/content-enricher-workflow" }, { "slug": "cost-center-workflow", @@ -909,9 +1432,11 @@ "description": "CQRS (Command Query Responsibility Segregation) pattern with separate command and query paths, domain event publishing, read model synchronization, and DTO transformation.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 19, "numLanes": 4, @@ -925,7 +1450,7 @@ "eventual-consistency" ], "sourcePath": "patterns/cqrs", - "repoPath": "uncategorized/patterns/cqrs-workflow" + "repoPath": "patterns/patterns/cqrs-workflow" }, { "slug": "credit-control-workflow", @@ -973,15 +1498,39 @@ "sourcePath": "logistics/cross-docking", "repoPath": "uncategorized/logistics/cross-docking-workflow" }, + { + "slug": "cross-lane-circular-workflow", + "title": "Cross Lane Circular Workflow", + "description": "This workflow models arrows that loop across lanes.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 4, + "numNodes": 13, + "numLanes": 4, + "tags": [ + "cross", + "lane", + "circular" + ], + "sourcePath": "edge-cases/cross-lane-circular", + "repoPath": "edge-cases/edge-cases/cross-lane-circular-workflow" + }, { "slug": "crud-user-browser-server-workflow", "title": "Crud User Browser Server Workflow", "description": "This workflow models user creates, reads, updates, and deletes data through a browser and server.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -993,7 +1542,7 @@ "patterns" ], "sourcePath": "patterns/crud-user-browser-server", - "repoPath": "uncategorized/patterns/crud-user-browser-server-workflow" + "repoPath": "patterns/patterns/crud-user-browser-server-workflow" }, { "slug": "customs-clearance-workflow", @@ -1127,9 +1676,11 @@ "description": "Dead letter queue pattern for handling failed messages with retry exhaustion detection, DLQ routing, manual inspection, and reprocessing capability.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 7, "numLanes": 2, @@ -1142,7 +1693,7 @@ "message-queue" ], "sourcePath": "patterns/dead-letter-queue", - "repoPath": "uncategorized/patterns/dead-letter-queue-workflow" + "repoPath": "patterns/patterns/dead-letter-queue-workflow" }, { "slug": "decision-diamond-workflow", @@ -1150,9 +1701,11 @@ "description": "This workflow models an if or then style branch for approval or rejection.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -1162,7 +1715,29 @@ "patterns" ], "sourcePath": "patterns/decision-diamond", - "repoPath": "uncategorized/patterns/decision-diamond-workflow" + "repoPath": "patterns/patterns/decision-diamond-workflow" + }, + { + "slug": "deep-nesting-workflow", + "title": "Deep Nesting Workflow", + "description": "This workflow models lanes that are conceptually nested within each other.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 4, + "numNodes": 13, + "numLanes": 4, + "tags": [ + "deep", + "nesting", + "parallel" + ], + "sourcePath": "edge-cases/deep-nesting", + "repoPath": "edge-cases/edge-cases/deep-nesting-workflow" }, { "slug": "delivery-confirmation-workflow", @@ -1215,6 +1790,29 @@ "sourcePath": "devops/deployment-rollback", "repoPath": "incident/devops/deployment-rollback-workflow" }, + { + "slug": "disconnected-lanes-workflow", + "title": "Disconnected Lanes Workflow", + "description": "This workflow models lanes that never connect to each other.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 2, + "tags": [ + "disconnected", + "lanes", + "decision", + "loop" + ], + "sourcePath": "edge-cases/disconnected-lanes", + "repoPath": "edge-cases/edge-cases/disconnected-lanes-workflow" + }, { "slug": "diversity-initiative-workflow", "title": "Diversity Initiative Workflow", @@ -1260,6 +1858,28 @@ "sourcePath": "business-operations/dunning-flow", "repoPath": "billing/business-operations/dunning-flow-workflow" }, + { + "slug": "duplicate-node-ids-workflow", + "title": "Duplicate Node Ids Workflow", + "description": "This workflow models the same node IDs reused in different lanes.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 3, + "numNodes": 10, + "numLanes": 3, + "tags": [ + "duplicate", + "node", + "ids" + ], + "sourcePath": "edge-cases/duplicate-node-ids", + "repoPath": "edge-cases/edge-cases/duplicate-node-ids-workflow" + }, { "slug": "email-campaign-workflow", "title": "Email Campaign Workflow", @@ -1304,15 +1924,38 @@ "sourcePath": "hr/employee-engagement", "repoPath": "uncategorized/hr/employee-engagement-workflow" }, + { + "slug": "empty-lane-workflow", + "title": "Empty Lane Workflow", + "description": "This workflow models a lane with no nodes.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 3, + "numNodes": 10, + "numLanes": 3, + "tags": [ + "empty", + "lane" + ], + "sourcePath": "edge-cases/empty-lane", + "repoPath": "edge-cases/edge-cases/empty-lane-workflow" + }, { "slug": "enricher-workflow", "title": "Enricher Workflow", "description": "This workflow models adding metadata to messages before passing them on.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -1321,7 +1964,7 @@ "patterns" ], "sourcePath": "patterns/enricher", - "repoPath": "uncategorized/patterns/enricher-workflow" + "repoPath": "patterns/patterns/enricher-workflow" }, { "slug": "error-retry-loop-workflow", @@ -1329,9 +1972,11 @@ "description": "This workflow models a failed operation that retries with backoff.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -1342,7 +1987,7 @@ "patterns" ], "sourcePath": "patterns/error-retry-loop", - "repoPath": "uncategorized/patterns/error-retry-loop-workflow" + "repoPath": "patterns/patterns/error-retry-loop-workflow" }, { "slug": "escalation-pattern-workflow", @@ -1351,9 +1996,12 @@ "kind": "workflow", "sourceDomain": "patterns", "primaryUseCase": "handoff", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "handoff" + "handoff", + "patterns" ], "complexity": 3, "numNodes": 10, @@ -1372,9 +2020,14 @@ "description": "This workflow models reacting to incoming business events.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", - "secondaryUseCases": [], - "useCases": [], + "primaryUseCase": "architecture", + "secondaryUseCases": [ + "patterns" + ], + "useCases": [ + "architecture", + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -1384,7 +2037,7 @@ "patterns" ], "sourcePath": "patterns/event-driven", - "repoPath": "uncategorized/patterns/event-driven-workflow" + "repoPath": "architecture/patterns/event-driven-workflow" }, { "slug": "event-sourcing-workflow", @@ -1393,9 +2046,12 @@ "kind": "workflow", "sourceDomain": "patterns", "primaryUseCase": "compliance", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "compliance" + "compliance", + "patterns" ], "complexity": 4, "numNodes": 10, @@ -1484,6 +2140,27 @@ "sourcePath": "finance/expense-claim", "repoPath": "approval/finance/expense-claim-workflow" }, + { + "slug": "extra-whitespace-workflow", + "title": "Extra Whitespace Workflow", + "description": "This workflow models labels that include leading and trailing spaces.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 5, + "numNodes": 16, + "numLanes": 4, + "tags": [ + "extra", + "whitespace" + ], + "sourcePath": "edge-cases/extra-whitespace", + "repoPath": "edge-cases/edge-cases/extra-whitespace-workflow" + }, { "slug": "fan-out-fan-in-workflow", "title": "Fan Out Fan In Workflow", @@ -1491,9 +2168,12 @@ "kind": "workflow", "sourceDomain": "patterns", "primaryUseCase": "ai-orchestration", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "ai-orchestration" + "ai-orchestration", + "patterns" ], "complexity": 4, "numNodes": 13, @@ -1515,9 +2195,11 @@ "description": "Feature toggle pattern with flag configuration, user targeting rules, percentage rollouts, and instant kill-switch capability for production features.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -1530,7 +2212,7 @@ "kill-switch" ], "sourcePath": "patterns/feature-toggle", - "repoPath": "uncategorized/patterns/feature-toggle-workflow" + "repoPath": "patterns/patterns/feature-toggle-workflow" }, { "slug": "filter-workflow", @@ -1538,9 +2220,11 @@ "description": "This workflow models removing items that do not meet criteria.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 13, "numLanes": 4, @@ -1551,7 +2235,7 @@ "loop" ], "sourcePath": "patterns/filter", - "repoPath": "uncategorized/patterns/filter-workflow" + "repoPath": "patterns/patterns/filter-workflow" }, { "slug": "financial-reporting-workflow", @@ -1633,9 +2317,12 @@ "kind": "workflow", "sourceDomain": "business-operations", "primaryUseCase": "compliance", - "secondaryUseCases": [], + "secondaryUseCases": [ + "process-mapping" + ], "useCases": [ - "compliance" + "compliance", + "process-mapping" ], "complexity": 4, "numNodes": 13, @@ -1685,9 +2372,11 @@ "description": "This workflow models processing each message safely only once.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -1697,7 +2386,7 @@ "patterns" ], "sourcePath": "patterns/idempotent-consumer", - "repoPath": "uncategorized/patterns/idempotent-consumer-workflow" + "repoPath": "patterns/patterns/idempotent-consumer-workflow" }, { "slug": "in-app-message-workflow", @@ -1943,6 +2632,28 @@ "sourcePath": "hr/job-posting", "repoPath": "uncategorized/hr/job-posting-workflow" }, + { + "slug": "json-in-label-workflow", + "title": "Json In Label Workflow", + "description": "This workflow models a label that contains JSON text.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 4, + "numNodes": 13, + "numLanes": 4, + "tags": [ + "json", + "in", + "label" + ], + "sourcePath": "edge-cases/json-in-label", + "repoPath": "edge-cases/edge-cases/json-in-label-workflow" + }, { "slug": "kitting-process-workflow", "title": "Kitting Process Workflow", @@ -1991,6 +2702,27 @@ "sourcePath": "business-operations/knowledge-base", "repoPath": "support/business-operations/knowledge-base-workflow" }, + { + "slug": "label-escaping-workflow", + "title": "Label Escaping Workflow", + "description": "This workflow models labels containing quotes and special characters.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 5, + "numNodes": 16, + "numLanes": 4, + "tags": [ + "label", + "escaping" + ], + "sourcePath": "edge-cases/label-escaping", + "repoPath": "edge-cases/edge-cases/label-escaping-workflow" + }, { "slug": "last-mile-delivery-workflow", "title": "Last Mile Delivery Workflow", @@ -2040,15 +2772,39 @@ "repoPath": "delivery/devops/load-testing-workflow" }, { - "slug": "materialized-view-workflow", - "title": "Materialized View Workflow", - "description": "This workflow models serving queries from a precomputed view.", + "slug": "markdown-in-label-workflow", + "title": "Markdown In Label Workflow", + "description": "This workflow models a label that contains markdown formatting.", "kind": "workflow", - "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", "secondaryUseCases": [], - "useCases": [], - "complexity": 4, + "useCases": [ + "edge-cases" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "markdown", + "in", + "label" + ], + "sourcePath": "edge-cases/markdown-in-label", + "repoPath": "edge-cases/edge-cases/markdown-in-label-workflow" + }, + { + "slug": "materialized-view-workflow", + "title": "Materialized View Workflow", + "description": "This workflow models serving queries from a precomputed view.", + "kind": "workflow", + "sourceDomain": "patterns", + "primaryUseCase": "patterns", + "secondaryUseCases": [], + "useCases": [ + "patterns" + ], + "complexity": 4, "numNodes": 13, "numLanes": 4, "tags": [ @@ -2059,7 +2815,49 @@ "loop" ], "sourcePath": "patterns/materialized-view", - "repoPath": "uncategorized/patterns/materialized-view-workflow" + "repoPath": "patterns/patterns/materialized-view-workflow" + }, + { + "slug": "max-lanes-workflow", + "title": "Max Lanes Workflow", + "description": "This workflow models 10 lanes with simple cross-lane arrows.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 3, + "numNodes": 10, + "numLanes": 10, + "tags": [ + "max", + "lanes" + ], + "sourcePath": "edge-cases/max-lanes", + "repoPath": "edge-cases/edge-cases/max-lanes-workflow" + }, + { + "slug": "max-nodes-workflow", + "title": "Max Nodes Workflow", + "description": "This workflow models 50 nodes in a single lane as a parser stress test.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 2, + "numNodes": 50, + "numLanes": 2, + "tags": [ + "max", + "nodes" + ], + "sourcePath": "edge-cases/max-nodes", + "repoPath": "edge-cases/edge-cases/max-nodes-workflow" }, { "slug": "message-queue-workflow", @@ -2067,9 +2865,11 @@ "description": "This workflow models asynchronous processing of work via a queue.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -2080,7 +2880,50 @@ "decision" ], "sourcePath": "patterns/message-queue", - "repoPath": "uncategorized/patterns/message-queue-workflow" + "repoPath": "patterns/patterns/message-queue-workflow" + }, + { + "slug": "minimal-workflow", + "title": "Minimal Workflow", + "description": "This workflow models a workflow with a single node only.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 2, + "numNodes": 1, + "numLanes": 2, + "tags": [ + "minimal", + "workflow" + ], + "sourcePath": "edge-cases/minimal-workflow", + "repoPath": "edge-cases/edge-cases/minimal-workflow" + }, + { + "slug": "missing-labels-workflow", + "title": "Missing Labels Workflow", + "description": "This workflow models nodes without label parameters.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 4, + "numNodes": 13, + "numLanes": 4, + "tags": [ + "missing", + "labels", + "decision" + ], + "sourcePath": "edge-cases/missing-labels", + "repoPath": "edge-cases/edge-cases/missing-labels-workflow" }, { "slug": "monitoring-alert-workflow", @@ -2136,9 +2979,11 @@ "description": "This workflow models multiple layers of decisions before completion.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -2150,7 +2995,7 @@ "loop" ], "sourcePath": "patterns/nested-decisions", - "repoPath": "uncategorized/patterns/nested-decisions-workflow" + "repoPath": "patterns/patterns/nested-decisions-workflow" }, { "slug": "normalizer-workflow", @@ -2158,9 +3003,11 @@ "description": "This workflow models converting varied inputs to a standard format.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 13, "numLanes": 4, @@ -2169,7 +3016,7 @@ "patterns" ], "sourcePath": "patterns/normalizer", - "repoPath": "uncategorized/patterns/normalizer-workflow" + "repoPath": "patterns/patterns/normalizer-workflow" }, { "slug": "notification-pattern-workflow", @@ -2177,9 +3024,11 @@ "description": "This workflow models sending alerts via multiple channels.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -2189,7 +3038,7 @@ "patterns" ], "sourcePath": "patterns/notification-pattern", - "repoPath": "uncategorized/patterns/notification-pattern-workflow" + "repoPath": "patterns/patterns/notification-pattern-workflow" }, { "slug": "oauth-flow-workflow", @@ -2305,6 +3154,27 @@ "sourcePath": "hr/onboarding", "repoPath": "onboarding/hr/onboarding-workflow" }, + { + "slug": "orphan-node-workflow", + "title": "Orphan Node Workflow", + "description": "This workflow models a node with no connections.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "orphan", + "node" + ], + "sourcePath": "edge-cases/orphan-node", + "repoPath": "edge-cases/edge-cases/orphan-node-workflow" + }, { "slug": "packing-process-workflow", "title": "Packing Process Workflow", @@ -2334,9 +3204,11 @@ "description": "This workflow models multiple tasks that run at the same time.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 13, "numLanes": 4, @@ -2347,7 +3219,7 @@ "loop" ], "sourcePath": "patterns/parallel-execution", - "repoPath": "uncategorized/patterns/parallel-execution-workflow" + "repoPath": "patterns/patterns/parallel-execution-workflow" }, { "slug": "payment-failure-workflow", @@ -2356,9 +3228,14 @@ "kind": "workflow", "sourceDomain": "business-operations", "primaryUseCase": "billing", - "secondaryUseCases": [], + "secondaryUseCases": [ + "commerce-automation", + "patterns" + ], "useCases": [ - "billing" + "billing", + "commerce-automation", + "patterns" ], "complexity": 3, "numNodes": 7, @@ -2562,9 +3439,11 @@ "description": "This workflow models periodically checking status until work is done.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 13, "numLanes": 4, @@ -2575,7 +3454,7 @@ "loop" ], "sourcePath": "patterns/polling-pattern", - "repoPath": "uncategorized/patterns/polling-pattern-workflow" + "repoPath": "patterns/patterns/polling-pattern-workflow" }, { "slug": "process-manager-workflow", @@ -2583,9 +3462,11 @@ "description": "This workflow models orchestrating multiple services to complete a process.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -2595,7 +3476,7 @@ "patterns" ], "sourcePath": "patterns/process-manager", - "repoPath": "uncategorized/patterns/process-manager-workflow" + "repoPath": "patterns/patterns/process-manager-workflow" }, { "slug": "procurement-card-workflow", @@ -2671,9 +3552,11 @@ "description": "This workflow models one publisher notifying many subscribers of events.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 13, "numLanes": 4, @@ -2683,7 +3566,7 @@ "patterns" ], "sourcePath": "patterns/pub-sub", - "repoPath": "uncategorized/patterns/pub-sub-workflow" + "repoPath": "patterns/patterns/pub-sub-workflow" }, { "slug": "purchase-order-workflow", @@ -2789,9 +3672,11 @@ "description": "This workflow models preventing too many requests from being processed.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 13, "numLanes": 4, @@ -2801,7 +3686,7 @@ "patterns" ], "sourcePath": "patterns/rate-limiter", - "repoPath": "uncategorized/patterns/rate-limiter-workflow" + "repoPath": "patterns/patterns/rate-limiter-workflow" }, { "slug": "reference-check-workflow", @@ -2899,9 +3784,11 @@ "description": "This workflow models a synchronous request that waits for a reply.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -2911,7 +3798,7 @@ "patterns" ], "sourcePath": "patterns/request-reply", - "repoPath": "uncategorized/patterns/request-reply-workflow" + "repoPath": "patterns/patterns/request-reply-workflow" }, { "slug": "retry-with-backoff-workflow", @@ -2919,9 +3806,11 @@ "description": "Exponential backoff retry pattern for API calls with configurable retry limits, delay calculation, retryable error detection, and graceful degradation on permanent failures.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 20, "numLanes": 3, @@ -2935,7 +3824,7 @@ "jitter" ], "sourcePath": "patterns/retry-with-backoff", - "repoPath": "uncategorized/patterns/retry-with-backoff-workflow" + "repoPath": "patterns/patterns/retry-with-backoff-workflow" }, { "slug": "returns-processing-workflow", @@ -3016,9 +3905,11 @@ "description": "This workflow models routing messages based on their content.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 10, "numLanes": 3, @@ -3028,7 +3919,7 @@ "decision" ], "sourcePath": "patterns/router", - "repoPath": "uncategorized/patterns/router-workflow" + "repoPath": "patterns/patterns/router-workflow" }, { "slug": "routing-slip-workflow", @@ -3037,9 +3928,12 @@ "kind": "workflow", "sourceDomain": "patterns", "primaryUseCase": "handoff", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "handoff" + "handoff", + "patterns" ], "complexity": 4, "numNodes": 13, @@ -3060,11 +3954,15 @@ "sourceDomain": "patterns", "primaryUseCase": "delivery", "secondaryUseCases": [ - "ai-orchestration" + "ai-orchestration", + "architecture", + "patterns" ], "useCases": [ "delivery", - "ai-orchestration" + "ai-orchestration", + "architecture", + "patterns" ], "complexity": 5, "numNodes": 20, @@ -3236,9 +4134,11 @@ "description": "This workflow models taking periodic snapshots of important state.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -3250,7 +4150,29 @@ "loop" ], "sourcePath": "patterns/snapshot-pattern", - "repoPath": "uncategorized/patterns/snapshot-pattern-workflow" + "repoPath": "patterns/patterns/snapshot-pattern-workflow" + }, + { + "slug": "sql-injection-label-workflow", + "title": "Sql Injection Label Workflow", + "description": "This workflow models a label that looks like an SQL injection attempt.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 2, + "tags": [ + "sql", + "injection", + "label" + ], + "sourcePath": "edge-cases/sql-injection-label", + "repoPath": "edge-cases/edge-cases/sql-injection-label-workflow" }, { "slug": "state-machine-workflow", @@ -3258,9 +4180,11 @@ "description": "This workflow models tracking object state changes over time.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 13, "numLanes": 4, @@ -3271,7 +4195,7 @@ "parallel" ], "sourcePath": "patterns/state-machine", - "repoPath": "uncategorized/patterns/state-machine-workflow" + "repoPath": "patterns/patterns/state-machine-workflow" }, { "slug": "stock-transfer-workflow", @@ -3304,9 +4228,11 @@ "description": "This workflow models gradually replacing an old system with a new one.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -3317,7 +4243,7 @@ "decision" ], "sourcePath": "patterns/strangler-fig", - "repoPath": "uncategorized/patterns/strangler-fig-workflow" + "repoPath": "patterns/patterns/strangler-fig-workflow" }, { "slug": "subscription-lifecycle-workflow", @@ -3326,9 +4252,12 @@ "kind": "workflow", "sourceDomain": "business-operations", "primaryUseCase": "billing", - "secondaryUseCases": [], + "secondaryUseCases": [ + "commerce-automation" + ], "useCases": [ - "billing" + "billing", + "commerce-automation" ], "complexity": 4, "numNodes": 10, @@ -3433,9 +4362,11 @@ "description": "This workflow models an operation that times out after a delay.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 13, "numLanes": 4, @@ -3445,7 +4376,7 @@ "patterns" ], "sourcePath": "patterns/timeout-pattern", - "repoPath": "uncategorized/patterns/timeout-pattern-workflow" + "repoPath": "patterns/patterns/timeout-pattern-workflow" }, { "slug": "training-enrollment-workflow", @@ -3478,9 +4409,11 @@ "description": "This workflow models writing data and publishing messages in one transaction.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 13, "numLanes": 4, @@ -3491,7 +4424,7 @@ "parallel" ], "sourcePath": "patterns/transactional-outbox", - "repoPath": "uncategorized/patterns/transactional-outbox-workflow" + "repoPath": "patterns/patterns/transactional-outbox-workflow" }, { "slug": "transform-workflow", @@ -3499,9 +4432,11 @@ "description": "This workflow models converting messages into a new shape.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -3510,7 +4445,7 @@ "patterns" ], "sourcePath": "patterns/transform", - "repoPath": "uncategorized/patterns/transform-workflow" + "repoPath": "patterns/patterns/transform-workflow" }, { "slug": "treasury-management-workflow", @@ -3563,6 +4498,27 @@ "sourcePath": "business-operations/two-factor-setup", "repoPath": "onboarding/business-operations/two-factor-setup-workflow" }, + { + "slug": "unicode-labels-workflow", + "title": "Unicode Labels Workflow", + "description": "This workflow models emoji and international characters in labels.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "unicode", + "labels" + ], + "sourcePath": "edge-cases/unicode-labels", + "repoPath": "edge-cases/edge-cases/unicode-labels-workflow" + }, { "slug": "user-onboarding-workflow", "title": "User Onboarding Workflow", @@ -3617,9 +4573,11 @@ "description": "This workflow models checking that incoming data is valid.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -3629,7 +4587,7 @@ "parallel" ], "sourcePath": "patterns/validator", - "repoPath": "uncategorized/patterns/validator-workflow" + "repoPath": "patterns/patterns/validator-workflow" }, { "slug": "vendor-onboarding-workflow", @@ -3662,6 +4620,30 @@ "sourcePath": "finance/vendor-onboarding", "repoPath": "onboarding/finance/vendor-onboarding-workflow" }, + { + "slug": "very-long-label-workflow", + "title": "Very Long Label Workflow", + "description": "This workflow models labels with very long text.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 1, + "tags": [ + "very", + "long", + "label", + "decision", + "loop" + ], + "sourcePath": "edge-cases/very-long-label", + "repoPath": "edge-cases/edge-cases/very-long-label-workflow" + }, { "slug": "vulnerability-patch-workflow", "title": "Vulnerability Patch Workflow", @@ -3724,9 +4706,14 @@ "description": "Webhook integration workflow with endpoint registration, payload signing, delivery attempt, retry with backoff, and delivery status tracking.", "kind": "workflow", "sourceDomain": "business-operations", - "primaryUseCase": "uncategorized", - "secondaryUseCases": [], - "useCases": [], + "primaryUseCase": "architecture", + "secondaryUseCases": [ + "patterns" + ], + "useCases": [ + "architecture", + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -3739,7 +4726,7 @@ "payload-signing" ], "sourcePath": "business-operations/webhook-integration", - "repoPath": "uncategorized/business-operations/webhook-integration-workflow" + "repoPath": "architecture/business-operations/webhook-integration-workflow" }, { "slug": "webhook-pattern-workflow", @@ -3747,9 +4734,11 @@ "description": "This workflow models an HTTP callback when an event occurs.", "kind": "workflow", "sourceDomain": "patterns", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 2, "numNodes": 7, "numLanes": 2, @@ -3761,7 +4750,7 @@ "loop" ], "sourcePath": "patterns/webhook-pattern", - "repoPath": "uncategorized/patterns/webhook-pattern-workflow" + "repoPath": "patterns/patterns/webhook-pattern-workflow" }, { "slug": "webinar-registration-workflow", @@ -3789,17 +4778,60 @@ "repoPath": "onboarding/business-operations/webinar-registration-workflow" }, { - "slug": "yearly-audit-workflow", - "title": "Yearly Audit Workflow", - "description": "Annual financial audit workflow with external auditor engagement, document preparation, fieldwork coordination, findings remediation, and management letter response.", + "slug": "xml-in-label-workflow", + "title": "Xml In Label Workflow", + "description": "This workflow models a label that contains XML text.", "kind": "workflow", - "sourceDomain": "finance", - "primaryUseCase": "compliance", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", "secondaryUseCases": [], "useCases": [ - "compliance" + "edge-cases" ], - "complexity": 4, + "complexity": 5, + "numNodes": 16, + "numLanes": 4, + "tags": [ + "xml", + "in", + "label" + ], + "sourcePath": "edge-cases/xml-in-label", + "repoPath": "edge-cases/edge-cases/xml-in-label-workflow" + }, + { + "slug": "xss-label-workflow", + "title": "Xss Label Workflow", + "description": "This workflow models a label that looks like an XSS script.", + "kind": "workflow", + "sourceDomain": "edge-cases", + "primaryUseCase": "edge-cases", + "secondaryUseCases": [], + "useCases": [ + "edge-cases" + ], + "complexity": 3, + "numNodes": 10, + "numLanes": 3, + "tags": [ + "xss", + "label" + ], + "sourcePath": "edge-cases/xss-label", + "repoPath": "edge-cases/edge-cases/xss-label-workflow" + }, + { + "slug": "yearly-audit-workflow", + "title": "Yearly Audit Workflow", + "description": "Annual financial audit workflow with external auditor engagement, document preparation, fieldwork coordination, findings remediation, and management letter response.", + "kind": "workflow", + "sourceDomain": "finance", + "primaryUseCase": "compliance", + "secondaryUseCases": [], + "useCases": [ + "compliance" + ], + "complexity": 4, "numNodes": 10, "numLanes": 3, "tags": [ @@ -3821,11 +4853,13 @@ "sourceDomain": "business-operations", "primaryUseCase": "billing", "secondaryUseCases": [ - "agentic" + "agentic", + "commerce-automation" ], "useCases": [ "billing", - "agentic" + "agentic", + "commerce-automation" ], "complexity": 4, "numNodes": 47, @@ -3852,11 +4886,13 @@ "sourceDomain": "Architecture", "primaryUseCase": "security", "secondaryUseCases": [ - "mcp" + "mcp", + "architecture" ], "useCases": [ "security", - "mcp" + "mcp", + "architecture" ], "complexity": 4, "numNodes": 17, @@ -3881,9 +4917,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "mcp", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture" + ], "useCases": [ - "mcp" + "mcp", + "architecture" ], "complexity": 4, "numNodes": 18, @@ -3907,9 +4946,11 @@ "description": "A database-per-service architecture diagram where each microservice owns its dedicated data store, with event-driven synchronization via Kafka for cross-service data consistency. This template demonstrates the core microservices data isolation principle, showing how PostgreSQL and MongoDB coexist in a polyglot persistence strategy. Critical for architects enforcing service autonomy while maintaining eventual consistency.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 16, "numLanes": 4, @@ -3924,7 +4965,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/microservices-database-per-service-architecture" + "repoPath": "architecture/architecture/microservices-database-per-service-architecture" }, { "slug": "microservices-decomposition-by-business-capability", @@ -3932,9 +4973,11 @@ "description": "A microservices decomposition architecture diagram organized by business capabilities: Identity, Product Catalog, Pricing, and Order Fulfillment, each with independent data stores and APIs. This template shows how to break a monolith into services aligned with business domains, using a Backend-for-Frontend (BFF) pattern for client-specific aggregation. Useful for architects planning domain-driven microservice boundaries.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 17, "numLanes": 5, @@ -3948,7 +4991,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/microservices-decomposition-by-business-capability" + "repoPath": "architecture/architecture/microservices-decomposition-by-business-capability" }, { "slug": "microservices-strangler-fig-migration", @@ -3957,9 +5000,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "delivery", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture" + ], "useCases": [ - "delivery" + "delivery", + "architecture" ], "complexity": 4, "numNodes": 16, @@ -3983,9 +5029,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "handoff", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture" + ], "useCases": [ - "handoff" + "handoff", + "architecture" ], "complexity": 3, "numNodes": 16, @@ -4010,9 +5059,14 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "mcp", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture", + "patterns" + ], "useCases": [ - "mcp" + "mcp", + "architecture", + "patterns" ], "complexity": 4, "numNodes": 13, @@ -4036,9 +5090,14 @@ "description": "A Backend-for-Frontend architecture diagram with separate BFF layers for web and mobile clients, each optimizing API responses for their specific platform while sharing common backend microservices. This template shows how to avoid one-size-fits-all APIs by tailoring data aggregation and payload optimization per client type. Recommended for teams serving multiple frontend platforms from a shared microservices backend.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", - "secondaryUseCases": [], - "useCases": [], + "primaryUseCase": "architecture", + "secondaryUseCases": [ + "patterns" + ], + "useCases": [ + "architecture", + "patterns" + ], "complexity": 3, "numNodes": 12, "numLanes": 3, @@ -4053,7 +5112,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/microservices-backend-for-frontend-architecture" + "repoPath": "architecture/architecture/microservices-backend-for-frontend-architecture" }, { "slug": "event-driven-publish-subscribe-architecture", @@ -4061,9 +5120,11 @@ "description": "An event-driven publish-subscribe architecture diagram with Kafka or RabbitMQ message broker, event serialization, topic partitioning, fan-out delivery to multiple consumers, and dead letter queue error handling. This template models the foundational async messaging pattern where producers and consumers are fully decoupled through a message broker. Essential for architects building loosely coupled, scalable event-driven systems.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 17, "numLanes": 3, @@ -4078,7 +5139,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/event-driven-publish-subscribe-architecture" + "repoPath": "architecture/architecture/event-driven-publish-subscribe-architecture" }, { "slug": "event-driven-event-sourcing-architecture", @@ -4086,9 +5147,11 @@ "description": "An event sourcing architecture diagram where all state changes are stored as an immutable sequence of domain events, with read projections built from the event stream and snapshot optimization for fast aggregate loading. This template shows how event sourcing eliminates data loss by preserving the complete history of every state transition. Critical for systems requiring full audit trails, temporal queries, and event replay capabilities.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 18, "numLanes": 4, @@ -4103,7 +5166,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/event-driven-event-sourcing-architecture" + "repoPath": "architecture/architecture/event-driven-event-sourcing-architecture" }, { "slug": "event-driven-cqrs-with-event-store-architecture", @@ -4111,9 +5174,11 @@ "description": "A CQRS architecture diagram combining separate command and query APIs with an event bus for asynchronous read model synchronization, including projectors that build denormalized views from domain events. This template demonstrates the full CQRS+ES stack where writes go through domain validation and reads are served from optimized materialized views. Ideal for high-throughput systems where read and write workloads have fundamentally different scaling requirements.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 18, "numLanes": 4, @@ -4128,7 +5193,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/event-driven-cqrs-with-event-store-architecture" + "repoPath": "architecture/architecture/event-driven-cqrs-with-event-store-architecture" }, { "slug": "event-driven-choreography-architecture", @@ -4136,9 +5201,14 @@ "description": "An event-driven choreography architecture diagram where microservices coordinate through events without a central orchestrator, with Order, Payment, Inventory, and Shipping services reacting to each other's domain events. This template models the decentralized coordination pattern where each service knows only its own responsibilities and publishes events for others to consume. Best for teams favoring autonomous services over centralized workflow control.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", - "secondaryUseCases": [], - "useCases": [], + "primaryUseCase": "architecture", + "secondaryUseCases": [ + "patterns" + ], + "useCases": [ + "architecture", + "patterns" + ], "complexity": 4, "numNodes": 19, "numLanes": 5, @@ -4153,7 +5223,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/event-driven-choreography-architecture" + "repoPath": "architecture/architecture/event-driven-choreography-architecture" }, { "slug": "event-driven-event-streaming-pipeline-architecture", @@ -4162,9 +5232,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "delivery", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture" + ], "useCases": [ - "delivery" + "delivery", + "architecture" ], "complexity": 4, "numNodes": 18, @@ -4189,9 +5262,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "security", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture" + ], "useCases": [ - "security" + "security", + "architecture" ], "complexity": 4, "numNodes": 17, @@ -4215,9 +5291,11 @@ "description": "A Change Data Capture architecture diagram using Debezium to tail database transaction logs and publish change events to Kafka, feeding downstream consumers that update search indexes, invalidate caches, load data warehouses, and write audit logs. This template shows how CDC eliminates dual-write problems by capturing changes at the database level without modifying application code. Critical for data synchronization across heterogeneous systems.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 17, "numLanes": 4, @@ -4232,7 +5310,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/event-driven-cdc-change-data-capture-architecture" + "repoPath": "architecture/architecture/event-driven-cdc-change-data-capture-architecture" }, { "slug": "event-driven-dead-letter-queue-architecture", @@ -4242,11 +5320,15 @@ "sourceDomain": "Architecture", "primaryUseCase": "incident", "secondaryUseCases": [ - "compliance" + "compliance", + "architecture", + "patterns" ], "useCases": [ "incident", - "compliance" + "compliance", + "architecture", + "patterns" ], "complexity": 3, "numNodes": 16, @@ -4270,9 +5352,11 @@ "description": "A CQRS read-write separation architecture diagram with dedicated command and query paths, PostgreSQL for writes, Redis or Elasticsearch for optimized reads, and an event-driven synchronization layer with lag monitoring. This template demonstrates the core CQRS principle of separating read and write models to independently scale and optimize each path. Ideal for applications with asymmetric read/write ratios where query performance is critical.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 18, "numLanes": 4, @@ -4287,7 +5371,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/cqrs-read-write-separation-architecture" + "repoPath": "architecture/architecture/cqrs-read-write-separation-architecture" }, { "slug": "cqrs-materialized-view-architecture", @@ -4295,9 +5379,11 @@ "description": "A CQRS materialized view architecture diagram with multiple projectors building purpose-specific read models: order summaries, customer dashboards, analytics cubes, and search indexes, all fed from a single event stream. This template shows how to create multiple optimized query views from the same write events, each tailored to a specific use case with sub-millisecond read latency. Perfect for systems requiring diverse query patterns from a single data source.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 18, "numLanes": 4, @@ -4312,7 +5398,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/cqrs-materialized-view-architecture" + "repoPath": "architecture/architecture/cqrs-materialized-view-architecture" }, { "slug": "cqrs-task-based-ui-architecture", @@ -4320,9 +5406,11 @@ "description": "A CQRS task-based UI architecture diagram where the frontend captures user intent as explicit commands, submits them asynchronously with optimistic updates, and receives real-time confirmations via WebSocket when the read model is synchronized. This template models the modern UI pattern that replaces CRUD forms with intent-driven commands, enabling responsive user experiences with eventual consistency. Recommended for teams building reactive frontends on CQRS backends.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 19, "numLanes": 4, @@ -4337,7 +5425,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/cqrs-task-based-ui-architecture" + "repoPath": "patterns/architecture/cqrs-task-based-ui-architecture" }, { "slug": "serverless-api-backend-architecture", @@ -4346,9 +5434,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "mcp", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture" + ], "useCases": [ - "mcp" + "mcp", + "architecture" ], "complexity": 3, "numNodes": 15, @@ -4372,9 +5463,11 @@ "description": "A serverless event processing architecture diagram with S3, DynamoDB Streams, API Gateway, and CloudWatch triggers invoking Lambda functions, orchestrated by Step Functions with fan-out via SQS and dead letter queue error handling. This template shows how to build complex event processing pipelines entirely from managed serverless components, with no servers to provision or manage. Ideal for data processing workflows that need elastic scaling and built-in fault tolerance.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 17, "numLanes": 4, @@ -4389,7 +5482,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/serverless-event-processing-architecture" + "repoPath": "architecture/architecture/serverless-event-processing-architecture" }, { "slug": "serverless-step-functions-orchestration-architecture", @@ -4399,11 +5492,15 @@ "sourceDomain": "Architecture", "primaryUseCase": "incident", "secondaryUseCases": [ - "ai-orchestration" + "ai-orchestration", + "architecture", + "patterns" ], "useCases": [ "incident", - "ai-orchestration" + "ai-orchestration", + "architecture", + "patterns" ], "complexity": 4, "numNodes": 17, @@ -4428,9 +5525,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "handoff", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture" + ], "useCases": [ - "handoff" + "handoff", + "architecture" ], "complexity": 3, "numNodes": 15, @@ -4455,9 +5555,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "delivery", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture" + ], "useCases": [ - "delivery" + "delivery", + "architecture" ], "complexity": 4, "numNodes": 17, @@ -4482,9 +5585,14 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "handoff", - "secondaryUseCases": [], + "secondaryUseCases": [ + "platform-reliability", + "architecture" + ], "useCases": [ - "handoff" + "handoff", + "platform-reliability", + "architecture" ], "complexity": 4, "numNodes": 18, @@ -4510,11 +5618,15 @@ "sourceDomain": "Architecture", "primaryUseCase": "delivery", "secondaryUseCases": [ - "ai-orchestration" + "ai-orchestration", + "architecture", + "patterns" ], "useCases": [ "delivery", - "ai-orchestration" + "ai-orchestration", + "architecture", + "patterns" ], "complexity": 4, "numNodes": 19, @@ -4538,9 +5650,14 @@ "description": "A saga choreography architecture diagram where Order, Payment, and Inventory services coordinate through domain events without a central orchestrator, with each service publishing and subscribing to events that drive the transaction forward or trigger compensation. This template models the decentralized saga approach where services autonomously react to events, reducing single points of failure at the cost of increased complexity in tracking saga state. Best for teams preferring service autonomy over centralized control.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", - "secondaryUseCases": [], - "useCases": [], + "primaryUseCase": "architecture", + "secondaryUseCases": [ + "patterns" + ], + "useCases": [ + "architecture", + "patterns" + ], "complexity": 4, "numNodes": 18, "numLanes": 5, @@ -4555,7 +5672,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/saga-choreography-pattern-architecture" + "repoPath": "architecture/architecture/saga-choreography-pattern-architecture" }, { "slug": "saga-distributed-transaction-architecture", @@ -4564,9 +5681,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "ai-orchestration", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture" + ], "useCases": [ - "ai-orchestration" + "ai-orchestration", + "architecture" ], "complexity": 4, "numNodes": 17, @@ -4591,9 +5711,14 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "ai-orchestration", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture", + "patterns" + ], "useCases": [ - "ai-orchestration" + "ai-orchestration", + "architecture", + "patterns" ], "complexity": 4, "numNodes": 17, @@ -4620,12 +5745,18 @@ "primaryUseCase": "approval", "secondaryUseCases": [ "billing", - "security" + "security", + "commerce-automation", + "architecture", + "patterns" ], "useCases": [ "approval", "billing", - "security" + "security", + "commerce-automation", + "architecture", + "patterns" ], "complexity": 4, "numNodes": 18, @@ -4650,9 +5781,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "mcp", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "mcp" + "mcp", + "patterns" ], "complexity": 4, "numNodes": 18, @@ -4677,9 +5811,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "handoff", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "handoff" + "handoff", + "patterns" ], "complexity": 4, "numNodes": 18, @@ -4703,9 +5840,11 @@ "description": "A retry with exponential backoff architecture diagram showing the complete retry policy engine with retryable vs non-retryable error classification, exponential delay calculation with jitter, max retry thresholds, and graceful exhaustion handling. This template models the essential resilience pattern for handling transient failures in distributed systems, preventing thundering herd problems through randomized backoff delays. Foundational for any service-to-service communication in cloud architectures.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 3, "numNodes": 17, "numLanes": 3, @@ -4720,7 +5859,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/retry-with-exponential-backoff-architecture" + "repoPath": "patterns/architecture/retry-with-exponential-backoff-architecture" }, { "slug": "rate-limiter-architecture", @@ -4728,9 +5867,11 @@ "description": "A rate limiter architecture diagram implementing the token bucket algorithm with Redis-backed distributed counters, sliding window logs, API key identification, rate limit headers, and multi-node synchronization for consistent enforcement. This template shows how to protect APIs from abuse and ensure fair usage across clients, with proper HTTP 429 responses and Retry-After headers. Essential for API platform teams building production-grade rate limiting infrastructure.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 3, "numNodes": 17, "numLanes": 4, @@ -4745,7 +5886,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/rate-limiter-architecture" + "repoPath": "architecture/architecture/rate-limiter-architecture" }, { "slug": "health-check-pattern-architecture", @@ -4755,11 +5896,13 @@ "sourceDomain": "Architecture", "primaryUseCase": "incident", "secondaryUseCases": [ - "security" + "security", + "patterns" ], "useCases": [ "incident", - "security" + "security", + "patterns" ], "complexity": 3, "numNodes": 19, @@ -4783,9 +5926,11 @@ "description": "A hexagonal architecture diagram showing the clean separation between domain core, inbound adapters (REST, GraphQL, CLI, message consumers), outbound adapters (PostgreSQL, Stripe, email, Redis), and the port interfaces that connect them. This template visualizes the ports and adapters pattern where the domain core has zero dependencies on infrastructure, making it fully testable and technology-agnostic. Foundational for teams adopting clean architecture principles in their codebase.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 16, "numLanes": 4, @@ -4800,7 +5945,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/hexagonal-ports-adapters-architecture" + "repoPath": "architecture/architecture/hexagonal-ports-adapters-architecture" }, { "slug": "clean-architecture-layers", @@ -4808,9 +5953,11 @@ "description": "A clean architecture layers diagram showing the four concentric layers: Entities (domain), Use Cases (application), Interface Adapters (controllers, presenters, repositories), and Frameworks & Drivers (web server, database, cloud SDK). This template models Uncle Bob's Clean Architecture with the dependency rule where inner layers never depend on outer layers, ensuring the domain model remains pure and framework-independent. Essential reference for software architects enforcing architectural boundaries.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 3, "numNodes": 16, "numLanes": 4, @@ -4825,7 +5972,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/clean-architecture-layers" + "repoPath": "architecture/architecture/clean-architecture-layers" }, { "slug": "domain-driven-design-bounded-contexts-architecture", @@ -4833,9 +5980,11 @@ "description": "A DDD bounded contexts architecture diagram with Order, Customer, Shipping, and Billing contexts connected through an anti-corruption layer, shared kernel, and context map defining integration relationships. This template visualizes the strategic DDD patterns for decomposing complex domains into autonomous bounded contexts that communicate through well-defined integration events. Critical for architects applying Domain-Driven Design to large-scale enterprise systems.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 18, "numLanes": 5, @@ -4850,7 +5999,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/domain-driven-design-bounded-contexts-architecture" + "repoPath": "architecture/architecture/domain-driven-design-bounded-contexts-architecture" }, { "slug": "api-composition-pattern-architecture", @@ -4859,9 +6008,14 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "incident", - "secondaryUseCases": [], + "secondaryUseCases": [ + "architecture", + "patterns" + ], "useCases": [ - "incident" + "incident", + "architecture", + "patterns" ], "complexity": 3, "numNodes": 16, @@ -4885,9 +6039,11 @@ "description": "A transactional outbox architecture diagram where domain writes and event publishing happen in the same database transaction, with a relay process polling the outbox table and publishing events to a message broker with guaranteed delivery. This template solves the dual-write problem where updating a database and publishing an event are not atomic, ensuring exactly-once event delivery without distributed transactions. Critical for event-driven architectures requiring reliable message publishing.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "patterns", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "patterns" + ], "complexity": 4, "numNodes": 18, "numLanes": 4, @@ -4902,7 +6058,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/outbox-pattern-reliable-messaging-architecture" + "repoPath": "patterns/architecture/outbox-pattern-reliable-messaging-architecture" }, { "slug": "ambassador-pattern-architecture", @@ -4911,9 +6067,12 @@ "kind": "architecture", "sourceDomain": "Architecture", "primaryUseCase": "mcp", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "mcp" + "mcp", + "patterns" ], "complexity": 3, "numNodes": 15, @@ -5048,9 +6207,11 @@ "description": "A data mesh architecture diagram with domain-oriented data ownership across Sales, Marketing, and Finance domains, each exposing self-serve data products through APIs with quality SLAs, governed by a federated data platform with a shared catalog and cross-domain query engine. This template models the paradigm shift from centralized data teams to domain-owned data products, applying microservices principles to data architecture. Essential for organizations scaling data operations beyond centralized data warehouse bottlenecks.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 17, "numLanes": 4, @@ -5065,7 +6226,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/data-mesh-architecture" + "repoPath": "architecture/architecture/data-mesh-architecture" }, { "slug": "cell-based-architecture", @@ -5100,9 +6261,11 @@ "description": "An observability architecture diagram implementing the three pillars (metrics, traces, logs) with OpenTelemetry SDK instrumentation, OTLP collector pipeline, Prometheus, Jaeger, and Loki backends, Grafana dashboards, SLO/SLI tracking, and PagerDuty alerting integration. This template provides a complete observability stack reference showing how telemetry data flows from application instrumentation through collection, storage, visualization, and incident response. Essential for SRE teams building production monitoring infrastructure.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 17, "numLanes": 4, @@ -5118,7 +6281,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/observability-three-pillars-architecture" + "repoPath": "architecture/architecture/observability-three-pillars-architecture" }, { "slug": "gitops-deployment-architecture", @@ -5185,12 +6348,14 @@ "primaryUseCase": "delivery", "secondaryUseCases": [ "agentic", - "ai-orchestration" + "ai-orchestration", + "architecture" ], "useCases": [ "delivery", "agentic", - "ai-orchestration" + "ai-orchestration", + "architecture" ], "complexity": 2, "numNodes": 7, @@ -5300,12 +6465,16 @@ "primaryUseCase": "agentic", "secondaryUseCases": [ "ai-orchestration", - "mcp" + "mcp", + "architecture", + "patterns" ], "useCases": [ "agentic", "ai-orchestration", - "mcp" + "mcp", + "architecture", + "patterns" ], "complexity": 3, "numNodes": 12, @@ -5356,9 +6525,11 @@ "description": "An event-driven notification hub architecture diagram with multi-source event ingestion, template-based message rendering, user preference routing across email (SendGrid/SES), push (FCM), SMS (Twilio), and Slack channels, with delivery tracking and retry mechanisms. This template models a centralized notification system that decouples business services from delivery infrastructure, supporting multi-channel communication with user-controlled preferences. Ideal for platform teams building scalable notification infrastructure.", "kind": "architecture", "sourceDomain": "Architecture", - "primaryUseCase": "uncategorized", + "primaryUseCase": "architecture", "secondaryUseCases": [], - "useCases": [], + "useCases": [ + "architecture" + ], "complexity": 4, "numNodes": 20, "numLanes": 3, @@ -5373,7 +6544,7 @@ "architecture-diagram" ], "sourcePath": "", - "repoPath": "uncategorized/architecture/event-driven-notification-hub-architecture" + "repoPath": "architecture/architecture/event-driven-notification-hub-architecture" }, { "slug": "agentic-supervisor-worker", @@ -5656,11 +6827,15 @@ "sourceDomain": "Architecture", "primaryUseCase": "ai-orchestration", "secondaryUseCases": [ - "mcp" + "mcp", + "architecture", + "patterns" ], "useCases": [ "ai-orchestration", - "mcp" + "mcp", + "architecture", + "patterns" ], "complexity": 3, "numNodes": 13, @@ -5828,9 +7003,12 @@ "kind": "architecture", "sourceDomain": "DevOps", "primaryUseCase": "mcp", - "secondaryUseCases": [], + "secondaryUseCases": [ + "patterns" + ], "useCases": [ - "mcp" + "mcp", + "patterns" ], "complexity": 3, "numNodes": 9, @@ -6045,6 +7223,2074 @@ ], "sourcePath": "", "repoPath": "agentic/architecture/context-shared-memory" + }, + { + "slug": "claw-code-harness-architecture", + "title": "Claw Code Harness Architecture", + "description": "Claw Code harness architecture diagram showing the user loop, Python orchestration layer, Rust runtime, and external systems such as the LLM provider, file system, and MCP server.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "ai-orchestration", + "secondaryUseCases": [ + "mcp" + ], + "useCases": [ + "ai-orchestration", + "mcp" + ], + "complexity": 4, + "numNodes": 17, + "numLanes": 4, + "tags": [ + "Claw Code", + "Claude Code", + "Harness Engineering", + "AI Agent Architecture", + "MCP", + "Python Orchestration", + "Rust Runtime", + "LLM", + "Agent Runtime" + ], + "sourcePath": "", + "repoPath": "ai-orchestration/architecture/claw-code-harness-architecture" + }, + { + "slug": "zero-trust-agent-identity-pipeline", + "title": "Zero Trust Agent Identity Pipeline", + "description": "Zero-trust AI agent identity architecture with JWT validation, scoped OBO token exchange, SPIFFE/SVID workload identity, and MCP tool authorization.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "security", + "secondaryUseCases": [ + "delivery", + "mcp" + ], + "useCases": [ + "security", + "delivery", + "mcp" + ], + "complexity": 3, + "numNodes": 12, + "numLanes": 3, + "tags": [ + "AI Agent Security", + "Zero Trust", + "Agent Identity", + "Non-Human Identity", + "NHI", + "OAuth 2.0 Token Exchange", + "OBO Token", + "SPIFFE", + "MCP", + "JWT" + ], + "sourcePath": "", + "repoPath": "security/architecture/zero-trust-agent-identity-pipeline" + }, + { + "slug": "mcp-zero-trust-boundary", + "title": "MCP Zero-Trust Boundary", + "description": "MCP security gateway architecture that authenticates tool calls, routes execution into isolated sandboxes, sanitizes responses, and returns clean results to the AI agent.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "security", + "secondaryUseCases": [ + "mcp", + "agentic-security" + ], + "useCases": [ + "security", + "mcp", + "agentic-security" + ], + "complexity": 3, + "numNodes": 12, + "numLanes": 3, + "tags": [ + "MCP", + "Model Context Protocol", + "AI Agent Security", + "Zero Trust", + "MCP Security", + "Tool Sandbox", + "Sandbox", + "Prompt Injection", + "Secure Tool Calling" + ], + "sourcePath": "", + "repoPath": "security/architecture/mcp-zero-trust-boundary" + }, + { + "slug": "runtime-permission-gating", + "title": "Runtime Permission Gating", + "description": "Least-privilege AI agent architecture with policy-engine evaluation, just-in-time access, short-lived credentials, and action-scoped grants before tool execution.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "security", + "secondaryUseCases": [ + "compliance" + ], + "useCases": [ + "security", + "compliance" + ], + "complexity": 3, + "numNodes": 11, + "numLanes": 3, + "tags": [ + "AI Agent Security", + "Least Privilege", + "Permission Gating", + "AI Agent Permissions", + "JIT Access", + "Policy Engine", + "RBAC", + "ABAC", + "OPA", + "Cerbos" + ], + "sourcePath": "", + "repoPath": "security/architecture/runtime-permission-gating" + }, + { + "slug": "risk-tiered-hitl", + "title": "Risk-Tiered Human-in-the-Loop", + "description": "Human-in-the-loop approval architecture that scores agent actions by risk, routes high-risk requests for review, and writes immutable audit records.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "approval", + "secondaryUseCases": [ + "security", + "compliance" + ], + "useCases": [ + "approval", + "security", + "compliance" + ], + "complexity": 4, + "numNodes": 14, + "numLanes": 4, + "tags": [ + "Human in the Loop", + "HITL", + "AI Agent Security", + "AI Governance", + "Risk Policy", + "Approval Workflow", + "Audit Log", + "Human Approval" + ], + "sourcePath": "", + "repoPath": "approval/architecture/risk-tiered-hitl" + }, + { + "slug": "secure-multi-agent-communication", + "title": "Secure Multi-Agent Communication", + "description": "Multi-agent security architecture with scoped tokens, API gateway enforcement, mTLS-protected worker calls, and orchestrator-driven result aggregation.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "security", + "secondaryUseCases": [ + "agentic", + "mcp" + ], + "useCases": [ + "security", + "agentic", + "mcp" + ], + "complexity": 4, + "numNodes": 20, + "numLanes": 4, + "tags": [ + "Multi-Agent", + "AI Agent Security", + "Secure Multi-Agent", + "mTLS", + "API Gateway", + "Scoped Tokens", + "Agent-to-Agent Communication", + "A2A", + "Orchestrator", + "Worker Agent" + ], + "sourcePath": "", + "repoPath": "security/architecture/secure-multi-agent-communication" + }, + { + "slug": "openclaw-native-install-architecture", + "title": "OpenClaw Native Install Architecture", + "description": "OpenClaw deployment on your everyday machine with the gateway, workspace, and commercial LLM API connected locally through the web UI.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "delivery", + "secondaryUseCases": [], + "useCases": [ + "delivery" + ], + "complexity": 2, + "numNodes": 9, + "numLanes": 3, + "tags": [ + "OpenClaw", + "AI Agent Deployment", + "Native Install", + "Local Install", + "Self-Hosted AI Agent", + "Web UI", + "Claude", + "GPT", + "Gemini" + ], + "sourcePath": "", + "repoPath": "delivery/architecture/openclaw-native-install-architecture" + }, + { + "slug": "openclaw-docker-isolated-architecture", + "title": "OpenClaw Docker Isolated Architecture", + "description": "OpenClaw Docker deployment with an isolated gateway runtime, mounted workspace and config volumes, and a commercial LLM API.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "delivery", + "secondaryUseCases": [], + "useCases": [ + "delivery" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 3, + "tags": [ + "OpenClaw", + "Docker", + "Docker Container", + "OpenClaw Docker", + "AI Agent Deployment", + "Self-Hosted AI Agent", + "Volume Mount", + "Local AI Agent" + ], + "sourcePath": "", + "repoPath": "delivery/architecture/openclaw-docker-isolated-architecture" + }, + { + "slug": "openclaw-dedicated-local-machine-architecture", + "title": "OpenClaw Dedicated Local Machine Architecture", + "description": "OpenClaw architecture for a dedicated Mac Mini or homelab server with persistent workspace, agent state, and remote messaging access.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "architecture", + "secondaryUseCases": [], + "useCases": [ + "architecture" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 3, + "tags": [ + "OpenClaw", + "Mac Mini", + "Homelab", + "Dedicated Machine", + "Self-Hosted AI Agent", + "24/7 AI Agent", + "Telegram", + "Local Server" + ], + "sourcePath": "", + "repoPath": "architecture/architecture/openclaw-dedicated-local-machine-architecture" + }, + { + "slug": "openclaw-vps-self-managed-architecture", + "title": "OpenClaw VPS Self-Managed Architecture", + "description": "Self-managed OpenClaw VPS deployment with gateway, workspace, firewall/auth layer, and commercial LLM provider access from any device.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "delivery", + "secondaryUseCases": [], + "useCases": [ + "delivery" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 3, + "tags": [ + "OpenClaw", + "VPS", + "Self-Managed VPS", + "Cloud Deployment", + "Hetzner", + "DigitalOcean", + "Remote Access", + "SSH Tunnel" + ], + "sourcePath": "", + "repoPath": "delivery/architecture/openclaw-vps-self-managed-architecture" + }, + { + "slug": "openclaw-managed-cloud-architecture", + "title": "OpenClaw Managed Cloud Architecture", + "description": "Managed cloud OpenClaw deployment using platforms like Railway or Northflank with a hosted gateway, integrations, monitoring, and commercial LLM APIs.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "delivery", + "secondaryUseCases": [], + "useCases": [ + "delivery" + ], + "complexity": 3, + "numNodes": 9, + "numLanes": 3, + "tags": [ + "OpenClaw", + "Managed Cloud", + "Railway", + "Northflank", + "Cloud Deployment", + "AI Agent Hosting", + "One-Click Deploy", + "Hosted AI Agent" + ], + "sourcePath": "", + "repoPath": "delivery/architecture/openclaw-managed-cloud-architecture" + }, + { + "slug": "openclaw-hybrid-cloud-local-nodes-architecture", + "title": "OpenClaw Hybrid Cloud + Local Nodes Architecture", + "description": "Hybrid OpenClaw architecture with a cloud gateway, local nodes for device actions, persistent agent state, and commercial LLM provider calls.", + "kind": "architecture", + "sourceDomain": "Architecture", + "primaryUseCase": "delivery", + "secondaryUseCases": [ + "mcp" + ], + "useCases": [ + "delivery", + "mcp" + ], + "complexity": 4, + "numNodes": 10, + "numLanes": 4, + "tags": [ + "OpenClaw", + "Hybrid Architecture", + "Cloud Gateway", + "Local Nodes", + "AI Agent Deployment", + "Remote AI Agent", + "WhatsApp", + "24/7 AI Agent" + ], + "sourcePath": "", + "repoPath": "delivery/architecture/openclaw-hybrid-cloud-local-nodes-architecture" + }, + { + "slug": "incident-root-cause-prevention-workflow", + "title": "Incident Root Cause & Prevention Workflow", + "description": "Incident response workflow that documents the current state, traces the root cause, validates controls and creates a prevention protocol before the case is closed.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "incident", + "secondaryUseCases": [ + "compliance", + "process-mapping" + ], + "useCases": [ + "incident", + "compliance", + "process-mapping" + ], + "complexity": 2, + "numNodes": 10, + "numLanes": 2, + "tags": [ + "process-mapping", + "incident", + "root-cause", + "prevention", + "controls" + ], + "sourcePath": "", + "repoPath": "incident/process-mapping/incident-root-cause-prevention-workflow" + }, + { + "slug": "ownership-assignment-escalation-workflow", + "title": "Ownership Assignment & Escalation Workflow", + "description": "Work assignment workflow that names an accountable owner, checks for blockers, escalates to the manager and confirms the assignment with everyone involved.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "handoff", + "secondaryUseCases": [ + "process-mapping" + ], + "useCases": [ + "handoff", + "process-mapping" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 2, + "tags": [ + "process-mapping", + "ownership", + "escalation", + "assignment", + "blockers" + ], + "sourcePath": "", + "repoPath": "handoff/process-mapping/ownership-assignment-escalation-workflow" + }, + { + "slug": "handoff-readiness-checklist-workflow", + "title": "Handoff Readiness Checklist Workflow", + "description": "Handoff workflow with a completeness gate: the handoff checklist must be fully met before the receiving team approves and work moves forward.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "handoff", + "secondaryUseCases": [ + "approval", + "process-mapping" + ], + "useCases": [ + "handoff", + "approval", + "process-mapping" + ], + "complexity": 2, + "numNodes": 10, + "numLanes": 2, + "tags": [ + "process-mapping", + "handoff", + "checklist", + "approval", + "transition" + ], + "sourcePath": "", + "repoPath": "handoff/process-mapping/handoff-readiness-checklist-workflow" + }, + { + "slug": "customer-service-escalation-workflow", + "title": "Customer Service Escalation Workflow", + "description": "Customer support workflow that applies the standard greeting and service protocol, then escalates to tier 2 when the standard path cannot resolve the request.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "handoff", + "secondaryUseCases": [ + "support", + "process-mapping" + ], + "useCases": [ + "handoff", + "support", + "process-mapping" + ], + "complexity": 2, + "numNodes": 11, + "numLanes": 2, + "tags": [ + "process-mapping", + "support", + "escalation", + "service", + "tier-2" + ], + "sourcePath": "", + "repoPath": "handoff/process-mapping/customer-service-escalation-workflow" + }, + { + "slug": "process-documentation-knowledge-capture-workflow", + "title": "Process Documentation & Knowledge Capture Workflow", + "description": "Knowledge capture workflow: document the current process steps, write the step-by-step guide, get it approved and track onboarding to completion.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "onboarding", + "secondaryUseCases": [ + "process-mapping" + ], + "useCases": [ + "onboarding", + "process-mapping" + ], + "complexity": 3, + "numNodes": 13, + "numLanes": 2, + "tags": [ + "process-mapping", + "documentation", + "knowledge", + "onboarding", + "sop" + ], + "sourcePath": "", + "repoPath": "onboarding/process-mapping/process-documentation-knowledge-capture-workflow" + }, + { + "slug": "process-analysis-future-state-workflow", + "title": "Process Analysis & Future State Workflow", + "description": "Process redesign workflow that identifies bottlenecks, designs the future state, adjusts the design and deploys the technology solution on the new baseline.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "process-mapping", + "secondaryUseCases": [], + "useCases": [ + "process-mapping" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 2, + "tags": [ + "process-mapping", + "process-analysis", + "future-state", + "bottlenecks", + "redesign" + ], + "sourcePath": "", + "repoPath": "process-mapping/process-mapping/process-analysis-future-state-workflow" + }, + { + "slug": "work-tracking-dashboard-workflow", + "title": "Work Tracking Dashboard Workflow", + "description": "Work visibility workflow: create the centralized tracking record, define status categories, keep the information current and publish it on a central dashboard.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "process-mapping", + "secondaryUseCases": [], + "useCases": [ + "process-mapping" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 2, + "tags": [ + "process-mapping", + "tracking", + "dashboard", + "status", + "visibility" + ], + "sourcePath": "", + "repoPath": "process-mapping/process-mapping/work-tracking-dashboard-workflow" + }, + { + "slug": "cross-department-customer-onboarding-workflow", + "title": "Cross-Department Customer Onboarding Workflow", + "description": "Five-lane customer onboarding workflow spanning sales, legal, finance, onboarding and the customer, with acceptance gates and a 30-day check-in before activation.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "onboarding", + "secondaryUseCases": [ + "process-mapping" + ], + "useCases": [ + "onboarding", + "process-mapping" + ], + "complexity": 3, + "numNodes": 32, + "numLanes": 5, + "tags": [ + "process-mapping", + "customer-onboarding", + "cross-functional", + "sales", + "legal", + "finance" + ], + "sourcePath": "", + "repoPath": "onboarding/process-mapping/cross-department-customer-onboarding-workflow" + }, + { + "slug": "customer-onboarding-sales-handoff-workflow", + "title": "Customer Onboarding & Sales Handoff Workflow", + "description": "Three-lane onboarding workflow where the sales team hands the closed deal to the onboarding specialist, who runs the kickoff and setup tasks with the customer.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "handoff", + "secondaryUseCases": [ + "onboarding", + "process-mapping" + ], + "useCases": [ + "handoff", + "onboarding", + "process-mapping" + ], + "complexity": 3, + "numNodes": 19, + "numLanes": 3, + "tags": [ + "process-mapping", + "customer-onboarding", + "handoff", + "sales", + "kickoff" + ], + "sourcePath": "", + "repoPath": "handoff/process-mapping/customer-onboarding-sales-handoff-workflow" + }, + { + "slug": "task-box-invoice-approval-workflow", + "title": "Task Box Invoice Approval Workflow", + "description": "Task box diagram for invoice approval: owner, description and system on every step, from sale recording to payment, with a rejection loop back to the invoice draft.", + "kind": "workflow", + "sourceDomain": "Process Mapping", + "primaryUseCase": "approval", + "secondaryUseCases": [ + "billing", + "process-mapping" + ], + "useCases": [ + "approval", + "billing", + "process-mapping" + ], + "complexity": 2, + "numNodes": 10, + "numLanes": 1, + "tags": [ + "process-mapping", + "task-boxes", + "invoice", + "approval", + "owner", + "system" + ], + "sourcePath": "", + "repoPath": "approval/process-mapping/task-box-invoice-approval-workflow" + }, + { + "slug": "fz-file-sequence-diagram-example", + "title": "FZ File Sequence Diagram Example", + "description": "The reference example from the .fz file announcement: a text-first sequence diagram with two lanes, four nodes and one labeled message, stored as a portable .fz file.", + "kind": "workflow", + "sourceDomain": "Diagram Authoring", + "primaryUseCase": "diagram-authoring", + "secondaryUseCases": [ + "security" + ], + "useCases": [ + "diagram-authoring", + "security" + ], + "complexity": 1, + "numNodes": 4, + "numLanes": 2, + "tags": [ + "flowzap-code", + "fz-file", + "diagrams-as-code", + "sequence-diagram" + ], + "sourcePath": "", + "repoPath": "diagram-authoring/diagram-authoring/fz-file-sequence-diagram-example" + }, + { + "slug": "n8n-json-workflow-as-flowzap-code", + "title": "n8n JSON Workflow as FlowZap Code", + "description": "An n8n automation rendered as FlowZap Code: manual trigger, spreadsheet read, batch iteration, AI field mapping, PDF generation, email send, with success and error logging branches.", + "kind": "workflow", + "sourceDomain": "Diagram Authoring", + "primaryUseCase": "diagram-authoring", + "secondaryUseCases": [ + "security" + ], + "useCases": [ + "diagram-authoring", + "security" + ], + "complexity": 2, + "numNodes": 11, + "numLanes": 1, + "tags": [ + "n8n", + "flowzap-code", + "automation", + "json", + "conversion" + ], + "sourcePath": "", + "repoPath": "diagram-authoring/diagram-authoring/n8n-json-workflow-as-flowzap-code" + }, + { + "slug": "mcp-server-order-fulfillment-example", + "title": "MCP Server Order Fulfillment Example", + "description": "Compact order fulfillment diagram generated through the FlowZap MCP server, written with the shorthand syntax: sales validation with a validity gate, then fulfillment processing and shipping.", + "kind": "workflow", + "sourceDomain": "Diagram Authoring", + "primaryUseCase": "diagram-authoring", + "secondaryUseCases": [ + "security", + "mcp" + ], + "useCases": [ + "diagram-authoring", + "security", + "mcp" + ], + "complexity": 2, + "numNodes": 6, + "numLanes": 2, + "tags": [ + "mcp", + "flowzap-code", + "shorthand-syntax", + "order-fulfillment" + ], + "sourcePath": "", + "repoPath": "diagram-authoring/diagram-authoring/mcp-server-order-fulfillment-example" + }, + { + "slug": "ai-assisted-ecommerce-onboarding-workflow", + "title": "AI-Assisted E-Commerce Onboarding Workflow", + "description": "Vibe-coding example: a cart lane and an AI lane, where the assistant analyses the shopper profile, asks for missing details and adds the suggested products to the cart.", + "kind": "workflow", + "sourceDomain": "Diagram Authoring", + "primaryUseCase": "diagram-authoring", + "secondaryUseCases": [ + "onboarding", + "security", + "commerce-automation" + ], + "useCases": [ + "diagram-authoring", + "onboarding", + "security", + "commerce-automation" + ], + "complexity": 2, + "numNodes": 10, + "numLanes": 2, + "tags": [ + "flowzap-code", + "vibe-coding", + "ecommerce", + "ai-assistant", + "cart" + ], + "sourcePath": "", + "repoPath": "diagram-authoring/diagram-authoring/ai-assisted-ecommerce-onboarding-workflow" + }, + { + "slug": "agent-sandbox-containment-workflow", + "title": "Agent Sandbox Containment Workflow", + "description": "Layer 1 of the agent containment stack: every tool call executes in an ephemeral container, and any path outside the workspace is denied and logged as a security event.", + "kind": "workflow", + "sourceDomain": "Agentic Security", + "primaryUseCase": "agentic-security", + "secondaryUseCases": [ + "security", + "agentic" + ], + "useCases": [ + "agentic-security", + "security", + "agentic" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 2, + "tags": [ + "agent-containment", + "sandbox", + "blast-radius", + "security", + "tool-call" + ], + "sourcePath": "", + "repoPath": "agentic-security/agentic-security/agent-sandbox-containment-workflow" + }, + { + "slug": "permission-gate-containment-workflow", + "title": "Permission Gate Containment Workflow", + "description": "Layer 2 of the agent containment stack: a permission gate checks the whitelist and path scope before execution, and aborts the call with a logged denial when the scope does not match.", + "kind": "workflow", + "sourceDomain": "Agentic Security", + "primaryUseCase": "agentic-security", + "secondaryUseCases": [ + "security", + "agentic" + ], + "useCases": [ + "agentic-security", + "security", + "agentic" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 2, + "tags": [ + "agent-containment", + "permissions", + "whitelist", + "security", + "blast-radius" + ], + "sourcePath": "", + "repoPath": "agentic-security/agentic-security/permission-gate-containment-workflow" + }, + { + "slug": "hitl-approval-containment-workflow", + "title": "HITL Approval Containment Workflow", + "description": "Layer 3 of the agent containment stack: dangerous tool calls are suspended and sent to a human reviewer, who approves or aborts the operation before anything executes.", + "kind": "workflow", + "sourceDomain": "Agentic Security", + "primaryUseCase": "agentic-security", + "secondaryUseCases": [ + "approval", + "security", + "agentic" + ], + "useCases": [ + "agentic-security", + "approval", + "security", + "agentic" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 2, + "tags": [ + "agent-containment", + "hitl", + "human-approval", + "security", + "dangerous-operations" + ], + "sourcePath": "", + "repoPath": "agentic-security/agentic-security/hitl-approval-containment-workflow" + }, + { + "slug": "audit-logging-siem-containment-workflow", + "title": "Audit Logging & SIEM Containment Workflow", + "description": "Layer 4 of the agent containment stack: arguments are sanitized, secrets stripped and the action trace written to the SIEM before execution continues.", + "kind": "workflow", + "sourceDomain": "Agentic Security", + "primaryUseCase": "agentic-security", + "secondaryUseCases": [ + "security", + "compliance", + "agentic" + ], + "useCases": [ + "agentic-security", + "security", + "compliance", + "agentic" + ], + "complexity": 2, + "numNodes": 6, + "numLanes": 2, + "tags": [ + "agent-containment", + "audit", + "siem", + "logging", + "secrets" + ], + "sourcePath": "", + "repoPath": "agentic-security/agentic-security/audit-logging-siem-containment-workflow" + }, + { + "slug": "four-layer-agent-containment-stack", + "title": "Four-Layer Agent Containment Stack", + "description": "The full containment stack in one diagram: sandbox, permission gate, HITL approval and SIEM audit applied in sequence around a single dangerous tool call.", + "kind": "workflow", + "sourceDomain": "Agentic Security", + "primaryUseCase": "agentic-security", + "secondaryUseCases": [ + "security", + "compliance", + "agentic" + ], + "useCases": [ + "agentic-security", + "security", + "compliance", + "agentic" + ], + "complexity": 2, + "numNodes": 10, + "numLanes": 2, + "tags": [ + "agent-containment", + "sandbox", + "permissions", + "hitl", + "audit", + "blast-radius" + ], + "sourcePath": "", + "repoPath": "agentic-security/agentic-security/four-layer-agent-containment-stack" + }, + { + "slug": "patch-closure-proof-workflow", + "title": "Patch Closure Proof Workflow", + "description": "Closing-proof workflow across detection, remediation and assurance: measure the fix rather than the reaction, rate the outage risk and refuse closure without evidence.", + "kind": "workflow", + "sourceDomain": "Agentic Security", + "primaryUseCase": "agentic-security", + "secondaryUseCases": [ + "incident", + "security", + "agentic" + ], + "useCases": [ + "agentic-security", + "incident", + "security", + "agentic" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 4, + "tags": [ + "patch-management", + "closing-proof", + "remediation", + "assurance", + "incident" + ], + "sourcePath": "", + "repoPath": "agentic-security/agentic-security/patch-closure-proof-workflow" + }, + { + "slug": "artifact-provenance-verification-workflow", + "title": "Artifact Provenance Verification Workflow", + "description": "Build, provenance and registry lanes: an artifact is only accepted when its attestation matches the build that produced it, and a hijacked repo sends it back to build.", + "kind": "workflow", + "sourceDomain": "Agentic Security", + "primaryUseCase": "agentic-security", + "secondaryUseCases": [ + "security", + "agentic" + ], + "useCases": [ + "agentic-security", + "security", + "agentic" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 3, + "tags": [ + "provenance", + "supply-chain", + "attestation", + "build", + "registry" + ], + "sourcePath": "", + "repoPath": "agentic-security/agentic-security/artifact-provenance-verification-workflow" + }, + { + "slug": "independent-action-verification-workflow", + "title": "Independent Action Verification Workflow", + "description": "Rule 3 in practice: the agent that acts emits the action trace, a separate verification lane confirms the effect, and only a human closes the case.", + "kind": "workflow", + "sourceDomain": "Agentic Security", + "primaryUseCase": "agentic-security", + "secondaryUseCases": [ + "security", + "compliance", + "agentic" + ], + "useCases": [ + "agentic-security", + "security", + "compliance", + "agentic" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 3, + "tags": [ + "closing-proof", + "verification", + "audit", + "agentic-security", + "hitl" + ], + "sourcePath": "", + "repoPath": "agentic-security/agentic-security/independent-action-verification-workflow" + }, + { + "slug": "agent-mandate-scope-enforcement-workflow", + "title": "Agent Mandate Scope Enforcement Workflow", + "description": "Consent is not a mandate: a third-party agent's requested scope is compared to the customer mandate before read-only access is granted, and every access event is audited.", + "kind": "workflow", + "sourceDomain": "Agentic Security", + "primaryUseCase": "agentic-security", + "secondaryUseCases": [ + "security", + "compliance", + "agentic" + ], + "useCases": [ + "agentic-security", + "security", + "compliance", + "agentic" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 3, + "tags": [ + "agent-identity", + "mandate", + "access-control", + "audit", + "consent" + ], + "sourcePath": "", + "repoPath": "agentic-security/agentic-security/agent-mandate-scope-enforcement-workflow" + }, + { + "slug": "problem-mind-map-credit-decision", + "title": "Problem Mind Map — Credit Decision", + "description": "A problem mind map for an AI credit decision, mapping decisions, data, policies, actors, risks, constraints and open questions before any component is designed.", + "kind": "workflow", + "sourceDomain": "Mindmap", + "primaryUseCase": "mindmap", + "secondaryUseCases": [ + "agentic", + "agentic-architecture" + ], + "useCases": [ + "mindmap", + "agentic", + "agentic-architecture" + ], + "complexity": 3, + "numNodes": 32, + "numLanes": 1, + "tags": [ + "mind-map", + "problem-mind-map", + "credit-decision", + "problem-first", + "agentic-architecture" + ], + "sourcePath": "", + "repoPath": "mindmap/mindmap/problem-mind-map-credit-decision" + }, + { + "slug": "agent-generated-mind-map-incident-root-cause", + "title": "Agent-Generated Mind Map — Incident Root Cause", + "description": "An AGMM example: an SRE agent outputs its API latency root-cause reasoning chain as an interactive mind map, reversing the Human-to-Machine explainability flow.", + "kind": "workflow", + "sourceDomain": "Mindmap", + "primaryUseCase": "mindmap", + "secondaryUseCases": [ + "incident", + "agentic", + "agentic-architecture" + ], + "useCases": [ + "mindmap", + "incident", + "agentic", + "agentic-architecture" + ], + "complexity": 3, + "numNodes": 13, + "numLanes": 1, + "tags": [ + "mind-map", + "agmm", + "explainability", + "incident", + "sre", + "agentic-architecture" + ], + "sourcePath": "", + "repoPath": "mindmap/mindmap/agent-generated-mind-map-incident-root-cause" + }, + { + "slug": "agentic-taste-evaluation-loop", + "title": "Agentic Taste Evaluation Loop", + "description": "Legacy executor, LLM-as-judge evaluator and next-gen consumer: an evaluator scores the full trajectory, rejects structural sloppiness and forwards only validated payloads.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "agentic" + ], + "useCases": [ + "agentic-architecture", + "agentic" + ], + "complexity": 2, + "numNodes": 9, + "numLanes": 3, + "tags": [ + "agentic-taste", + "llm-as-judge", + "agent-evaluation", + "interoperability", + "trajectory" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/agentic-taste-evaluation-loop" + }, + { + "slug": "reflection-loop-agent-self-improvement", + "title": "Reflection Loop — Agent Self-Improvement", + "description": "The reflection loop: a worker drafts, a critic reviews the draft against the brief and the orchestrator only approves once the revision closes every gap.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "agentic" + ], + "useCases": [ + "agentic-architecture", + "agentic" + ], + "complexity": 3, + "numNodes": 22, + "numLanes": 4, + "tags": [ + "reflexion", + "self-improvement", + "critic", + "orchestrator-worker", + "agent-frameworks" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/reflection-loop-agent-self-improvement" + }, + { + "slug": "memory-loop-agent-self-improvement", + "title": "Memory Loop — Agent Self-Improvement", + "description": "The memory loop: before planning, the planner queries the memory store for similar past lessons, then writes the new lesson back once the task is closed.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "agentic", + "context-management" + ], + "useCases": [ + "agentic-architecture", + "agentic", + "context-management" + ], + "complexity": 3, + "numNodes": 29, + "numLanes": 5, + "tags": [ + "memory-management", + "self-improvement", + "planner", + "lessons-learned", + "agent-frameworks" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/memory-loop-agent-self-improvement" + }, + { + "slug": "evolution-loop-agent-self-improvement", + "title": "Evolution Loop — Agent Self-Improvement", + "description": "The evolution loop: an optimizer benchmarks candidate agents against the production baseline, keeps the best score and confirms persistence before promotion.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "agentic" + ], + "useCases": [ + "agentic-architecture", + "agentic" + ], + "complexity": 3, + "numNodes": 24, + "numLanes": 5, + "tags": [ + "evolution", + "benchmark", + "self-improvement", + "optimizer", + "agent-frameworks" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/evolution-loop-agent-self-improvement" + }, + { + "slug": "hermes-multi-tenant-isolation-architecture", + "title": "Hermes Multi-Tenant Isolation Architecture", + "description": "Shared host, per-client profiles and tool boundaries: how external clients reach their own Hermes workspaces without seeing another tenant's tools or data.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "agentic", + "agentic-security" + ], + "useCases": [ + "agentic-architecture", + "agentic", + "agentic-security" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 3, + "tags": [ + "hermes", + "multi-tenant", + "isolation", + "profiles", + "sandboxing" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/hermes-multi-tenant-isolation-architecture" + }, + { + "slug": "hermes-single-client-single-department-architecture", + "title": "Hermes Single Client, Single Department Architecture", + "description": "Option 1 of the Hermes multi-tenant setup: one external actor, one gateway, one isolated workspace inside an execution sandbox, and a single client profile.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "agentic", + "mcp", + "agentic-security" + ], + "useCases": [ + "agentic-architecture", + "agentic", + "mcp", + "agentic-security" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 3, + "tags": [ + "hermes", + "multi-tenant", + "single-tenant", + "gateway", + "sandboxing" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/hermes-single-client-single-department-architecture" + }, + { + "slug": "hermes-single-client-multi-department-routing-architecture", + "title": "Hermes Single Client, Multi-Department Routing Architecture", + "description": "Option 2: one client with several entry points, a prefix router that maps /eng or /support to a mode, and a single unified Hermes profile behind the gateway.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "handoff", + "agentic", + "mcp" + ], + "useCases": [ + "agentic-architecture", + "handoff", + "agentic", + "mcp" + ], + "complexity": 2, + "numNodes": 7, + "numLanes": 4, + "tags": [ + "hermes", + "multi-tenant", + "routing", + "departments", + "gateway" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/hermes-single-client-multi-department-routing-architecture" + }, + { + "slug": "hermes-multi-client-isolated-profiles-architecture", + "title": "Hermes Multi-Client Isolated Profiles Architecture", + "description": "Option 3, the core multi-tenant setup: per-token entry points, one gateway per client, and isolated Hermes profiles running in separate containers.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "agentic" + ], + "useCases": [ + "agentic-architecture", + "agentic" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 4, + "tags": [ + "hermes", + "multi-tenant", + "profiles", + "isolation", + "docker" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/hermes-multi-client-isolated-profiles-architecture" + }, + { + "slug": "hermes-full-multi-tenant-department-routing-architecture", + "title": "Hermes Full Multi-Tenant with Department Routing", + "description": "Option 4: external participants, per-client gateways and routers, department prefixes inside each tenant, and a sandbox per client.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "handoff", + "agentic", + "agentic-security" + ], + "useCases": [ + "agentic-architecture", + "handoff", + "agentic", + "agentic-security" + ], + "complexity": 2, + "numNodes": 10, + "numLanes": 4, + "tags": [ + "hermes", + "multi-tenant", + "routing", + "sandboxing", + "departments" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/hermes-full-multi-tenant-department-routing-architecture" + }, + { + "slug": "hermes-kanban-agent-coordination-workflow", + "title": "Hermes Kanban Agent Coordination Workflow", + "description": "A planner decomposes the request on a shared board, specialized workers claim tasks, and the orchestrator delivers once every card is closed.", + "kind": "workflow", + "sourceDomain": "Agentic Architecture", + "primaryUseCase": "agentic-architecture", + "secondaryUseCases": [ + "agentic" + ], + "useCases": [ + "agentic-architecture", + "agentic" + ], + "complexity": 2, + "numNodes": 6, + "numLanes": 4, + "tags": [ + "hermes", + "kanban", + "multi-agent", + "orchestrator-worker", + "coordination" + ], + "sourcePath": "", + "repoPath": "agentic-architecture/agentic-architecture/hermes-kanban-agent-coordination-workflow" + }, + { + "slug": "agent-to-agent-usdc-payment-workflow", + "title": "Agent-to-Agent USDC Payment Workflow", + "description": "Coinbase AgentKit flow: a human allocates a USDC budget, the agent authenticates its Base wallet, pays an x402 invoice and processes the supplier data, with no fiat in the path.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "billing", + "secondaryUseCases": [ + "commerce-automation" + ], + "useCases": [ + "billing", + "commerce-automation" + ], + "complexity": 2, + "numNodes": 9, + "numLanes": 3, + "tags": [ + "coinbase", + "agentkit", + "usdc", + "x402", + "agent-payments", + "stablecoin" + ], + "sourcePath": "", + "repoPath": "billing/commerce-automation/agent-to-agent-usdc-payment-workflow" + }, + { + "slug": "agent-mediated-fiat-payment-workflow", + "title": "Agent-Mediated Fiat Payment Workflow", + "description": "Stripe Agent Toolkit flow: the consumer approves an agent spend, the agent requests a scoped token, passes it to the merchant and the order completes in fiat.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "billing", + "secondaryUseCases": [ + "commerce-automation" + ], + "useCases": [ + "billing", + "commerce-automation" + ], + "complexity": 2, + "numNodes": 11, + "numLanes": 4, + "tags": [ + "stripe", + "agent-toolkit", + "shared-payment-token", + "fiat", + "agent-payments" + ], + "sourcePath": "", + "repoPath": "billing/commerce-automation/agent-mediated-fiat-payment-workflow" + }, + { + "slug": "coinbase-trust-flow-onchain-settlement", + "title": "Coinbase Trust Flow — On-Chain Settlement", + "description": "The trust layer behind agent-to-agent payments on Coinbase: the agent initiates the spend, the transaction is broadcast, the block confirms and the payment finalizes on-chain.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "commerce-automation", + "secondaryUseCases": [], + "useCases": [ + "commerce-automation" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 2, + "tags": [ + "coinbase", + "trust-flow", + "onchain", + "settlement", + "base" + ], + "sourcePath": "", + "repoPath": "commerce-automation/commerce-automation/coinbase-trust-flow-onchain-settlement" + }, + { + "slug": "stripe-trust-flow-fiat-authorization", + "title": "Stripe Trust Flow — Fiat Authorization", + "description": "The trust layer behind agent-mediated payments at Stripe: the agent submits a shared payment token, the risk engine approves it and fiat clears through the banking rails.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "approval", + "secondaryUseCases": [ + "security", + "compliance", + "commerce-automation" + ], + "useCases": [ + "approval", + "security", + "compliance", + "commerce-automation" + ], + "complexity": 1, + "numNodes": 5, + "numLanes": 2, + "tags": [ + "stripe", + "trust-flow", + "risk-engine", + "authorization", + "fiat" + ], + "sourcePath": "", + "repoPath": "approval/commerce-automation/stripe-trust-flow-fiat-authorization" + }, + { + "slug": "agentic-commerce-checkout-architecture", + "title": "Agentic Commerce Checkout Architecture", + "description": "Five-lane architecture for agent-driven checkout: merchant edge, commerce services, payment stack, fulfillment and the approval gate before an order is authorized.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "billing", + "secondaryUseCases": [ + "agentic", + "commerce-automation" + ], + "useCases": [ + "billing", + "agentic", + "commerce-automation" + ], + "complexity": 3, + "numNodes": 21, + "numLanes": 5, + "tags": [ + "agentic-commerce", + "chatgpt-commerce", + "checkout", + "merchant", + "payments" + ], + "sourcePath": "", + "repoPath": "billing/commerce-automation/agentic-commerce-checkout-architecture" + }, + { + "slug": "multi-platform-ecommerce-integration-hub", + "title": "Multi-Platform eCommerce Integration Hub", + "description": "n8n as the central integration layer: one workflow decides whether an event is a product sync or an order, routes it to the right channel and closes the loop.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "commerce-automation", + "secondaryUseCases": [], + "useCases": [ + "commerce-automation" + ], + "complexity": 2, + "numNodes": 11, + "numLanes": 1, + "tags": [ + "n8n", + "ecommerce", + "integration", + "multi-channel", + "shopify", + "woocommerce" + ], + "sourcePath": "", + "repoPath": "commerce-automation/commerce-automation/multi-platform-ecommerce-integration-hub" + }, + { + "slug": "ai-product-sync-pipeline-workflow", + "title": "AI Product Sync Pipeline Workflow", + "description": "Product sync between platforms with an AI agent in the middle: field extraction, category mapping and schema normalization before the write-back returns 200 OK.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "delivery", + "secondaryUseCases": [ + "commerce-automation" + ], + "useCases": [ + "delivery", + "commerce-automation" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 3, + "tags": [ + "n8n", + "product-sync", + "ai-agents", + "schema-normalization", + "ecommerce" + ], + "sourcePath": "", + "repoPath": "delivery/commerce-automation/ai-product-sync-pipeline-workflow" + }, + { + "slug": "ai-order-routing-workflow", + "title": "AI Order Routing Workflow", + "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.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "handoff", + "secondaryUseCases": [ + "commerce-automation" + ], + "useCases": [ + "handoff", + "commerce-automation" + ], + "complexity": 3, + "numNodes": 14, + "numLanes": 3, + "tags": [ + "n8n", + "order-routing", + "ai-decision", + "backorder", + "fulfillment" + ], + "sourcePath": "", + "repoPath": "handoff/commerce-automation/ai-order-routing-workflow" + }, + { + "slug": "shopify-river-four-layer-agent-architecture", + "title": "Shopify River 4-Layer Agent Architecture", + "description": "Slack as interface, River as agent surface, Aquifer as foundation and a separate harness: the four layers behind an internal agent that treats a session as a durable entity.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "commerce-automation", + "secondaryUseCases": [], + "useCases": [ + "commerce-automation" + ], + "complexity": 3, + "numNodes": 13, + "numLanes": 4, + "tags": [ + "shopify", + "river", + "internal-agents", + "architecture", + "slack", + "session" + ], + "sourcePath": "", + "repoPath": "commerce-automation/commerce-automation/shopify-river-four-layer-agent-architecture" + }, + { + "slug": "shopify-river-brain-hands-decoupling-architecture", + "title": "Shopify River Brain-Hands Decoupling Architecture", + "description": "Decoupling the brain from the hands: the harness calls the LLM and emits tool intents, while the sandbox executes them, so a new agent is a profile and not a platform.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "commerce-automation", + "secondaryUseCases": [ + "agentic-security" + ], + "useCases": [ + "commerce-automation", + "agentic-security" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 3, + "tags": [ + "shopify", + "river", + "harness", + "sandbox", + "agent-architecture" + ], + "sourcePath": "", + "repoPath": "commerce-automation/commerce-automation/shopify-river-brain-hands-decoupling-architecture" + }, + { + "slug": "shopify-river-session-modes-workflow", + "title": "Shopify River Session Modes Workflow", + "description": "Three session modes in one agent: interactive in Slack, automated review in the pull request, and ephemeral batch runs triggered by CI — cattle, not pets.", + "kind": "workflow", + "sourceDomain": "Commerce Automation", + "primaryUseCase": "approval", + "secondaryUseCases": [ + "commerce-automation" + ], + "useCases": [ + "approval", + "commerce-automation" + ], + "complexity": 2, + "numNodes": 9, + "numLanes": 4, + "tags": [ + "shopify", + "river", + "session-modes", + "ci", + "code-review", + "automation" + ], + "sourcePath": "", + "repoPath": "approval/commerce-automation/shopify-river-session-modes-workflow" + }, + { + "slug": "llm-model-router-cost-aware-routing", + "title": "LLM Model Router — Cost-Aware Routing", + "description": "An LLM gateway that reads the token budget, extracts intent and length, then routes the call to the cheap model or the premium one before delivering the response.", + "kind": "workflow", + "sourceDomain": "LLM Operations", + "primaryUseCase": "handoff", + "secondaryUseCases": [ + "mcp", + "llm-operations" + ], + "useCases": [ + "handoff", + "mcp", + "llm-operations" + ], + "complexity": 2, + "numNodes": 10, + "numLanes": 3, + "tags": [ + "token-optimization", + "model-routing", + "llm-gateway", + "cost", + "llmops" + ], + "sourcePath": "", + "repoPath": "handoff/llm-operations/llm-model-router-cost-aware-routing" + }, + { + "slug": "context-compaction-gateway-workflow", + "title": "Context Compaction Gateway Workflow", + "description": "A context gateway that assembles raw context from the vector store and logs, compacts 100k tokens down to 15k and only then builds the final prompt.", + "kind": "workflow", + "sourceDomain": "LLM Operations", + "primaryUseCase": "mcp", + "secondaryUseCases": [ + "context-management", + "llm-operations" + ], + "useCases": [ + "mcp", + "context-management", + "llm-operations" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 4, + "tags": [ + "token-optimization", + "context-management", + "compaction", + "rag", + "llmops" + ], + "sourcePath": "", + "repoPath": "mcp/llm-operations/context-compaction-gateway-workflow" + }, + { + "slug": "prompt-caching-static-prefix-workflow", + "title": "Prompt Caching with Static Prefix Workflow", + "description": "Static system prompt assembled once and cached by the provider, then only the volatile user input is appended — a cache hit reads 50k tokens from the KV cache.", + "kind": "workflow", + "sourceDomain": "LLM Operations", + "primaryUseCase": "context-management", + "secondaryUseCases": [ + "llm-operations" + ], + "useCases": [ + "context-management", + "llm-operations" + ], + "complexity": 3, + "numNodes": 14, + "numLanes": 2, + "tags": [ + "token-optimization", + "prompt-caching", + "kv-cache", + "context-management", + "llmops" + ], + "sourcePath": "", + "repoPath": "context-management/llm-operations/prompt-caching-static-prefix-workflow" + }, + { + "slug": "dynamic-tool-schema-selection-workflow", + "title": "Dynamic Tool Schema Selection Workflow", + "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.", + "kind": "workflow", + "sourceDomain": "LLM Operations", + "primaryUseCase": "handoff", + "secondaryUseCases": [ + "mcp", + "llm-operations" + ], + "useCases": [ + "handoff", + "mcp", + "llm-operations" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 3, + "tags": [ + "token-optimization", + "mcp", + "tool-schemas", + "tool-routing", + "llmops" + ], + "sourcePath": "", + "repoPath": "handoff/llm-operations/dynamic-tool-schema-selection-workflow" + }, + { + "slug": "structured-output-validation-workflow", + "title": "Structured Output Validation Workflow", + "description": "Output on a leash: the model generates against an output schema, the orchestrator validates that it parses as JSON or a diff, and regenerates or formats when it does not.", + "kind": "workflow", + "sourceDomain": "LLM Operations", + "primaryUseCase": "llm-operations", + "secondaryUseCases": [], + "useCases": [ + "llm-operations" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 2, + "tags": [ + "token-optimization", + "structured-output", + "validation", + "json-schema", + "llmops" + ], + "sourcePath": "", + "repoPath": "llm-operations/llm-operations/structured-output-validation-workflow" + }, + { + "slug": "agent-world-model-simulation-loop", + "title": "Agent-World Model Simulation Loop", + "description": "The agent analyses the request, the world model simulates the action, the simulated outcome returns a confirmation and the agent executes — with an adjustment loop on divergence.", + "kind": "workflow", + "sourceDomain": "Agent Simulation", + "primaryUseCase": "agent-simulation", + "secondaryUseCases": [], + "useCases": [ + "agent-simulation" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 3, + "tags": [ + "qwen", + "agentworld", + "world-model", + "simulation", + "agent-testing" + ], + "sourcePath": "", + "repoPath": "agent-simulation/agent-simulation/agent-world-model-simulation-loop" + }, + { + "slug": "validation-simulator-inside-agent-workflow", + "title": "Validation Simulator Inside the Agent Workflow", + "description": "The validation simulator sits inside the workflow, not after it: the agent analyses the claim attachments, detects the anomaly and simulates the reimbursement before executing it.", + "kind": "workflow", + "sourceDomain": "Agent Simulation", + "primaryUseCase": "agent-simulation", + "secondaryUseCases": [], + "useCases": [ + "agent-simulation" + ], + "complexity": 3, + "numNodes": 14, + "numLanes": 4, + "tags": [ + "qwen", + "agentworld", + "validation", + "insurance", + "simulation" + ], + "sourcePath": "", + "repoPath": "agent-simulation/agent-simulation/validation-simulator-inside-agent-workflow" + }, + { + "slug": "agentworld-testing-pipeline-workflow", + "title": "AgentWorld Testing Pipeline Workflow", + "description": "A QA pipeline with a simulator in the loop: configure perturbations, add scenarios, run the agent under test and analyse the robustness report before release.", + "kind": "workflow", + "sourceDomain": "Agent Simulation", + "primaryUseCase": "delivery", + "secondaryUseCases": [ + "agent-simulation" + ], + "useCases": [ + "delivery", + "agent-simulation" + ], + "complexity": 3, + "numNodes": 14, + "numLanes": 3, + "tags": [ + "qwen", + "agentworld", + "qa", + "test-pipeline", + "robustness" + ], + "sourcePath": "", + "repoPath": "delivery/agent-simulation/agentworld-testing-pipeline-workflow" + }, + { + "slug": "mirofish-synthetic-focus-group-architecture", + "title": "MiroFish Synthetic Focus Group Architecture", + "description": "Browser to MiroFish stack to LLM API: the seed document is distributed to each agent, agents produce outputs and the logs are aggregated into a report.", + "kind": "workflow", + "sourceDomain": "Agent Simulation", + "primaryUseCase": "agentic", + "secondaryUseCases": [ + "agent-simulation" + ], + "useCases": [ + "agentic", + "agent-simulation" + ], + "complexity": 2, + "numNodes": 11, + "numLanes": 3, + "tags": [ + "mirofish", + "synthetic-research", + "focus-group", + "multi-agent", + "llm" + ], + "sourcePath": "", + "repoPath": "agentic/agent-simulation/mirofish-synthetic-focus-group-architecture" + }, + { + "slug": "synthetic-focus-group-copy-validation", + "title": "Synthetic Focus Group — Copy Validation", + "description": "Pre-launch copy validation: a builder spawns 50 LLM agents with a persona config, collects and ranks top objections, then builds the report.", + "kind": "workflow", + "sourceDomain": "Agent Simulation", + "primaryUseCase": "agentic", + "secondaryUseCases": [ + "agent-simulation" + ], + "useCases": [ + "agentic", + "agent-simulation" + ], + "complexity": 3, + "numNodes": 13, + "numLanes": 3, + "tags": [ + "mirofish", + "synthetic-research", + "copy-validation", + "agent-swarm", + "personas" + ], + "sourcePath": "", + "repoPath": "agentic/agent-simulation/synthetic-focus-group-copy-validation" + }, + { + "slug": "synthetic-focus-group-crisis-injection", + "title": "Synthetic Focus Group — Crisis Injection", + "description": "Mid-simulation crisis injection: the baseline is captured, a market event is injected, agents absorb the crisis context and the post-crisis logs are aggregated for comparison.", + "kind": "workflow", + "sourceDomain": "Agent Simulation", + "primaryUseCase": "agentic", + "secondaryUseCases": [ + "agent-simulation" + ], + "useCases": [ + "agentic", + "agent-simulation" + ], + "complexity": 3, + "numNodes": 16, + "numLanes": 3, + "tags": [ + "mirofish", + "synthetic-research", + "crisis-injection", + "market-event", + "agent-swarm" + ], + "sourcePath": "", + "repoPath": "agentic/agent-simulation/synthetic-focus-group-crisis-injection" + }, + { + "slug": "synthetic-focus-group-ab-offer-testing", + "title": "Synthetic Focus Group — A/B Offer Testing", + "description": "A/B offer testing with synthetic agents: variant A and variant B are evaluated for perceived value, aggregated separately and compared to pick the winner.", + "kind": "workflow", + "sourceDomain": "Agent Simulation", + "primaryUseCase": "agentic", + "secondaryUseCases": [ + "agent-simulation" + ], + "useCases": [ + "agentic", + "agent-simulation" + ], + "complexity": 2, + "numNodes": 12, + "numLanes": 2, + "tags": [ + "mirofish", + "synthetic-research", + "ab-testing", + "offer-testing", + "agent-swarm" + ], + "sourcePath": "", + "repoPath": "agentic/agent-simulation/synthetic-focus-group-ab-offer-testing" + }, + { + "slug": "gcp-account-suspension-outage-cascade", + "title": "GCP Account Suspension Outage Cascade", + "description": "How a single account suspension cascades into an 8-hour platform outage: control plane offline, API down, caches expiring, workloads returning 404 and OAuth throttled.", + "kind": "workflow", + "sourceDomain": "Platform Reliability", + "primaryUseCase": "incident", + "secondaryUseCases": [ + "platform-reliability" + ], + "useCases": [ + "incident", + "platform-reliability" + ], + "complexity": 2, + "numNodes": 8, + "numLanes": 1, + "tags": [ + "multi-cloud", + "outage", + "cascade", + "resilience", + "gcp" + ], + "sourcePath": "", + "repoPath": "incident/platform-reliability/gcp-account-suspension-outage-cascade" + }, + { + "slug": "multi-cloud-mesh-resilience-architecture", + "title": "Multi-Cloud Mesh Resilience Architecture", + "description": "Traffic through any edge proxy to a mesh control plane spread over AWS, GCP and metal, with quorum databases and no single-cloud dependency in the routing path.", + "kind": "workflow", + "sourceDomain": "Platform Reliability", + "primaryUseCase": "platform-reliability", + "secondaryUseCases": [], + "useCases": [ + "platform-reliability" + ], + "complexity": 2, + "numNodes": 9, + "numLanes": 1, + "tags": [ + "multi-cloud", + "resilience", + "mesh", + "quorum", + "architecture" + ], + "sourcePath": "", + "repoPath": "platform-reliability/platform-reliability/multi-cloud-mesh-resilience-architecture" + }, + { + "slug": "cross-cloud-failover-deployment-pipeline", + "title": "Cross-Cloud Failover Deployment Pipeline", + "description": "CI builds the container, pushes it to a cross-cloud registry, deploys to AWS, GCP and metal, health-checks every endpoint and updates mesh routing only when all are healthy.", + "kind": "workflow", + "sourceDomain": "Platform Reliability", + "primaryUseCase": "delivery", + "secondaryUseCases": [ + "platform-reliability" + ], + "useCases": [ + "delivery", + "platform-reliability" + ], + "complexity": 2, + "numNodes": 11, + "numLanes": 5, + "tags": [ + "multi-cloud", + "deployment", + "failover", + "ci-cd", + "health-check" + ], + "sourcePath": "", + "repoPath": "delivery/platform-reliability/cross-cloud-failover-deployment-pipeline" } ] } diff --git a/uncategorized/business-operations/cohort-analysis-workflow/workflow.fz b/uncategorized/business-operations/cohort-analysis-workflow/workflow.fz index d5e37ef6c77d3b1c772d483962e6030f11555d9a..15c8bbb2476160fb86adc271069773feaa5ea0bc 100644 --- a/uncategorized/business-operations/cohort-analysis-workflow/workflow.fz +++ b/uncategorized/business-operations/cohort-analysis-workflow/workflow.fz @@ -1,39 +1,39 @@ -Analyst { # Analyst -n1: circle label:"Start" -n2: rectangle label:"Define cohort criteria" -n3: rectangle label:"Set analysis time window" -n4: rectangle label:"Review analysis results" -n5: diamond label:"Insights actionable?" -n6: rectangle label:"Create recommendations report" -n7: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(right) -> n3.handle(left) -n3.handle(bottom) -> DataPipeline.n8.handle(top) [label="Extract data"] -n4.handle(right) -> n5.handle(left) -n5.handle(right) -> n6.handle(left) [label="Yes"] -n5.handle(bottom) -> n2.handle(bottom) [label="No - Refine criteria"] -n6.handle(right) -> n7.handle(left) -} -DataPipeline { # Data Pipeline -n8: rectangle label:"Query user events database" -n9: rectangle label:"Group users by signup date" -n10: rectangle label:"Calculate retention metrics" -n11: diamond label:"Data quality check?" -n12: rectangle label:"Flag data anomalies" -n8.handle(right) -> n9.handle(left) -n9.handle(right) -> n10.handle(left) -n10.handle(right) -> n11.handle(left) -n11.handle(right) -> Analytics.n13.handle(left) [label="Pass"] -n11.handle(bottom) -> n12.handle(top) [label="Fail"] -n12.handle(left) -> n8.handle(bottom) [label="Reprocess"] -} -Analytics { # Analytics Engine -n13: rectangle label:"Compute cohort curves" -n14: rectangle label:"Calculate churn rates" -n15: rectangle label:"Identify behavior patterns" -n16: rectangle label:"Generate visualizations" -n13.handle(right) -> n14.handle(left) -n14.handle(right) -> n15.handle(left) -n15.handle(right) -> n16.handle(left) -n16.handle(top) -> Analyst.n4.handle(bottom) [label="Results ready"] +Analyst { # Analyst +n1: circle label:"Start" +n2: rectangle label:"Define cohort criteria" +n3: rectangle label:"Set analysis time window" +n4: rectangle label:"Review analysis results" +n5: diamond label:"Insights actionable?" +n6: rectangle label:"Create recommendations report" +n7: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(bottom) -> DataPipeline.n8.handle(top) [label="Extract data"] +n4.handle(right) -> n5.handle(left) +n5.handle(right) -> n6.handle(left) [label="Yes"] +n5.handle(bottom) -> n2.handle(bottom) [label="No - Refine criteria"] +n6.handle(right) -> n7.handle(left) +} +DataPipeline { # Data Pipeline +n8: rectangle label:"Query user events database" +n9: rectangle label:"Group users by signup date" +n10: rectangle label:"Calculate retention metrics" +n11: diamond label:"Data quality check?" +n12: rectangle label:"Flag data anomalies" +n8.handle(right) -> n9.handle(left) +n9.handle(right) -> n10.handle(left) +n10.handle(right) -> n11.handle(left) +n11.handle(right) -> Analytics.n13.handle(left) [label="Pass"] +n11.handle(bottom) -> n12.handle(top) [label="Fail"] +n12.handle(left) -> n8.handle(bottom) [label="Reprocess"] +} +Analytics { # Analytics Engine +n13: rectangle label:"Compute cohort curves" +n14: rectangle label:"Calculate churn rates" +n15: rectangle label:"Identify behavior patterns" +n16: rectangle label:"Generate visualizations" +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) +n15.handle(right) -> n16.handle(left) +n16.handle(top) -> Analyst.n4.handle(bottom) [label="Results ready"] } \ No newline at end of file diff --git a/uncategorized/business-operations/community-moderation-workflow/workflow.fz b/uncategorized/business-operations/community-moderation-workflow/workflow.fz index dc20f182d68f95b04189612ac4787d7acfb3f18f..712b59c11363fdb50df0c06e9ef3c28cd9f9d054 100644 --- a/uncategorized/business-operations/community-moderation-workflow/workflow.fz +++ b/uncategorized/business-operations/community-moderation-workflow/workflow.fz @@ -1,44 +1,44 @@ -User { # User -n1: circle label:"Start" -n2: rectangle label:"Report content or user" -n3: rectangle label:"Receive moderation outcome" -n4: diamond label:"Appeal decision?" -n5: rectangle label:"Submit appeal with reason" -n6: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(bottom) -> AutoMod.n7.handle(top) [label="Flag content"] -n3.handle(right) -> n4.handle(left) -n4.handle(right) -> n6.handle(left) [label="No"] -n4.handle(bottom) -> n5.handle(top) [label="Yes"] -n5.handle(bottom) -> HumanMod.n15.handle(top) [label="Review appeal"] -} -AutoMod { # Auto Moderation -n7: rectangle label:"Scan content with AI" -n8: diamond label:"Violates policy?" -n9: rectangle label:"Auto-remove content" -n10: rectangle label:"Mark as safe" -n11: diamond label:"Confidence high?" -n7.handle(right) -> n8.handle(left) -n8.handle(right) -> n11.handle(left) [label="Yes"] -n8.handle(bottom) -> n10.handle(top) [label="No"] -n11.handle(right) -> n9.handle(left) [label="Yes"] -n11.handle(bottom) -> HumanMod.n12.handle(top) [label="No - Escalate"] -n9.handle(top) -> User.n3.handle(bottom) [label="Removed"] -n10.handle(top) -> User.n3.handle(bottom) [label="Approved"] -} -HumanMod { # Human Moderator -n12: rectangle label:"Review flagged content" -n13: diamond label:"Policy violation?" -n14: rectangle label:"Apply appropriate action" -n15: rectangle label:"Review appeal case" -n16: diamond label:"Overturn decision?" -n17: rectangle label:"Restore content" -n12.handle(right) -> n13.handle(left) -n13.handle(right) -> n14.handle(left) [label="Yes"] -n13.handle(bottom) -> AutoMod.n10.handle(bottom) [label="No"] -n14.handle(top) -> User.n3.handle(bottom) [label="Action taken"] -n15.handle(right) -> n16.handle(left) -n16.handle(right) -> n17.handle(left) [label="Yes"] -n16.handle(bottom) -> User.n6.handle(top) [label="No - Upheld"] -n17.handle(top) -> User.n3.handle(bottom) [label="Restored"] +User { # User +n1: circle label:"Start" +n2: rectangle label:"Report content or user" +n3: rectangle label:"Receive moderation outcome" +n4: diamond label:"Appeal decision?" +n5: rectangle label:"Submit appeal with reason" +n6: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> AutoMod.n7.handle(top) [label="Flag content"] +n3.handle(right) -> n4.handle(left) +n4.handle(right) -> n6.handle(left) [label="No"] +n4.handle(bottom) -> n5.handle(top) [label="Yes"] +n5.handle(bottom) -> HumanMod.n15.handle(top) [label="Review appeal"] +} +AutoMod { # Auto Moderation +n7: rectangle label:"Scan content with AI" +n8: diamond label:"Violates policy?" +n9: rectangle label:"Auto-remove content" +n10: rectangle label:"Mark as safe" +n11: diamond label:"Confidence high?" +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n11.handle(left) [label="Yes"] +n8.handle(bottom) -> n10.handle(top) [label="No"] +n11.handle(right) -> n9.handle(left) [label="Yes"] +n11.handle(bottom) -> HumanMod.n12.handle(top) [label="No - Escalate"] +n9.handle(top) -> User.n3.handle(bottom) [label="Removed"] +n10.handle(top) -> User.n3.handle(bottom) [label="Approved"] +} +HumanMod { # Human Moderator +n12: rectangle label:"Review flagged content" +n13: diamond label:"Policy violation?" +n14: rectangle label:"Apply appropriate action" +n15: rectangle label:"Review appeal case" +n16: diamond label:"Overturn decision?" +n17: rectangle label:"Restore content" +n12.handle(right) -> n13.handle(left) +n13.handle(right) -> n14.handle(left) [label="Yes"] +n13.handle(bottom) -> AutoMod.n10.handle(bottom) [label="No"] +n14.handle(top) -> User.n3.handle(bottom) [label="Action taken"] +n15.handle(right) -> n16.handle(left) +n16.handle(right) -> n17.handle(left) [label="Yes"] +n16.handle(bottom) -> User.n6.handle(top) [label="No - Upheld"] +n17.handle(top) -> User.n3.handle(bottom) [label="Restored"] } \ No newline at end of file diff --git a/uncategorized/business-operations/email-campaign-workflow/workflow.fz b/uncategorized/business-operations/email-campaign-workflow/workflow.fz index 2b639321a50caeb09f42d3318e6b17df0a33b0a8..ad7c960301e6723e6175f580306b46e05a92727e 100644 --- a/uncategorized/business-operations/email-campaign-workflow/workflow.fz +++ b/uncategorized/business-operations/email-campaign-workflow/workflow.fz @@ -1,49 +1,49 @@ -Marketer { # Marketer - n1: circle label:"Start" - n2: rectangle label:"Define campaign objectives" - n3: rectangle label:"Select target audience" - n4: rectangle label:"Create email content" - n5: rectangle label:"Review campaign analytics" - n6: circle label:"End" - n1.handle(right) -> n2.handle(left) - n2.handle(right) -> n3.handle(left) - n3.handle(bottom) -> CRM.n7.handle(top) [label="Query segments"] - n4.handle(bottom) -> EmailPlatform.n11.handle(top) [label="Upload content"] - n5.handle(right) -> n6.handle(left) -} -CRM { # CRM System - n7: rectangle label:"Filter subscribers by criteria" - n8: diamond label:"List size sufficient?" - n9: rectangle label:"Export recipient list" - n10: rectangle label:"Expand criteria" - n7.handle(right) -> n8.handle(left) - n8.handle(right) -> n9.handle(left) [label="Yes"] - n8.handle(bottom) -> n10.handle(top) [label="No"] - n10.handle(left) -> n7.handle(bottom) [label="Retry"] - n9.handle(top) -> Marketer.n4.handle(bottom) [label="List ready"] -} -EmailPlatform { # Email Platform - n11: rectangle label:"Validate email template" - n12: rectangle label:"Schedule send time" - n13: diamond label:"A/B test enabled?" - n14: rectangle label:"Split audience randomly" - n15: rectangle label:"Send to full list" - n16: rectangle label:"Queue emails for delivery" - n11.handle(right) -> n12.handle(left) - n12.handle(right) -> n13.handle(left) - n13.handle(right) -> n14.handle(left) [label="Yes"] - n13.handle(bottom) -> n15.handle(top) [label="No"] - n14.handle(right) -> n16.handle(left) - n15.handle(right) -> n16.handle(top) - n16.handle(bottom) -> Analytics.n17.handle(top) [label="Sending"] -} -Analytics { # Analytics - n17: rectangle label:"Track delivery rates" - n18: rectangle label:"Monitor open rates" - n19: rectangle label:"Record click-through rates" - n20: rectangle label:"Calculate conversion metrics" - n17.handle(right) -> n18.handle(left) - n18.handle(right) -> n19.handle(left) - n19.handle(right) -> n20.handle(left) - n20.handle(top) -> Marketer.n5.handle(bottom) [label="Report ready"] +Marketer { # Marketer + n1: circle label:"Start" + n2: rectangle label:"Define campaign objectives" + n3: rectangle label:"Select target audience" + n4: rectangle label:"Create email content" + n5: rectangle label:"Review campaign analytics" + n6: circle label:"End" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(bottom) -> CRM.n7.handle(top) [label="Query segments"] + n4.handle(bottom) -> EmailPlatform.n11.handle(top) [label="Upload content"] + n5.handle(right) -> n6.handle(left) +} +CRM { # CRM System + n7: rectangle label:"Filter subscribers by criteria" + n8: diamond label:"List size sufficient?" + n9: rectangle label:"Export recipient list" + n10: rectangle label:"Expand criteria" + n7.handle(right) -> n8.handle(left) + n8.handle(right) -> n9.handle(left) [label="Yes"] + n8.handle(bottom) -> n10.handle(top) [label="No"] + n10.handle(left) -> n7.handle(bottom) [label="Retry"] + n9.handle(top) -> Marketer.n4.handle(bottom) [label="List ready"] +} +EmailPlatform { # Email Platform + n11: rectangle label:"Validate email template" + n12: rectangle label:"Schedule send time" + n13: diamond label:"A/B test enabled?" + n14: rectangle label:"Split audience randomly" + n15: rectangle label:"Send to full list" + n16: rectangle label:"Queue emails for delivery" + n11.handle(right) -> n12.handle(left) + n12.handle(right) -> n13.handle(left) + n13.handle(right) -> n14.handle(left) [label="Yes"] + n13.handle(bottom) -> n15.handle(top) [label="No"] + n14.handle(right) -> n16.handle(left) + n15.handle(right) -> n16.handle(top) + n16.handle(bottom) -> Analytics.n17.handle(top) [label="Sending"] +} +Analytics { # Analytics + n17: rectangle label:"Track delivery rates" + n18: rectangle label:"Monitor open rates" + n19: rectangle label:"Record click-through rates" + n20: rectangle label:"Calculate conversion metrics" + n17.handle(right) -> n18.handle(left) + n18.handle(right) -> n19.handle(left) + n19.handle(right) -> n20.handle(left) + n20.handle(top) -> Marketer.n5.handle(bottom) [label="Report ready"] } \ No newline at end of file diff --git a/uncategorized/business-operations/in-app-message-workflow/workflow.fz b/uncategorized/business-operations/in-app-message-workflow/workflow.fz index 9fe4cb8ad7365958c7a6f3c77fafd430df745e35..230c7894d27e6b527b09298206f143e49b1df71b 100644 --- a/uncategorized/business-operations/in-app-message-workflow/workflow.fz +++ b/uncategorized/business-operations/in-app-message-workflow/workflow.fz @@ -1,46 +1,46 @@ -n8nTrigger { # n8n Webhook Trigger - n1: circle label:"Start" - n2: rectangle label:"Receive user event webhook" - n3: rectangle label:"Parse event payload" - n4: diamond label:"Event type?" - n5: rectangle label:"Route to onboarding flow" - n6: rectangle label:"Route to engagement flow" - n7: rectangle label:"Route to retention flow" - n1.handle(right) -> n2.handle(left) - n2.handle(right) -> n3.handle(left) - n3.handle(right) -> n4.handle(left) - n4.handle(right) -> n5.handle(left) [label="signup"] - n4.handle(bottom) -> n6.handle(top) [label="feature_used"] - n4.handle(left) -> n7.handle(top) [label="inactive"] - n5.handle(bottom) -> Segmentation.n8.handle(top) [label="Check segment"] - n6.handle(bottom) -> Segmentation.n8.handle(top) [label="Check segment"] - n7.handle(bottom) -> Segmentation.n8.handle(top) [label="Check segment"] -} -Segmentation { # n8n IF Node - n8: rectangle label:"Fetch user profile from DB" - n9: diamond label:"User segment?" - n10: rectangle label:"Select premium template" - n11: rectangle label:"Select standard template" - n12: rectangle label:"Select trial template" - n8.handle(right) -> n9.handle(left) - n9.handle(right) -> n10.handle(left) [label="Premium"] - n9.handle(bottom) -> n11.handle(top) [label="Standard"] - n9.handle(left) -> n12.handle(top) [label="Trial"] - n10.handle(bottom) -> Delivery.n13.handle(top) [label="Template"] - n11.handle(bottom) -> Delivery.n13.handle(top) [label="Template"] - n12.handle(bottom) -> Delivery.n13.handle(top) [label="Template"] -} -Delivery { # n8n HTTP Request - n13: rectangle label:"Personalize message content" - n14: rectangle label:"POST to Intercom API" - n15: diamond label:"Delivery successful?" - n16: rectangle label:"Log to Google Sheets" - n17: rectangle label:"Send Slack alert" - n18: circle label:"End" - n13.handle(right) -> n14.handle(left) - n14.handle(right) -> n15.handle(left) - n15.handle(right) -> n16.handle(left) [label="Yes"] - n15.handle(bottom) -> n17.handle(top) [label="No"] - n16.handle(right) -> n18.handle(left) - n17.handle(right) -> n18.handle(top) +n8nTrigger { # n8n Webhook Trigger + n1: circle label:"Start" + n2: rectangle label:"Receive user event webhook" + n3: rectangle label:"Parse event payload" + n4: diamond label:"Event type?" + n5: rectangle label:"Route to onboarding flow" + n6: rectangle label:"Route to engagement flow" + n7: rectangle label:"Route to retention flow" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(right) -> n5.handle(left) [label="signup"] + n4.handle(bottom) -> n6.handle(top) [label="feature_used"] + n4.handle(left) -> n7.handle(top) [label="inactive"] + n5.handle(bottom) -> Segmentation.n8.handle(top) [label="Check segment"] + n6.handle(bottom) -> Segmentation.n8.handle(top) [label="Check segment"] + n7.handle(bottom) -> Segmentation.n8.handle(top) [label="Check segment"] +} +Segmentation { # n8n IF Node + n8: rectangle label:"Fetch user profile from DB" + n9: diamond label:"User segment?" + n10: rectangle label:"Select premium template" + n11: rectangle label:"Select standard template" + n12: rectangle label:"Select trial template" + n8.handle(right) -> n9.handle(left) + n9.handle(right) -> n10.handle(left) [label="Premium"] + n9.handle(bottom) -> n11.handle(top) [label="Standard"] + n9.handle(left) -> n12.handle(top) [label="Trial"] + n10.handle(bottom) -> Delivery.n13.handle(top) [label="Template"] + n11.handle(bottom) -> Delivery.n13.handle(top) [label="Template"] + n12.handle(bottom) -> Delivery.n13.handle(top) [label="Template"] +} +Delivery { # n8n HTTP Request + n13: rectangle label:"Personalize message content" + n14: rectangle label:"POST to Intercom API" + n15: diamond label:"Delivery successful?" + n16: rectangle label:"Log to Google Sheets" + n17: rectangle label:"Send Slack alert" + n18: circle label:"End" + n13.handle(right) -> n14.handle(left) + n14.handle(right) -> n15.handle(left) + n15.handle(right) -> n16.handle(left) [label="Yes"] + n15.handle(bottom) -> n17.handle(top) [label="No"] + n16.handle(right) -> n18.handle(left) + n17.handle(right) -> n18.handle(top) } \ No newline at end of file diff --git a/uncategorized/business-operations/personalization-engine-workflow/workflow.fz b/uncategorized/business-operations/personalization-engine-workflow/workflow.fz index b9556607f20dedd069012dc8081639f4729437a5..4b2dd9aec23f5d0b626267eada2d81ec38987c31 100644 --- a/uncategorized/business-operations/personalization-engine-workflow/workflow.fz +++ b/uncategorized/business-operations/personalization-engine-workflow/workflow.fz @@ -1,49 +1,49 @@ -MakeScenario { # Make.com Scenario -n1: circle label:"Start" -n2: rectangle label:"Watch Segment user events" -n3: rectangle label:"Parse user properties" -n4: diamond label:"Event type?" -n5: rectangle label:"Handle page view" -n6: rectangle label:"Handle purchase" -n7: rectangle label:"Handle signup" -n1.handle(right) -> n2.handle(left) -n2.handle(right) -> n3.handle(left) -n3.handle(right) -> n4.handle(left) -n4.handle(right) -> n5.handle(left) [label="page"] -n4.handle(bottom) -> n6.handle(top) [label="purchase"] -n4.handle(left) -> n7.handle(top) [label="signup"] -n5.handle(bottom) -> MLModel.n8.handle(top) [label="Predict"] -n6.handle(bottom) -> MLModel.n8.handle(top) [label="Predict"] -n7.handle(bottom) -> MLModel.n8.handle(top) [label="Predict"] -} -MLModel { # Make.com HTTP Module -n8: rectangle label:"POST to recommendation API" -n9: rectangle label:"Parse ML predictions" -n10: diamond label:"Confidence score?" -n11: rectangle label:"Use personalized content" -n12: rectangle label:"Use default content" -n8.handle(right) -> n9.handle(left) -n9.handle(right) -> n10.handle(left) -n10.handle(right) -> n11.handle(left) [label="> 0.7"] -n10.handle(bottom) -> n12.handle(top) [label="<= 0.7"] -n11.handle(bottom) -> ContentDelivery.n13.handle(top) [label="Personalized"] -n12.handle(bottom) -> ContentDelivery.n13.handle(top) [label="Default"] -} -ContentDelivery { # Make.com Iterator -n13: rectangle label:"Fetch content variants" -n14: rectangle label:"Select best variant" -n15: rectangle label:"Update Braze user profile" -n16: rectangle label:"Trigger Braze campaign" -n17: diamond label:"Channel preference?" -n18: rectangle label:"Send via email" -n19: rectangle label:"Send via push" -n20: circle label:"End" -n13.handle(right) -> n14.handle(left) -n14.handle(right) -> n15.handle(left) -n15.handle(right) -> n16.handle(left) -n16.handle(right) -> n17.handle(left) -n17.handle(right) -> n18.handle(left) [label="email"] -n17.handle(bottom) -> n19.handle(top) [label="push"] -n18.handle(right) -> n20.handle(left) -n19.handle(right) -> n20.handle(top) +MakeScenario { # Make.com Scenario +n1: circle label:"Start" +n2: rectangle label:"Watch Segment user events" +n3: rectangle label:"Parse user properties" +n4: diamond label:"Event type?" +n5: rectangle label:"Handle page view" +n6: rectangle label:"Handle purchase" +n7: rectangle label:"Handle signup" +n1.handle(right) -> n2.handle(left) +n2.handle(right) -> n3.handle(left) +n3.handle(right) -> n4.handle(left) +n4.handle(right) -> n5.handle(left) [label="page"] +n4.handle(bottom) -> n6.handle(top) [label="purchase"] +n4.handle(left) -> n7.handle(top) [label="signup"] +n5.handle(bottom) -> MLModel.n8.handle(top) [label="Predict"] +n6.handle(bottom) -> MLModel.n8.handle(top) [label="Predict"] +n7.handle(bottom) -> MLModel.n8.handle(top) [label="Predict"] +} +MLModel { # Make.com HTTP Module +n8: rectangle label:"POST to recommendation API" +n9: rectangle label:"Parse ML predictions" +n10: diamond label:"Confidence score?" +n11: rectangle label:"Use personalized content" +n12: rectangle label:"Use default content" +n8.handle(right) -> n9.handle(left) +n9.handle(right) -> n10.handle(left) +n10.handle(right) -> n11.handle(left) [label="> 0.7"] +n10.handle(bottom) -> n12.handle(top) [label="<= 0.7"] +n11.handle(bottom) -> ContentDelivery.n13.handle(top) [label="Personalized"] +n12.handle(bottom) -> ContentDelivery.n13.handle(top) [label="Default"] +} +ContentDelivery { # Make.com Iterator +n13: rectangle label:"Fetch content variants" +n14: rectangle label:"Select best variant" +n15: rectangle label:"Update Braze user profile" +n16: rectangle label:"Trigger Braze campaign" +n17: diamond label:"Channel preference?" +n18: rectangle label:"Send via email" +n19: rectangle label:"Send via push" +n20: circle label:"End" +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) +n15.handle(right) -> n16.handle(left) +n16.handle(right) -> n17.handle(left) +n17.handle(right) -> n18.handle(left) [label="email"] +n17.handle(bottom) -> n19.handle(top) [label="push"] +n18.handle(right) -> n20.handle(left) +n19.handle(right) -> n20.handle(top) } \ No newline at end of file diff --git a/uncategorized/business-operations/push-notification-workflow/workflow.fz b/uncategorized/business-operations/push-notification-workflow/workflow.fz index 0f167d338d723d757d30007d247c8129c668a5ac..f805d1b87b7a2646cb752b51c471dafbc5d41526 100644 --- a/uncategorized/business-operations/push-notification-workflow/workflow.fz +++ b/uncategorized/business-operations/push-notification-workflow/workflow.fz @@ -1,46 +1,46 @@ -MakeWebhook { # Make.com Webhook - n1: circle label:"Start" - n2: rectangle label:"Receive trigger from Airtable" - n3: rectangle label:"Get record details" - n4: diamond label:"Notification type?" - n5: rectangle label:"Format promotional message" - n6: rectangle label:"Format transactional message" - n7: rectangle label:"Format reminder message" - n1.handle(right) -> n2.handle(left) - n2.handle(right) -> n3.handle(left) - n3.handle(right) -> n4.handle(left) - n4.handle(right) -> n5.handle(left) [label="promo"] - n4.handle(bottom) -> n6.handle(top) [label="transaction"] - n4.handle(left) -> n7.handle(top) [label="reminder"] - n5.handle(bottom) -> OneSignal.n8.handle(top) [label="Send"] - n6.handle(bottom) -> OneSignal.n8.handle(top) [label="Send"] - n7.handle(bottom) -> OneSignal.n8.handle(top) [label="Send"] -} -OneSignal { # Make.com OneSignal Module - n8: rectangle label:"Create notification payload" - n9: rectangle label:"Set target segments" - n10: rectangle label:"POST to OneSignal API" - n11: diamond label:"API response OK?" - n12: rectangle label:"Extract notification ID" - n13: rectangle label:"Log error details" - n8.handle(right) -> n9.handle(left) - n9.handle(right) -> n10.handle(left) - n10.handle(right) -> n11.handle(left) - n11.handle(right) -> n12.handle(left) [label="200"] - n11.handle(bottom) -> n13.handle(top) [label="Error"] - n12.handle(bottom) -> Analytics.n14.handle(top) [label="Track"] - n13.handle(bottom) -> Analytics.n19.handle(top) [label="Alert"] -} -Analytics { # Make.com Data Store - n14: rectangle label:"Update Airtable record" - n15: rectangle label:"Increment send counter" - n16: rectangle label:"Calculate delivery rate" - n17: rectangle label:"Update Google Analytics" - n18: circle label:"End" - n19: rectangle label:"Send Slack error alert" - n14.handle(right) -> n15.handle(left) - n15.handle(right) -> n16.handle(left) - n16.handle(right) -> n17.handle(left) - n17.handle(right) -> n18.handle(left) - n19.handle(right) -> n18.handle(top) +MakeWebhook { # Make.com Webhook + n1: circle label:"Start" + n2: rectangle label:"Receive trigger from Airtable" + n3: rectangle label:"Get record details" + n4: diamond label:"Notification type?" + n5: rectangle label:"Format promotional message" + n6: rectangle label:"Format transactional message" + n7: rectangle label:"Format reminder message" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(right) -> n4.handle(left) + n4.handle(right) -> n5.handle(left) [label="promo"] + n4.handle(bottom) -> n6.handle(top) [label="transaction"] + n4.handle(left) -> n7.handle(top) [label="reminder"] + n5.handle(bottom) -> OneSignal.n8.handle(top) [label="Send"] + n6.handle(bottom) -> OneSignal.n8.handle(top) [label="Send"] + n7.handle(bottom) -> OneSignal.n8.handle(top) [label="Send"] +} +OneSignal { # Make.com OneSignal Module + n8: rectangle label:"Create notification payload" + n9: rectangle label:"Set target segments" + n10: rectangle label:"POST to OneSignal API" + n11: diamond label:"API response OK?" + n12: rectangle label:"Extract notification ID" + n13: rectangle label:"Log error details" + n8.handle(right) -> n9.handle(left) + n9.handle(right) -> n10.handle(left) + n10.handle(right) -> n11.handle(left) + n11.handle(right) -> n12.handle(left) [label="200"] + n11.handle(bottom) -> n13.handle(top) [label="Error"] + n12.handle(bottom) -> Analytics.n14.handle(top) [label="Track"] + n13.handle(bottom) -> Analytics.n19.handle(top) [label="Alert"] +} +Analytics { # Make.com Data Store + n14: rectangle label:"Update Airtable record" + n15: rectangle label:"Increment send counter" + n16: rectangle label:"Calculate delivery rate" + n17: rectangle label:"Update Google Analytics" + n18: circle label:"End" + n19: rectangle label:"Send Slack error alert" + n14.handle(right) -> n15.handle(left) + n15.handle(right) -> n16.handle(left) + n16.handle(right) -> n17.handle(left) + n17.handle(right) -> n18.handle(left) + n19.handle(right) -> n18.handle(top) } \ No newline at end of file diff --git a/uncategorized/business-operations/referral-program-workflow/workflow.fz b/uncategorized/business-operations/referral-program-workflow/workflow.fz index 49542fe519c975886cab25004938591e4e0f0424..b9dc703d07ca95a3a5bacc745eaba98ce6dbf87c 100644 --- a/uncategorized/business-operations/referral-program-workflow/workflow.fz +++ b/uncategorized/business-operations/referral-program-workflow/workflow.fz @@ -1,41 +1,41 @@ -Referrer { # Referrer - n1: circle label:"Start" - n2: rectangle label:"Generate referral link" - n3: rectangle label:"Share link with friend" - n4: rectangle label:"Receive reward notification" - n5: circle label:"End" - n1.handle(right) -> n2.handle(left) - n2.handle(bottom) -> ReferralSystem.n6.handle(top) [label="Create link"] - n3.handle(bottom) -> ReferralSystem.n9.handle(top) [label="Track click"] - n4.handle(right) -> n5.handle(left) -} -ReferralSystem { # Referral System - n6: rectangle label:"Generate unique tracking code" - n7: rectangle label:"Store referrer association" - n8: rectangle label:"Return shareable URL" - n9: rectangle label:"Log referral click" - n10: diamond label:"New user signup?" - n11: rectangle label:"Attribute to referrer" - n6.handle(right) -> n7.handle(left) - n7.handle(right) -> n8.handle(left) - n8.handle(top) -> Referrer.n3.handle(bottom) [label="Link ready"] - n9.handle(right) -> n10.handle(left) - n10.handle(right) -> n11.handle(left) [label="Yes"] - n10.handle(bottom) -> Referrer.n5.handle(top) [label="No - Existing user"] - n11.handle(bottom) -> Rewards.n12.handle(top) [label="Validate"] -} -Rewards { # Rewards Engine - n12: rectangle label:"Check eligibility rules" - n13: diamond label:"Qualifies for reward?" - n14: rectangle label:"Calculate reward amount" - n15: rectangle label:"Credit referrer account" - n16: rectangle label:"Credit referee bonus" - n17: rectangle label:"Log rejection reason" - n12.handle(right) -> n13.handle(left) - n13.handle(right) -> n14.handle(left) [label="Yes"] - n13.handle(bottom) -> n17.handle(top) [label="No"] - n14.handle(right) -> n15.handle(left) - n15.handle(right) -> n16.handle(left) - n16.handle(top) -> Referrer.n4.handle(bottom) [label="Rewards issued"] - n17.handle(top) -> Referrer.n5.handle(bottom) [label="Ineligible"] +Referrer { # Referrer + n1: circle label:"Start" + n2: rectangle label:"Generate referral link" + n3: rectangle label:"Share link with friend" + n4: rectangle label:"Receive reward notification" + n5: circle label:"End" + n1.handle(right) -> n2.handle(left) + n2.handle(bottom) -> ReferralSystem.n6.handle(top) [label="Create link"] + n3.handle(bottom) -> ReferralSystem.n9.handle(top) [label="Track click"] + n4.handle(right) -> n5.handle(left) +} +ReferralSystem { # Referral System + n6: rectangle label:"Generate unique tracking code" + n7: rectangle label:"Store referrer association" + n8: rectangle label:"Return shareable URL" + n9: rectangle label:"Log referral click" + n10: diamond label:"New user signup?" + n11: rectangle label:"Attribute to referrer" + n6.handle(right) -> n7.handle(left) + n7.handle(right) -> n8.handle(left) + n8.handle(top) -> Referrer.n3.handle(bottom) [label="Link ready"] + n9.handle(right) -> n10.handle(left) + n10.handle(right) -> n11.handle(left) [label="Yes"] + n10.handle(bottom) -> Referrer.n5.handle(top) [label="No - Existing user"] + n11.handle(bottom) -> Rewards.n12.handle(top) [label="Validate"] +} +Rewards { # Rewards Engine + n12: rectangle label:"Check eligibility rules" + n13: diamond label:"Qualifies for reward?" + n14: rectangle label:"Calculate reward amount" + n15: rectangle label:"Credit referrer account" + n16: rectangle label:"Credit referee bonus" + n17: rectangle label:"Log rejection reason" + n12.handle(right) -> n13.handle(left) + n13.handle(right) -> n14.handle(left) [label="Yes"] + n13.handle(bottom) -> n17.handle(top) [label="No"] + n14.handle(right) -> n15.handle(left) + n15.handle(right) -> n16.handle(left) + n16.handle(top) -> Referrer.n4.handle(bottom) [label="Rewards issued"] + n17.handle(top) -> Referrer.n5.handle(bottom) [label="Ineligible"] } \ No newline at end of file diff --git a/uncategorized/business-operations/search-optimization-workflow/workflow.fz b/uncategorized/business-operations/search-optimization-workflow/workflow.fz index 9d77cc97a9c71d1d2dcd71d0b955f0b573f4c00a..e051e74970a487d1f75d3efde61875bcfc670d17 100644 --- a/uncategorized/business-operations/search-optimization-workflow/workflow.fz +++ b/uncategorized/business-operations/search-optimization-workflow/workflow.fz @@ -1,41 +1,41 @@ -n8nTrigger { # n8n Schedule Trigger - n1: circle label:"Start" - n2: rectangle label:"Trigger weekly SEO audit" - n3: rectangle label:"Fetch sitemap URLs" - n4: rectangle label:"Generate SEO report" - n5: circle label:"End" - n1.handle(right) -> n2.handle(left) - n2.handle(right) -> n3.handle(left) - n3.handle(bottom) -> Crawler.n6.handle(top) [label="Crawl"] - n4.handle(right) -> n5.handle(left) -} -Crawler { # n8n HTTP Request - n6: rectangle label:"Crawl each page" - n7: rectangle label:"Extract meta tags" - n8: rectangle label:"Check page speed" - n9: diamond label:"Issues found?" - n10: rectangle label:"Log SEO issues" - n11: rectangle label:"Mark page healthy" - n6.handle(right) -> n7.handle(left) - n7.handle(right) -> n8.handle(left) - n8.handle(right) -> n9.handle(left) - n9.handle(right) -> n10.handle(left) [label="Yes"] - n9.handle(bottom) -> n11.handle(top) [label="No"] - n10.handle(bottom) -> Analysis.n12.handle(top) [label="Analyze"] - n11.handle(bottom) -> Analysis.n12.handle(top) [label="Analyze"] -} -Analysis { # n8n Function Node - n12: rectangle label:"Calculate SEO score" - n13: rectangle label:"Compare to competitors" - n14: diamond label:"Score improved?" - n15: rectangle label:"Generate recommendations" - n16: rectangle label:"Flag regression" - n17: rectangle label:"Send Slack notification" - n12.handle(right) -> n13.handle(left) - n13.handle(right) -> n14.handle(left) - n14.handle(right) -> n15.handle(left) [label="Yes"] - n14.handle(bottom) -> n16.handle(top) [label="No"] - n15.handle(right) -> n17.handle(left) - n16.handle(right) -> n17.handle(top) - n17.handle(top) -> n8nTrigger.n4.handle(bottom) [label="Complete"] +n8nTrigger { # n8n Schedule Trigger + n1: circle label:"Start" + n2: rectangle label:"Trigger weekly SEO audit" + n3: rectangle label:"Fetch sitemap URLs" + n4: rectangle label:"Generate SEO report" + n5: circle label:"End" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(bottom) -> Crawler.n6.handle(top) [label="Crawl"] + n4.handle(right) -> n5.handle(left) +} +Crawler { # n8n HTTP Request + n6: rectangle label:"Crawl each page" + n7: rectangle label:"Extract meta tags" + n8: rectangle label:"Check page speed" + n9: diamond label:"Issues found?" + n10: rectangle label:"Log SEO issues" + n11: rectangle label:"Mark page healthy" + n6.handle(right) -> n7.handle(left) + n7.handle(right) -> n8.handle(left) + n8.handle(right) -> n9.handle(left) + n9.handle(right) -> n10.handle(left) [label="Yes"] + n9.handle(bottom) -> n11.handle(top) [label="No"] + n10.handle(bottom) -> Analysis.n12.handle(top) [label="Analyze"] + n11.handle(bottom) -> Analysis.n12.handle(top) [label="Analyze"] +} +Analysis { # n8n Function Node + n12: rectangle label:"Calculate SEO score" + n13: rectangle label:"Compare to competitors" + n14: diamond label:"Score improved?" + n15: rectangle label:"Generate recommendations" + n16: rectangle label:"Flag regression" + n17: rectangle label:"Send Slack notification" + n12.handle(right) -> n13.handle(left) + n13.handle(right) -> n14.handle(left) + n14.handle(right) -> n15.handle(left) [label="Yes"] + n14.handle(bottom) -> n16.handle(top) [label="No"] + n15.handle(right) -> n17.handle(left) + n16.handle(right) -> n17.handle(top) + n17.handle(top) -> n8nTrigger.n4.handle(bottom) [label="Complete"] } \ No newline at end of file diff --git a/uncategorized/business-operations/user-segmentation-workflow/workflow.fz b/uncategorized/business-operations/user-segmentation-workflow/workflow.fz index b68d500b2db2ffc697ef8ae25bf8f6a1d5031f4d..0ec71a200ee5a526ee19e6a1a8b7b1849dd594a2 100644 --- a/uncategorized/business-operations/user-segmentation-workflow/workflow.fz +++ b/uncategorized/business-operations/user-segmentation-workflow/workflow.fz @@ -1,20 +1,20 @@ -customer { # Customer - n1: circle label:"Start User Segmentation" - n3: diamond label:"Review User Segmentation details" - n5: rectangle label:"Update records for User Segmentation" - n7: circle label:"End User Segmentation" - - n1.handle(bottom) -> agent.n2.handle(top) [label="Success"] - n3.handle(bottom) -> agent.n4.handle(top) - n3.handle(right) -> agent.n2.handle(right) [label="Retry/Rejected"] - n5.handle(bottom) -> agent.n6.handle(top) -} -agent { # Agent - n2: rectangle label:"Receive User Segmentation request" - n4: rectangle label:"Make User Segmentation decision" - n6: rectangle label:"Continue User Segmentation process" - - n2.handle(bottom) -> customer.n3.handle(top) - n4.handle(bottom) -> customer.n5.handle(top) [label="Valid"] - n6.handle(bottom) -> customer.n7.handle(top) +customer { # Customer + n1: circle label:"Start User Segmentation" + n3: diamond label:"Review User Segmentation details" + n5: rectangle label:"Update records for User Segmentation" + n7: circle label:"End User Segmentation" + + n1.handle(bottom) -> agent.n2.handle(top) [label="Success"] + n3.handle(bottom) -> agent.n4.handle(top) + n3.handle(right) -> agent.n2.handle(right) [label="Retry/Rejected"] + n5.handle(bottom) -> agent.n6.handle(top) +} +agent { # Agent + n2: rectangle label:"Receive User Segmentation request" + n4: rectangle label:"Make User Segmentation decision" + n6: rectangle label:"Continue User Segmentation process" + + n2.handle(bottom) -> customer.n3.handle(top) + n4.handle(bottom) -> customer.n5.handle(top) [label="Valid"] + n6.handle(bottom) -> customer.n7.handle(top) } \ No newline at end of file diff --git a/uncategorized/devops/chaos-engineering-workflow/workflow.fz b/uncategorized/devops/chaos-engineering-workflow/workflow.fz index 3ec0f8ac7009327ddb1f038048d25fe160fdb435..5aacb5b3e661ce2778c586cb4794647a56452f37 100644 --- a/uncategorized/devops/chaos-engineering-workflow/workflow.fz +++ b/uncategorized/devops/chaos-engineering-workflow/workflow.fz @@ -1,49 +1,49 @@ -SRE { # SRE Team - n1: circle label:"Start" - n2: rectangle label:"Define experiment hypothesis" - n3: rectangle label:"Select blast radius" - n4: rectangle label:"Review experiment results" - n5: rectangle label:"Document learnings" - n6: circle label:"End" - n1.handle(right) -> n2.handle(left) - n2.handle(right) -> n3.handle(left) - n3.handle(bottom) -> ChaosMonkey.n7.handle(top) [label="Configure"] - n4.handle(right) -> n5.handle(left) - n5.handle(right) -> n6.handle(left) -} -ChaosMonkey { # Chaos Monkey - n7: rectangle label:"Schedule experiment window" - n8: diamond label:"Steady state verified?" - n9: rectangle label:"Inject failure" - n10: rectangle label:"Abort experiment" - n11: diamond label:"Failure type?" - n12: rectangle label:"Kill random instance" - n13: rectangle label:"Inject network latency" - n14: rectangle label:"Exhaust CPU resources" - n7.handle(right) -> n8.handle(left) - n8.handle(right) -> n9.handle(left) [label="Yes"] - n8.handle(bottom) -> n10.handle(top) [label="No"] - n9.handle(right) -> n11.handle(left) - n10.handle(top) -> SRE.n4.handle(bottom) [label="Aborted"] - n11.handle(right) -> n12.handle(left) [label="Instance"] - n11.handle(bottom) -> n13.handle(top) [label="Network"] - n11.handle(left) -> n14.handle(top) [label="Resource"] - n12.handle(bottom) -> Observability.n15.handle(top) [label="Monitor"] - n13.handle(bottom) -> Observability.n15.handle(top) [label="Monitor"] - n14.handle(bottom) -> Observability.n15.handle(top) [label="Monitor"] -} -Observability { # Observability - n15: rectangle label:"Monitor system metrics" - n16: rectangle label:"Track error rates" - n17: diamond label:"System recovered?" - n18: rectangle label:"Record recovery time" - n19: rectangle label:"Trigger rollback" - n20: rectangle label:"Generate experiment report" - n15.handle(right) -> n16.handle(left) - n16.handle(right) -> n17.handle(left) - n17.handle(right) -> n18.handle(left) [label="Yes"] - n17.handle(bottom) -> n19.handle(top) [label="No"] - n18.handle(right) -> n20.handle(left) - n19.handle(right) -> n20.handle(top) - n20.handle(top) -> SRE.n4.handle(bottom) [label="Results ready"] +SRE { # SRE Team + n1: circle label:"Start" + n2: rectangle label:"Define experiment hypothesis" + n3: rectangle label:"Select blast radius" + n4: rectangle label:"Review experiment results" + n5: rectangle label:"Document learnings" + n6: circle label:"End" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) + n3.handle(bottom) -> ChaosMonkey.n7.handle(top) [label="Configure"] + n4.handle(right) -> n5.handle(left) + n5.handle(right) -> n6.handle(left) +} +ChaosMonkey { # Chaos Monkey + n7: rectangle label:"Schedule experiment window" + n8: diamond label:"Steady state verified?" + n9: rectangle label:"Inject failure" + n10: rectangle label:"Abort experiment" + n11: diamond label:"Failure type?" + n12: rectangle label:"Kill random instance" + n13: rectangle label:"Inject network latency" + n14: rectangle label:"Exhaust CPU resources" + n7.handle(right) -> n8.handle(left) + n8.handle(right) -> n9.handle(left) [label="Yes"] + n8.handle(bottom) -> n10.handle(top) [label="No"] + n9.handle(right) -> n11.handle(left) + n10.handle(top) -> SRE.n4.handle(bottom) [label="Aborted"] + n11.handle(right) -> n12.handle(left) [label="Instance"] + n11.handle(bottom) -> n13.handle(top) [label="Network"] + n11.handle(left) -> n14.handle(top) [label="Resource"] + n12.handle(bottom) -> Observability.n15.handle(top) [label="Monitor"] + n13.handle(bottom) -> Observability.n15.handle(top) [label="Monitor"] + n14.handle(bottom) -> Observability.n15.handle(top) [label="Monitor"] +} +Observability { # Observability + n15: rectangle label:"Monitor system metrics" + n16: rectangle label:"Track error rates" + n17: diamond label:"System recovered?" + n18: rectangle label:"Record recovery time" + n19: rectangle label:"Trigger rollback" + n20: rectangle label:"Generate experiment report" + n15.handle(right) -> n16.handle(left) + n16.handle(right) -> n17.handle(left) + n17.handle(right) -> n18.handle(left) [label="Yes"] + n17.handle(bottom) -> n19.handle(top) [label="No"] + n18.handle(right) -> n20.handle(left) + n19.handle(right) -> n20.handle(top) + n20.handle(top) -> SRE.n4.handle(bottom) [label="Results ready"] } \ No newline at end of file diff --git a/uncategorized/finance/bank-reconciliation-workflow/workflow.fz b/uncategorized/finance/bank-reconciliation-workflow/workflow.fz index 74b2330b67c164558a77d5c677c25bd05290d7b2..74843dcefdba83f4e922b1952311b4b601d5e2b2 100644 --- a/uncategorized/finance/bank-reconciliation-workflow/workflow.fz +++ b/uncategorized/finance/bank-reconciliation-workflow/workflow.fz @@ -1,44 +1,44 @@ -Accountant { # Accountant -n1: circle label:"Start" -n2: rectangle label:"Import bank statement" -n3: rectangle label:"Review reconciliation report" -n4: rectangle label:"Approve reconciliation" -n5: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(bottom) -> ReconciliationEngine.n6.handle(top) [label="Process"] -n3.handle(right) -> n4.handle(left) -n4.handle(right) -> n5.handle(left) -} -ReconciliationEngine { # Reconciliation Engine -n6: rectangle label:"Parse bank transactions" -n7: rectangle label:"Match with GL entries" -n8: diamond label:"Auto-match rate?" -n9: rectangle label:"Flag unmatched items" -n10: rectangle label:"Apply matching rules" -n11: rectangle label:"Generate variance report" -n6.handle(right) -> n7.handle(left) -n7.handle(right) -> n8.handle(left) -n8.handle(right) -> n11.handle(left) [label="> 95%"] -n8.handle(bottom) -> n9.handle(top) [label="< 95%"] -n9.handle(right) -> n10.handle(left) -n10.handle(right) -> n11.handle(top) -n11.handle(bottom) -> ManualReview.n12.handle(top) [label="Review"] -} -ManualReview { # Manual Review -n12: rectangle label:"Display unmatched items" -n13: rectangle label:"Research discrepancies" -n14: diamond label:"Discrepancy type?" -n15: rectangle label:"Create journal entry" -n16: rectangle label:"Flag for investigation" -n17: rectangle label:"Mark as bank error" -n18: rectangle label:"Update reconciliation status" -n12.handle(right) -> n13.handle(left) -n13.handle(right) -> n14.handle(left) -n14.handle(right) -> n15.handle(left) [label="Timing"] -n14.handle(bottom) -> n16.handle(top) [label="Unknown"] -n14.handle(left) -> n17.handle(top) [label="Bank error"] -n15.handle(right) -> n18.handle(left) -n16.handle(right) -> n18.handle(top) -n17.handle(right) -> n18.handle(top) -n18.handle(top) -> Accountant.n3.handle(bottom) [label="Complete"] -} +Accountant { # Accountant +n1: circle label:"Start" +n2: rectangle label:"Import bank statement" +n3: rectangle label:"Review reconciliation report" +n4: rectangle label:"Approve reconciliation" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> ReconciliationEngine.n6.handle(top) [label="Process"] +n3.handle(right) -> n4.handle(left) +n4.handle(right) -> n5.handle(left) +} +ReconciliationEngine { # Reconciliation Engine +n6: rectangle label:"Parse bank transactions" +n7: rectangle label:"Match with GL entries" +n8: diamond label:"Auto-match rate?" +n9: rectangle label:"Flag unmatched items" +n10: rectangle label:"Apply matching rules" +n11: rectangle label:"Generate variance report" +n6.handle(right) -> n7.handle(left) +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n11.handle(left) [label="> 95%"] +n8.handle(bottom) -> n9.handle(top) [label="< 95%"] +n9.handle(right) -> n10.handle(left) +n10.handle(right) -> n11.handle(top) +n11.handle(bottom) -> ManualReview.n12.handle(top) [label="Review"] +} +ManualReview { # Manual Review +n12: rectangle label:"Display unmatched items" +n13: rectangle label:"Research discrepancies" +n14: diamond label:"Discrepancy type?" +n15: rectangle label:"Create journal entry" +n16: rectangle label:"Flag for investigation" +n17: rectangle label:"Mark as bank error" +n18: rectangle label:"Update reconciliation status" +n12.handle(right) -> n13.handle(left) +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) [label="Timing"] +n14.handle(bottom) -> n16.handle(top) [label="Unknown"] +n14.handle(left) -> n17.handle(top) [label="Bank error"] +n15.handle(right) -> n18.handle(left) +n16.handle(right) -> n18.handle(top) +n17.handle(right) -> n18.handle(top) +n18.handle(top) -> Accountant.n3.handle(bottom) [label="Complete"] +} diff --git a/uncategorized/finance/cash-flow-forecast-workflow/workflow.fz b/uncategorized/finance/cash-flow-forecast-workflow/workflow.fz index fad2e98750482f52b2f13c5c2cacb032320dd747..2130ed14d47490fef02bb1aabf06d4546376b5c3 100644 --- a/uncategorized/finance/cash-flow-forecast-workflow/workflow.fz +++ b/uncategorized/finance/cash-flow-forecast-workflow/workflow.fz @@ -1,19 +1,19 @@ -employee { # Employee - n1: circle label:"Start Cash Flow Forecast" - n2: diamond label:"Receive Cash Flow Forecast request" - n3: rectangle label:"Review Cash Flow Forecast details" - n5: rectangle label:"Update records for Cash Flow Forecast" - n7: circle label:"End Cash Flow Forecast" - n1.handle(right) -> n2.handle(left) - n2.handle(right) -> n3.handle(left) [label="Yes/Approved"] - n2.handle(bottom) -> manager.n4.handle(top) [label="No/Rejected"] - n3.handle(right) -> n5.handle(left) - n5.handle(bottom) -> manager.n6.handle(top) -} - -manager { # Manager - n4: rectangle label:"Make Cash Flow Forecast decision" - n6: rectangle label:"Continue Cash Flow Forecast process" - n4.handle(right) -> employee.n5.handle(top) - n6.handle(right) -> employee.n7.handle(bottom) -} +employee { # Employee + n1: circle label:"Start Cash Flow Forecast" + n2: diamond label:"Receive Cash Flow Forecast request" + n3: rectangle label:"Review Cash Flow Forecast details" + n5: rectangle label:"Update records for Cash Flow Forecast" + n7: circle label:"End Cash Flow Forecast" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) [label="Yes/Approved"] + n2.handle(bottom) -> manager.n4.handle(top) [label="No/Rejected"] + n3.handle(right) -> n5.handle(left) + n5.handle(bottom) -> manager.n6.handle(top) +} + +manager { # Manager + n4: rectangle label:"Make Cash Flow Forecast decision" + n6: rectangle label:"Continue Cash Flow Forecast process" + n4.handle(right) -> employee.n5.handle(top) + n6.handle(right) -> employee.n7.handle(bottom) +} diff --git a/uncategorized/finance/cost-center-workflow/workflow.fz b/uncategorized/finance/cost-center-workflow/workflow.fz index 835e3b59af0b981a773c0a55b3a015fd57398a5d..3143f2c08a2eb57ed01e9b696cc31adc6876802e 100644 --- a/uncategorized/finance/cost-center-workflow/workflow.fz +++ b/uncategorized/finance/cost-center-workflow/workflow.fz @@ -1,19 +1,19 @@ -employee { # Employee - n1: circle label:"Start Cost Center" - n2: diamond label:"Receive Cost Center request" - n3: rectangle label:"Review Cost Center details" - n5: rectangle label:"Update records for Cost Center" - n7: circle label:"End Cost Center" - n1.handle(right) -> n2.handle(left) - n2.handle(right) -> n3.handle(left) [label="Yes/Approved"] - n2.handle(bottom) -> manager.n4.handle(top) [label="No/Rejected"] - n3.handle(right) -> n5.handle(left) - n5.handle(bottom) -> manager.n6.handle(top) -} - -manager { # Manager - n4: rectangle label:"Make Cost Center decision" - n6: rectangle label:"Continue Cost Center process" - n6.handle(right) -> employee.n7.handle(bottom) - n4.handle(right) -> employee.n5.handle(top) -} +employee { # Employee + n1: circle label:"Start Cost Center" + n2: diamond label:"Receive Cost Center request" + n3: rectangle label:"Review Cost Center details" + n5: rectangle label:"Update records for Cost Center" + n7: circle label:"End Cost Center" + n1.handle(right) -> n2.handle(left) + n2.handle(right) -> n3.handle(left) [label="Yes/Approved"] + n2.handle(bottom) -> manager.n4.handle(top) [label="No/Rejected"] + n3.handle(right) -> n5.handle(left) + n5.handle(bottom) -> manager.n6.handle(top) +} + +manager { # Manager + n4: rectangle label:"Make Cost Center decision" + n6: rectangle label:"Continue Cost Center process" + n6.handle(right) -> employee.n7.handle(bottom) + n4.handle(right) -> employee.n5.handle(top) +} diff --git a/uncategorized/finance/credit-control-workflow/workflow.fz b/uncategorized/finance/credit-control-workflow/workflow.fz index 4a3cddfc1b0173168487f331e2ae886f932890dd..e00d15b1ce5893daaae182867abeb59406b2fd25 100644 --- a/uncategorized/finance/credit-control-workflow/workflow.fz +++ b/uncategorized/finance/credit-control-workflow/workflow.fz @@ -1,34 +1,34 @@ -employee { # Employee - n1: circle label:"Start Credit Control" - n4: rectangle label:"Make Credit Control decision" - n7: rectangle label:"Continue Credit Control process" - n10: circle label:"End Credit Control" - n1.handle(bottom) -> manager.n2.handle(top) - n1.handle(bottom) -> finance_app.n3.handle(top) - n1.handle(right) -> n4.handle(left) - n1.handle(bottom) -> manager.n5.handle(top) - n1.handle(bottom) -> finance_app.n6.handle(top) - n1.handle(right) -> n7.handle(left) - n1.handle(bottom) -> manager.n8.handle(top) - n1.handle(bottom) -> finance_app.n9.handle(top) - n4.handle(right) -> n10.handle(left) - n7.handle(right) -> n10.handle(left) -} - -manager { # Manager - n2: rectangle label:"Receive Credit Control request" - n5: rectangle label:"Update records for Credit Control" - n8: rectangle label:"Continue Credit Control process" - n2.handle(right) -> employee.n10.handle(bottom) - n8.handle(right) -> employee.n10.handle(bottom) - n5.handle(right) -> employee.n10.handle(bottom) -} - -finance_app { # Finance_App - n3: rectangle label:"Review Credit Control details" - n6: diamond label:"Continue Credit Control process" - n9: rectangle label:"Continue Credit Control process" - n9.handle(right) -> employee.n10.handle(bottom) - n6.handle(right) -> employee.n10.handle(bottom) - n3.handle(right) -> employee.n10.handle(bottom) -} +employee { # Employee + n1: circle label:"Start Credit Control" + n4: rectangle label:"Make Credit Control decision" + n7: rectangle label:"Continue Credit Control process" + n10: circle label:"End Credit Control" + n1.handle(bottom) -> manager.n2.handle(top) + n1.handle(bottom) -> finance_app.n3.handle(top) + n1.handle(right) -> n4.handle(left) + n1.handle(bottom) -> manager.n5.handle(top) + n1.handle(bottom) -> finance_app.n6.handle(top) + n1.handle(right) -> n7.handle(left) + n1.handle(bottom) -> manager.n8.handle(top) + n1.handle(bottom) -> finance_app.n9.handle(top) + n4.handle(right) -> n10.handle(left) + n7.handle(right) -> n10.handle(left) +} + +manager { # Manager + n2: rectangle label:"Receive Credit Control request" + n5: rectangle label:"Update records for Credit Control" + n8: rectangle label:"Continue Credit Control process" + n2.handle(right) -> employee.n10.handle(bottom) + n8.handle(right) -> employee.n10.handle(bottom) + n5.handle(right) -> employee.n10.handle(bottom) +} + +finance_app { # Finance_App + n3: rectangle label:"Review Credit Control details" + n6: diamond label:"Continue Credit Control process" + n9: rectangle label:"Continue Credit Control process" + n9.handle(right) -> employee.n10.handle(bottom) + n6.handle(right) -> employee.n10.handle(bottom) + n3.handle(right) -> employee.n10.handle(bottom) +} diff --git a/uncategorized/finance/expense-allocation-workflow/workflow.fz b/uncategorized/finance/expense-allocation-workflow/workflow.fz index c1ad471cb1e061764c38609f6d6f40357eec8e88..95d4d5f95c5feec60b0730ed3335694cf8a06569 100644 --- a/uncategorized/finance/expense-allocation-workflow/workflow.fz +++ b/uncategorized/finance/expense-allocation-workflow/workflow.fz @@ -1,28 +1,28 @@ -employee { # Employee - n1: circle label:"Start Expense Allocation" - n4: rectangle label:"Make Expense Allocation decision" - n7: rectangle label:"Continue Expense Allocation process" - n10: circle label:"End Expense Allocation" - n1.handle(bottom) -> manager.n2.handle(top) [label="Success"] - n4.handle(bottom) -> manager.n5.handle(top) [label="Valid"] - n7.handle(bottom) -> manager.n8.handle(top) [label="Next"] -} - -manager { # Manager - n2: rectangle label:"Receive Expense Allocation request" - n5: rectangle label:"Update records for Expense Allocation" - n8: rectangle label:"Continue Expense Allocation process" - n2.handle(bottom) -> finance_app.n3.handle(top) - n5.handle(bottom) -> finance_app.n6.handle(top) - n8.handle(bottom) -> finance_app.n9.handle(top) -} - -finance_app { # Finance_App - n3: rectangle label:"Review Expense Allocation details" - n6: rectangle label:"Continue Expense Allocation process" - n9: diamond label:"Continue Expense Allocation process" - n9.handle(right) -> employee.n10.handle(bottom) - n9.handle(left) -> manager.n8.handle(left) [label="Retry/Rejected"] - n6.handle(right) -> employee.n7.handle(left) - n3.handle(right) -> employee.n4.handle(left) -} +employee { # Employee + n1: circle label:"Start Expense Allocation" + n4: rectangle label:"Make Expense Allocation decision" + n7: rectangle label:"Continue Expense Allocation process" + n10: circle label:"End Expense Allocation" + n1.handle(bottom) -> manager.n2.handle(top) [label="Success"] + n4.handle(bottom) -> manager.n5.handle(top) [label="Valid"] + n7.handle(bottom) -> manager.n8.handle(top) [label="Next"] +} + +manager { # Manager + n2: rectangle label:"Receive Expense Allocation request" + n5: rectangle label:"Update records for Expense Allocation" + n8: rectangle label:"Continue Expense Allocation process" + n2.handle(bottom) -> finance_app.n3.handle(top) + n5.handle(bottom) -> finance_app.n6.handle(top) + n8.handle(bottom) -> finance_app.n9.handle(top) +} + +finance_app { # Finance_App + n3: rectangle label:"Review Expense Allocation details" + n6: rectangle label:"Continue Expense Allocation process" + n9: diamond label:"Continue Expense Allocation process" + n9.handle(right) -> employee.n10.handle(bottom) + n9.handle(left) -> manager.n8.handle(left) [label="Retry/Rejected"] + n6.handle(right) -> employee.n7.handle(left) + n3.handle(right) -> employee.n4.handle(left) +} diff --git a/uncategorized/finance/fixed-assets-workflow/workflow.fz b/uncategorized/finance/fixed-assets-workflow/workflow.fz index 19cccbb05de4bdece1c1728e1d016a672cc9375b..c150df39fc91f04c9f4f4a1fd7f2f71c2fb7f2ac 100644 --- a/uncategorized/finance/fixed-assets-workflow/workflow.fz +++ b/uncategorized/finance/fixed-assets-workflow/workflow.fz @@ -1,18 +1,18 @@ -employee { # Employee - n1: circle label:"Start Fixed Assets" - n3: rectangle label:"Review Fixed Assets details" - n5: rectangle label:"Update records for Fixed Assets" - n7: circle label:"End Fixed Assets" - n1.handle(bottom) -> manager.n2.handle(top) - n3.handle(bottom) -> manager.n4.handle(top) [label="Processed"] - n5.handle(bottom) -> manager.n6.handle(top) -} - -manager { # Manager - n2: rectangle label:"Receive Fixed Assets request" - n4: rectangle label:"Make Fixed Assets decision" - n6: rectangle label:"Continue Fixed Assets process" - n6.handle(right) -> employee.n7.handle(bottom) [label="Success"] - n4.handle(right) -> employee.n5.handle(left) - n2.handle(right) -> employee.n3.handle(left) -} +employee { # Employee + n1: circle label:"Start Fixed Assets" + n3: rectangle label:"Review Fixed Assets details" + n5: rectangle label:"Update records for Fixed Assets" + n7: circle label:"End Fixed Assets" + n1.handle(bottom) -> manager.n2.handle(top) + n3.handle(bottom) -> manager.n4.handle(top) [label="Processed"] + n5.handle(bottom) -> manager.n6.handle(top) +} + +manager { # Manager + n2: rectangle label:"Receive Fixed Assets request" + n4: rectangle label:"Make Fixed Assets decision" + n6: rectangle label:"Continue Fixed Assets process" + n6.handle(right) -> employee.n7.handle(bottom) [label="Success"] + n4.handle(right) -> employee.n5.handle(left) + n2.handle(right) -> employee.n3.handle(left) +} diff --git a/uncategorized/finance/monthly-close-workflow/workflow.fz b/uncategorized/finance/monthly-close-workflow/workflow.fz index 90e64167bc18bed95d97f8b4f357326576fa9b00..03813a95ff03fd32a9a5e3a96e4b06b776451e4a 100644 --- a/uncategorized/finance/monthly-close-workflow/workflow.fz +++ b/uncategorized/finance/monthly-close-workflow/workflow.fz @@ -1,53 +1,53 @@ -Controller { # Controller -n1: circle label:"Start" -n2: rectangle label:"Initiate month-end close" -n3: rectangle label:"Review close checklist" -n4: rectangle label:"Approve financial statements" -n5: circle label:"End" -n1.handle(right) -> n2.handle(left) -n2.handle(bottom) -> Accounting.n6.handle(top) [label="Begin close"] -n3.handle(bottom) -> Reporting.n18.handle(top) [label="Generate reports"] -n4.handle(right) -> n5.handle(left) -} -Accounting { # Accounting Team -n6: rectangle label:"Post pending transactions" -n7: rectangle label:"Reconcile bank accounts" -n8: diamond label:"Reconciliation balanced?" -n9: rectangle label:"Record accruals" -n10: rectangle label:"Investigate variances" -n11: rectangle label:"Post depreciation" -n12: rectangle label:"Review intercompany" -n6.handle(right) -> n7.handle(left) -n7.handle(right) -> n8.handle(left) -n8.handle(right) -> n9.handle(left) [label="Yes"] -n8.handle(bottom) -> n10.handle(top) [label="No"] -n9.handle(right) -> n11.handle(left) -n10.handle(top) -> n7.handle(bottom) [label="Recheck"] -n11.handle(right) -> n12.handle(left) -n12.handle(bottom) -> Validation.n13.handle(top) [label="Validate"] -} -Validation { # Validation -n13: rectangle label:"Run trial balance" -n14: diamond label:"Debits equal credits?" -n15: rectangle label:"Review account balances" -n16: rectangle label:"Identify discrepancies" -n17: rectangle label:"Lock accounting period" -n13.handle(right) -> n14.handle(left) -n14.handle(right) -> n15.handle(left) [label="Yes"] -n14.handle(bottom) -> n16.handle(top) [label="No"] -n15.handle(right) -> n17.handle(left) -n16.handle(top) -> Accounting.n6.handle(bottom) [label="Correct"] -n17.handle(top) -> Controller.n3.handle(bottom) [label="Period closed"] -} -Reporting { # Financial Reporting -n18: rectangle label:"Generate income statement" -n19: rectangle label:"Generate balance sheet" -n20: rectangle label:"Generate cash flow statement" -n21: rectangle label:"Prepare variance analysis" -n22: rectangle label:"Package for leadership" -n18.handle(right) -> n19.handle(left) -n19.handle(right) -> n20.handle(left) -n20.handle(right) -> n21.handle(left) -n21.handle(right) -> n22.handle(left) -n22.handle(top) -> Controller.n4.handle(bottom) [label="Ready for review"] -} +Controller { # Controller +n1: circle label:"Start" +n2: rectangle label:"Initiate month-end close" +n3: rectangle label:"Review close checklist" +n4: rectangle label:"Approve financial statements" +n5: circle label:"End" +n1.handle(right) -> n2.handle(left) +n2.handle(bottom) -> Accounting.n6.handle(top) [label="Begin close"] +n3.handle(bottom) -> Reporting.n18.handle(top) [label="Generate reports"] +n4.handle(right) -> n5.handle(left) +} +Accounting { # Accounting Team +n6: rectangle label:"Post pending transactions" +n7: rectangle label:"Reconcile bank accounts" +n8: diamond label:"Reconciliation balanced?" +n9: rectangle label:"Record accruals" +n10: rectangle label:"Investigate variances" +n11: rectangle label:"Post depreciation" +n12: rectangle label:"Review intercompany" +n6.handle(right) -> n7.handle(left) +n7.handle(right) -> n8.handle(left) +n8.handle(right) -> n9.handle(left) [label="Yes"] +n8.handle(bottom) -> n10.handle(top) [label="No"] +n9.handle(right) -> n11.handle(left) +n10.handle(top) -> n7.handle(bottom) [label="Recheck"] +n11.handle(right) -> n12.handle(left) +n12.handle(bottom) -> Validation.n13.handle(top) [label="Validate"] +} +Validation { # Validation +n13: rectangle label:"Run trial balance" +n14: diamond label:"Debits equal credits?" +n15: rectangle label:"Review account balances" +n16: rectangle label:"Identify discrepancies" +n17: rectangle label:"Lock accounting period" +n13.handle(right) -> n14.handle(left) +n14.handle(right) -> n15.handle(left) [label="Yes"] +n14.handle(bottom) -> n16.handle(top) [label="No"] +n15.handle(right) -> n17.handle(left) +n16.handle(top) -> Accounting.n6.handle(bottom) [label="Correct"] +n17.handle(top) -> Controller.n3.handle(bottom) [label="Period closed"] +} +Reporting { # Financial Reporting +n18: rectangle label:"Generate income statement" +n19: rectangle label:"Generate balance sheet" +n20: rectangle label:"Generate cash flow statement" +n21: rectangle label:"Prepare variance analysis" +n22: rectangle label:"Package for leadership" +n18.handle(right) -> n19.handle(left) +n19.handle(right) -> n20.handle(left) +n20.handle(right) -> n21.handle(left) +n21.handle(right) -> n22.handle(left) +n22.handle(top) -> Controller.n4.handle(bottom) [label="Ready for review"] +} diff --git a/uncategorized/finance/procurement-card-workflow/workflow.fz b/uncategorized/finance/procurement-card-workflow/workflow.fz index ded130bff7c4a1e985d6c8a197a11d2142608edd..008c970f4f774ac032760b0a868e017c4c361c52 100644 --- a/uncategorized/finance/procurement-card-workflow/workflow.fz +++ b/uncategorized/finance/procurement-card-workflow/workflow.fz @@ -1,28 +1,28 @@ -employee { # Employee - n1: circle label:"Start Procurement Card" - n4: diamond label:"Make Procurement Card decision" - n7: rectangle label:"Continue Procurement Card process" - n10: circle label:"End Procurement Card" - n1.handle(bottom) -> manager.n2.handle(top) - n4.handle(bottom) -> manager.n5.handle(top) - n7.handle(bottom) -> manager.n8.handle(top) - n4.handle(right) -> finance_app.n3.handle(bottom) [label="Retry/Rejected"] -} - -manager { # Manager - n2: rectangle label:"Receive Procurement Card request" - n5: rectangle label:"Update records for Procurement Card" - n8: rectangle label:"Continue Procurement Card process" - n2.handle(bottom) -> finance_app.n3.handle(top) - n5.handle(bottom) -> finance_app.n6.handle(top) - n8.handle(bottom) -> finance_app.n9.handle(top) -} - -finance_app { # Finance_App - n3: rectangle label:"Review Procurement Card details" - n6: rectangle label:"Continue Procurement Card process" - n9: rectangle label:"Continue Procurement Card process" - n9.handle(right) -> employee.n10.handle(bottom) [label="Valid"] - n6.handle(right) -> employee.n7.handle(left) [label="Success"] - n3.handle(right) -> employee.n4.handle(left) [label="Processed"] -} +employee { # Employee + n1: circle label:"Start Procurement Card" + n4: diamond label:"Make Procurement Card decision" + n7: rectangle label:"Continue Procurement Card process" + n10: circle label:"End Procurement Card" + n1.handle(bottom) -> manager.n2.handle(top) + n4.handle(bottom) -> manager.n5.handle(top) + n7.handle(bottom) -> manager.n8.handle(top) + n4.handle(right) -> finance_app.n3.handle(bottom) [label="Retry/Rejected"] +} + +manager { # Manager + n2: rectangle label:"Receive Procurement Card request" + n5: rectangle label:"Update records for Procurement Card" + n8: rectangle label:"Continue Procurement Card process" + n2.handle(bottom) -> finance_app.n3.handle(top) + n5.handle(bottom) -> finance_app.n6.handle(top) + n8.handle(bottom) -> finance_app.n9.handle(top) +} + +finance_app { # Finance_App + n3: rectangle label:"Review Procurement Card details" + n6: rectangle label:"Continue Procurement Card process" + n9: rectangle label:"Continue Procurement Card process" + n9.handle(right) -> employee.n10.handle(bottom) [label="Valid"] + n6.handle(right) -> employee.n7.handle(left) [label="Success"] + n3.handle(right) -> employee.n4.handle(left) [label="Processed"] +} diff --git a/uncategorized/finance/treasury-management-workflow/workflow.fz b/uncategorized/finance/treasury-management-workflow/workflow.fz index f304c8d5b8ac1bb459641dc5e84554ab2a45ea12..c25c76660b645d8518bbe717d322050de9677a3e 100644 --- a/uncategorized/finance/treasury-management-workflow/workflow.fz +++ b/uncategorized/finance/treasury-management-workflow/workflow.fz @@ -1,18 +1,18 @@ -employee { # Employee - n1: circle label:"Start Treasury Management" - n3: rectangle label:"Review Treasury Management details" - n5: rectangle label:"Update records for Treasury Management" - n7: circle label:"End Treasury Management" - n1.handle(bottom) -> manager.n2.handle(top) - n3.handle(bottom) -> manager.n4.handle(top) [label="Processed"] - n5.handle(bottom) -> manager.n6.handle(top) -} - -manager { # Manager - n2: rectangle label:"Receive Treasury Management request" - n4: rectangle label:"Make Treasury Management decision" - n6: rectangle label:"Continue Treasury Management process" - n6.handle(right) -> employee.n7.handle(bottom) [label="Success"] - n4.handle(right) -> employee.n5.handle(left) - n2.handle(right) -> employee.n3.handle(left) -} +employee { # Employee + n1: circle label:"Start Treasury Management" + n3: rectangle label:"Review Treasury Management details" + n5: rectangle label:"Update records for Treasury Management" + n7: circle label:"End Treasury Management" + n1.handle(bottom) -> manager.n2.handle(top) + n3.handle(bottom) -> manager.n4.handle(top) [label="Processed"] + n5.handle(bottom) -> manager.n6.handle(top) +} + +manager { # Manager + n2: rectangle label:"Receive Treasury Management request" + n4: rectangle label:"Make Treasury Management decision" + n6: rectangle label:"Continue Treasury Management process" + n6.handle(right) -> employee.n7.handle(bottom) [label="Success"] + n4.handle(right) -> employee.n5.handle(left) + n2.handle(right) -> employee.n3.handle(left) +} diff --git a/uncategorized/hr/background-check-workflow/workflow.fz b/uncategorized/hr/background-check-workflow/workflow.fz index fc0f8ee5444ba235b55ec67bc724c34e8336aa0e..46cdd366a5f8b7e968eb508be59714e8b043b4bb 100644 --- a/uncategorized/hr/background-check-workflow/workflow.fz +++ b/uncategorized/hr/background-check-workflow/workflow.fz @@ -1,19 +1,19 @@ -employee { # Employee - n1: circle label:"Start Background Check" - n3: rectangle label:"Review Background Check details" - n5: rectangle label:"Update records for Background Check" - n7: circle label:"End Background Check" - n1.handle(bottom) -> manager.n2.handle(top) - n3.handle(bottom) -> manager.n4.handle(top) - n5.handle(bottom) -> manager.n6.handle(top) [label="Done"] -} - -manager { # Manager - n2: rectangle label:"Receive Background Check request" - n4: diamond label:"Make Background Check decision" - n6: rectangle label:"Continue Background Check process" - n6.handle(right) -> employee.n7.handle(bottom) - n4.handle(right) -> employee.n5.handle(left) - n4.handle(left) -> employee.n3.handle(left) [label="Retry/Rejected"] - n2.handle(right) -> employee.n3.handle(top) [label="Next"] -} +employee { # Employee + n1: circle label:"Start Background Check" + n3: rectangle label:"Review Background Check details" + n5: rectangle label:"Update records for Background Check" + n7: circle label:"End Background Check" + n1.handle(bottom) -> manager.n2.handle(top) + n3.handle(bottom) -> manager.n4.handle(top) + n5.handle(bottom) -> manager.n6.handle(top) [label="Done"] +} + +manager { # Manager + n2: rectangle label:"Receive Background Check request" + n4: diamond label:"Make Background Check decision" + n6: rectangle label:"Continue Background Check process" + n6.handle(right) -> employee.n7.handle(bottom) + n4.handle(right) -> employee.n5.handle(left) + n4.handle(left) -> employee.n3.handle(left) [label="Retry/Rejected"] + n2.handle(right) -> employee.n3.handle(top) [label="Next"] +}