"""Gemeinsames Evidence-Tagging für Registry-Einträge."""

from placeholder_registry import EvidenceType, PlaceholderMetadata

STANDARD_FIELDS = (
    "key", "category", "description", "resolver_module", "resolver_function",
    "data_layer_module", "data_layer_function", "source_tables", "semantic_contract",
    "unit", "time_window", "output_type", "placeholder_type", "format_hint",
    "example_output", "minimum_data_requirements", "confidence_logic",
    "missing_value_policy", "layer_1_decision", "layer_2a_decision",
    "layer_2b_reuse_possible", "architecture_alignment", "issue_53_alignment",
)


def tag_standard_evidence(meta: PlaceholderMetadata) -> None:
    for field in STANDARD_FIELDS:
        meta.set_evidence(field, EvidenceType.CODE_DERIVED)
    meta.set_evidence("business_meaning", EvidenceType.DRAFT_DERIVED)
    meta.set_evidence("known_limitations", EvidenceType.MIXED)
