{
  "name": "Autonomous Agent - Autonomous Software Development - Domain Bootstrap",
  "nodes": [
    {
      "parameters": {},
      "id": "c8756270-0bd1-48ac-9be3-e22f08858695",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        120,
        300
      ]
    },
    {
      "parameters": {
        "operation": "health"
      },
      "id": "34555781-ef9e-4a1c-999d-b7ca59087a14",
      "name": "Platform Health",
      "type": "n8n-nodes-autonomous-agent.autonomousAgentPlatform",
      "typeVersion": 1,
      "position": [
        340,
        300
      ],
      "credentials": {
        "autonomousAgentApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "pull",
        "model": "qwen2.5-coder:7b",
        "insecure": false
      },
      "id": "44791563-345c-4036-9d6e-9842d62c7aa4",
      "name": "Pull Domain Model",
      "type": "n8n-nodes-autonomous-agent.autonomousAgentLlmModel",
      "typeVersion": 1,
      "position": [
        560,
        300
      ],
      "credentials": {
        "autonomousAgentApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "create",
        "name": "autonomous-software-development-policy",
        "model": "qwen2.5-coder:7b",
        "provider": "ollama",
        "inputModalities": [
          "text"
        ],
        "maximumInputCharacters": 120000,
        "maximumOutputTokens": 6000,
        "maximumCostUnits": 15000,
        "allowedPurposes": "requirements-analysis,software-architecture,code-generation,test-generation,security-review,repository-write,merge-pull-request,production-deployment",
        "includeDimensions": false
      },
      "id": "4d21a832-4795-4daa-baf8-da0df16233ad",
      "name": "Create Domain Model Policy",
      "type": "n8n-nodes-autonomous-agent.autonomousAgentModelPolicy",
      "typeVersion": 1,
      "position": [
        790,
        300
      ],
      "credentials": {
        "autonomousAgentApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "source": "database",
        "workflowId": {
          "__rl": true,
          "value": "REPLACE_WITH_REQUIREMENTS_ANALYSIS_WORKFLOW_ID",
          "mode": "id"
        },
        "options": {
          "waitForSubWorkflow": true
        }
      },
      "id": "626284e4-c341-4f00-be22-93d54a197106",
      "name": "Create Capability - requirements-analysis",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        1080,
        300
      ]
    },
    {
      "parameters": {
        "source": "database",
        "workflowId": {
          "__rl": true,
          "value": "REPLACE_WITH_SOFTWARE_ARCHITECTURE_WORKFLOW_ID",
          "mode": "id"
        },
        "options": {
          "waitForSubWorkflow": true
        }
      },
      "id": "d5816a50-0986-471b-8983-499c8472cdbb",
      "name": "Create Capability - software-architecture",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        1330,
        300
      ]
    },
    {
      "parameters": {
        "source": "database",
        "workflowId": {
          "__rl": true,
          "value": "REPLACE_WITH_CODE_GENERATION_WORKFLOW_ID",
          "mode": "id"
        },
        "options": {
          "waitForSubWorkflow": true
        }
      },
      "id": "7e335844-b17f-4742-84ed-a3eca9a1c204",
      "name": "Create Capability - code-generation",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        1580,
        300
      ]
    },
    {
      "parameters": {
        "source": "database",
        "workflowId": {
          "__rl": true,
          "value": "REPLACE_WITH_TEST_GENERATION_WORKFLOW_ID",
          "mode": "id"
        },
        "options": {
          "waitForSubWorkflow": true
        }
      },
      "id": "5cc39537-85b1-4092-8360-d9967aa718ad",
      "name": "Create Capability - test-generation",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        1830,
        300
      ]
    },
    {
      "parameters": {
        "source": "database",
        "workflowId": {
          "__rl": true,
          "value": "REPLACE_WITH_SECURITY_REVIEW_WORKFLOW_ID",
          "mode": "id"
        },
        "options": {
          "waitForSubWorkflow": true
        }
      },
      "id": "7a910bea-5633-4a60-a6e7-283268618e27",
      "name": "Create Capability - security-review",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        2080,
        300
      ]
    },
    {
      "parameters": {
        "source": "database",
        "workflowId": {
          "__rl": true,
          "value": "REPLACE_WITH_REPOSITORY_WRITE_WORKFLOW_ID",
          "mode": "id"
        },
        "options": {
          "waitForSubWorkflow": true
        }
      },
      "id": "e344af1d-afc0-4a2a-bb63-2c829761c95f",
      "name": "Create Capability - repository-write",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        2330,
        300
      ]
    },
    {
      "parameters": {
        "source": "database",
        "workflowId": {
          "__rl": true,
          "value": "REPLACE_WITH_MERGE_PULL_REQUEST_WORKFLOW_ID",
          "mode": "id"
        },
        "options": {
          "waitForSubWorkflow": true
        }
      },
      "id": "cbd9bccb-4682-477f-9bad-198d325ccb90",
      "name": "Create Capability - merge-pull-request",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        2580,
        300
      ]
    },
    {
      "parameters": {
        "source": "database",
        "workflowId": {
          "__rl": true,
          "value": "REPLACE_WITH_PRODUCTION_DEPLOYMENT_WORKFLOW_ID",
          "mode": "id"
        },
        "options": {
          "waitForSubWorkflow": true
        }
      },
      "id": "9af539d1-7376-459f-bd6a-711cb3b3900e",
      "name": "Create Capability - production-deployment",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        2830,
        300
      ]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Platform Health",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Platform Health": {
      "main": [
        [
          {
            "node": "Pull Domain Model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pull Domain Model": {
      "main": [
        [
          {
            "node": "Create Domain Model Policy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Domain Model Policy": {
      "main": [
        [
          {
            "node": "Create Capability - requirements-analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Capability - requirements-analysis": {
      "main": [
        [
          {
            "node": "Create Capability - software-architecture",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Capability - software-architecture": {
      "main": [
        [
          {
            "node": "Create Capability - code-generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Capability - code-generation": {
      "main": [
        [
          {
            "node": "Create Capability - test-generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Capability - test-generation": {
      "main": [
        [
          {
            "node": "Create Capability - security-review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Capability - security-review": {
      "main": [
        [
          {
            "node": "Create Capability - repository-write",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Capability - repository-write": {
      "main": [
        [
          {
            "node": "Create Capability - merge-pull-request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Capability - merge-pull-request": {
      "main": [
        [
          {
            "node": "Create Capability - production-deployment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "saveExecutionProgress": true
  },
  "versionId": "4468b3cb-34a5-4bd3-9eb5-387f5f02c714",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}