{
  "case_origin": "Synthetische DEVELOPMENT-Eingaben: Basis aus dem historischen Luna-Modelltest valid_input; gezielte Einzelvariation und Auslassungsfall von der Sichtung abgeleitet. Keine unabhängig erstellten oder fachlich adjudizierten Gold-/Heldoutfälle.",
  "cases": [
    {
      "case_id": "baseline",
      "changes_from_baseline": [],
      "input": {
        "farm": {
          "o6_21": {
            "all_eligible_animals_participating": true,
            "animals": [
              {
                "animal_id": "r1",
                "weight_kg": 501
              }
            ],
            "application_submitted_by_december_31": true,
            "average_fundable_rgve": 5,
            "compost_surcharge_requested": false,
            "fundable_rgve_total": 5,
            "health_service_participation": false,
            "housing_periods_documented": true,
            "milk_delivery_to_dairy": false,
            "minimum_participation_met": true,
            "overlap_with_alp_or_weide": false,
            "participating_categories": [
              "male_from_half_year"
            ],
            "qplus_rind_or_comparable": false,
            "stall": {
              "group_housing": true,
              "individual_housing_littered": true,
              "littered_lying_area_percent": 40,
              "littered_system": true,
              "lying_area_m2_per_animal": 1.68,
              "lying_area_soft_and_dry": true,
              "perforation_percent": 0,
              "structural_requirements_met": true,
              "total_area_m2_per_animal": 4.2,
              "usable_area_definition_met": true
            },
            "year": 2026
          }
        }
      },
      "input_sha256": "336af47ddf7fd7e4925009e7dd651f406b118bc5be81ced5e7c31852fdd0a5e7",
      "opa_result": {
        "result": [
          {
            "expressions": [
              {
                "location": {
                  "col": 1,
                  "row": 1
                },
                "text": "data.policy.o6_21.decision",
                "value": {
                  "application": "valid",
                  "contract_year": "one_year_and_auto_renewing",
                  "eligible": true,
                  "premium_eur": 972,
                  "violations": []
                }
              }
            ]
          }
        ]
      },
      "output": {
        "application": "valid",
        "contract_year": "one_year_and_auto_renewing",
        "eligible": true,
        "premium_eur": 972,
        "violations": []
      },
      "output_changed_from_baseline": false,
      "purpose": "Native synthetische Modelltestbasis getrennt vom App-Adapter ausführen; Ergebnis als Kandidatenbefund protokollieren.",
      "status": "defined"
    },
    {
      "case_id": "variation",
      "changes_from_baseline": [
        {
          "after": {
            "present": true,
            "value": 4.19
          },
          "before": {
            "present": true,
            "value": 4.2
          },
          "path": "/farm/o6_21/stall/total_area_m2_per_animal"
        }
      ],
      "input": {
        "farm": {
          "o6_21": {
            "all_eligible_animals_participating": true,
            "animals": [
              {
                "animal_id": "r1",
                "weight_kg": 501
              }
            ],
            "application_submitted_by_december_31": true,
            "average_fundable_rgve": 5,
            "compost_surcharge_requested": false,
            "fundable_rgve_total": 5,
            "health_service_participation": false,
            "housing_periods_documented": true,
            "milk_delivery_to_dairy": false,
            "minimum_participation_met": true,
            "overlap_with_alp_or_weide": false,
            "participating_categories": [
              "male_from_half_year"
            ],
            "qplus_rind_or_comparable": false,
            "stall": {
              "group_housing": true,
              "individual_housing_littered": true,
              "littered_lying_area_percent": 40,
              "littered_system": true,
              "lying_area_m2_per_animal": 1.68,
              "lying_area_soft_and_dry": true,
              "perforation_percent": 0,
              "structural_requirements_met": true,
              "total_area_m2_per_animal": 4.19,
              "usable_area_definition_met": true
            },
            "year": 2026
          }
        }
      },
      "input_sha256": "dea0fccbb95238f977e296e7ed5166e1b5f6353885b5cf4a19cb4d3a85fc88b6",
      "opa_result": {
        "result": [
          {
            "expressions": [
              {
                "location": {
                  "col": 1,
                  "row": 1
                },
                "text": "data.policy.o6_21.decision",
                "value": {
                  "application": "valid",
                  "contract_year": "one_year_and_auto_renewing",
                  "eligible": false,
                  "premium_eur": 972,
                  "violations": [
                    {
                      "reason": "Der erforderliche Mindestplatzbedarf je Tier ist nicht erfüllt.",
                      "rule_id": "O621-SPACE"
                    }
                  ]
                }
              }
            ]
          }
        ]
      },
      "output": {
        "application": "valid",
        "contract_year": "one_year_and_auto_renewing",
        "eligible": false,
        "premium_eur": 972,
        "violations": [
          {
            "reason": "Der erforderliche Mindestplatzbedarf je Tier ist nicht erfüllt.",
            "rule_id": "O621-SPACE"
          }
        ]
      },
      "output_changed_from_baseline": true,
      "purpose": "Einzige Änderung: nutzbare Gesamtfläche von 4,20 auf 4,19 m²/Tier bei 501 kg; Reaktion der modellierten Platzbedarfstabelle beobachten.",
      "status": "defined"
    },
    {
      "case_id": "missing_fact",
      "changes_from_baseline": [
        {
          "after": {
            "present": false
          },
          "before": {
            "present": true,
            "value": true
          },
          "path": "/farm/o6_21/stall/structural_requirements_met"
        }
      ],
      "input": {
        "farm": {
          "o6_21": {
            "all_eligible_animals_participating": true,
            "animals": [
              {
                "animal_id": "r1",
                "weight_kg": 501
              }
            ],
            "application_submitted_by_december_31": true,
            "average_fundable_rgve": 5,
            "compost_surcharge_requested": false,
            "fundable_rgve_total": 5,
            "health_service_participation": false,
            "housing_periods_documented": true,
            "milk_delivery_to_dairy": false,
            "minimum_participation_met": true,
            "overlap_with_alp_or_weide": false,
            "participating_categories": [
              "male_from_half_year"
            ],
            "qplus_rind_or_comparable": false,
            "stall": {
              "group_housing": true,
              "individual_housing_littered": true,
              "littered_lying_area_percent": 40,
              "littered_system": true,
              "lying_area_m2_per_animal": 1.68,
              "lying_area_soft_and_dry": true,
              "perforation_percent": 0,
              "total_area_m2_per_animal": 4.2,
              "usable_area_definition_met": true
            },
            "year": 2026
          }
        }
      },
      "input_sha256": "633f9fc3d39d35f317b0bf3fba215a8b24399228fc24973146a61e6ea9cc5f5f",
      "opa_result": {
        "result": [
          {
            "expressions": [
              {
                "location": {
                  "col": 1,
                  "row": 1
                },
                "text": "data.policy.o6_21.decision",
                "value": {
                  "application": "valid",
                  "contract_year": "one_year_and_auto_renewing",
                  "eligible": false,
                  "premium_eur": 972,
                  "violations": [
                    {
                      "reason": "Die baulichen Mindestmerkmale des Stalls sind nicht vollständig nachgewiesen.",
                      "rule_id": "O621-STALL-DEFINITION"
                    }
                  ]
                }
              }
            ]
          }
        ]
      },
      "output": {
        "application": "valid",
        "contract_year": "one_year_and_auto_renewing",
        "eligible": false,
        "premium_eur": 972,
        "violations": [
          {
            "reason": "Die baulichen Mindestmerkmale des Stalls sind nicht vollständig nachgewiesen.",
            "rule_id": "O621-STALL-DEFINITION"
          }
        ]
      },
      "output_changed_from_baseline": true,
      "purpose": "Einzige Auslassung: structural_requirements_met; prüfen, ob fehlender baulicher Nachweis ausdrücklich als unbekannt oder als Verletzung erscheint.",
      "status": "defined"
    }
  ],
  "compile": {
    "errors": [],
    "status": "compiled"
  },
  "input_contract_note": "Native Eingabe farm.o6_21 mit Jahr 2026, teilnehmenden Kategorien, durchschnittlichen/förderbaren RGVE und Stall-/Nachweisfeldern. animals[].weight_kg in kg; total_area_m2_per_animal und lying_area_m2_per_animal in m²/Tier, Prozentangaben als Zahlen. Allgemeine Betriebsdaten werden nicht aus dem App-Profil übersetzt.",
  "inventory": {
    "independent_reference_case_status": "not_adjudicated",
    "profile_proposal_count": 63,
    "rule_count": 40,
    "rule_type_counts": {
      "application_deadline": 1,
      "area_definition": 1,
      "calculation": 3,
      "combination": 1,
      "conditional_requirement": 2,
      "consequence": 1,
      "contract_consequence": 1,
      "contract_duration": 1,
      "control_consequence": 1,
      "conversion_table": 1,
      "deadline": 1,
      "documentation": 2,
      "duration": 1,
      "eligibility_threshold": 1,
      "eligible_categories": 1,
      "exception": 2,
      "exclusion": 1,
      "general_access": 1,
      "general_eligibility": 1,
      "housing_requirement": 1,
      "location_requirement": 1,
      "mixed_group_area": 1,
      "notification": 1,
      "optional_surcharge": 1,
      "optional_surcharge_exception": 1,
      "premium_calculation": 1,
      "premium_modulation": 1,
      "quality_requirement": 1,
      "scope": 1,
      "special_area_calculation": 1,
      "structural_requirement": 2,
      "threshold": 1,
      "transfer": 1,
      "withdrawal": 1
    },
    "source_count": 8,
    "source_coverage_claims": [
      {
        "disposition_counts": {
          "rules": 13
        },
        "item_count": 13,
        "review_scope": "full_document",
        "source_id": "o6_21"
      },
      {
        "disposition_counts": {
          "not_rule": 5,
          "rules": 8
        },
        "item_count": 13,
        "review_scope": "full_document",
        "source_id": "o6_general"
      },
      {
        "disposition_counts": {
          "rules": 7
        },
        "item_count": 7,
        "review_scope": "targeted_sections",
        "source_id": "srl_oepul_2023"
      },
      {
        "disposition_counts": {
          "not_rule": 1,
          "rules": 2
        },
        "item_count": 3,
        "review_scope": "targeted_sections",
        "source_id": "srl_oepul_2023_anhaenge"
      },
      {
        "disposition_counts": {
          "not_rule": 1
        },
        "item_count": 1,
        "review_scope": "full_document",
        "source_id": "notice_2026_05_22"
      },
      {
        "disposition_counts": {
          "not_rule": 1
        },
        "item_count": 1,
        "review_scope": "full_document",
        "source_id": "notice_2026_06_12"
      },
      {
        "disposition_counts": {
          "not_rule": 1
        },
        "item_count": 1,
        "review_scope": "full_document",
        "source_id": "notice_2026_08_05"
      },
      {
        "disposition_counts": {
          "not_rule": 1
        },
        "item_count": 1,
        "review_scope": "full_document",
        "source_id": "notice_2026_08_12"
      }
    ],
    "static_policy_input_paths": [
      "input.farm.o6_21",
      "input.farm.o6_21.all_eligible_animals_participating",
      "input.farm.o6_21.animals",
      "input.farm.o6_21.application_submitted_by_december_31",
      "input.farm.o6_21.average_fundable_rgve",
      "input.farm.o6_21.calf_social_contact",
      "input.farm.o6_21.calves_under_21_days_individually_housed",
      "input.farm.o6_21.compost",
      "input.farm.o6_21.compost.additional_organic_material_nondisregarded",
      "input.farm.o6_21.compost.all_solid_manure_in_piles",
      "input.farm.o6_21.compost.compost_barn",
      "input.farm.o6_21.compost.composting_process",
      "input.farm.o6_21.compost.minimum_interval_days",
      "input.farm.o6_21.compost.mode",
      "input.farm.o6_21.compost.napv_compliant",
      "input.farm.o6_21.compost.records_complete",
      "input.farm.o6_21.compost.turning_equipment_available_or_proven",
      "input.farm.o6_21.compost.turns",
      "input.farm.o6_21.compost_surcharge_requested",
      "input.farm.o6_21.cow_count",
      "input.farm.o6_21.cow_group_area_calculated",
      "input.farm.o6_21.fundable_rgve_total",
      "input.farm.o6_21.health_service_participation",
      "input.farm.o6_21.housing_periods_documented",
      "input.farm.o6_21.individual_housing_days",
      "input.farm.o6_21.individual_housing_records_complete",
      "input.farm.o6_21.milk_delivery_to_dairy",
      "input.farm.o6_21.minimum_participation_met",
      "input.farm.o6_21.noncompliant_animals_count",
      "input.farm.o6_21.noncompliant_animals_reported_immediately",
      "input.farm.o6_21.open_stall",
      "input.farm.o6_21.overlap_with_alp_or_weide",
      "input.farm.o6_21.participating_categories",
      "input.farm.o6_21.qplus_rind_or_comparable",
      "input.farm.o6_21.shared_group",
      "input.farm.o6_21.shared_group_area_calculated_for_all",
      "input.farm.o6_21.stall",
      "input.farm.o6_21.stall.group_housing",
      "input.farm.o6_21.stall.hard_surface",
      "input.farm.o6_21.stall.individual_housing_littered",
      "input.farm.o6_21.stall.litter_depth_cm",
      "input.farm.o6_21.stall.littered_lying_area_percent",
      "input.farm.o6_21.stall.littered_system",
      "input.farm.o6_21.stall.lying_area_m2_per_animal",
      "input.farm.o6_21.stall.lying_area_soft_and_dry",
      "input.farm.o6_21.stall.open_stall_requirements_met",
      "input.farm.o6_21.stall.perforation_percent",
      "input.farm.o6_21.stall.structural_requirements_met",
      "input.farm.o6_21.stall.total_area_m2_per_animal",
      "input.farm.o6_21.stall.usable_area_definition_met",
      "input.farm.o6_21.stall_sketch_and_occupancy_plan_available",
      "input.farm.o6_21.year"
    ]
  },
  "measure_id": "o6_21",
  "open_dependencies": [
    "Exakt 500 kg ist in notes/assumptions.md auslegungsbedürftig; die Vorschau nutzt 501 kg und beansprucht kein Grenzfall-Sollurteil.",
    "Qplus/vergleichbare Programme, besondere Offenstallbedingungen und Kompostierungsvarianten benötigen unabhängig bestätigte Tatsachen-/Rechtsgrundlagen.",
    "Allgemeine Zugangsvoraussetzungen und Jahres-/Kombinationsbezug sind nicht vollständig aus dem App-Profil abgeleitet.",
    "Fehlende Angaben und rechnerische Prämie sind im nativen Vertrag nicht sauber von fachlicher Freigabe getrennt."
  ],
  "output_contract_note": "decision liefert eligible, konkrete violations, application/contract_year und premium_eur. Die Prämienformel bleibt auch bei Verletzungen ausführbar; Betrag ist deshalb eine rechnerische Indikation, keine Freigabe. Antrag-/Vertragsstatus sind separate Felder und nicht vollständig Bestandteil von eligible; allgemeine Förderbedingungen bleiben außerhalb des Teilurteils.",
  "query": "data.policy.o6_21.decision",
  "references": [
    {
      "detail": "Nativer Package-/Querypfad und tatsächlich konsumierte Eingabefelder; keine neue fachliche Regel hinzugefügt.",
      "path": "runs/v2-o6_21-luna-high-20261005/workspace/policy/o6_21.rego"
    },
    {
      "detail": "Herkunft der synthetischen Entwicklungsbasis und Modelltest-Beispiele zu Mindest-/Grenzwertreaktionen; keine unabhängige Sollreferenz.",
      "path": "runs/v2-o6_21-luna-high-20261005/workspace/tests/o6_21_test.rego"
    },
    {
      "detail": "Historischer Datenkatalog für die vorhandenen Kategorien, Tabellen, Prämien und/oder Kombinationen.",
      "path": "runs/v2-o6_21-luna-high-20261005/workspace/data/o6_21_tables.json"
    },
    {
      "detail": "Vom historischen Kandidaten dokumentierte Eingabe-, Quellen- und Auslegungsgrenzen.",
      "path": "runs/v2-o6_21-luna-high-20261005/workspace/notes/assumptions.md"
    }
  ],
  "run_id": "v2-o6_21-luna-high-20261005"
}
