[
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "konfekcjonowanie",
      "version": "1.0.0",
      "name": "Wyceniarka konfekcjonowania",
      "category": "Wyceniarki",
      "description": "Policz koszt ręcznych operacji, materiałów i przygotowania partii."
    },
    "input": {
      "fields": [
        {
          "id": "qty",
          "label": "Liczba dobrych sztuk",
          "type": "integer",
          "unit": "szt.",
          "default": 10000,
          "minimum": 1,
          "maximum": 10000000,
          "required": true
        },
        {
          "id": "seconds",
          "label": "Łączny nakład pracy na sztukę",
          "type": "number",
          "unit": "s/szt.",
          "default": 18,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "rate",
          "label": "Pełny koszt roboczogodziny",
          "type": "number",
          "unit": "PLN/h",
          "default": 45,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "material",
          "label": "Materiał na sztukę",
          "type": "number",
          "unit": "PLN/szt.",
          "default": 0.35,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "setup",
          "label": "Koszt przygotowania partii",
          "type": "number",
          "unit": "PLN",
          "default": 350,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "overhead",
          "label": "Narzut kosztów pośrednich",
          "type": "number",
          "unit": "%",
          "default": 15,
          "minimum": 0,
          "maximum": 1000,
          "required": true
        },
        {
          "id": "margin",
          "label": "Docelowa marża od ceny",
          "type": "number",
          "unit": "%",
          "default": 25,
          "minimum": 0,
          "maximum": 99,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "hours",
          "formula": "qty*seconds/3600",
          "unit": "h",
          "precision": 2
        },
        {
          "id": "direct",
          "formula": "hours*rate+qty*material+setup",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "cost",
          "formula": "direct*(1+overhead/100)",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "price",
          "formula": "ceil(cost/(1-margin/100)*100)/100",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "unit",
          "formula": "price/qty",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "profit",
          "formula": "price-cost",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie uwzględnia osobno odrzutów, przestojów ani transportu. Nie doliczaj ponownie kosztów zawartych w stawce godzinowej."
    },
    "output": {
      "fields": [
        {
          "id": "hours",
          "label": "Roboczogodziny",
          "unit": "h",
          "precision": 2
        },
        {
          "id": "direct",
          "label": "Koszt bezpośredni",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "cost",
          "label": "Koszt pełny",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "price",
          "label": "Minimalna cena netto",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "unit",
          "label": "Cena netto za sztukę (orientacyjna)",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "profit",
          "label": "Wynik na zleceniu",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Nakład pracy = liczba sztuk × sekundy pracy / 3600. Koszt pośredni naliczamy od całości kosztów bezpośrednich. Cenę minimalną za partię zaokrąglamy w górę do grosza.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "hours": 50,
            "cost": 7015,
            "price": 9353.34
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-konfekcjonowanie/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "co-packing",
      "version": "1.0.0",
      "name": "Wyceniarka co-packingu",
      "category": "Wyceniarki",
      "description": "Wyceń pakowanie kontraktowe z uwzględnieniem odpadu i czasu urządzenia."
    },
    "input": {
      "fields": [
        {
          "id": "qty",
          "label": "Liczba dobrych sztuk",
          "type": "integer",
          "unit": "szt.",
          "default": 10000,
          "minimum": 1,
          "maximum": 10000000,
          "required": true
        },
        {
          "id": "seconds",
          "label": "Praca na sztukę wejściową",
          "type": "number",
          "unit": "s/szt.",
          "default": 12,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "rate",
          "label": "Koszt pracy",
          "type": "number",
          "unit": "PLN/h",
          "default": 45,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "material",
          "label": "Materiały na sztukę wejściową",
          "type": "number",
          "unit": "PLN/szt.",
          "default": 0.4,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "waste",
          "label": "Udział odrzutów",
          "type": "number",
          "unit": "%",
          "default": 2,
          "minimum": 0,
          "maximum": 95,
          "required": true
        },
        {
          "id": "machine_hours",
          "label": "Czas pracy urządzenia",
          "type": "number",
          "unit": "h",
          "default": 30,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "machine_rate",
          "label": "Koszt urządzenia",
          "type": "number",
          "unit": "PLN/h",
          "default": 60,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "setup",
          "label": "Przygotowanie",
          "type": "number",
          "unit": "PLN",
          "default": 300,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "margin",
          "label": "Docelowa marża od ceny",
          "type": "number",
          "unit": "%",
          "default": 25,
          "minimum": 0,
          "maximum": 99,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "gross",
          "formula": "ceil(qty/(1-waste/100))",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "cost",
          "formula": "gross*(seconds/3600*rate+material)+machine_hours*machine_rate+setup",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "price",
          "formula": "ceil(cost/(1-margin/100)*100)/100",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "unit",
          "formula": "price/qty",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "profit",
          "formula": "price-cost",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Zakładamy jednakową pracę dla każdej sztuki wejściowej. Koszt maszyny nie powinien powielać kosztu pracy."
    },
    "output": {
      "fields": [
        {
          "id": "gross",
          "label": "Szacowane sztuki wejściowe",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "cost",
          "label": "Koszt partii",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "price",
          "label": "Minimalna cena netto",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "unit",
          "label": "Cena za dobrą sztukę",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "profit",
          "label": "Wynik modelowy",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Liczbę sztuk wejściowych powiększamy o odrzuty; koszt maszyny podaj osobno.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "gross": 10205,
            "cost": 7712.75,
            "price": 10283.67
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-co-packing/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "zlecenie-produkcyjne",
      "version": "1.0.0",
      "name": "Kalkulator kosztu zlecenia produkcyjnego",
      "category": "Wyceniarki",
      "description": "Zsumuj koszty produkcji, materiałów, podwykonawców i przygotowania."
    },
    "input": {
      "fields": [
        {
          "id": "qty",
          "label": "Liczba dobrych sztuk",
          "type": "integer",
          "unit": "szt.",
          "default": 10000,
          "minimum": 1,
          "maximum": 10000000,
          "required": true
        },
        {
          "id": "hours",
          "label": "Roboczogodziny",
          "type": "number",
          "unit": "h",
          "default": 80,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "rate",
          "label": "Koszt pracy",
          "type": "number",
          "unit": "PLN/h",
          "default": 50,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "material_total",
          "label": "Materiały łącznie",
          "type": "number",
          "unit": "PLN",
          "default": 4000,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "external",
          "label": "Podwykonawcy i inne koszty",
          "type": "number",
          "unit": "PLN",
          "default": 800,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "setup",
          "label": "Przygotowanie",
          "type": "number",
          "unit": "PLN",
          "default": 400,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "margin",
          "label": "Docelowa marża od ceny",
          "type": "number",
          "unit": "%",
          "default": 25,
          "minimum": 0,
          "maximum": 99,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "cost",
          "formula": "hours*rate+material_total+external+setup",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "price",
          "formula": "ceil(cost/(1-margin/100)*100)/100",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "unit",
          "formula": "price/qty",
          "unit": "PLN/szt.",
          "precision": 4
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Koszty stałe przypisz do zlecenia przed obliczeniem; VAT nie jest wliczony."
    },
    "output": {
      "fields": [
        {
          "id": "cost",
          "label": "Koszt zlecenia",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "price",
          "label": "Minimalna cena netto",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "unit",
          "label": "Cena jednostkowa",
          "unit": "PLN/szt.",
          "precision": 4
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Sumujemy pełne koszty podane przez użytkownika i wyznaczamy cenę przy zadanej marży.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "cost": 9200,
            "price": 12266.67
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-zlecenie-produkcyjne/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "roboczogodzina",
      "version": "1.0.0",
      "name": "Kalkulator pełnego kosztu roboczogodziny",
      "category": "Rentowność",
      "description": "Oblicz koszt jednej produktywnej godziny pracy."
    },
    "input": {
      "fields": [
        {
          "id": "monthly",
          "label": "Miesięczne koszty pracownika i stanowiska",
          "type": "number",
          "unit": "PLN",
          "default": 8000,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "paid",
          "label": "Godziny opłacone",
          "type": "number",
          "unit": "h",
          "default": 168,
          "minimum": 1,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "util",
          "label": "Udział godzin produktywnych",
          "type": "number",
          "unit": "%",
          "default": 80,
          "minimum": 1,
          "maximum": 100,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "productive",
          "formula": "paid*util/100",
          "unit": "h",
          "precision": 2
        },
        {
          "id": "rate",
          "formula": "monthly/productive",
          "unit": "PLN/h",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Wprowadź pełny koszt pracodawcy i stanowiska samodzielnie. Nie jest to kalkulator płac."
    },
    "output": {
      "fields": [
        {
          "id": "productive",
          "label": "Godziny produktywne",
          "unit": "h",
          "precision": 2
        },
        {
          "id": "rate",
          "label": "Koszt roboczogodziny",
          "unit": "PLN/h",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Koszty miesięczne dzielimy przez faktycznie produktywne godziny.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "productive": 134.4,
            "rate": 59.5238095238
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-roboczogodzina/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "marza-narzut",
      "version": "1.0.0",
      "name": "Kalkulator marży i narzutu",
      "category": "Rentowność",
      "description": "Porównaj zysk, marżę od sprzedaży i narzut od kosztu."
    },
    "input": {
      "fields": [
        {
          "id": "cost",
          "label": "Koszt netto",
          "type": "number",
          "unit": "PLN",
          "default": 80,
          "minimum": 0.01,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "price",
          "label": "Cena sprzedaży netto",
          "type": "number",
          "unit": "PLN",
          "default": 100,
          "minimum": 0.01,
          "maximum": 1000000000,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "profit",
          "formula": "price-cost",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "margin",
          "formula": "profit/price*100",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "markup",
          "formula": "profit/cost*100",
          "unit": "%",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "loss",
          "when": {
            "op": "lt",
            "args": [
              {
                "ref": "price"
              },
              {
                "ref": "cost"
              }
            ]
          },
          "status": "REVIEW",
          "message": "Cena nie pokrywa kosztu."
        }
      ],
      "limitations": "Koszt i cena muszą być dodatnie, podane w tej samej walucie i na tej samej podstawie."
    },
    "output": {
      "fields": [
        {
          "id": "profit",
          "label": "Zysk modelowy",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "margin",
          "label": "Marża",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "markup",
          "label": "Narzut",
          "unit": "%",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Marża = zysk / cena. Narzut = zysk / koszt.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "profit": 20,
            "margin": 20,
            "markup": 25
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-marza-narzut/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "minimalna-cena",
      "version": "1.0.0",
      "name": "Kalkulator minimalnej ceny sprzedaży",
      "category": "Rentowność",
      "description": "Ustal cenę sprzedaży przy zadanej marży."
    },
    "input": {
      "fields": [
        {
          "id": "cost",
          "label": "Pełny koszt netto",
          "type": "number",
          "unit": "PLN",
          "default": 100,
          "minimum": 0.01,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "margin",
          "label": "Docelowa marża od ceny",
          "type": "number",
          "unit": "%",
          "default": 25,
          "minimum": 0,
          "maximum": 99,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "price",
          "formula": "ceil(cost/(1-margin/100)*100)/100",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "profit",
          "formula": "price-cost",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie jest to prognoza popytu ani cena rynkowa."
    },
    "output": {
      "fields": [
        {
          "id": "price",
          "label": "Minimalna cena netto",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "profit",
          "label": "Zysk modelowy",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Cena = koszt / (1 − marża/100). Wynik zaokrąglamy w górę do grosza.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "price": 133.34,
            "profit": 33.34
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-minimalna-cena/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "prog-rentownosci",
      "version": "1.0.0",
      "name": "Kalkulator progu rentowności",
      "category": "Rentowność",
      "description": "Ile sztuk trzeba sprzedać, aby pokryć koszty stałe?"
    },
    "input": {
      "fields": [
        {
          "id": "fixed",
          "label": "Koszty stałe okresu",
          "type": "number",
          "unit": "PLN",
          "default": 10000,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "price",
          "label": "Cena netto sztuki",
          "type": "number",
          "unit": "PLN/szt.",
          "default": 25,
          "minimum": 0.01,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "variable",
          "label": "Koszt zmienny sztuki",
          "type": "number",
          "unit": "PLN/szt.",
          "default": 15,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "contribution",
          "formula": "price-variable",
          "unit": "PLN/szt.",
          "precision": 2
        },
        {
          "id": "units",
          "formula": "ceil(fixed/contribution)",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "revenue",
          "formula": "units*price",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "no-contribution",
          "when": {
            "op": "lte",
            "args": [
              {
                "ref": "price"
              },
              {
                "ref": "variable"
              }
            ]
          },
          "status": "MISMATCH",
          "message": "Brak dodatniej marży pokrycia: próg nie istnieje w tym modelu."
        }
      ],
      "limitations": "Zakłada stałe ceny i koszty jednostkowe w badanym zakresie."
    },
    "output": {
      "fields": [
        {
          "id": "contribution",
          "label": "Marża pokrycia na sztukę",
          "unit": "PLN/szt.",
          "precision": 2
        },
        {
          "id": "units",
          "label": "Próg sprzedaży",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "revenue",
          "label": "Przychód na progu",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Koszt stały dzielimy przez dodatnią marżę pokrycia i zaokrąglamy liczbę sztuk w górę.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "units": 1000,
            "revenue": 25000
          },
          "inputs": {},
          "status": "MATCH"
        },
        {
          "inputs": {
            "price": 15
          },
          "status": "MISMATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-prog-rentownosci/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "oferty-dostawcow",
      "version": "1.0.0",
      "name": "Porównywarka ofert dostawców",
      "category": "Decyzje",
      "description": "Porównaj dwie oferty, koszty dostawy i ocenę jakości."
    },
    "input": {
      "fields": [
        {
          "id": "a",
          "label": "Cena A z transportem",
          "type": "number",
          "unit": "PLN",
          "default": 10000,
          "minimum": 0.01,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "b",
          "label": "Cena B z transportem",
          "type": "number",
          "unit": "PLN",
          "default": 11000,
          "minimum": 0.01,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "qa",
          "label": "Ocena jakości A",
          "type": "number",
          "unit": "pkt",
          "default": 70,
          "minimum": 0,
          "maximum": 100,
          "required": true
        },
        {
          "id": "qb",
          "label": "Ocena jakości B",
          "type": "number",
          "unit": "pkt",
          "default": 90,
          "minimum": 0,
          "maximum": 100,
          "required": true
        },
        {
          "id": "weight",
          "label": "Waga kosztu",
          "type": "number",
          "unit": "%",
          "default": 60,
          "minimum": 0,
          "maximum": 100,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "score_a",
          "formula": "min(a,b)/a*weight+qa*(1-weight/100)",
          "unit": "pkt",
          "precision": 2
        },
        {
          "id": "score_b",
          "formula": "min(a,b)/b*weight+qb*(1-weight/100)",
          "unit": "pkt",
          "precision": 2
        },
        {
          "id": "difference",
          "formula": "score_a-score_b",
          "unit": "pkt",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "subjective",
          "when": {
            "op": "lt",
            "args": [
              {
                "ref": "weight"
              },
              100
            ]
          },
          "status": "REVIEW",
          "message": "Ranking zależy od wprowadzonej oceny jakości; potwierdź wymagania obligatoryjne."
        }
      ],
      "limitations": "Porównuj równoważne zakresy ofert. Warunki obligatoryjne sprawdź przed rankingiem."
    },
    "output": {
      "fields": [
        {
          "id": "score_a",
          "label": "Wynik A",
          "unit": "pkt",
          "precision": 2
        },
        {
          "id": "score_b",
          "label": "Wynik B",
          "unit": "pkt",
          "precision": 2
        },
        {
          "id": "difference",
          "label": "Przewaga A nad B (ujemna = B)",
          "unit": "pkt",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Koszt punktujemy względem tańszej oferty; jakość to subiektywna ocena 0–100. Wagi sumują się do 100%.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "score_a": 88,
            "score_b": 90.54545454545
          },
          "status": "REVIEW",
          "inputs": {}
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-oferty-dostawcow/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "zakup-wynajem",
      "version": "1.0.0",
      "name": "Zakup kontra wynajem",
      "category": "Decyzje",
      "description": "Porównaj nominalny koszt zakupu i najmu urządzenia."
    },
    "input": {
      "fields": [
        {
          "id": "purchase",
          "label": "Cena zakupu",
          "type": "number",
          "unit": "PLN",
          "default": 25000,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "service",
          "label": "Roczny koszt serwisu przy zakupie",
          "type": "number",
          "unit": "PLN/rok",
          "default": 1800,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "residual",
          "label": "Wartość odsprzedaży",
          "type": "number",
          "unit": "PLN",
          "default": 8000,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "rent",
          "label": "Miesięczny koszt wynajmu",
          "type": "number",
          "unit": "PLN/mies.",
          "default": 950,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "months",
          "label": "Okres",
          "type": "integer",
          "unit": "mies.",
          "default": 36,
          "minimum": 1,
          "maximum": 1200,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "buy",
          "formula": "purchase+service*months/12-residual",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "rental",
          "formula": "rent*months",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "delta",
          "formula": "buy-rental",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "resale",
          "when": {
            "op": "gt",
            "args": [
              {
                "ref": "residual"
              },
              {
                "ref": "purchase"
              }
            ]
          },
          "status": "REVIEW",
          "message": "Wartość odsprzedaży przewyższa zakup. Zweryfikuj założenie."
        }
      ],
      "limitations": "Bez dyskonta, finansowania, podatków, transportu i różnic zakresu serwisu."
    },
    "output": {
      "fields": [
        {
          "id": "buy",
          "label": "Koszt zakupu netto po odsprzedaży",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "rental",
          "label": "Koszt najmu",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "delta",
          "label": "Zakup minus wynajem (ujemny = zakup tańszy)",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Porównanie nominalnych kosztów w tym samym okresie.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "buy": 22400,
            "rental": 34200,
            "delta": -11800
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-zakup-wynajem/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "roi-automatyzacji",
      "version": "1.0.0",
      "name": "Kalkulator ROI automatyzacji",
      "category": "Decyzje",
      "description": "Oceń prosty zwrot inwestycji w automatyzację."
    },
    "input": {
      "fields": [
        {
          "id": "investment",
          "label": "Nakład inwestycyjny",
          "type": "number",
          "unit": "PLN",
          "default": 100000,
          "minimum": 0.01,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "savings",
          "label": "Roczne oszczędności",
          "type": "number",
          "unit": "PLN/rok",
          "default": 60000,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "opex",
          "label": "Roczny dodatkowy koszt",
          "type": "number",
          "unit": "PLN/rok",
          "default": 10000,
          "minimum": 0,
          "maximum": 1000000000,
          "required": true
        },
        {
          "id": "years",
          "label": "Horyzont",
          "type": "number",
          "unit": "lat",
          "default": 3,
          "minimum": 1,
          "maximum": 30,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "net",
          "formula": "savings-opex",
          "unit": "PLN/rok",
          "precision": 2
        },
        {
          "id": "roi",
          "formula": "(net*years-investment)/investment*100",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "payback",
          "formula": "if_positive_div(investment,net)",
          "unit": "lat",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "no-payback",
          "when": {
            "op": "lte",
            "args": [
              {
                "ref": "savings"
              },
              {
                "ref": "opex"
              }
            ]
          },
          "status": "REVIEW",
          "message": "Brak prostego okresu zwrotu przy niedodatniej rocznej korzyści."
        }
      ],
      "limitations": "Nie uwzględnia dyskonta, podatków, rozruchu, amortyzacji ani zmienności oszczędności."
    },
    "output": {
      "fields": [
        {
          "id": "net",
          "label": "Roczna korzyść netto",
          "unit": "PLN/rok",
          "precision": 2
        },
        {
          "id": "roi",
          "label": "ROI w horyzoncie",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "payback",
          "label": "Prosty okres zwrotu",
          "unit": "lat",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "ROI = (korzyści netto w okresie − inwestycja) / inwestycja. Prosty zwrot istnieje tylko przy dodatniej rocznej korzyści.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "net": 50000,
            "roi": 50,
            "payback": 2
          },
          "inputs": {},
          "status": "MATCH"
        },
        {
          "inputs": {
            "savings": 0
          },
          "expected": {
            "payback": null
          },
          "status": "REVIEW"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-roi-automatyzacji/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "cenniki-csv",
      "version": "1.0.0",
      "name": "Porównywarka cenników CSV",
      "category": "Dane",
      "description": "Wykryj nowe, usunięte i zmienione ceny według identyfikatora SKU."
    },
    "input": {
      "fields": [],
      "special": {
        "format": "UTF-8 CSV",
        "columns": [
          "SKU",
          "cena"
        ]
      }
    },
    "formula": {
      "model": "deterministic",
      "expressions": []
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Jedna waluta i jednostka, maksymalnie 2 MB i 10 000 wierszy na plik. Duplikaty blokują porównanie."
    },
    "output": {
      "fields": [],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Wczytaj dwa pliki UTF-8 z nagłówkami SKU i cena. Porównanie po dokładnym identyfikatorze, bez wysyłania plików.",
      "source_type": "author_model",
      "test_cases": []
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-cenniki-csv/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "oferta",
      "version": "1.0.0",
      "name": "Generator oferty handlowej",
      "category": "Dokumenty",
      "description": "Utwórz ofertę netto dla klienta na podstawie ceny całej partii."
    },
    "input": {
      "fields": [
        {
          "id": "qty",
          "label": "Liczba dobrych sztuk",
          "type": "integer",
          "unit": "szt.",
          "default": 10000,
          "minimum": 1,
          "maximum": 10000000,
          "required": true
        },
        {
          "id": "price",
          "label": "Cena netto całej partii",
          "type": "number",
          "unit": "PLN",
          "default": 9353.34,
          "minimum": 0.01,
          "maximum": 1000000000,
          "required": true
        }
      ],
      "special": {
        "document_fields": [
          "seller",
          "buyer",
          "subject",
          "validity",
          "terms"
        ]
      }
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "unit",
          "formula": "price/qty",
          "unit": "PLN/szt.",
          "precision": 4
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie jest fakturą, nie wylicza podatku. Sprawdź warunki handlowe i zaokrąglenia przed wysłaniem."
    },
    "output": {
      "fields": [
        {
          "id": "unit",
          "label": "Orientacyjna cena jednostkowa",
          "unit": "PLN/szt.",
          "precision": 4
        }
      ],
      "formats": [
        "json",
        "print"
      ]
    },
    "evidence": {
      "methodology": "Cena całej partii jest nadrzędna. Wprowadź strony, zakres, termin i warunki, następnie wydrukuj dokument lub zapisz PDF w przeglądarce.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "unit": 0.935334
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-oferta/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "vertical-quote-studio",
      "version": "1.0.0",
      "name": "Vertical Quote Studio – wycena wielooperacyjna",
      "category": "Wyceniarki",
      "description": "Zbuduj koszt partii z maksymalnie trzech operacji, materiałów, odrzutów i usług zewnętrznych."
    },
    "input": {
      "fields": [
        {
          "id": "qty",
          "label": "Liczba dobrych sztuk",
          "type": "integer",
          "unit": "szt.",
          "default": 10000,
          "minimum": 1,
          "maximum": 10000000.0,
          "required": true
        },
        {
          "id": "waste",
          "label": "Odrzuty w całym procesie",
          "type": "number",
          "unit": "%",
          "default": 0,
          "minimum": 0,
          "maximum": 99,
          "required": true
        },
        {
          "id": "sec1",
          "label": "Operacja 1: sekundy pracy na sztukę",
          "type": "number",
          "unit": "s/szt.",
          "default": 12,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "rate1",
          "label": "Operacja 1: stawka pracy",
          "type": "number",
          "unit": "PLN/h",
          "default": 45,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "setup1",
          "label": "Operacja 1: przygotowanie partii",
          "type": "number",
          "unit": "PLN",
          "default": 0,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "sec2",
          "label": "Operacja 2: sekundy pracy na sztukę",
          "type": "number",
          "unit": "s/szt.",
          "default": 6,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "rate2",
          "label": "Operacja 2: stawka pracy",
          "type": "number",
          "unit": "PLN/h",
          "default": 60,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "setup2",
          "label": "Operacja 2: przygotowanie partii",
          "type": "number",
          "unit": "PLN",
          "default": 150,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "sec3",
          "label": "Operacja 3: sekundy pracy na sztukę",
          "type": "number",
          "unit": "s/szt.",
          "default": 0,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "rate3",
          "label": "Operacja 3: stawka pracy",
          "type": "number",
          "unit": "PLN/h",
          "default": 0,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "setup3",
          "label": "Operacja 3: przygotowanie partii",
          "type": "number",
          "unit": "PLN",
          "default": 0,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "material",
          "label": "Materiał na sztukę wejściową",
          "type": "number",
          "unit": "PLN/szt.",
          "default": 0.35,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "external",
          "label": "Usługi zewnętrzne i inne koszty bezpośrednie",
          "type": "number",
          "unit": "PLN",
          "default": 0,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "overhead",
          "label": "Narzut kosztów pośrednich",
          "type": "number",
          "unit": "%",
          "default": 15,
          "minimum": 0,
          "maximum": 1000,
          "required": true
        },
        {
          "id": "margin",
          "label": "Docelowa marża od ceny",
          "type": "number",
          "unit": "%",
          "default": 25,
          "minimum": 0,
          "maximum": 99,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "gross",
          "unit": "szt.",
          "precision": 0,
          "formula": "ceil(qty/(1-waste/100))"
        },
        {
          "id": "op1",
          "unit": "PLN",
          "precision": 2,
          "formula": "gross*sec1*rate1/3600+setup1"
        },
        {
          "id": "op2",
          "unit": "PLN",
          "precision": 2,
          "formula": "gross*sec2*rate2/3600+setup2"
        },
        {
          "id": "op3",
          "unit": "PLN",
          "precision": 2,
          "formula": "gross*sec3*rate3/3600+setup3"
        },
        {
          "id": "direct",
          "unit": "PLN",
          "precision": 2,
          "formula": "op1+op2+op3+gross*material+external"
        },
        {
          "id": "cost",
          "unit": "PLN",
          "precision": 2,
          "formula": "direct*(1+overhead/100)"
        },
        {
          "id": "price",
          "unit": "PLN",
          "precision": 2,
          "formula": "ceil(cost/(1-margin/100)*100)/100"
        },
        {
          "id": "unit",
          "unit": "PLN/szt.",
          "precision": 4,
          "formula": "price/qty"
        },
        {
          "id": "profit",
          "unit": "PLN",
          "precision": 2,
          "formula": "price-cost"
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Model trzech operacji, nie harmonogram linii. Odrzut traktowany zbiorczo; nie uwzględnia odrębnych strat na etapach, zmian wydajności i kosztów już zawartych w stawkach. Nieużywane operacje ustaw na zero."
    },
    "output": {
      "fields": [
        {
          "id": "gross",
          "label": "Sztuki do przetworzenia",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "op1",
          "label": "Koszt operacji 1",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "op2",
          "label": "Koszt operacji 2",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "op3",
          "label": "Koszt operacji 3",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "direct",
          "label": "Koszt bezpośredni",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "cost",
          "label": "Całkowity koszt",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "price",
          "label": "Minimalna cena netto partii",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "unit",
          "label": "Cena jednostkowa orientacyjna",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "profit",
          "label": "Wynik na zleceniu",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "json",
        "csv"
      ]
    },
    "evidence": {
      "methodology": "Wolumen wejściowy zaokrąglamy w górę, a każdą operację liczymy od tego samego wolumenu. Sumujemy robociznę, przygotowania, materiały i usługi; doliczamy koszty pośrednie. Cena partii jest zaokrąglana w górę do grosza.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "gross": 10000,
            "op1": 1500,
            "op2": 1150,
            "cost": 7072.5,
            "price": 9430
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-vertical-quote-studio/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "make-or-buy",
      "version": "1.0.0",
      "name": "Kalkulator make or buy – produkcja czy outsourcing",
      "category": "Decyzje",
      "description": "Porównaj własną produkcję i zlecenie na zewnątrz w tym samym wolumenie."
    },
    "input": {
      "fields": [
        {
          "id": "qty",
          "label": "Liczba dobrych sztuk",
          "type": "integer",
          "unit": "szt.",
          "default": 10000,
          "minimum": 1,
          "maximum": 10000000.0,
          "required": true
        },
        {
          "id": "fixed",
          "label": "Uniknione koszty stałe produkcji własnej",
          "type": "number",
          "unit": "PLN",
          "default": 10000,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "own",
          "label": "Koszt zmienny produkcji własnej",
          "type": "number",
          "unit": "PLN/szt.",
          "default": 2,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "out",
          "label": "Cena zewnętrzna z transportem",
          "type": "number",
          "unit": "PLN/szt.",
          "default": 3.5,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "switch",
          "label": "Koszt wdrożenia dostawcy",
          "type": "number",
          "unit": "PLN",
          "default": 1000,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "make",
          "unit": "PLN",
          "precision": 2,
          "formula": "fixed+qty*own"
        },
        {
          "id": "buy",
          "unit": "PLN",
          "precision": 2,
          "formula": "switch+qty*out"
        },
        {
          "id": "delta",
          "unit": "PLN",
          "precision": 2,
          "formula": "make-buy"
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie uwzględnia ryzyka jakości, elastyczności ani kosztów nieuniknionych. Wprowadź tylko koszty stałe różniące warianty."
    },
    "output": {
      "fields": [
        {
          "id": "make",
          "label": "Koszt produkcji własnej",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "buy",
          "label": "Koszt outsourcingu",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "delta",
          "label": "Produkcja minus outsourcing",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "json",
        "csv"
      ]
    },
    "evidence": {
      "methodology": "Porównaj koszty przy identycznej liczbie dobrych sztuk i tym samym okresie. Ujemna różnica oznacza niższy koszt własnej produkcji.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "make": 30000,
            "buy": 36000,
            "delta": -6000
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-make-or-buy/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "koszt-przestoju",
      "version": "1.0.0",
      "name": "Kalkulator kosztu przestoju produkcji",
      "category": "Rentowność",
      "description": "Oszacuj utraconą marżę i dodatkowe koszty zatrzymania procesu."
    },
    "input": {
      "fields": [
        {
          "id": "hours",
          "label": "Czas przestoju",
          "type": "number",
          "unit": "h",
          "default": 4,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "speed",
          "label": "Utracona produkcja na godzinę",
          "type": "number",
          "unit": "szt./h",
          "default": 500,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "contribution",
          "label": "Marża pokrycia na sztukę",
          "type": "number",
          "unit": "PLN/szt.",
          "default": 2,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "recovery",
          "label": "Produkcja odzyskana później",
          "type": "number",
          "unit": "%",
          "default": 25,
          "minimum": 0,
          "maximum": 100,
          "required": true
        },
        {
          "id": "repair",
          "label": "Dodatkowe koszty naprawy i wznowienia",
          "type": "number",
          "unit": "PLN",
          "default": 800,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "lost",
          "unit": "szt.",
          "precision": 2,
          "formula": "hours*speed*(1-recovery/100)"
        },
        {
          "id": "cost",
          "unit": "PLN",
          "precision": 2,
          "formula": "lost*contribution+repair"
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie licz utraconego przychodu jako zysku; nie dubluj kosztów naprawy w marży pokrycia."
    },
    "output": {
      "fields": [
        {
          "id": "lost",
          "label": "Nieodzyskana produkcja",
          "unit": "szt.",
          "precision": 2
        },
        {
          "id": "cost",
          "label": "Modelowy koszt przestoju",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "json",
        "csv"
      ]
    },
    "evidence": {
      "methodology": "Utraconą produkcję pomniejsz o część odzyskaną. Pomnóż przez marżę pokrycia, dodaj koszty przyrostowe.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "lost": 1500,
            "cost": 3800
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-koszt-przestoju/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "wydajnosc-linii",
      "version": "1.0.0",
      "name": "Kalkulator wydajności linii produkcyjnej",
      "category": "Wyceniarki",
      "description": "Sprawdź realną wydajność i liczbę godzin potrzebnych do wykonania partii."
    },
    "input": {
      "fields": [
        {
          "id": "qty",
          "label": "Liczba dobrych sztuk",
          "type": "integer",
          "unit": "szt.",
          "default": 10000,
          "minimum": 1,
          "maximum": 10000000.0,
          "required": true
        },
        {
          "id": "speed",
          "label": "Nominalna wydajność linii",
          "type": "number",
          "unit": "szt./h",
          "default": 1000,
          "minimum": 0.01,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "availability",
          "label": "Dostępność w planowanym czasie",
          "type": "number",
          "unit": "%",
          "default": 85,
          "minimum": 0.01,
          "maximum": 100,
          "required": true
        },
        {
          "id": "performance",
          "label": "Wykorzystanie nominalnej prędkości",
          "type": "number",
          "unit": "%",
          "default": 90,
          "minimum": 0.01,
          "maximum": 100,
          "required": true
        },
        {
          "id": "quality",
          "label": "Udział dobrych sztuk",
          "type": "number",
          "unit": "%",
          "default": 98,
          "minimum": 0.01,
          "maximum": 100,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "oee",
          "unit": "%",
          "precision": 2,
          "formula": "availability*performance*quality/10000"
        },
        {
          "id": "effective",
          "unit": "szt./h",
          "precision": 2,
          "formula": "speed*oee/100"
        },
        {
          "id": "hours",
          "unit": "h",
          "precision": 2,
          "formula": "qty/effective"
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Szacunek dla stabilnego procesu; nie jest pomiarem OEE. Jeżeli przestoje są już w dostępności, nie odejmuj ich drugi raz."
    },
    "output": {
      "fields": [
        {
          "id": "oee",
          "label": "Iloczyn dostępności, wydajności i jakości",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "effective",
          "label": "Dobre sztuki na godzinę",
          "unit": "szt./h",
          "precision": 2
        },
        {
          "id": "hours",
          "label": "Planowany czas produkcji",
          "unit": "h",
          "precision": 2
        }
      ],
      "formats": [
        "json",
        "csv"
      ]
    },
    "evidence": {
      "methodology": "Nominalną wydajność mnożymy przez trzy niezależne współczynniki. Czas wynika z liczby dobrych sztuk.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "oee": 74.97,
            "effective": 749.7
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-wydajnosc-linii/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "rentownosc-kontraktu",
      "version": "1.0.0",
      "name": "Kalkulator rentowności kontraktu B2B",
      "category": "Rentowność",
      "description": "Oceń miesięczny wynik, marżę i opłacalność stałego zlecenia."
    },
    "input": {
      "fields": [
        {
          "id": "revenue",
          "label": "Przychód netto miesięcznie",
          "type": "number",
          "unit": "PLN",
          "default": 30000,
          "minimum": 0.01,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "variable",
          "label": "Koszty zmienne miesięcznie",
          "type": "number",
          "unit": "PLN",
          "default": 18000,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "fixed",
          "label": "Koszty stałe przypisane miesięcznie",
          "type": "number",
          "unit": "PLN",
          "default": 4000,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "setup",
          "label": "Jednorazowy koszt wdrożenia",
          "type": "number",
          "unit": "PLN",
          "default": 6000,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "months",
          "label": "Okres kontraktu",
          "type": "integer",
          "unit": "mies.",
          "default": 12,
          "minimum": 1,
          "maximum": 120,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "cost",
          "unit": "PLN",
          "precision": 2,
          "formula": "variable+fixed+setup/months"
        },
        {
          "id": "profit",
          "unit": "PLN",
          "precision": 2,
          "formula": "revenue-cost"
        },
        {
          "id": "margin",
          "unit": "%",
          "precision": 2,
          "formula": "profit/revenue*100"
        },
        {
          "id": "total",
          "unit": "PLN",
          "precision": 2,
          "formula": "profit*months"
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie jest prognozą przepływów pieniężnych. Pomija podatki, sezonowość, ryzyko wypowiedzenia i finansowanie."
    },
    "output": {
      "fields": [
        {
          "id": "cost",
          "label": "Miesięczny koszt z rozłożonym wdrożeniem",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "profit",
          "label": "Wynik miesięczny",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "margin",
          "label": "Marża kontraktu",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "total",
          "label": "Wynik całego okresu",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "json",
        "csv"
      ]
    },
    "evidence": {
      "methodology": "Rozłóż jednorazowe wdrożenie na miesiące; wynik sumuje zysk przy stałych założeniach.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "cost": 22500,
            "profit": 7500,
            "margin": 25,
            "total": 90000
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-rentownosc-kontraktu/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "koszt-magazynowania",
      "version": "1.0.0",
      "name": "Kalkulator kosztu magazynowania palet",
      "category": "Wyceniarki",
      "description": "Policz koszt zajęcia miejsc paletowych i operacji magazynowych."
    },
    "input": {
      "fields": [
        {
          "id": "pallets",
          "label": "Średnia liczba zajętych miejsc",
          "type": "integer",
          "unit": "palet",
          "default": 100,
          "minimum": 1,
          "maximum": 10000000.0,
          "required": true
        },
        {
          "id": "days",
          "label": "Liczba dni rozliczenia",
          "type": "integer",
          "unit": "dni",
          "default": 30,
          "minimum": 1,
          "maximum": 366,
          "required": true
        },
        {
          "id": "rate",
          "label": "Stawka za miejsce i dobę",
          "type": "number",
          "unit": "PLN/paleta/dzień",
          "default": 1.2,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "moves",
          "label": "Liczba płatnych operacji",
          "type": "integer",
          "unit": "operacje",
          "default": 200,
          "minimum": 0,
          "maximum": 10000000.0,
          "required": true
        },
        {
          "id": "move_rate",
          "label": "Stawka operacji",
          "type": "number",
          "unit": "PLN/operacja",
          "default": 8,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "extra",
          "label": "Pozostałe koszty okresu",
          "type": "number",
          "unit": "PLN",
          "default": 300,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "storage",
          "unit": "PLN",
          "precision": 2,
          "formula": "pallets*days*rate"
        },
        {
          "id": "cost",
          "unit": "PLN",
          "precision": 2,
          "formula": "storage+moves*move_rate+extra"
        },
        {
          "id": "unit",
          "unit": "PLN/paleta",
          "precision": 2,
          "formula": "cost/pallets"
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie oblicza rzeczywistej dziennej zajętości z historii WMS. Stosuj średnią ważoną czasem; sprawdź minimalne opłaty."
    },
    "output": {
      "fields": [
        {
          "id": "storage",
          "label": "Koszt składowania",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "cost",
          "label": "Łączny koszt okresu",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "unit",
          "label": "Koszt na średnie miejsce w okresie",
          "unit": "PLN/paleta",
          "precision": 2
        }
      ],
      "formats": [
        "json",
        "csv"
      ]
    },
    "evidence": {
      "methodology": "Średnie zajęcie mnożymy przez dni i stawkę. Dodajemy płatne operacje oraz koszty dodatkowe.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "storage": 3600,
            "cost": 5500,
            "unit": 55
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-koszt-magazynowania/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "landed-cost",
      "version": "1.0.0",
      "name": "Kalkulator całkowitego kosztu zakupu i importu",
      "category": "Wyceniarki",
      "description": "Porównaj ekonomiczny koszt dostawy na podstawie własnych kosztów, bez pobierania stawek celnych."
    },
    "input": {
      "fields": [
        {
          "id": "qty",
          "label": "Liczba dobrych sztuk",
          "type": "integer",
          "unit": "szt.",
          "default": 10000,
          "minimum": 1,
          "maximum": 10000000.0,
          "required": true
        },
        {
          "id": "purchase",
          "label": "Zakup towaru netto po przeliczeniu na PLN",
          "type": "number",
          "unit": "PLN",
          "default": 25000,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "freight",
          "label": "Transport i ubezpieczenie",
          "type": "number",
          "unit": "PLN",
          "default": 3000,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "duty",
          "label": "Znane należności celne i inne nieodzyskiwalne opłaty",
          "type": "number",
          "unit": "PLN",
          "default": 1500,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "local",
          "label": "Obsługa i dostawa lokalna",
          "type": "number",
          "unit": "PLN",
          "default": 500,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "tax",
          "label": "Nieodliczalne podatki – wpisz kwotę",
          "type": "number",
          "unit": "PLN",
          "default": 0,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "margin",
          "label": "Docelowa marża od ceny",
          "type": "number",
          "unit": "%",
          "default": 25,
          "minimum": 0,
          "maximum": 99,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "cost",
          "unit": "PLN",
          "precision": 2,
          "formula": "purchase+freight+duty+local+tax"
        },
        {
          "id": "unit",
          "unit": "PLN/szt.",
          "precision": 4,
          "formula": "cost/qty"
        },
        {
          "id": "price",
          "unit": "PLN",
          "precision": 2,
          "formula": "ceil(cost/(1-margin/100)*100)/100"
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie wyznacza cła, VAT, kodu CN, kursu ani podstawy opodatkowania. Zweryfikuj kwoty z dokumentami; unikaj podwójnego liczenia transportu."
    },
    "output": {
      "fields": [
        {
          "id": "cost",
          "label": "Całkowity koszt ekonomiczny",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "unit",
          "label": "Koszt jednej sztuki",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "price",
          "label": "Minimalna cena sprzedaży partii netto",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "json",
        "csv"
      ]
    },
    "evidence": {
      "methodology": "Sumujemy wprowadzone kwoty ekonomiczne, a następnie obliczamy cenę dla marży.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "cost": 30000,
            "unit": 3,
            "price": 40000
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-landed-cost/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "mrr-saas",
      "version": "1.0.0",
      "name": "Kalkulator MRR i rentowności MicroSaaS",
      "category": "Rentowność",
      "description": "Sprawdź powtarzalny przychód i wynik miesięczny z abonamentów."
    },
    "input": {
      "fields": [
        {
          "id": "clients",
          "label": "Płacący klienci",
          "type": "integer",
          "unit": "klienci",
          "default": 100,
          "minimum": 0,
          "maximum": 10000000.0,
          "required": true
        },
        {
          "id": "arpu",
          "label": "Średni miesięczny przychód netto na klienta",
          "type": "number",
          "unit": "PLN/klient",
          "default": 49,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "variable",
          "label": "Miesięczny koszt zmienny na klienta",
          "type": "number",
          "unit": "PLN/klient",
          "default": 5,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        },
        {
          "id": "fixed",
          "label": "Miesięczne koszty stałe",
          "type": "number",
          "unit": "PLN",
          "default": 1500,
          "minimum": 0,
          "maximum": 1000000000.0,
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "mrr",
          "unit": "PLN",
          "precision": 2,
          "formula": "clients*arpu"
        },
        {
          "id": "arr",
          "unit": "PLN",
          "precision": 2,
          "formula": "mrr*12"
        },
        {
          "id": "cost",
          "unit": "PLN",
          "precision": 2,
          "formula": "fixed+clients*variable"
        },
        {
          "id": "profit",
          "unit": "PLN",
          "precision": 2,
          "formula": "mrr-cost"
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie uwzględnia churnu, nowych klientów, podatku, prowizji nieuwzględnionych w kosztach ani sezonowości."
    },
    "output": {
      "fields": [
        {
          "id": "mrr",
          "label": "MRR – miesięczny przychód powtarzalny",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "arr",
          "label": "ARR – roczna ekstrapolacja MRR",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "cost",
          "label": "Miesięczne koszty",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "profit",
          "label": "Wynik operacyjny miesięczny",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "json",
        "csv"
      ]
    },
    "evidence": {
      "methodology": "MRR to suma miesięcznych przychodów abonamentowych. ARR jest prostą ekstrapolacją, nie prognozą.",
      "source_type": "author_model",
      "test_cases": [
        {
          "expected": {
            "mrr": 4900,
            "arr": 58800,
            "cost": 2000,
            "profit": 2900
          },
          "inputs": {},
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-mrr-saas/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "margin-guard",
      "version": "1.0.0",
      "name": "Margin Guard – kontrola marży",
      "category": "Rentowność",
      "description": "Sprawdź, czy rabat, koszty dodatkowe i prowizje obniżają marżę poniżej celu. Policz wymaganą cenę netto i wynik na zleceniu."
    },
    "input": {
      "fields": [
        {
          "id": "listprice",
          "label": "Cena przed rabatem",
          "unit": "PLN",
          "default": 10000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "discount",
          "label": "Rabat",
          "unit": "%",
          "default": 10,
          "minimum": 0,
          "maximum": 99,
          "type": "number",
          "required": true
        },
        {
          "id": "cost",
          "label": "Koszt podstawowy",
          "unit": "PLN",
          "default": 6000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "extra",
          "label": "Koszty dodatkowe",
          "unit": "PLN",
          "default": 500,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "fee",
          "label": "Prowizja od sprzedaży",
          "unit": "%",
          "default": 2,
          "minimum": 0,
          "maximum": 99,
          "type": "number",
          "required": true
        },
        {
          "id": "target",
          "label": "Docelowa marża",
          "unit": "%",
          "default": 20,
          "minimum": 0,
          "maximum": 99,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "revenue",
          "formula": "listprice*(1-discount/100)",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "profit",
          "formula": "revenue*(1-fee/100)-cost-extra",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "actual",
          "formula": "profit/revenue*100",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "required",
          "formula": "ceil((cost+extra)/(1-(fee+target)/100)*100)/100",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "gap",
          "formula": "actual-target",
          "unit": "pp",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "invalid",
          "when": {
            "op": "gte",
            "args": [
              {
                "op": "add",
                "args": [
                  {
                    "ref": "fee"
                  },
                  {
                    "ref": "target"
                  }
                ]
              },
              100
            ]
          },
          "status": "MISMATCH",
          "message": "Suma prowizji i marży musi być mniejsza niż 100%."
        }
      ],
      "limitations": "Koszty muszą być rozłączne. Nie obejmuje VAT ani podatku dochodowego."
    },
    "output": {
      "fields": [
        {
          "id": "revenue",
          "label": "Przychód netto",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "profit",
          "label": "Wynik po kosztach i prowizji",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "actual",
          "label": "Marża rzeczywista",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "required",
          "label": "Wymagana cena po rabacie",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "gap",
          "label": "Odchylenie od celu",
          "unit": "pp",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Rabat zmniejsza przychód, prowizja jest od faktycznej ceny. Marża = wynik/przychód. Cena docelowa pokrywa koszt, prowizję i oczekiwaną marżę.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "revenue": 9000,
            "profit": 2320,
            "actual": 25.7777777778,
            "required": 8333.34
          },
          "status": "MATCH"
        },
        {
          "inputs": {
            "fee": 80
          },
          "status": "MISMATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-margin-guard/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "cash-gap",
      "version": "1.0.0",
      "name": "Kalkulator cyklu konwersji gotówki",
      "category": "Rentowność",
      "description": "Oszacuj cykl gotówkowy i kapitał finansujący zapasy oraz należności na podstawie własnych danych rocznych."
    },
    "input": {
      "fields": [
        {
          "id": "stock",
          "label": "Średni zapas",
          "unit": "PLN",
          "default": 120000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "receivables",
          "label": "Średnie należności",
          "unit": "PLN",
          "default": 100000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "payables",
          "label": "Średnie zobowiązania handlowe",
          "unit": "PLN",
          "default": 60000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "sales",
          "label": "Roczna sprzedaż netto",
          "unit": "PLN/rok",
          "default": 1200000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "cogs",
          "label": "Roczny koszt sprzedanych produktów",
          "unit": "PLN/rok",
          "default": 900000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "purchases",
          "label": "Roczne zakupy na kredyt kupiecki",
          "unit": "PLN/rok",
          "default": 900000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "dio",
          "formula": "stock/cogs*365",
          "unit": "dni",
          "precision": 2
        },
        {
          "id": "dso",
          "formula": "receivables/sales*365",
          "unit": "dni",
          "precision": 2
        },
        {
          "id": "dpo",
          "formula": "payables/purchases*365",
          "unit": "dni",
          "precision": 2
        },
        {
          "id": "ccc",
          "formula": "dio+dso-dpo",
          "unit": "dni",
          "precision": 2
        },
        {
          "id": "capital",
          "formula": "stock+receivables-payables",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Uśredniony model roczny, nie prognoza płynności. Sprzedaż powinna odpowiadać należnościom; przy sprzedaży gotówkowej wpisz sprzedaż kredytową do DSO."
    },
    "output": {
      "fields": [
        {
          "id": "dio",
          "label": "Dni zapasu",
          "unit": "dni",
          "precision": 2
        },
        {
          "id": "dso",
          "label": "Dni należności",
          "unit": "dni",
          "precision": 2
        },
        {
          "id": "dpo",
          "label": "Dni zobowiązań",
          "unit": "dni",
          "precision": 2
        },
        {
          "id": "ccc",
          "label": "Cykl konwersji gotówki",
          "unit": "dni",
          "precision": 2
        },
        {
          "id": "capital",
          "label": "Kapitał obrotowy handlowy",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "DIO + DSO − DPO, z podstawami właściwymi dla każdej składowej.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "capital": 160000,
            "ccc": 54.75
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-cash-gap/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "pipeline-wazony",
      "version": "1.0.0",
      "name": "Kalkulator ważonego pipeline sprzedaży",
      "category": "Rentowność",
      "description": "Oszacuj wartość oczekiwaną trzech grup szans sprzedażowych i pokrycie celu sprzedaży. Pracuj na własnych prawdopodobieństwach."
    },
    "input": {
      "fields": [
        {
          "id": "a",
          "label": "Wartość szans w grupie A",
          "unit": "PLN",
          "default": 100000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "pa",
          "label": "Prawdopodobieństwo A",
          "unit": "%",
          "default": 20,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        },
        {
          "id": "b",
          "label": "Wartość szans w grupie B",
          "unit": "PLN",
          "default": 80000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "pb",
          "label": "Prawdopodobieństwo B",
          "unit": "%",
          "default": 50,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        },
        {
          "id": "c",
          "label": "Wartość szans w grupie C",
          "unit": "PLN",
          "default": 50000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "pc",
          "label": "Prawdopodobieństwo C",
          "unit": "%",
          "default": 80,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        },
        {
          "id": "target",
          "label": "Cel sprzedaży okresu",
          "unit": "PLN",
          "default": 120000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "weighted",
          "formula": "(a*pa+b*pb+c*pc)/100",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "coverage",
          "formula": "weighted/target*100",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "gap",
          "formula": "max(0,target-weighted)",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie jest prognozą gwarantowaną; unikaj liczenia tej samej szansy w kilku grupach."
    },
    "output": {
      "fields": [
        {
          "id": "weighted",
          "label": "Ważona wartość pipeline",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "coverage",
          "label": "Pokrycie celu",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "gap",
          "label": "Brak do celu",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Wartość każdej grupy mnożymy przez prawdopodobieństwo, następnie sumujemy.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "weighted": 100000,
            "gap": 20000
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-pipeline-wazony/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "should-cost",
      "version": "1.0.0",
      "name": "Kalkulator Should-Cost dostawcy",
      "category": "Wyceniarki",
      "description": "Zbuduj koszt referencyjny produktu z materiału, pracy, urządzeń i kosztów pośrednich. Porównaj go z ofertą dostawcy."
    },
    "input": {
      "fields": [
        {
          "id": "material",
          "label": "Materiały na sztukę",
          "unit": "PLN/szt.",
          "default": 12,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "labor",
          "label": "Robocizna na sztukę",
          "unit": "PLN/szt.",
          "default": 5,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "machine",
          "label": "Urządzenia na sztukę",
          "unit": "PLN/szt.",
          "default": 3,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "overhead",
          "label": "Koszty pośrednie od kosztu bezpośredniego",
          "unit": "%",
          "default": 10,
          "minimum": 0,
          "maximum": 1000,
          "type": "number",
          "required": true
        },
        {
          "id": "margin",
          "label": "Zakładana marża dostawcy",
          "unit": "%",
          "default": 20,
          "minimum": 0,
          "maximum": 99,
          "type": "number",
          "required": true
        },
        {
          "id": "offer",
          "label": "Cena oferowana",
          "unit": "PLN/szt.",
          "default": 30,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "qty",
          "label": "Wolumen zakupu",
          "unit": "szt.",
          "default": 1000,
          "minimum": 1,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "cost",
          "formula": "(material+labor+machine)*(1+overhead/100)",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "reference",
          "formula": "cost/(1-margin/100)",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "gap",
          "formula": "offer-reference",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "total",
          "formula": "gap*qty",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie jest dowodem faktycznych kosztów dostawcy ani podstawą zarzutu zawyżonej ceny."
    },
    "output": {
      "fields": [
        {
          "id": "cost",
          "label": "Modelowy koszt jednostkowy",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "reference",
          "label": "Modelowa cena referencyjna",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "gap",
          "label": "Różnica ceny ofertowej",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "total",
          "label": "Różnica dla wolumenu",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Koszt referencyjny wynika wyłącznie z założeń użytkownika; cena obejmuje zadaną marżę dostawcy.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "cost": 22,
            "reference": 27.5,
            "gap": 2.5,
            "total": 2500
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-should-cost/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "oee",
      "version": "1.0.0",
      "name": "Kalkulator OEE maszyn",
      "category": "Wyceniarki",
      "description": "Policz dostępność, wydajność i jakość maszyny oraz OEE na podstawie planowanego czasu i rzeczywistej produkcji."
    },
    "input": {
      "fields": [
        {
          "id": "planned",
          "label": "Planowany czas produkcji",
          "unit": "min",
          "default": 480,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "run",
          "label": "Czas pracy",
          "unit": "min",
          "default": 420,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "ideal",
          "label": "Idealny cykl na sztukę",
          "unit": "s/szt.",
          "default": 30,
          "minimum": 0.0001,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "total",
          "label": "Wszystkie sztuki",
          "unit": "szt.",
          "default": 800,
          "minimum": 1,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        },
        {
          "id": "good",
          "label": "Dobre sztuki",
          "unit": "szt.",
          "default": 780,
          "minimum": 0,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "availability",
          "formula": "run/planned*100",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "performance",
          "formula": "ideal*total/(run*60)*100",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "quality",
          "formula": "good/total*100",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "oee",
          "formula": "availability*performance*quality/10000",
          "unit": "%",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "time",
          "when": {
            "op": "gt",
            "args": [
              {
                "ref": "run"
              },
              {
                "ref": "planned"
              }
            ]
          },
          "status": "MISMATCH",
          "message": "Czas pracy nie może przekraczać czasu planowanego."
        },
        {
          "id": "quality",
          "when": {
            "op": "gt",
            "args": [
              {
                "ref": "good"
              },
              {
                "ref": "total"
              }
            ]
          },
          "status": "MISMATCH",
          "message": "Dobre sztuki nie mogą przekroczyć wszystkich."
        },
        {
          "id": "performance",
          "when": {
            "op": "gt",
            "args": [
              {
                "op": "mul",
                "args": [
                  {
                    "ref": "ideal"
                  },
                  {
                    "ref": "total"
                  }
                ]
              },
              {
                "op": "mul",
                "args": [
                  {
                    "ref": "run"
                  },
                  60
                ]
              }
            ]
          },
          "status": "REVIEW",
          "message": "Wydajność przekracza 100%; sprawdź idealny cykl."
        }
      ],
      "limitations": "Model wymaga jednej spójnej definicji czasu planowanego i idealnego cyklu."
    },
    "output": {
      "fields": [
        {
          "id": "availability",
          "label": "Dostępność",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "performance",
          "label": "Wydajność",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "quality",
          "label": "Jakość",
          "unit": "%",
          "precision": 2
        },
        {
          "id": "oee",
          "label": "OEE",
          "unit": "%",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "OEE = dostępność × wydajność × jakość, wyrażone jako ułamki.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "availability": 87.5,
            "quality": 97.5,
            "oee": 81.25
          },
          "status": "MATCH"
        },
        {
          "inputs": {
            "good": 801
          },
          "status": "MISMATCH"
        },
        {
          "inputs": {
            "ideal": 40
          },
          "status": "REVIEW"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-oee/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "zdolnosc-produkcyjna",
      "version": "1.0.0",
      "name": "Kalkulator zdolności produkcyjnej",
      "category": "Wyceniarki",
      "description": "Sprawdź zdolność realizacji zamówienia z dostępnego czasu, liczby stanowisk, cyklu i planowanej efektywności."
    },
    "input": {
      "fields": [
        {
          "id": "stations",
          "label": "Liczba równoległych stanowisk",
          "unit": "szt.",
          "default": 3,
          "minimum": 1,
          "maximum": 1000,
          "type": "integer",
          "required": true
        },
        {
          "id": "hours",
          "label": "Dostępny czas na stanowisko",
          "unit": "h",
          "default": 40,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "cycle",
          "label": "Idealny cykl",
          "unit": "s/szt.",
          "default": 60,
          "minimum": 0.001,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "efficiency",
          "label": "Efektywność łączna",
          "unit": "%",
          "default": 80,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        },
        {
          "id": "demand",
          "label": "Zapotrzebowanie dobrych sztuk",
          "unit": "szt.",
          "default": 6000,
          "minimum": 1,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "capacity",
          "formula": "max(0,0-ceil(0-stations*hours*3600/cycle*efficiency/100))",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "gap",
          "formula": "max(0,demand-capacity)",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "utilization",
          "formula": "if_positive_div(demand*100,capacity)",
          "unit": "%",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "zero",
          "when": {
            "op": "eq",
            "args": [
              {
                "ref": "efficiency"
              },
              0
            ]
          },
          "status": "REVIEW",
          "message": "Brak efektywności; obciążenie nie jest wyznaczone."
        }
      ],
      "limitations": "Zakładamy identyczne niezależne stanowiska; nie modeluje wąskich gardeł, kolejek ani rozkładu awarii."
    },
    "output": {
      "fields": [
        {
          "id": "capacity",
          "label": "Modelowa zdolność",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "gap",
          "label": "Niedobór zdolności",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "utilization",
          "label": "Obciążenie zdolności",
          "unit": "%",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Dostępny czas mnożymy przez liczbę stanowisk i efektywność; liczbę pełnych sztuk zaokrąglamy w dół.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "capacity": 5760,
            "gap": 240
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-zdolnosc-produkcyjna/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "zapas-bezpieczenstwa",
      "version": "1.0.0",
      "name": "Kalkulator punktu ponownego zamówienia",
      "category": "Decyzje",
      "description": "Wyznacz punkt zamówienia z dziennego zużycia, czasu dostawy i ręcznie ustalonego zapasu bezpieczeństwa."
    },
    "input": {
      "fields": [
        {
          "id": "daily",
          "label": "Średnie dzienne zużycie",
          "unit": "szt./dzień",
          "default": 100,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "lead",
          "label": "Czas dostawy",
          "unit": "dni",
          "default": 7,
          "minimum": 0,
          "maximum": 3650,
          "type": "number",
          "required": true
        },
        {
          "id": "buffer",
          "label": "Zapas bezpieczeństwa",
          "unit": "szt.",
          "default": 200,
          "minimum": 0,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        },
        {
          "id": "onhand",
          "label": "Zapas fizyczny",
          "unit": "szt.",
          "default": 600,
          "minimum": 0,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        },
        {
          "id": "incoming",
          "label": "Otwarte dostawy",
          "unit": "szt.",
          "default": 100,
          "minimum": 0,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        },
        {
          "id": "reserved",
          "label": "Rezerwacje i zaległe zamówienia",
          "unit": "szt.",
          "default": 50,
          "minimum": 0,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "reorder",
          "formula": "ceil(daily*lead+buffer)",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "position",
          "formula": "onhand+incoming-reserved",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "shortfall",
          "formula": "max(0,reorder-position)",
          "unit": "szt.",
          "precision": 0
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie wyznacza optymalnej ilości zamówienia ani statystycznego poziomu obsługi."
    },
    "output": {
      "fields": [
        {
          "id": "reorder",
          "label": "Punkt zamówienia",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "position",
          "label": "Pozycja zapasu",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "shortfall",
          "label": "Brak do punktu zamówienia",
          "unit": "szt.",
          "precision": 0
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Punkt zamówienia = zużycie w czasie dostawy + bufor. Porównujemy z pozycją zapasu, nie tylko stanem fizycznym.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "reorder": 900,
            "position": 650,
            "shortfall": 250
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-zapas-bezpieczenstwa/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "koszt-etatu",
      "version": "1.0.0",
      "name": "Kalkulator pełnego kosztu stanowiska pracy",
      "category": "Rentowność",
      "description": "Policz koszt stanowiska na miesiąc i produktywną godzinę z własnych kosztów pracodawcy, wyposażenia i obsługi."
    },
    "input": {
      "fields": [
        {
          "id": "pay",
          "label": "Łączny koszt wynagrodzeń pracodawcy",
          "unit": "PLN/mies.",
          "default": 8500,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "equipment",
          "label": "Wyposażenie i licencje",
          "unit": "PLN/mies.",
          "default": 500,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "support",
          "label": "Koszty obsługi i miejsca pracy",
          "unit": "PLN/mies.",
          "default": 1000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "hours",
          "label": "Produktywne godziny miesięcznie",
          "unit": "h",
          "default": 120,
          "minimum": 0.01,
          "maximum": 744,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "monthly",
          "formula": "pay+equipment+support",
          "unit": "PLN/mies.",
          "precision": 2
        },
        {
          "id": "yearly",
          "formula": "monthly*12",
          "unit": "PLN/rok",
          "precision": 2
        },
        {
          "id": "rate",
          "formula": "monthly/hours",
          "unit": "PLN/h",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie wylicza podatków ani składek; wpisz rzeczywisty łączny koszt pracodawcy."
    },
    "output": {
      "fields": [
        {
          "id": "monthly",
          "label": "Pełny koszt miesięczny",
          "unit": "PLN/mies.",
          "precision": 2
        },
        {
          "id": "yearly",
          "label": "Koszt roczny przy stałych stawkach",
          "unit": "PLN/rok",
          "precision": 2
        },
        {
          "id": "rate",
          "label": "Koszt produktywnej godziny",
          "unit": "PLN/h",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Sumujemy koszty przypisane stanowisku i dzielimy przez produktywne godziny.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "monthly": 10000,
            "yearly": 120000,
            "rate": 83.3333333333
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-koszt-etatu/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "projekt-eac",
      "version": "1.0.0",
      "name": "Kalkulator EAC i kontroli budżetu projektu",
      "category": "Decyzje",
      "description": "Oceń wykonanie projektu za pomocą wartości wypracowanej, kosztów rzeczywistych, CPI, SPI i prognozy kosztu końcowego."
    },
    "input": {
      "fields": [
        {
          "id": "bac",
          "label": "Budżet bazowy projektu",
          "unit": "PLN",
          "default": 200000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "pv",
          "label": "Planowana wartość prac",
          "unit": "PLN",
          "default": 100000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "ev",
          "label": "Wartość wypracowana",
          "unit": "PLN",
          "default": 80000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "ac",
          "label": "Koszt rzeczywisty",
          "unit": "PLN",
          "default": 100000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "cpi",
          "formula": "ev/ac",
          "unit": "indeks",
          "precision": 3
        },
        {
          "id": "spi",
          "formula": "ev/pv",
          "unit": "indeks",
          "precision": 3
        },
        {
          "id": "eac",
          "formula": "bac/cpi",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "vac",
          "formula": "bac-eac",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "etc",
          "formula": "eac-ac",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "ev",
          "when": {
            "op": "gt",
            "args": [
              {
                "ref": "ev"
              },
              {
                "ref": "bac"
              }
            ]
          },
          "status": "MISMATCH",
          "message": "Wartość wypracowana przekracza budżet bazowy."
        },
        {
          "id": "pv",
          "when": {
            "op": "gt",
            "args": [
              {
                "ref": "pv"
              },
              {
                "ref": "bac"
              }
            ]
          },
          "status": "MISMATCH",
          "message": "Planowana wartość przekracza budżet bazowy."
        }
      ],
      "limitations": "Nie prognozuje daty zakończenia; wartości EV i PV muszą pochodzić z tej samej bazy i daty."
    },
    "output": {
      "fields": [
        {
          "id": "cpi",
          "label": "Wskaźnik CPI",
          "unit": "indeks",
          "precision": 3
        },
        {
          "id": "spi",
          "label": "Wskaźnik SPI",
          "unit": "indeks",
          "precision": 3
        },
        {
          "id": "eac",
          "label": "Prognoza kosztu końcowego",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "vac",
          "label": "Odchylenie od budżetu",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "etc",
          "label": "Pozostały koszt prognozowany",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "EAC = BAC / CPI przy założeniu utrzymania dotychczasowej efektywności kosztowej.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "cpi": 0.8,
            "spi": 0.8,
            "eac": 250000,
            "vac": -50000
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-projekt-eac/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "npv",
      "version": "1.0.0",
      "name": "Kalkulator NPV inwestycji 3-letniej",
      "category": "Decyzje",
      "description": "Porównaj nakład początkowy z trzema rocznymi przepływami netto. Policz NPV z własną stopą dyskontową."
    },
    "input": {
      "fields": [
        {
          "id": "initial",
          "label": "Nakład początkowy",
          "unit": "PLN",
          "default": 100000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "y1",
          "label": "Przepływ netto rok 1",
          "unit": "PLN",
          "default": 40000,
          "minimum": -1000000000,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "y2",
          "label": "Przepływ netto rok 2",
          "unit": "PLN",
          "default": 40000,
          "minimum": -1000000000,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "y3",
          "label": "Przepływ netto rok 3",
          "unit": "PLN",
          "default": 40000,
          "minimum": -1000000000,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "rate",
          "label": "Stopa dyskontowa",
          "unit": "%",
          "default": 10,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "factor",
          "formula": "1+rate/100",
          "unit": "indeks",
          "precision": 4
        },
        {
          "id": "pv",
          "formula": "y1/factor+y2/(factor*factor)+y3/(factor*factor*factor)",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "npv",
          "formula": "pv-initial",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Trzy lata, bez wartości końcowej poza wpisanymi przepływami; nie jest rekomendacją inwestycyjną."
    },
    "output": {
      "fields": [
        {
          "id": "factor",
          "label": "Czynnik dyskontowy",
          "unit": "indeks",
          "precision": 4
        },
        {
          "id": "pv",
          "label": "Wartość bieżąca przepływów",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "npv",
          "label": "Wartość bieżąca netto",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Przepływy na koniec każdego roku dyskontujemy oddzielnie. NPV odejmuje nakład w chwili zero.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "npv": -525.9203606311
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-npv/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "cac-ltv",
      "version": "1.0.0",
      "name": "Kalkulator CAC i LTV abonamentu",
      "category": "Rentowność",
      "description": "Policz koszt pozyskania klienta, uproszczone LTV marży brutto i czas zwrotu CAC w biznesie abonamentowym."
    },
    "input": {
      "fields": [
        {
          "id": "acq",
          "label": "Koszt pozyskania klientów w okresie",
          "unit": "PLN",
          "default": 10000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "new",
          "label": "Nowi klienci w okresie",
          "unit": "szt.",
          "default": 100,
          "minimum": 1,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        },
        {
          "id": "arpu",
          "label": "Miesięczny przychód na klienta",
          "unit": "PLN/mies.",
          "default": 49,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "gm",
          "label": "Marża brutto",
          "unit": "%",
          "default": 80,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        },
        {
          "id": "churn",
          "label": "Miesięczny churn klientów",
          "unit": "%",
          "default": 5,
          "minimum": 0.01,
          "maximum": 100,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "cac",
          "formula": "acq/new",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "contribution",
          "formula": "arpu*gm/100",
          "unit": "PLN/mies.",
          "precision": 2
        },
        {
          "id": "ltv",
          "formula": "contribution/(churn/100)",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "ratio",
          "formula": "if_positive_div(ltv,cac)",
          "unit": "indeks",
          "precision": 2
        },
        {
          "id": "payback",
          "formula": "if_positive_div(cac,contribution)",
          "unit": "mies.",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Koszty i nowi klienci muszą dotyczyć tego samego okresu; model nie uwzględnia ekspansji kont."
    },
    "output": {
      "fields": [
        {
          "id": "cac",
          "label": "CAC",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "contribution",
          "label": "Miesięczna marża na klienta",
          "unit": "PLN/mies.",
          "precision": 2
        },
        {
          "id": "ltv",
          "label": "Uproszczone LTV marży",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "ratio",
          "label": "LTV / CAC",
          "unit": "indeks",
          "precision": 2
        },
        {
          "id": "payback",
          "label": "Zwrot CAC",
          "unit": "mies.",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "LTV zakłada stały miesięczny churn i marżę oraz pomija dyskonto. CAC dzielimy przez miesięczną marżę.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "cac": 100,
            "ltv": 784,
            "ratio": 7.84
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-cac-ltv/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "cena-rabatu",
      "version": "1.0.0",
      "name": "Kalkulator wolumenu po rabacie",
      "category": "Rentowność",
      "description": "Policz, ile dodatkowych sztuk trzeba sprzedać po rabacie, aby utrzymać dotychczasową marżę pokrycia."
    },
    "input": {
      "fields": [
        {
          "id": "price",
          "label": "Cena jednostkowa przed rabatem",
          "unit": "PLN/szt.",
          "default": 100,
          "minimum": 0.01,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "cost",
          "label": "Koszt zmienny jednostkowy",
          "unit": "PLN/szt.",
          "default": 60,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "discount",
          "label": "Rabat",
          "unit": "%",
          "default": 10,
          "minimum": 0,
          "maximum": 99,
          "type": "number",
          "required": true
        },
        {
          "id": "qty",
          "label": "Dotychczasowy wolumen",
          "unit": "szt.",
          "default": 1000,
          "minimum": 1,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "old",
          "formula": "(price-cost)*qty",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "newprice",
          "formula": "price*(1-discount/100)",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "required",
          "formula": "ceil(old/(newprice-cost))",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "increase",
          "formula": "(required/qty-1)*100",
          "unit": "%",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "loss",
          "when": {
            "op": "lte",
            "args": [
              {
                "op": "mul",
                "args": [
                  {
                    "ref": "price"
                  },
                  {
                    "op": "sub",
                    "args": [
                      1,
                      {
                        "op": "div",
                        "args": [
                          {
                            "ref": "discount"
                          },
                          100
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "ref": "cost"
              }
            ]
          },
          "status": "MISMATCH",
          "message": "Cena po rabacie musi przekraczać koszt zmienny."
        }
      ],
      "limitations": "Nie uwzględnia elastyczności popytu, progów kosztowych ani zmiany kosztów stałych."
    },
    "output": {
      "fields": [
        {
          "id": "old",
          "label": "Dotychczasowa marża pokrycia",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "newprice",
          "label": "Cena po rabacie",
          "unit": "PLN/szt.",
          "precision": 4
        },
        {
          "id": "required",
          "label": "Wymagany nowy wolumen",
          "unit": "szt.",
          "precision": 0
        },
        {
          "id": "increase",
          "label": "Wymagany wzrost wolumenu",
          "unit": "%",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Zachowujemy całkowitą marżę pokrycia przy niezmienionym koszcie zmiennym.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "old": 40000,
            "required": 1334,
            "increase": 33.4
          },
          "status": "MATCH"
        },
        {
          "inputs": {
            "discount": 40
          },
          "status": "MISMATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-cena-rabatu/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "odchylenie-budzetu",
      "version": "1.0.0",
      "name": "Analiza odchylenia budżetu",
      "category": "Rentowność",
      "description": "Porównaj planowany i rzeczywisty koszt okresu, wyznacz odchylenie kwotowe i procentowe."
    },
    "input": {
      "fields": [
        {
          "id": "plan",
          "label": "Koszt planowany",
          "unit": "PLN",
          "default": 100000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "actual",
          "label": "Koszt rzeczywisty",
          "unit": "PLN",
          "default": 112000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "variance",
          "formula": "actual-plan",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "percent",
          "formula": "(actual-plan)/plan*100",
          "unit": "%",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Porównuj identyczny zakres, okres i sposób alokacji. Nie wyjaśnia przyczyn odchylenia."
    },
    "output": {
      "fields": [
        {
          "id": "variance",
          "label": "Odchylenie kosztu",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "percent",
          "label": "Odchylenie procentowe",
          "unit": "%",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Odchylenie dodatnie oznacza przekroczenie planu kosztowego.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "variance": 12000,
            "percent": 12
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-odchylenie-budzetu/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "rentownosc-klienta",
      "version": "1.0.0",
      "name": "Kalkulator rentowności klienta B2B",
      "category": "Rentowność",
      "description": "Oceń wynik klienta po rabatach, kosztach produktu, obsługi i dostaw w jednym okresie."
    },
    "input": {
      "fields": [
        {
          "id": "sales",
          "label": "Sprzedaż netto po rabatach",
          "unit": "PLN",
          "default": 50000,
          "minimum": 1,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "goods",
          "label": "Koszt sprzedanych produktów",
          "unit": "PLN",
          "default": 30000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "service",
          "label": "Koszt obsługi",
          "unit": "PLN",
          "default": 8000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "delivery",
          "label": "Koszt dostaw i zwrotów",
          "unit": "PLN",
          "default": 3000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "profit",
          "formula": "sales-goods-service-delivery",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "margin",
          "formula": "profit/sales*100",
          "unit": "%",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie obejmuje kosztów nieprzypisanych i podatków. Nie licz dostaw dwa razy."
    },
    "output": {
      "fields": [
        {
          "id": "profit",
          "label": "Wynik na kliencie",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "margin",
          "label": "Marża po kosztach obsługi",
          "unit": "%",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Odejmujemy koszty przypisane klientowi od sprzedaży netto po rabatach.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "profit": 9000,
            "margin": 18
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-rentownosc-klienta/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "koszt-kapitalu-obrotowego",
      "version": "1.0.0",
      "name": "Koszt finansowania kapitału obrotowego",
      "category": "Rentowność",
      "description": "Oszacuj koszt finansowania środków zamrożonych w zapasach i należnościach w danym okresie."
    },
    "input": {
      "fields": [
        {
          "id": "capital",
          "label": "Finansowany kapitał",
          "unit": "PLN",
          "default": 160000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "rate",
          "label": "Roczna stopa finansowania",
          "unit": "%",
          "default": 10,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        },
        {
          "id": "days",
          "label": "Okres finansowania",
          "unit": "dni",
          "default": 90,
          "minimum": 0,
          "maximum": 3650,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "interest",
          "formula": "capital*rate/100*days/365",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie uwzględnia prowizji, kapitalizacji ani zmiany salda; nie jest ofertą kredytu."
    },
    "output": {
      "fields": [
        {
          "id": "interest",
          "label": "Modelowy koszt finansowania",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Model odsetek prostych z bazą 365 dni.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "interest": 3945.205479452
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-koszt-kapitalu-obrotowego/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "eoq",
      "version": "1.0.0",
      "name": "Koszt partii zamówienia – model EOQ",
      "category": "Decyzje",
      "description": "Porównaj koszty zamawiania i utrzymania zapasu dla wybranej partii według modelu EOQ."
    },
    "input": {
      "fields": [
        {
          "id": "demand",
          "label": "Roczny popyt",
          "unit": "szt.",
          "default": 12000,
          "minimum": 1,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        },
        {
          "id": "order",
          "label": "Koszt złożenia zamówienia",
          "unit": "PLN",
          "default": 100,
          "minimum": 0.01,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "holding",
          "label": "Roczny koszt utrzymania sztuki",
          "unit": "PLN/szt.",
          "default": 12,
          "minimum": 0.01,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "lot",
          "label": "Porównywana wielkość partii",
          "unit": "szt.",
          "default": 500,
          "minimum": 1,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "orders",
          "formula": "demand/lot",
          "unit": "indeks",
          "precision": 2
        },
        {
          "id": "ordering",
          "formula": "orders*order",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "storage",
          "formula": "lot/2*holding",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "total",
          "formula": "ordering+storage",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "balance",
          "formula": "ordering/storage",
          "unit": "indeks",
          "precision": 3
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "W tej wersji nie wyznaczamy automatycznie pierwiastka EOQ. Model zakłada stały popyt, dostawy jednorazowe i brak rabatów ilościowych."
    },
    "output": {
      "fields": [
        {
          "id": "orders",
          "label": "Liczba zamówień rocznie",
          "unit": "indeks",
          "precision": 2
        },
        {
          "id": "ordering",
          "label": "Roczny koszt zamawiania",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "storage",
          "label": "Roczny koszt zapasu cyklicznego",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "total",
          "label": "Łączny koszt partii",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "balance",
          "label": "Stosunek kosztów zamawiania do utrzymania",
          "unit": "indeks",
          "precision": 3
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Porównanie kosztów dla zadanej partii. Optimum EOQ znajduje się w pobliżu punktu, w którym oba składniki są równe; testuj partie w Scenario Lab.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "ordering": 2400,
            "storage": 3000,
            "total": 5400,
            "balance": 0.8
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-eoq/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "koszt-reklamacji",
      "version": "1.0.0",
      "name": "Kalkulator kosztu reklamacji i wad",
      "category": "Wyceniarki",
      "description": "Policz koszt braków, poprawek, reklamacji i dodatkowych operacji jakościowych."
    },
    "input": {
      "fields": [
        {
          "id": "scrap",
          "label": "Liczba sztuk złomowanych",
          "unit": "szt.",
          "default": 50,
          "minimum": 0,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        },
        {
          "id": "unit",
          "label": "Koszt sztuki złomowanej",
          "unit": "PLN/szt.",
          "default": 30,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "rework",
          "label": "Liczba sztuk poprawianych",
          "unit": "szt.",
          "default": 100,
          "minimum": 0,
          "maximum": 10000000,
          "type": "integer",
          "required": true
        },
        {
          "id": "fix",
          "label": "Koszt poprawki sztuki",
          "unit": "PLN/szt.",
          "default": 8,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "claims",
          "label": "Koszt reklamacji i transportu",
          "unit": "PLN",
          "default": 500,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "total",
          "formula": "scrap*unit+rework*fix+claims",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie obejmuje utraconego zaufania, potencjalnej utraty klientów ani kosztów prewencji."
    },
    "output": {
      "fields": [
        {
          "id": "total",
          "label": "Łączny koszt wad",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Sumujemy rozłączne koszty wad, poprawek i reklamacji.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "total": 2800
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-koszt-reklamacji/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "koszt-spotkania",
      "version": "1.0.0",
      "name": "Kalkulator kosztu spotkań zespołu",
      "category": "Wyceniarki",
      "description": "Oceń koszt czasu uczestników spotkań i przygotowania w miesiącu."
    },
    "input": {
      "fields": [
        {
          "id": "people",
          "label": "Liczba uczestników",
          "unit": "szt.",
          "default": 6,
          "minimum": 1,
          "maximum": 1000,
          "type": "integer",
          "required": true
        },
        {
          "id": "rate",
          "label": "Średni pełny koszt godziny",
          "unit": "PLN/h",
          "default": 100,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "duration",
          "label": "Czas spotkania",
          "unit": "min",
          "default": 45,
          "minimum": 1,
          "maximum": 1440,
          "type": "number",
          "required": true
        },
        {
          "id": "frequency",
          "label": "Spotkania w miesiącu",
          "unit": "szt.",
          "default": 8,
          "minimum": 0,
          "maximum": 10000,
          "type": "integer",
          "required": true
        },
        {
          "id": "prep",
          "label": "Łączny czas przygotowania na spotkanie",
          "unit": "h",
          "default": 1,
          "minimum": 0,
          "maximum": 1000,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "hours",
          "formula": "(people*duration/60+prep)*frequency",
          "unit": "h",
          "precision": 2
        },
        {
          "id": "monthly",
          "formula": "hours*rate",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "annual",
          "formula": "monthly*12",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie wycenia wartości spotkania ani nie przesądza o jego zbędności."
    },
    "output": {
      "fields": [
        {
          "id": "hours",
          "label": "Łączny czas zespołu",
          "unit": "h",
          "precision": 2
        },
        {
          "id": "monthly",
          "label": "Koszt miesięczny",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "annual",
          "label": "Koszt roczny przy stałej częstotliwości",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Czas uczestników i przygotowania mnożymy przez częstotliwość oraz średni koszt godziny.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "hours": 44,
            "monthly": 4400,
            "annual": 52800
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-koszt-spotkania/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "ryzyko-emv",
      "version": "1.0.0",
      "name": "Kalkulator ryzyka projektu EMV",
      "category": "Decyzje",
      "description": "Policz oczekiwaną wartość kosztową trzech ryzyk projektu i porównaj ją z budżetem rezerwy."
    },
    "input": {
      "fields": [
        {
          "id": "p1",
          "label": "Prawdopodobieństwo ryzyka A",
          "unit": "%",
          "default": 20,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        },
        {
          "id": "c1",
          "label": "Skutek kosztowy A",
          "unit": "PLN",
          "default": 30000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "p2",
          "label": "Prawdopodobieństwo ryzyka B",
          "unit": "%",
          "default": 10,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        },
        {
          "id": "c2",
          "label": "Skutek kosztowy B",
          "unit": "PLN",
          "default": 50000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "p3",
          "label": "Prawdopodobieństwo ryzyka C",
          "unit": "%",
          "default": 50,
          "minimum": 0,
          "maximum": 100,
          "type": "number",
          "required": true
        },
        {
          "id": "c3",
          "label": "Skutek kosztowy C",
          "unit": "PLN",
          "default": 4000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "reserve",
          "label": "Planowana rezerwa",
          "unit": "PLN",
          "default": 10000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "emv",
          "formula": "(p1*c1+p2*c2+p3*c3)/100",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "gap",
          "formula": "max(0,emv-reserve)",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [],
      "limitations": "Nie jest kwantylem ryzyka ani gwarancją wystarczającej rezerwy; nie modeluje ogonów i zależności skutków."
    },
    "output": {
      "fields": [
        {
          "id": "emv",
          "label": "Oczekiwana wartość kosztowa",
          "unit": "PLN",
          "precision": 2
        },
        {
          "id": "gap",
          "label": "Niedobór względem EMV",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "EMV to suma iloczynów prawdopodobieństw i skutków kosztowych.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "emv": 13000,
            "gap": 3000
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-ryzyko-emv/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  },
  {
    "schema_version": "1.0.0",
    "identity": {
      "id": "koszt-opoznienia",
      "version": "1.0.0",
      "name": "Kalkulator kosztu opóźnienia projektu",
      "category": "Decyzje",
      "description": "Oszacuj ekonomiczny koszt opóźnienia wdrożenia na podstawie utraconej marży, dodatkowych wydatków i odzyskanych korzyści."
    },
    "input": {
      "fields": [
        {
          "id": "days",
          "label": "Dni opóźnienia",
          "unit": "dni",
          "default": 30,
          "minimum": 0,
          "maximum": 3650,
          "type": "number",
          "required": true
        },
        {
          "id": "daily",
          "label": "Utracona marża pokrycia dziennie",
          "unit": "PLN/dzień",
          "default": 1000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "extra",
          "label": "Dodatkowe wydatki",
          "unit": "PLN",
          "default": 5000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        },
        {
          "id": "recovered",
          "label": "Korzyści odzyskane później (wartość w tym samym ujęciu)",
          "unit": "PLN",
          "default": 10000,
          "minimum": 0,
          "maximum": 1000000000,
          "type": "number",
          "required": true
        }
      ],
      "special": {}
    },
    "formula": {
      "model": "deterministic",
      "expressions": [
        {
          "id": "loss",
          "formula": "days*daily+extra-recovered",
          "unit": "PLN",
          "precision": 2
        }
      ]
    },
    "qualification": {
      "states": [
        "MATCH",
        "MISMATCH",
        "UNKNOWN",
        "REVIEW"
      ],
      "rules": [
        {
          "id": "recovery",
          "when": {
            "op": "gt",
            "args": [
              {
                "ref": "recovered"
              },
              {
                "op": "mul",
                "args": [
                  {
                    "ref": "days"
                  },
                  {
                    "ref": "daily"
                  }
                ]
              }
            ]
          },
          "status": "REVIEW",
          "message": "Odzyskane korzyści przekraczają utraconą marżę; sprawdź założenia."
        }
      ],
      "limitations": "Nie modeluje dyskonta ani skutków reputacyjnych. Nie myl przesuniętych przychodów z utraconą marżą."
    },
    "output": {
      "fields": [
        {
          "id": "loss",
          "label": "Modelowy koszt opóźnienia",
          "unit": "PLN",
          "precision": 2
        }
      ],
      "formats": [
        "csv",
        "json"
      ]
    },
    "evidence": {
      "methodology": "Utracona marża plus dodatkowe wydatki minus odzyskane korzyści.",
      "source_type": "author_model",
      "test_cases": [
        {
          "inputs": {},
          "expected": {
            "loss": 25000
          },
          "status": "MATCH"
        }
      ]
    },
    "commercial": {
      "access": "free",
      "paid_features_available": false
    },
    "action": {
      "mode": "human_web",
      "path": "/narzedzie-koszt-opoznienia/",
      "agent_execution": false
    },
    "governance": {
      "execution": "browser",
      "external_api": false,
      "privacy": "local processing; explicit local project save",
      "schema_version": "1.0.0"
    }
  }
]
