{
  "id": 6,
  "key": "LEAD-GEN",
  "name": "Lead Generation / \u041b\u0438\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f",
  "description": "Create a universal lead-generation system that discovers potential demand, qualifies evidence-based leads, performs controlled outreach, manages responses and opportunities, and improves from actual outcomes. The engine must remain domain-agnostic: concrete industries, services, sources, geographies, languages and outreach rules belong to individual campaigns/configuration rather than being hard-coded into the core system.\n\nMVP goal: produce the first 10 complete Lead Cards and validate them manually. Acceptance criterion: at least 5 of 10 should be judged genuinely worth contacting.",
  "status": "ACTIVE",
  "priority": 40,
  "created_at": "2026-10-04T14:54:24+03:00",
  "updated_at": "2026-10-04T14:54:24+03:00",
  "instructions": "Keep the core lead-generation system universal and domain-agnostic. Do not hard-code specific companies, vendors, technologies, services, historical datasets, geographies or channels into the engine. Treat campaign-specific choices as configuration. Preserve evidence and source/date provenance for signals and leads. For the MVP, prioritize proving lead quality over building broad infrastructure or autonomous outreach. Do not initiate external outreach unless a later task explicitly authorizes it.",
  "roadmap": [
    {
      "id": 27,
      "project_id": 6,
      "key": "LEAD-001",
      "title": "Data Foundation",
      "description": "Create a unified layer for internal and external data about organizations, people, markets and other objects useful for lead generation; normalize, link and deduplicate data; historical data is supporting knowledge, not automatically current.",
      "status": "ACTIVE",
      "position": 1,
      "created_at": "2026-10-04T14:54:24+03:00",
      "updated_at": "2026-10-07T20:28:44+03:00",
      "tasks": [
        {
          "id": 8,
          "roadmap_item_id": 27,
          "key": "LEAD-001.1",
          "title": "Define Pilot Campaign",
          "instruction": "Choose one well-understood domain for the pilot and define what counts as a good lead.",
          "status": "ACCEPTED",
          "executor": "external-chatgpt",
          "priority": 10,
          "checkpoint": 0,
          "created_at": "2026-10-04T14:54:24+03:00",
          "updated_at": "2026-10-04T19:15:03+03:00",
          "expected_result": "Define and agree the pilot campaign: domain, geography, target organizations, relevant services/roles, and a concrete qualification rule for what counts as a good lead.",
          "result": "Pilot campaign defined: Enterprise Software Licensing & Cost Optimization \u2014 Europe. Target: medium/large European enterprises with complex software estates. Qualification requires evidence of a current or emerging need, a relevant service we can provide, an appropriate target role, and a reason to contact the company now.",
          "decision_notes": "Pilot definition agreed with project owner. Detailed specification is stored as task output.",
          "accepted_by": "Andrey",
          "accepted_at": "2026-10-04T15:28:45+03:00",
          "approved_at": null,
          "approved_by": "",
          "dependency_blocked": 0,
          "retry_at": null,
          "next_executor": null,
          "workspace_path": null,
          "dependencies_text": "",
          "artifacts": [
            {
              "id": 2,
              "kind": "document",
              "name": "Pilot Campaign Definition v1",
              "path": "/home/iovon/ai-factory/data/artifacts/LEAD-GEN/LEAD-001.1/pilot-campaign-definition-v1.md",
              "size_bytes": 1908
            }
          ]
        },
        {
          "id": 9,
          "roadmap_item_id": 27,
          "key": "LEAD-001.2",
          "title": "Define Lead Model",
          "instruction": "Define the minimum model: Company / Signal / Evidence / Need / Offering / Contact / Score / Status.",
          "status": "REVIEW",
          "executor": null,
          "priority": 20,
          "checkpoint": 0,
          "created_at": "2026-10-04T14:54:24+03:00",
          "updated_at": "2026-10-07T20:31:57+03:00",
          "expected_result": "",
          "result": "",
          "decision_notes": "",
          "accepted_by": "",
          "accepted_at": null,
          "approved_at": "2026-10-07T20:28:44+03:00",
          "approved_by": "Current owner instruction: real LEAD-GEN autonomous E2E",
          "dependency_blocked": 0,
          "retry_at": null,
          "next_executor": null,
          "workspace_path": "/home/iovon/ai-factory/workspaces/lead-gen",
          "dependencies_text": "LEAD-001.1",
          "last_executor": "nemotron",
          "last_status": "FAILED",
          "last_started_at": "2026-10-07T20:31:57+03:00",
          "last_completed_at": "2026-10-07T20:31:57+03:00",
          "last_summary": "",
          "last_error": "OpenRouter connection failed; details withheld",
          "last_failure_class": "CONNECTION",
          "last_recovery_action": "OWNER_DECISION",
          "last_next_state": "REVIEW",
          "last_execution_status": "FAILED",
          "artifacts": [
            {
              "id": 5,
              "kind": "error",
              "name": "attempt-1-error.txt",
              "path": "data/artifacts/LEAD-001.2/14/attempt-1-error.txt",
              "size_bytes": 1586
            },
            {
              "id": 6,
              "kind": "error",
              "name": "attempt-2-error.txt",
              "path": "data/artifacts/LEAD-001.2/15/attempt-2-error.txt",
              "size_bytes": 46
            },
            {
              "id": 7,
              "kind": "error",
              "name": "attempt-3-error.txt",
              "path": "data/artifacts/LEAD-001.2/16/attempt-3-error.txt",
              "size_bytes": 46
            }
          ]
        },
        {
          "id": 10,
          "roadmap_item_id": 27,
          "key": "LEAD-001.3",
          "title": "Prepare Seed Data",
          "instruction": "Connect a small, representative subset of available data sufficient for the experiment; do not import the full archive yet.",
          "status": "WAITING",
          "executor": null,
          "priority": 30,
          "checkpoint": 0,
          "created_at": "2026-10-04T14:54:24+03:00",
          "updated_at": "2026-10-07T20:28:44+03:00",
          "expected_result": "",
          "result": "",
          "decision_notes": "",
          "accepted_by": "",
          "accepted_at": null,
          "approved_at": "2026-10-07T20:28:44+03:00",
          "approved_by": "Current owner instruction: real LEAD-GEN autonomous E2E",
          "dependency_blocked": 0,
          "retry_at": null,
          "next_executor": null,
          "workspace_path": null,
          "dependencies_text": "LEAD-001.2",
          "artifacts": []
        }
      ]
    },
    {
      "id": 28,
      "project_id": 6,
      "key": "LEAD-002",
      "title": "Signal Discovery",
      "description": "Find events and indicators in internal and external sources that may indicate emerging demand. Signal types are campaign-specific. Every signal must retain source, date, object and evidence.",
      "status": "ACTIVE",
      "position": 2,
      "created_at": "2026-10-04T14:54:24+03:00",
      "updated_at": "2026-10-07T20:28:44+03:00",
      "tasks": [
        {
          "id": 11,
          "roadmap_item_id": 28,
          "key": "LEAD-002.1",
          "title": "Define Signals",
          "instruction": "Define which external events and indicators Factory should search for in the pilot campaign.",
          "status": "WAITING",
          "executor": null,
          "priority": 10,
          "checkpoint": 0,
          "created_at": "2026-10-04T14:54:24+03:00",
          "updated_at": "2026-10-07T20:28:44+03:00",
          "expected_result": "",
          "result": "",
          "decision_notes": "",
          "accepted_by": "",
          "accepted_at": null,
          "approved_at": "2026-10-07T20:28:44+03:00",
          "approved_by": "Current owner instruction: real LEAD-GEN autonomous E2E",
          "dependency_blocked": 0,
          "retry_at": null,
          "next_executor": null,
          "workspace_path": null,
          "dependencies_text": "LEAD-001.2",
          "artifacts": []
        },
        {
          "id": 12,
          "roadmap_item_id": 28,
          "key": "LEAD-002.2",
          "title": "Discover Signals",
          "instruction": "Run real discovery across appropriate open sources and collect candidate signals with evidence.",
          "status": "WAITING",
          "executor": null,
          "priority": 20,
          "checkpoint": 0,
          "created_at": "2026-10-04T14:54:24+03:00",
          "updated_at": "2026-10-07T20:28:44+03:00",
          "expected_result": "",
          "result": "",
          "decision_notes": "",
          "accepted_by": "",
          "accepted_at": null,
          "approved_at": "2026-10-07T20:28:44+03:00",
          "approved_by": "Current owner instruction: real LEAD-GEN autonomous E2E",
          "dependency_blocked": 0,
          "retry_at": null,
          "next_executor": null,
          "workspace_path": null,
          "dependencies_text": "LEAD-001.3; LEAD-002.1",
          "artifacts": []
        }
      ]
    },
    {
      "id": 29,
      "project_id": 6,
      "key": "LEAD-003",
      "title": "Lead Qualification & Enrichment",
      "description": "Turn data and signals into evidence-based potential leads with Lead Card, hypothesized need, possible offering, timing, relevant people/contacts, score and HOT/WARM/WATCH classification.",
      "status": "ACTIVE",
      "position": 3,
      "created_at": "2026-10-04T14:54:24+03:00",
      "updated_at": "2026-10-07T20:28:44+03:00",
      "tasks": [
        {
          "id": 13,
          "roadmap_item_id": 29,
          "key": "LEAD-003.1",
          "title": "Enrich Candidates",
          "instruction": "Research candidate organizations/objects and identify relevant people and contact paths.",
          "status": "WAITING",
          "executor": null,
          "priority": 10,
          "checkpoint": 0,
          "created_at": "2026-10-04T14:54:24+03:00",
          "updated_at": "2026-10-07T20:28:44+03:00",
          "expected_result": "",
          "result": "",
          "decision_notes": "",
          "accepted_by": "",
          "accepted_at": null,
          "approved_at": "2026-10-07T20:28:44+03:00",
          "approved_by": "Current owner instruction: real LEAD-GEN autonomous E2E",
          "dependency_blocked": 0,
          "retry_at": null,
          "next_executor": null,
          "workspace_path": null,
          "dependencies_text": "LEAD-002.2",
          "artifacts": []
        },
        {
          "id": 14,
          "roadmap_item_id": 29,
          "key": "LEAD-003.2",
          "title": "Score & Rank",
          "instruction": "Score candidates and classify them as HOT / WARM / WATCH.",
          "status": "WAITING",
          "executor": null,
          "priority": 20,
          "checkpoint": 0,
          "created_at": "2026-10-04T14:54:24+03:00",
          "updated_at": "2026-10-07T20:28:44+03:00",
          "expected_result": "",
          "result": "",
          "decision_notes": "",
          "accepted_by": "",
          "accepted_at": null,
          "approved_at": "2026-10-07T20:28:44+03:00",
          "approved_by": "Current owner instruction: real LEAD-GEN autonomous E2E",
          "dependency_blocked": 0,
          "retry_at": null,
          "next_executor": null,
          "workspace_path": null,
          "dependencies_text": "LEAD-003.1",
          "artifacts": []
        },
        {
          "id": 15,
          "roadmap_item_id": 29,
          "key": "LEAD-003.3",
          "title": "Produce First 10 Leads",
          "instruction": "Produce the first 10 complete Lead Cards.",
          "status": "WAITING",
          "executor": null,
          "priority": 30,
          "checkpoint": 0,
          "created_at": "2026-10-04T14:54:24+03:00",
          "updated_at": "2026-10-07T20:28:44+03:00",
          "expected_result": "",
          "result": "",
          "decision_notes": "",
          "accepted_by": "",
          "accepted_at": null,
          "approved_at": "2026-10-07T20:28:44+03:00",
          "approved_by": "Current owner instruction: real LEAD-GEN autonomous E2E",
          "dependency_blocked": 0,
          "retry_at": null,
          "next_executor": null,
          "workspace_path": null,
          "dependencies_text": "LEAD-003.2",
          "artifacts": []
        },
        {
          "id": 16,
          "roadmap_item_id": 29,
          "key": "LEAD-003.4",
          "title": "Human Validation",
          "instruction": "Manually evaluate whether each lead is a genuine potential customer and whether it is worth contacting. MVP passes when at least 5 of 10 pass validation.",
          "status": "WAITING",
          "executor": "human",
          "priority": 40,
          "checkpoint": 1,
          "created_at": "2026-10-04T14:54:24+03:00",
          "updated_at": "2026-10-07T20:28:44+03:00",
          "expected_result": "",
          "result": "",
          "decision_notes": "",
          "accepted_by": "",
          "accepted_at": null,
          "approved_at": "2026-10-07T20:28:44+03:00",
          "approved_by": "Current owner instruction: real LEAD-GEN autonomous E2E",
          "dependency_blocked": 0,
          "retry_at": null,
          "next_executor": null,
          "workspace_path": null,
          "dependencies_text": "LEAD-003.3",
          "artifacts": []
        }
      ]
    },
    {
      "id": 30,
      "project_id": 6,
      "key": "LEAD-004",
      "title": "Market Intelligence",
      "description": "Aggregate signals and leads to identify recurring needs, demand shifts, promising segments and potential new products or services.",
      "status": "PLANNED",
      "position": 4,
      "created_at": "2026-10-04T14:54:24+03:00",
      "updated_at": "2026-10-04T14:54:24+03:00",
      "tasks": []
    },
    {
      "id": 31,
      "project_id": 6,
      "key": "LEAD-005",
      "title": "Outreach Engine",
      "description": "Automate controlled first contact: select person/channel, prepare evidence-based personalized outreach, send and follow up with configurable autonomy and human approval.",
      "status": "PLANNED",
      "position": 5,
      "created_at": "2026-10-04T14:54:24+03:00",
      "updated_at": "2026-10-04T14:54:24+03:00",
      "tasks": []
    },
    {
      "id": 32,
      "project_id": 6,
      "key": "LEAD-006",
      "title": "Response & Opportunity Management",
      "description": "Track outreach outcomes and lead state through response, qualification and opportunity stages; hand communication to a human at the appropriate point.",
      "status": "PLANNED",
      "position": 6,
      "created_at": "2026-10-04T14:54:24+03:00",
      "updated_at": "2026-10-04T14:54:24+03:00",
      "tasks": []
    },
    {
      "id": 33,
      "project_id": 6,
      "key": "LEAD-007",
      "title": "Learning & Optimization",
      "description": "Use actual outcomes to improve sources, signals, qualification, scoring, segmentation, channels and messaging.",
      "status": "PLANNED",
      "position": 7,
      "created_at": "2026-10-04T14:54:24+03:00",
      "updated_at": "2026-10-04T14:54:24+03:00",
      "tasks": []
    }
  ]
}