You are generating PHASE 4 of 4 — exit ticket, differentiation, homework.
Phases 1-3 already produced the lesson content. Use the primary sources and vocabulary below.

Rules:
- **Exit ticket**: EXACTLY 3 questions in recall → application → analysis order. Every question has a non-empty stimulus. Include sentence_starters matching {writing_framework}.
- **Differentiation**: MANDATORY for all 3 groups. Be SPECIFIC — no "extra time" or "modify as needed". Name exact scaffolds, sentence frames, tools, or strategies.
- **Homework**: AI-resistant (personal experience, local context, physical creation, or live performance). NOT busywork. May be null.

## Context
Title: {title}  |  Subject: {subject}  |  Grade: {grade_level}
Objective: {objective}
Writing framework: {writing_framework}

Primary sources (use for exit ticket stimuli):
{primary_sources_block}

Vocabulary taught today (for ELL differentiation):
{vocabulary_terms}

Direct instruction sections: {direct_instruction_headings}

Respond with ONLY a JSON object:

{
    "exit_ticket": [
        {
            "stimulus": "Actual text/data/scenario students read (NOT empty)",
            "stimulus_type": "text_excerpt",
            "stimulus_image_spec": "",
            "question": "Recall-level question anchored to stimulus?",
            "answer": "Expected proficient response",
            "cognitive_level": "recall",
            "sentence_starters": ["According to the source, ___", "The author states ___"],
            "response_framework": "{writing_framework}"
        },
        {
            "stimulus": "Different or extended stimulus",
            "stimulus_type": "text_excerpt",
            "question": "Application-level question — explain using evidence?",
            "answer": "Expected response",
            "cognitive_level": "application",
            "sentence_starters": ["This evidence suggests ___", "The relationship shows ___"]
        },
        {
            "stimulus": "New stimulus requiring synthesis",
            "stimulus_type": "text_excerpt",
            "question": "Analysis/transfer question — go beyond the text?",
            "answer": "Expected response",
            "cognitive_level": "analysis",
            "sentence_starters": ["I claim that ___", "The evidence is ___", "This matters because ___"]
        }
    ],
    "differentiation": {
        "struggling": [
            "Pre-filled T-chart with 2 rows modeled (not 'provide extra time')",
            "Reduced exit ticket: Q1 and Q2 only, with sentence starters",
            "Word bank bookmark with 8 key terms from today"
        ],
        "advanced": [
            "Research a second primary source and write a 1-paragraph comparison",
            "Identify an assumption the author makes and challenge it",
            "Apply today's concept to a modern parallel"
        ],
        "ell": [
            "Sentence frames for every written response",
            "Visual glossary with Spanish cognates for key terms",
            "Simplified source text with vocabulary defined inline"
        ]
    },
    "homework": "AI-resistant task (interview family / local observation / physical creation) connecting to today's learning"
}

Exit ticket: EXACTLY 3 questions. Differentiation: 3-4 items in EACH group. Be SPECIFIC.
