{
  "contract_version": "gab_266_contract_v1",
  "gab_id": "GAB-266",
  "canonical_name": "ComprehensionLearningReformulation",
  "module_owner": "EdTechComprehensionLearning",
  "renderer_key": "text_cta",
  "required_fields": [
    "gab_id",
    "reformulation_id",
    "title",
    "instruction_text",
    "action_verb",
    "data_label",
    "format_expected"
  ],
  "optional_fields": [
    "subtitle",
    "instruction_scope",
    "instruction_context_label",
    "action_verb_desc",
    "data_desc",
    "format_desc",
    "tip_title",
    "tip_text",
    "primary_cta",
    "secondary_cta",
    "icon",
    "fallback_text_summary"
  ],
  "field_types": {
    "reformulation_id": "string — identifiant unique de la reformulation (slug kebab-case)",
    "instruction_scope": "enum['math_problem','text_question','experiment_protocol','writing_task']",
    "instruction_text": "string — texte brut de la consigne à décortiquer",
    "action_verb": "string — verbe d'action extrait de la consigne",
    "data_label": "string — résumé des données fournies",
    "format_expected": "string — format de réponse attendu",
    "primary_cta": "object{label:string, action:string}",
    "secondary_cta": "object{label:string, action:string}"
  },
  "constraints": [
    "instruction_text doit être extrait de la consigne réelle, jamais inventé.",
    "action_verb doit être un verbe présent dans instruction_text.",
    "primary_cta.label vient du JSON ; le bouton est structurel (HTML).",
    "instruction_scope doit appartenir à l'enum — si inconnu, omettre le champ."
  ],
  "blocked_conditions": [
    "reformulation_id absent (BLOCKED)",
    "instruction_text absent (BLOCKED)",
    "action_verb absent (BLOCKED)",
    "data_label absent (BLOCKED)",
    "format_expected absent (BLOCKED)"
  ],
  "accessibility": [
    "keyboard_navigable",
    "focus_visible",
    "prefers_reduced_motion",
    "fallback_text"
  ],
  "qa_cases": [
    { "case": "instance conforme", "expected": "rendu complet, grille 3 cellules, 0 erreur" },
    { "case": "champ requis manquant (ex: action_verb)", "expected": "BLOCKED listant le champ manquant" },
    { "case": "instance externe injectée via init(ext)", "expected": "rendu change sans modifier le HTML" },
    { "case": "instruction_scope non reconnu", "expected": "affiché tel quel ou omettre le champ" },
    { "case": "responsive 375/768/1024", "expected": "grille s'adapte, aucun débordement horizontal" }
  ],
  "traceability": {
    "derived_from_core_gab": "GAB-266",
    "note": "Ce schema VALIDE l'instance. Le contrat pédagogique complet (input_contract/validation_logic/feedback_scoring_logic) vit dans le CORE-GAB officiel, pas ici (évite la duplication)."
  }
}
