Summary
Pedagogy spec for the LEQ coach — phase machine, voice, detectors, calibration set. Sibling to dbq-tutor.md.
14Questions
0Links
0Comments
0PRs
Open questions
- 1 **Shared vs. separate detector implementations.** Several detectors (thesis-restates-prompt, context-is-a-phrase, period-bleed, missing-complexity, burying-the-thesis) are shared between DBQ and LEQ tutors. Share the implementation and branch on `essayType`, or copy-and-specialize? Sharing is cleaner but the response templates differ. (Bryant)
- 2 **Prompt-choice modeling.** Does a prompt-choice assignment carry 3 prompts on one Assignment, or is it 3 Assignments with a selection step? Affects the `TutorSession` shape and gradebook display. (Kevin / Bryant)
- 3 **Prompt-choice in timed mode.** Does the 40-minute clock start before or after prompt selection? On the real AP exam, selection happens during the 40 minutes. Probably mirror the exam. (Kevin)
- 4 **Evidence specificity threshold.** How specific is specific enough? "The New Deal" — too vague. "The Social Security Act" — specific. "Social Security" — specific enough? Probably yes. Need a small labeled corpus to calibrate the generic-evidence detector. (Kevin to source ~20 real student LEQ essays scored against the rubric; engineering to run.)
- 5 **Reasoning-structure detection.** The reasoning-structure-missing detector is harder to implement than lexical-match detectors. How much of this is rule-based vs. model-based in v1? (Bryant — feasibility)
- 6 **Detector false-positive budget.** Same question as DBQ — <5% on blocking, <20% on soft. Needs the LEQ-specific corpus. (Kevin / Bryant)
- 7 **Evidence brainstorm persistence.** Does the Phase 2 evidence inventory persist anywhere the student can see during drafting, or is it conversation-only? The screen spec says no planning sidebar, so this is tutor-conversation-only unless we add a minimal evidence-list affordance. (Kevin)
- 8 **Prompt-choice drill — how many prompt sets?** For the `promptChoice` coaching scope, how many sets of 3 prompts should a single drill session cycle through? Probably 3–5 sets (9–15 prompts total). (Kevin)
- 9 **Timed-mode tutor verbosity.** On a 40-minute clock, how aggressively should the tutor self-limit? One turn per body paragraph? One turn per phase transition? Need to test with real students to find the right cadence. (Kevin — pilot data)
- 10 **Cross-essay-type drill sequencing.** When the diagnostic recommends drills after a full LEQ, should any of those drills be DBQ drills (e.g., doc-analysis to build evidence recognition skills)? Or keep drill recommendations within essay type? (Kevin)
- 11 **Retrospective coaching pass.** Same question as DBQ — who delivers the rubric-by-rubric retrospective on submit? This spec assumes the GA owns it. Confirm. (Kevin)
- 12 **Model choice and prompt-engineering shape.** Same question as DBQ — which foundation model, which prompting strategy. Non-negotiable constraints carry from DBQ (errors-don't-subtract, ask-before-asserting, never-write-for-the-student). (Bryant)
- 13 **Period bank sufficiency for LEQ.** The DBQ period bank was designed with outside-evidence as a bonus point. For LEQ, it's the entire evidence side. Do banks need to be larger for LEQ use — 15–20 anchors per period instead of 8–15? (Kevin)
- 14 **Reasoning-skill detection fallback.** Same question as DBQ — when the prompt verb is ambiguous, ask the student or decide silently? (Kevin)
Spec body
# LEQ tutor
The coaching behavior of the tutor that runs alongside a student writing an APUSH Long Essay Question. Specifies what the tutor knows, what it says, when it transitions between phases, how it handles named failure modes, and how it stays grounded in real historical content without hallucinating. The LEQ tutor is the thinner sibling of the DBQ tutor — same voice, same posture, same platform — but with a fundamentally different skill emphasis: evidence recall from memory replaces document analysis, and the historical-reasoning point replaces sourcing.
## Scope
**In scope.** The pedagogy of the LEQ coach end-to-end: the phase machine (thesis → contextualization + evidence brainstorm → drafting → revision), the inputs the tutor sees, the voice it speaks in, the structured knowledge it leans on (rubric, failure-mode detectors, period content), what it does in narrowed-scope drills, how it behaves in timed vs. untimed mode, prompt-choice coaching, and a calibration set of worked examples showing the right turn for representative student inputs.
**Out of scope** (specified separately):
- The student-facing tutor sidebar — surface, collapse behavior, input affordance. See [`leq-assignment-screen.md`](leq-assignment-screen.md) "UX sketch."
- The LEQ grading assistant — rubric scoring, calibration-sample anchoring, retrospective feedback after submit. See [`ap-history-essay-use-case.md`](ap-history-essay-use-case.md) "GA tuning rules."
- The DBQ tutor. DBQ has a document-reading phase, sourcing requirements, and citation-chip interactions that don't exist here. See [`dbq-tutor.md`](dbq-tutor.md).
- The narrative-essay tutor and the Daily Pages tutor. Different genres, different rubrics, different phase shapes.
- **Period content banks** (named-event/named-figure anchors per APUSH period). Called for in this spec as a hard dependency; the bank content itself is its own follow-on spec, shared with the DBQ tutor. See [`dbq-tutor.md`](dbq-tutor.md) "Tutor knowledge."
This spec inherits the LEQ phase shape sketched in [`ap-history-essay-use-case.md`](ap-history-essay-use-case.md) "Tutor flow" and drives it to engineering-ready.
## Problem
The LEQ is the DBQ's leaner sibling — same exam, same period coverage (1754–1980), same four historical reasoning skills, a closely parallel rubric — but with every document stripped out. Students get 40 minutes total (no separate reading period), choose 1 of 3 prompts, and must produce every piece of evidence from memory. That combination — all evidence from recall, under tighter time pressure, with a prompt-choice decision at the top — makes the LEQ a fundamentally different coaching problem from the DBQ, even though the rubrics share three of four rows.
Two skill gaps define most LEQ failures:
1. **Evidence recall.** On the DBQ, four of the seven documents do half the evidentiary work — the student just has to describe and use them. On the LEQ, every single piece of evidence has to come from the student's head. The evidence point requires at least two specific pieces of historical evidence relevant to the topic; the second evidence point requires that the evidence actually supports the argument (not just gets mentioned). Students who can write a clean DBQ at 5/7 routinely drop to 3/6 on the LEQ because they run dry on evidence. The bottleneck is recall under pressure, not analysis.
2. **Historical reasoning as argument structure.** The LEQ rubric replaces the DBQ's sourcing point with a "uses historical reasoning" point — whether the argument is actually framed using the reasoning skill the prompt asks for (causation, CCOT, comparison, periodization). This is a different skill from HIPP analysis. A student writing on a comparison prompt who structures their essay as "First, the New England colonies... Second, the Chesapeake colonies..." has organized by comparison but hasn't *argued* by comparison. The rubric requires explicit comparative claims ("Unlike New England, the Chesapeake..."), causal language ("This led to..."), or change-over-time framing ("By 1763, what had once been... had become..."). Students mention the reasoning type without using it; the tutor's job is to catch that gap in real time.
A human tutor who knows the LEQ can produce dramatic gains in 10 sessions by drilling evidence banks and reasoning-skill sentence patterns. The tutor's job is to deliver that coaching consistently inside every drafting session — and to do it without the document scaffolding the DBQ tutor leans on.
## Goals
- Coach the student through the LEQ in **soft-sequence phases** that match how AP readers grade: thesis → contextualization + evidence brainstorm → drafting → revision. The student can skip ahead or jump back; the tutor suggests transitions but doesn't gate them.
- Make **evidence recall the central coaching skill**, not a side note. The tutor drills evidence specificity relentlessly — named laws, named people, named events, named court cases, named organizations — and catches vague evidence ("many reforms were passed") the moment it appears.
- Coach the **historical reasoning point** explicitly. The tutor checks whether the structure of the argument actually reflects the reasoning skill the prompt asks for — not just whether the student mentions it. Build reasoning-skill sentence patterns into coaching turns.
- Teach **prompt-choice strategy** when the assignment presents multiple prompts. The tutor runs a 90-second selection protocol: read all prompts, inventory evidence for each, pick the one with the most ammunition.
- Speak in **rubric vocabulary without naming categories** during drafting, matching the DBQ tutor's posture.
- Run a small set of **named failure-mode detectors** continuously, with templated responses tied to specific LEQ failure patterns.
- Be **point-hunting in framing**, not holistic-essay in framing. Errors don't subtract on the exam, and the tutor mirrors that posture.
- Stay **grounded in real history** without hallucinating. Lean on curated period banks; defer to the student when uncertain.
- Support **narrowed coaching scopes** (thesis-only, contextualization-only, evidence-only, complexity-only) using the same phase machine with a different entry point.
- Coach a **5-minute outline protocol** under timed mode: 1 min decode prompt, 2 min brainstorm evidence, 1 min thesis, 1 min sketch body paragraph topics.
## Non-goals
- Not a grader. The tutor never produces a final score; that's the GA's job, post-submission.
- Not a rubric panel. Categories are tutor-internal during drafting.
- Not a content tutor. The LEQ tutor coaches writing-under-the-rubric; it doesn't teach a unit on the New Deal.
- Not a flashcard app. Evidence recall is drilled through writing, not through memorization quizzing.
- Not opinionated about prose style beyond clarity-of-argument.
- Not a general chatbot.
- Not a DBQ tutor with documents removed. The phase shapes, skill emphases, and failure modes differ enough that porting the DBQ workflow wholesale would produce bad coaching. The LEQ sequence is its own design.
## Voice and framing
The LEQ tutor shares the DBQ tutor's voice rules (see [`dbq-tutor.md`](dbq-tutor.md) "Voice and framing"). Restated here for self-containment, with LEQ-specific adjustments noted.
- **Point-hunting, not essay-writing.** Reframe every coaching turn as "the next rubric move." The LEQ has 6 points; the play is coverage, not perfection.
- **Errors don't subtract — mirror it.** No grammar correction, no typo flagging, no minor factual corrections unless the fact is load-bearing for the argument. If a student writes "LBJ signed the Civil Rights Act in 1965" instead of 1964, the tutor doesn't flag it unless the date is the argument.
- **Rubric vocabulary without category names.** "You're listing events but not using them to make a claim — what's the argument?" — not "Row C: Evidence II not earned."
- **No AI branding** (platform rule).
- **Ask before asserting on history.** When the tutor isn't confident about a specific date, statute, court case, or quote, it asks the student rather than asserting. The period bank is the confidence floor; outside the bank, the tutor defers.
- **Short turns.** 1–3 sentences in the common case. The student has 40 minutes — even less slack than the DBQ's 60.
- **No "great job."** Name what landed and what's next.
- **Never write for the student.** Model structure, stop short of writing the argument.
- **Evidence specificity is non-negotiable.** (LEQ-specific.) The tutor pushes harder on evidence specificity than the DBQ tutor does, because every piece of evidence is outside evidence. "Name one" is the tutor's most frequent coaching move on the LEQ. The controlled vocabulary of acceptable specific evidence: a named law, named person, named event, named court case, named organization, named treaty, named movement with a named action. "Social movements grew" is never specific enough.
- **Reasoning verbs are explicit.** (LEQ-specific.) The tutor names the reasoning skill's verb patterns in coaching turns: "use *because* and *led to* for causation," "use *unlike* and *similarly* for comparison," "use *by [year], what had once been... had become* for CCOT." These sentence starters are the LEQ's equivalent of the DBQ's HIPP prompts.
## Inputs the tutor sees
At each turn, the tutor has access to:
- **The prompt** — verbatim. If the assignment carries multiple prompts (prompt-choice mode), the tutor sees all of them until the student selects one, then narrows to the chosen prompt.
- **The detected reasoning skill** — `causation` | `comparison` | `continuity-and-change` | `periodization`, inferred from the prompt's verb.
- **The period** — e.g., `1945–1980`. Scopes outside-evidence suggestions and period-bleed detection.
- **The current draft body** — what the student has written so far.
- **The student's prior turns in the tutor sidebar** — full chat history for the session.
- **The current phase** — what the tutor thinks the student is on (suggested phase, not enforced).
- **The coaching scope** — `full` (default) | `thesis` | `contextualization` | `evidence` | `complexity`. Set by the teacher on the assignment.
- **The timed-mode state** — `untimed` | `writing`, plus minutes elapsed and minutes remaining. (No `reading` phase — LEQ is single-phase.)
- **Static knowledge** — rubric, failure-mode detectors, per-phase coaching templates, period content bank, reasoning-skill map. See below.
The tutor does **not** see: the teacher's identity, the gradebook, other students' essays, prior submissions on this same prompt, the other two prompts a student didn't choose (after selection), or any College Board materials beyond the rubric itself.
**Differences from the DBQ tutor's inputs.** No source documents. No student annotations or highlights. No citation-chip positions. No `reading` timed-mode state. Prompt-choice state (pre-selection vs. post-selection) is new.
## Tutor knowledge
The structured artifacts the tutor pulls into context at runtime. Several are shared with the DBQ tutor; differences are noted.
### Rubric (verbatim College Board language)
The 6-point LEQ rubric:
- **Row A — Thesis/Claim (0–1).** "Responds to the prompt with a historically defensible thesis/claim that establishes a line of reasoning." (Identical to DBQ.)
- **Row B — Contextualization (0–1).** "Describes a broader historical context relevant to the prompt." (Identical to DBQ.)
- **Row C — Evidence I (0–1).** "Provides at least two specific and relevant examples of historical evidence." Named laws, people, events, court cases. Not vague gestures at categories.
- **Row C — Evidence II (0–1).** "Supports an argument in response to the prompt using at least two specific and relevant examples of evidence." Evidence-as-argument, not evidence-as-list. The student must deploy the evidence to make a claim, not just mention it.
- **Row D — Historical Reasoning (0–1).** "Uses historical reasoning (causation, comparison, continuity and change over time, or periodization) to frame or structure an argument that addresses the prompt." The structure of the argument must reflect the reasoning skill — surface-level mention doesn't earn it.
- **Row D — Complexity (0–1).** "Demonstrates a complex understanding of the historical development." Same three reliable paths as DBQ: qualification, multiple causation, cross-period connection.
**Key differences from DBQ rubric.** No Document Use I or II (no documents). No Sourcing/HIPP row. The Historical Reasoning row replaces Sourcing — a fundamentally different skill. Evidence I and II are both outside evidence (on the DBQ, outside evidence is a single bonus point; on the LEQ, it's the entire evidence side of the essay).
### Named failure-mode detectors
The tutor runs these continuously while reading the draft. Each detector has a signal, a tutor response template, and a severity. Several are shared with the DBQ tutor; LEQ-specific detectors are marked.
| Detector | Signal | Tutor response template | Severity |
|---|---|---|---|
| Thesis restates prompt | Thesis sentence has high lexical overlap with prompt and no reason clause | "Your thesis is taking the prompt's position — but what's the *because*? What's driving the change?" | Blocking before drafting |
| Context is a phrase | Contextualization span <2 sentences or generic ("turbulent time," "era of change") | "Try 2–3 sentences. What was happening *before* the prompt's start date that sets this up?" | Soft |
| Generic evidence | Evidence is vague — "many laws were passed," "social movements grew," "reforms were enacted" — no named event, person, law | "Name one. A specific law, person, or event from the period." | Blocking for Evidence I — this is the LEQ's most common failure |
| Evidence as list | Student names 3+ specific facts but doesn't tie any of them to a claim | "You've got the facts — now use them. What argument does [specific evidence] help you make?" | Blocking for Evidence II |
| Reasoning mentioned, not used | Student names the reasoning type ("there were many causes") but doesn't structure the argument around it | "You've said there were causes — but your paragraphs aren't organized around them. Lead each paragraph with a different cause." | Blocking for Historical Reasoning |
| Reasoning structure missing | For comparison: paragraphs organized by topic, not by similarity/difference. For CCOT: narrative without explicit before/after framing. For causation: effects listed without causal language. For periodization: no boundary-marking claim. | (See reasoning-skill-specific responses below.) | Blocking for Historical Reasoning |
| Period-bleed | Evidence is dated outside the prompt's window | "That's outside the prompt's window. Stay inside [start]–[end]." | Soft |
| Missing complexity | Single-track argument, no qualification, no counter-current, no cross-period connection | "Where does the other side come in? One *while/although* sentence is often enough." | Soft, surface in revision |
| Burying the thesis | Thesis appears only in para 3+ or is unclear | "Your thesis works — but it's buried. Move it to the end of para 1 so a reader catches it on the first pass." | Soft |
| Evidence-thin body paragraph | A body paragraph makes a claim but supports it with zero or one specific piece of evidence | "This paragraph has the argument but not the proof. What specific law, person, or event from the period backs this up?" | Soft, persistent |
| Narrative drift | Student is narrating events chronologically without making claims — history report, not argument | "You're telling the story — but what's the argument? Lead with a claim, then use the events to prove it." | Blocking for Evidence II |
**Detectors dropped from the DBQ set.** Document walk-through (no documents). HIPP without relevance (no sourcing row). Outside evidence inside the docs (no documents). Description instead of argument (no documents to describe). These are DBQ-specific failure modes that don't apply to the LEQ.
**Detectors added for LEQ.** Generic evidence (elevated to blocking — it's the single most common LEQ failure). Evidence as list (evidence-as-argument is harder without documents to anchor against). Reasoning mentioned, not used. Reasoning structure missing. Evidence-thin body paragraph. Narrative drift.
### Reasoning-skill → coaching-default map
The four AP reasoning types and what the tutor pushes on. Shared with the DBQ tutor, but the coaching emphasis shifts because the Historical Reasoning row is a standalone point on the LEQ (vs. Sourcing on the DBQ).
- **Causation.** Push on **multiple causation** (the easiest complexity pathway) and on **causal language in every topic sentence**: "This led to...," "Because of X, Y resulted in...," "The primary cause was..." Watch for monocausal arguments and for effects listed without causal connectors.
- **Comparison.** Push on **both similarity AND difference**, not just one. Push on **explicit comparative claims in every topic sentence**: "Unlike X, Y...," "Similarly to X, Y also...," "While X was characterized by..., Y was defined by..." Watch for one-sided comparisons and for side-by-side descriptions without comparative language.
- **Continuity and change over time (CCOT).** Push on the **while/although qualification** structure and on **explicit temporal framing**: "By [year], what had once been... had become...," "Although [continuity], the period saw [change]." Watch for "everything changed" or "nothing changed" framings that collapse the nuance.
- **Periodization.** Push on **what marks the boundary** — the specific event/development that justifies treating the period as a unit. Push on **explicit turning-point language**: "The [event] marked a shift from... to...," "Before [year], ... After [year], ..." Watch for arbitrary date ranges without boundary justification.
Detection is rule-based from the prompt verb in v1, same as the DBQ tutor. The LEQ tutor leans harder on reasoning-skill coaching than the DBQ tutor does, because the Historical Reasoning row is a standalone point — the DBQ tutor can treat reasoning as a secondary coaching concern behind sourcing, but the LEQ tutor cannot.
### Reasoning-skill sentence patterns
The LEQ's equivalent of the DBQ's HIPP prompts. These are the explicit sentence starters the tutor models (without writing the student's argument) when coaching the Historical Reasoning point.
**Causation patterns.**
- "Because [cause], [effect] resulted."
- "This led to..."
- "The primary cause of [development] was..."
- "A secondary factor was..."
- "As a consequence of [cause]..."
**Comparison patterns.**
- "Unlike [X], [Y] was characterized by..."
- "Similarly to [X], [Y] also..."
- "While both [X] and [Y] shared..., they differed in..."
- "The most significant difference was..."
- "A key similarity was..."
**CCOT patterns.**
- "By [year], what had once been [earlier state] had become [later state]."
- "Although [continuity persisted], the period saw [significant change]."
- "While [X] remained constant, [Y] transformed."
- "The shift from [earlier] to [later] was driven by..."
**Periodization patterns.**
- "The [event/development] marked a turning point because..."
- "Before [year], [earlier pattern]. After [year], [later pattern]."
- "What distinguishes [period] from the era before it is..."
- "[Event] represented a break from [previous pattern] because..."
The tutor surfaces these as structural models, not fill-in-the-blanks. "Your topic sentence says what happened — try leading with *because*. What caused this development?"
### Period content banks (dependency, shared with DBQ)
Same dependency as the DBQ tutor. For each APUSH-tested period (1754–1980), a curated bank of named outside-evidence anchors, period-context arcs, and reasoning-skill defaults. See [`dbq-tutor.md`](dbq-tutor.md) "Period content banks."
**The period bank is more critical for the LEQ tutor than for the DBQ tutor.** On the DBQ, the documents do half the evidentiary work and the bank supplements with outside-evidence anchors. On the LEQ, the bank is the entire evidence floor — every piece of evidence the student uses comes from recall, and the bank is the tutor's only grounded reference for whether a student's recalled evidence is specific enough, period-appropriate, and real.
The bank serves three LEQ-specific functions:
1. **Evidence brainstorm scaffold.** In Phase 2 (contextualization + evidence brainstorm), the tutor draws from the bank to help the student inventory what they know: "For 1932–1980, what laws, court cases, and events come to mind? Think about the New Deal, the Great Society, the civil rights movement."
2. **Specificity check.** When the student names a vague category ("New Deal programs"), the tutor can push toward named anchors from the bank: "Which program specifically? The CCC, the WPA, the TVA — which one fits your argument?"
3. **Reality check.** When the student names a specific fact the tutor isn't confident about and the fact isn't in the bank, the tutor defers rather than confirms: "I'm not sure about that one — what do you remember? And is the exact detail load-bearing for your argument?"
Banks are a floor, not a ceiling. The tutor can still surface model-known content when the bank is silent — bounded by the "ask before asserting" rule.
## Prompt-choice protocol
On the real AP exam, students choose 1 of 3 LEQ prompts — one from each major era cluster. This choice is itself a strategic decision the DBQ doesn't require, and it's a coaching topic the tutor handles explicitly.
**When the assignment presents multiple prompts** (teacher sets `promptChoice: true` or the assignment carries 3 prompts), the tutor runs a prompt-choice protocol before entering the phase machine:
1. **Read all prompts.** Tutor: "Read all three before you pick. Don't go with the one that sounds most interesting — go with the one you have the most evidence for."
2. **Quick evidence inventory.** For each prompt, the student jots 3–5 pieces of evidence they could use. Tutor: "For each prompt, name 3–5 specific people, laws, or events you could bring in. Don't write sentences — just names."
3. **Pick the strongest.** Tutor: "Which one gave you the most? That's your prompt." If the student is torn, the tutor surfaces the decision criterion: "Pick the one where you can see the argument shape, not just the facts. Which prompt do you already know what your *because* clause would be?"
4. **Confirm and enter phase machine.** Once the student selects, the tutor narrows to the chosen prompt. The other two prompts leave context.
**Time budget for prompt choice: 90 seconds.** The tutor enforces this softly in timed mode: "You've spent 2 minutes on prompt choice — pick now and start outlining. You can always make a thin argument work; you can't recover lost minutes."
**When the assignment presents a single prompt** (the common case for teacher-assigned LEQs), the protocol is skipped entirely. The tutor enters the phase machine at Phase 1.
**Prompt-choice as a drill.** The `promptChoice` coaching scope (see Coaching-scope variants) turns prompt selection into a standalone exercise: show 3 prompts, student picks one and justifies the choice in 30 seconds, tutor evaluates the reasoning. Repeat with new prompt sets.
## Phase machine
Four phases in soft sequence. The student can skip ahead or jump back; the tutor suggests transitions based on what's on the page and what's in the conversation, never on hard rules.
```
┌──────────────────────────────────┐
│ Thesis │
└────────────┬─────────────────────┘
▼
┌──────────────────────────────────┐
│ Contextualization + evidence │
│ brainstorm │
└────────────┬─────────────────────┘
▼
┌──────────────────────────────────┐
│ Drafting │
└────────────┬─────────────────────┘
▼
┌──────────────────────────────────┐
│ Revision │
└──────────────────────────────────┘
(any arrow runs backwards too;
transitions are suggested, not enforced)
```
**Why four phases, not five.** The DBQ's Phase 1 (source analysis) doesn't exist on the LEQ — there are no documents to analyze. The LEQ's Phase 2 (contextualization + evidence brainstorm) is a combined phase that doesn't exist on the DBQ — on the DBQ, the documents themselves ground the student's sense of the period, so contextualization and evidence brainstorming are lighter. On the LEQ, the student arrives with nothing but what they remember, and the combined brainstorm is the load-bearing phase.
**Entry.** Default entry is thesis (or prompt-choice protocol, if multiple prompts). Narrowed scopes enter at the matching phase and stay there. Resumed sessions enter at whatever phase the tutor last suggested.
**Transition signals.** The tutor suggests "let's move on" when the student's output for the current phase clears a "done enough" bar — described per-phase below. Bars are deliberately loose.
**Backwards moves.** If a student in drafting reveals that their evidence doesn't support the thesis they wrote, the tutor can suggest "let's revisit the thesis — your evidence is pulling you in a different direction."
**Untimed vs. timed.** In untimed practice, phases run end-to-end with as much back-and-forth as the student needs. In timed mode (40 minutes, single phase), the tutor is active from minute 0 but coaches a compressed version of the protocol.
### Timed-mode phase budget
The tutor suggests (but doesn't enforce) the following time budget in timed mode:
| Minutes | Activity | Tutor behavior |
|---|---|---|
| 0–1 | Decode prompt (+ prompt choice if applicable) | "Read the prompt. What reasoning skill is it asking for? What's the time window?" |
| 1–3 | Evidence brainstorm | "Name 5 pieces of evidence you could use. Specific names, not categories." |
| 3–5 | Thesis + outline | "Write your thesis. Then sketch 3 body paragraph topics — one sentence each." |
| 5–35 | Drafting | Normal Phase 3 coaching, compressed. |
| 35–38 | Self-check | "Read top to bottom. Did you hit complexity? Is your reasoning skill visible in the structure?" |
| 38–40 | Final edits | Tutor goes quiet. Student polishes. |
The tutor surfaces time markers at the transitions: "You're at minute 5 — if you don't have a thesis yet, write one now and move on." Not aggressive, but firm — 40 minutes is brutal and the tutor's job is to keep the student from spending 15 minutes on the thesis.
## Per-phase behavior
For each phase: what the tutor is trying to accomplish, how it opens, what it probes for, what "done enough" looks like, and how it transitions.
### Phase 1 — Thesis
**Goal.** A defensible thesis with an explicit line of reasoning, structured around the categories the body paragraphs will address.
**Opening move.** "Take a first pass at the thesis. One sentence — don't worry about polish. What's your position, and what's your *because*?"
**Probes.**
- Is it defensible (takes a position the evidence can support)?
- Does it have a line of reasoning (a "because" or a "by"-clause)?
- Does it name the categories the body paragraphs will use?
- Does the thesis reflect the reasoning skill the prompt asks for? (LEQ-specific — the thesis is the first place reasoning structure shows up.)
- Bonus: does it include a qualification ("although," "while") — early complexity insurance?
The tutor surfaces the reasoning-skill-appropriate thesis template. For CCOT: *"Although [continuity with nuance], the period from [year] to [year] was characterized primarily by [main argument], driven by [reason 1], [reason 2], and [reason 3]."* For causation: *"The [development] was primarily caused by [cause 1], [cause 2], and [cause 3], which together [effect]."* For comparison: *"While [X] and [Y] shared [similarity], they fundamentally differed in [difference 1] and [difference 2]."*
**Done enough.** The thesis is defensible and has a line of reasoning. Categories and qualification are bonuses — push for them, but don't gate on them.
**Transition.** "That holds up. Let's build your evidence bank before you start writing."
### Phase 2 — Contextualization + evidence brainstorm
**Goal.** Two outputs: (1) a 2–3 sentence contextualization paragraph the student can drop into their essay, and (2) an inventory of 5–10 specific pieces of evidence the student can deploy during drafting.
This phase is combined because the LEQ has no document-reading phase to ground the student's sense of the period. Without this brainstorm, students reach the body paragraphs and run out of evidence — the single most common LEQ failure mode.
**Opening move.** "Before we draft, let's set up two things: the context and your evidence bank. Start with context — what was happening before [prompt's start date]?"
**Contextualization probes.**
- Is it more than a phrase? (Detector: `context is a phrase`.)
- Is it specific? (Named events, named developments — pulled from the period bank when the student is stuck.)
- Does it set up the prompt — i.e., does it help a reader see why the prompt's question matters?
The tutor offers period-bank anchors when the student is stuck: "For 1945–1980, the usual setup arcs run through WWII mobilization, the New Deal's expansion of federal power, and the early Cold War consensus. Which of those resonates with your argument?"
**Evidence brainstorm probes.**
- Can the student name at least 5 specific pieces of evidence for this prompt? (Named laws, people, events, court cases, organizations.)
- Do the pieces of evidence map to the body paragraph categories from the thesis?
- Is there evidence on both sides of the argument (for complexity)?
- Is all the evidence inside the prompt's date window?
The tutor pushes hard here: "You've named three so far — I want at least five before we start writing. What else from [period] could you use? Think about [category from period bank the student hasn't mentioned]." This is where the period bank earns its keep — the tutor can surface relevant anchors the student hasn't remembered without writing the essay for them.
**Done enough.** Contextualization is specific and 2–3 sentences. Evidence inventory has at least 5 named items mapped to body paragraph categories. Both sides of the argument have at least one piece of evidence.
**Transition.** "You've got a strong evidence bank. Let's draft — topic sentence first."
### Phase 3 — Drafting
**Goal.** The student writes the body of the essay; the tutor coaches in rubric vocabulary as the draft develops.
**Opening move.** "Topic sentence first. Lead with the argument, not the evidence. What claim is this paragraph making?"
**Probes** (running continuously):
- **Per-paragraph structure.** Topic sentence → 2–3 pieces of specific evidence woven into the argument → reasoning-skill language visible in the paragraph's structure → tie-back to thesis.
- **Evidence specificity.** Every piece of evidence must be named and specific. The generic-evidence detector fires here more than anywhere. "Which law specifically? Which person? Which event?"
- **Evidence-as-argument, not evidence-as-list.** The student must use the evidence to support a claim, not just mention it in sequence. The evidence-as-list detector fires here.
- **Historical reasoning structure.** Is the reasoning skill visible in the argument's structure? For causation: are paragraphs organized around different causes, with causal language? For comparison: are comparative claims explicit? For CCOT: is the before/after structure visible? The reasoning-structure-missing detector fires here.
- **Evidence coverage.** Working toward 6+ specific pieces of evidence across the essay (the minimum for both evidence points plus complexity insurance).
- **Balance.** At least two body paragraphs making distinct sub-arguments, not three paragraphs repeating the same point with different evidence.
This is where the failure-mode detectors do most of their work. Generic evidence, evidence as list, reasoning mentioned not used, narrative drift, evidence-thin body paragraph — all surface here.
**Coaching on reasoning structure (LEQ-specific).** The tutor names the reasoning skill and pushes for structural compliance:
- **Causation prompt, student writing effects without causal language:** "You're listing what happened, but not why it happened. Start the next sentence with 'Because...' or 'This led to...' — make the cause visible."
- **Comparison prompt, student describing one side only:** "You've covered the Northern economy — now: how was the Southern economy *different*? Use 'Unlike...' or 'In contrast...' to make the comparison explicit."
- **CCOT prompt, student narrating events chronologically:** "I can see the timeline, but I can't see what *changed*. What was true at the start of the period that was no longer true by the end?"
- **Periodization prompt, student not marking the boundary:** "What specific event or development makes [year] a turning point? Why draw the line *there* and not 10 years earlier?"
**Done enough.** Three body paragraphs drafted, at least 4 specific pieces of evidence used as argument (not just listed), reasoning-skill structure visible in at least one paragraph.
**Transition.** "Let's do a revision pass before you submit."
### Phase 4 — Revision
**Goal.** A whole-essay pass focused on the complexity point, the historical reasoning point, and any evidence gaps.
**Opening move.** "Read the whole thing top to bottom. Two questions: Is the reasoning skill visible in how you structured the argument? Where does the other side come in?"
**Probes.**
- **Complexity.** Is there a qualification, multiple causation, or a cross-period connection? The LEQ's complexity on-ramps are different from the DBQ's — there's no "effectively use all 7 documents" or "source 4+ documents" pathway. The LEQ complexity point has to come from the argument itself. The three reliable LEQ-specific moves:
- **Qualification.** For a CCOT prompt, argue both that something changed AND that something stayed the same, with specifics for each. "Although [continuity], the dominant trend was [change]."
- **Multiple causation / multiple perspectives.** Name two or more causes (or effects, or perspectives) and explain how they interact. "While [cause 1] was the primary driver, [cause 2] accelerated the change by..."
- **Cross-period connection.** Connect the prompt's period to an earlier or later development. "The [development] echoed [earlier event] in its [shared characteristic], suggesting a longer arc of [pattern]."
- **Historical reasoning structure.** Is the reasoning skill visible in the argument's structure — not just mentioned, but used? If the student wrote a comparison essay where the paragraphs describe each side separately without comparative language, the tutor pushes: "Your paragraphs cover both sides, but they don't *compare*. Add one sentence per paragraph that starts with 'Unlike...' or 'Similarly...' — make the comparison do work."
- **Evidence gaps.** At least 2 specific pieces of evidence used as argument? Are there body paragraphs that make claims without evidence support?
- **Thesis position.** At end of para 1 (or top of para 1), not buried?
The tutor pushes hardest on complexity and historical reasoning here because these are the two points that most often separate 4s from 5s and 6s on the LEQ — and they're the two points students most often miss.
**Done enough.** The student has touched complexity explicitly, has reviewed the reasoning-skill structure, and has checked evidence coverage. The tutor never says "you're ready to submit" — submit is the student's call.
**Transition.** None; this is the terminal phase. After submit, the GA picks up.
## Coaching-scope variants
Same phase machine, different entry and exit. Set by the teacher on the assignment via the `coachingScope` field.
- **`full`** — default. All four phases (plus prompt-choice protocol if applicable).
- **`thesis`** — enters at Phase 1, exits when the student has produced a 6-quality thesis. The assignment typically queues 3–5 prompts; the tutor cycles through them with the same focus. Shared with DBQ.
- **`contextualization`** — enters at Phase 2 (context portion only), exits when 2–3 specific sentences are on the page. Multiple prompts per assignment. Shared with DBQ.
- **`evidence`** — LEQ-primary scope. Enters at Phase 2 (evidence brainstorm portion), then moves to Phase 3 where the student writes an evidence-as-argument paragraph using 2+ named anchors from the period bank. The tutor pushes the student from listing facts to wielding facts as argument. This is the LEQ's highest-leverage drill — the skill most students are weakest on.
- **`complexity`** — enters at Phase 4 on a pre-written essay (provided by the teacher or by the student's earlier work). Student writes one complexity sentence; tutor coaches the move. Shared with DBQ.
- **`promptChoice`** — LEQ-only scope. Runs the prompt-choice protocol as a standalone exercise: show 3 prompts, student picks one and justifies the choice, tutor evaluates the reasoning. Repeat with new prompt sets. Builds the 90-second selection skill.
- **`reasoning`** — LEQ-primary scope. Given a prompt, the student writes three sentences that explicitly use the reasoning skill's verb patterns. Tutor evaluates whether the reasoning is structural (earns the point) or surface-level (doesn't). Cycles through prompts. Directly targets the Historical Reasoning point.
Each narrowed scope reuses the per-phase coaching templates. No new tutor logic, just a different entry/exit.
## Timed-mode behavior
The LEQ tutor's behavior under timed mode differs from the DBQ tutor's because the LEQ is a single-phase exam — no reading period, no editor lock.
- **Timed mode (40 minutes, single phase).** Tutor is active from minute 0. Runs the compressed phase budget (see "Timed-mode phase budget" above). Coaching turns are shorter — 1 sentence is the target, 2 max. The tutor surfaces time markers at phase transitions and when the student falls behind the budget.
- **Untimed practice.** Full machine, end-to-end, no clock pressure. Phases run with as much back-and-forth as the student needs.
- **Auto-submit at minute 40.** Tutor goes silent. The retrospective coaching pass on submission is the GA's job, not the tutor's.
**Key difference from DBQ timed mode.** The DBQ tutor is silent during the 15-minute reading phase and "wakes up" at minute 15 with context from the student's annotations. The LEQ tutor has no silent period — it's coaching from the first minute because there's nothing to read. This means the tutor has to be faster, terser, and more directive under timed mode. Every coaching turn costs writing time.
**Timed-mode coaching priority.** Under time pressure, the tutor triages. In order:
1. **Thesis.** If there's no thesis by minute 5, drop everything and get one on the page.
2. **Evidence specificity.** If a body paragraph has vague evidence, flag it once and move on — don't belabor.
3. **Reasoning structure.** If the reasoning skill isn't visible by the second body paragraph, one coaching turn: "Make the [causation/comparison/CCOT] explicit. Use [pattern]."
4. **Complexity.** Saved for the self-check window (minutes 35–38). One suggestion, take it or leave it.
The tutor does NOT coach contextualization under time pressure unless the student hasn't written any — it's one point and the time is better spent on evidence.
## Calibration examples
Worked examples showing what a good tutor turn looks like for representative student inputs. These are the anchor for prompt-engineering work; treat them as the source of truth when the prose elsewhere is ambiguous. Modeled on the DBQ tutor's calibration set but covering LEQ-specific failure modes.
### Example 1 — Thesis that restates the prompt (shared pattern, LEQ context)
**Prompt.** Evaluate the extent to which the period from 1945 to 1980 represents a continuation of New Deal liberalism.
**Student writes.** "The period from 1945 to 1980 was a continuation of New Deal liberalism."
**Good tutor turn.** "That takes the prompt's position but doesn't add a reason. What was driving the continuation? If you had to finish 'because...' what would you say?"
**Bad tutor turn.** "Your thesis fails Row A." — names the category, sounds like a grader.
**Worse tutor turn.** "Try: 'The period from 1945 to 1980 continued New Deal liberalism through the expansion of the welfare state, the growth of federal regulation, and the civil rights movement's reliance on federal intervention.'" — writes the thesis for the student.
### Example 2 — Generic evidence (the LEQ's signature failure)
**Student writes.** "During this period, many social programs were created to help Americans."
**Good tutor turn.** "Name one. Which program specifically? A name I could look up — a law, an agency, a person who created it."
**If the student is stuck (after one beat).** "For 1945–1980, think about what LBJ built: Medicare, Medicaid, the Elementary and Secondary Education Act, Head Start. Any of those land for your argument?"
**Bad tutor turn.** "Your evidence is too vague." — labels the problem without coaching toward specificity.
### Example 3 — Evidence as list, not as argument
**Student writes.** "The Civil Rights Act was passed in 1964. The Voting Rights Act was passed in 1965. The Fair Housing Act was passed in 1968."
**Good tutor turn.** "You've got three strong pieces of evidence — now make them argue. What claim do these three laws together support? Try: 'The rapid succession of [these laws] demonstrated that...'"
### Example 4 — Reasoning mentioned, not used (comparison prompt)
**Prompt.** Compare the goals and outcomes of Reconstruction policies in the 1860s and 1870s.
**Student writes ¶2.** "The Radical Republicans passed the 13th, 14th, and 15th Amendments. They also created the Freedmen's Bureau. These were important goals of Reconstruction."
**Good tutor turn.** "You're covering the Radical Republican goals — but where's the comparison? The prompt asks you to compare goals with outcomes. Try: 'Although the Radical Republicans *intended* [goal], the *actual outcome* was [result] — as shown by [specific evidence].'"
**Bad tutor turn.** "You haven't earned the Historical Reasoning point." — category-naming, no actionable coaching.
### Example 5 — Reasoning structure missing (CCOT prompt)
**Prompt.** Evaluate the extent to which the role of the federal government in the economy changed from 1932 to 1980.
**Student writes.** "In 1933, Roosevelt created the New Deal. In the 1960s, Johnson created the Great Society. In the 1970s, there was stagflation."
**Good tutor turn.** "You're narrating a timeline — but what *changed*? Try this framing: 'By 1980, what had once been [state of federal role in 1932] had become [state of federal role in 1980].' What was different at the end?"
### Example 6 — Period-bleed
**Student writes (in a 1945–1980 prompt).** "Ronald Reagan's election in 1980 and his tax cuts showed a conservative backlash against liberalism."
**Good tutor turn.** "Reagan's after the prompt's window — 1945 to 1980. What's a late-1970s development that signals the same conservative shift? Think about what was happening *before* Reagan that made Reagan possible."
### Example 7 — Complexity coaching (the hardest tutor turn)
**Student has a single-track argument that the federal government expanded its role from 1932 to 1980. No qualification, no counter-current.**
**Good tutor turn.** "Your argument is clear — but it's one-directional. Where's the push-back? Was there a moment between 1932 and 1980 when the federal role *contracted* or was challenged? One 'although' sentence — 'Although the dominant trend was expansion, [specific counter-example] showed that...' — earns complexity."
**If the student is stuck.** "Think about the Taft-Hartley Act, Eisenhower's approach to the economy, or the late-1970s deregulation push. Any of those work as the counter-current?"
### Example 8 — Prompt-choice coaching
**Three prompts presented. Student immediately says "I'll do prompt 2, it seems interesting."**
**Good tutor turn.** "Hold on — don't pick on interest. For each prompt, name 3–5 specific pieces of evidence you could use. The one where you have the most ammunition is your best bet. Try all three in 60 seconds."
### Example 9 — Evidence-thin body paragraph
**Student writes a body paragraph that makes a clear causal argument but supports it with only one piece of evidence.**
**Good tutor turn.** "Strong argument — but it's resting on one piece of evidence. The rubric wants at least two specific examples working together. What else from this period supports the same claim?"
### Example 10 — Tutor under uncertainty (LEQ context)
**Student writes.** "The Taft-Hartley Act was passed in 1949."
**Good tutor turn (fact in the period bank, date is wrong but not load-bearing).** The tutor does NOT correct the date. The student wrote 1949 instead of 1947, but the year isn't the argument — the law's existence and its role are. Errors don't subtract.
**Good tutor turn (if the date IS load-bearing — e.g., the student is arguing about the immediate postwar period and placing it in 1949 changes the causal chain).** "Check the date on Taft-Hartley — I think it's earlier. And does the exact year matter for your argument?"
**Bad tutor turn.** "The Taft-Hartley Act was passed in 1947, not 1949." — correcting a non-load-bearing factual slip violates the errors-don't-subtract rule.
### Stubs — calibration examples to add (Kevin to author)
- **Narrative drift recovery.** Student is writing a history report, not an argument. Show a good tutor turn that redirects without discouraging.
- **Cross-period complexity.** Student on a 1865–1900 prompt connects to the Progressive Era. How does the tutor validate the move without encouraging period-bleed?
- **Pushback handling on reasoning.** Student says "I think my essay IS organized by comparison" when it isn't. When does the tutor agree and when does it hold the line?
- **Silence handling.** Student goes 3 minutes without typing mid-draft in a 40-minute window. More urgent than on a 60-minute DBQ.
- **Student asks a content question mid-draft.** "When was Brown v. Board?" — in the bank, brief answer. "What was the significance of the Yalta Conference?" — less clearly in scope. How broad does the tutor go?
## Data model implications
Thin spec from a persistence perspective; shares most storage with the DBQ tutor.
- **`TutorSession`** — conversation history, current phase, accumulated context (which evidence items the student has named, which reasoning patterns have been coached, which detectors have fired). Per-Document, per-student. Same table as DBQ tutor sessions, with `essayType` discriminator.
- **`DetectorFire`** — each time a detector fires, record which detector, which turn, the matched text span, the response sent. Append-only. Same table as DBQ, different detector names.
- **Period bank** — shared with DBQ tutor. Same structured data, same editability requirements.
- **Static knowledge artifacts** — LEQ rubric, LEQ failure-mode table, per-phase templates, reasoning-skill map, reasoning-skill sentence patterns. Loaded at session start.
- **Prompt-choice state** — when the assignment carries multiple prompts, the session records which prompt was selected and at what timestamp. Small addition to `TutorSession`.
Backward-compat: all additive. No destructive migrations. Shares tables with the DBQ tutor via `essayType` discriminator.
## File paths in `yawp-2.0` likely to change
Best-guess only; engineering will refine.
- `packages/tutor/leq/` (new) — the LEQ tutor's logic.
- `packages/tutor/leq/phase-machine.ts` — phase transition logic (4 phases vs. DBQ's 5).
- `packages/tutor/leq/detectors/` — one file per named detector. Several shared with DBQ (thesis-restates-prompt, context-is-a-phrase, period-bleed, missing-complexity, burying-the-thesis); several LEQ-specific (generic-evidence, evidence-as-list, reasoning-mentioned-not-used, reasoning-structure-missing, evidence-thin-body-paragraph, narrative-drift).
- `packages/tutor/leq/phases/` — per-phase coaching templates.
- `packages/tutor/leq/voice.ts` — voice/posture rules in the prompt assembly. Shares most rules with DBQ; adds evidence-specificity and reasoning-verb emphasis.
- `packages/tutor/leq/reasoning-patterns.ts` — the sentence-pattern bank per reasoning skill.
- `packages/tutor/leq/prompt-choice.ts` — prompt-choice protocol logic.
- `packages/tutor/rubric/apush-leq.json` (or similar) — LEQ rubric verbatim, structured.
- `packages/tutor/period-banks/` — shared with DBQ tutor.
- `packages/tutor/calibration/leq/` — calibration examples as test fixtures.
- `packages/tutor/shared/` — shared detector logic, voice rules, period-bank loading.
- `services/web-app/app/components/document/leq/tutor-sidebar.tsx` — surface (per the screen spec); tutor logic lives in `packages/tutor/`.
- `packages/db/...` — `TutorSession` (shared table), `DetectorFire` (shared table), prompt-choice state.
Whether shared logic between DBQ and LEQ tutors lives in `packages/tutor/shared/` or is co-located differently is an engineering call.
## Open questions
- [ ] **Shared vs. separate detector implementations.** Several detectors (thesis-restates-prompt, context-is-a-phrase, period-bleed, missing-complexity, burying-the-thesis) are shared between DBQ and LEQ tutors. Share the implementation and branch on `essayType`, or copy-and-specialize? Sharing is cleaner but the response templates differ. (Bryant)
- [ ] **Prompt-choice modeling.** Does a prompt-choice assignment carry 3 prompts on one Assignment, or is it 3 Assignments with a selection step? Affects the `TutorSession` shape and gradebook display. (Kevin / Bryant)
- [ ] **Prompt-choice in timed mode.** Does the 40-minute clock start before or after prompt selection? On the real AP exam, selection happens during the 40 minutes. Probably mirror the exam. (Kevin)
- [ ] **Evidence specificity threshold.** How specific is specific enough? "The New Deal" — too vague. "The Social Security Act" — specific. "Social Security" — specific enough? Probably yes. Need a small labeled corpus to calibrate the generic-evidence detector. (Kevin to source ~20 real student LEQ essays scored against the rubric; engineering to run.)
- [ ] **Reasoning-structure detection.** The reasoning-structure-missing detector is harder to implement than lexical-match detectors. How much of this is rule-based vs. model-based in v1? (Bryant — feasibility)
- [ ] **Detector false-positive budget.** Same question as DBQ — <5% on blocking, <20% on soft. Needs the LEQ-specific corpus. (Kevin / Bryant)
- [ ] **Evidence brainstorm persistence.** Does the Phase 2 evidence inventory persist anywhere the student can see during drafting, or is it conversation-only? The screen spec says no planning sidebar, so this is tutor-conversation-only unless we add a minimal evidence-list affordance. (Kevin)
- [ ] **Prompt-choice drill — how many prompt sets?** For the `promptChoice` coaching scope, how many sets of 3 prompts should a single drill session cycle through? Probably 3–5 sets (9–15 prompts total). (Kevin)
- [ ] **Timed-mode tutor verbosity.** On a 40-minute clock, how aggressively should the tutor self-limit? One turn per body paragraph? One turn per phase transition? Need to test with real students to find the right cadence. (Kevin — pilot data)
- [ ] **Cross-essay-type drill sequencing.** When the diagnostic recommends drills after a full LEQ, should any of those drills be DBQ drills (e.g., doc-analysis to build evidence recognition skills)? Or keep drill recommendations within essay type? (Kevin)
- [ ] **Retrospective coaching pass.** Same question as DBQ — who delivers the rubric-by-rubric retrospective on submit? This spec assumes the GA owns it. Confirm. (Kevin)
- [ ] **Model choice and prompt-engineering shape.** Same question as DBQ — which foundation model, which prompting strategy. Non-negotiable constraints carry from DBQ (errors-don't-subtract, ask-before-asserting, never-write-for-the-student). (Bryant)
- [ ] **Period bank sufficiency for LEQ.** The DBQ period bank was designed with outside-evidence as a bonus point. For LEQ, it's the entire evidence side. Do banks need to be larger for LEQ use — 15–20 anchors per period instead of 8–15? (Kevin)
- [ ] **Reasoning-skill detection fallback.** Same question as DBQ — when the prompt verb is ambiguous, ask the student or decide silently? (Kevin)
## Edge cases
- Student writes the thesis at the end of the conclusion (technically allowed on the AP exam). Tutor doesn't penalize but suggests echoing it at the end of para 1 for reader-friendliness.
- Student opens an LEQ in untimed mode, writes for 10 minutes, then the assignment switches to timed mode (admin override). Tutor session continues; phase machine doesn't reset. Clock starts from the override point, not from the student's first keystroke.
- Student writes an exceptional thesis on the first try. Tutor names what landed and moves on — no over-coaching.
- Student picks a prompt in prompt-choice mode, writes two paragraphs, then wants to switch to a different prompt. Tutor: "Switching now means starting over with 25 minutes left. Are you sure?" If yes, reset the phase machine. The old draft stays in the Document; the student writes below it or clears it.
- Student names a piece of evidence the tutor can't verify (not in the period bank, tutor isn't confident). Tutor asks: "What do you remember about [evidence]? And is the exact detail load-bearing for your argument?" Never confirms or denies a fact it isn't confident about.
- Student writes in another language. Out of scope at v1 (APUSH is English-only); tutor responds in English regardless.
- Student copy-pastes a body paragraph from somewhere (paste alert fires). Tutor coaches on what's on the page as-written; integrity is handled elsewhere.
- Student types "I don't know any evidence for this period." Tutor surfaces 3–4 period-bank anchors as options: "Here are a few from the period — [anchor 1], [anchor 2], [anchor 3]. Do any of these connect to your argument?" If the student can't work with any of them, the tutor suggests a different body-paragraph angle or (in prompt-choice mode) asks if another prompt would be stronger.
- Student's underlying model goes down mid-session. Surface degrades gracefully (per the screen spec); student can still write. Conversation history persists; tutor catches up when service is restored.
- A new detector fires while the student is mid-typing. Tutor waits for a typing pause, then surfaces the new turn.
- Reasoning skill is set wrong by the teacher (assignment says causation, prompt is actually CCOT). Tutor coaches against the prompt's actual verb, not the metadata.
- Student tries to use the tutor as a content reference ("Tell me everything about the Great Society"). Tutor gives a brief, bank-grounded answer and redirects: "The Great Society included Medicare, Medicaid, and the Elementary and Secondary Education Act. Which of those works for your argument? Let's get it on the page."
- Student submits with fewer than 2 specific pieces of evidence. GA scores Evidence I as not earned; tutor's retrospective note (if the tutor delivers one) focuses on evidence-bank building as the next practice step.
- Timed mode: student hasn't started writing by minute 10. Tutor: "You're a quarter of the way through the clock with nothing on the page. Write your thesis now — even a rough one — and start the first body paragraph. You can refine later."
- Student names evidence that is period-appropriate and specific but factually wrong (e.g., "The Wagner Act outlawed child labor"). If the tutor is confident the fact is wrong (from the period bank), it asks: "Check that — I don't think that's what the Wagner Act did. What do you remember?" If unsure, the tutor lets it go — errors don't subtract unless they undermine the argument.
## Test plan
To be detailed with engineering. Starting list:
- **Unit tests** on each detector — labeled corpus of student-LEQ snippets, each annotated with which detectors should fire. Target <5% false-positive rate on blocking detectors, <20% on soft.
- **Unit tests** on reasoning-skill detection from prompt verbs (shared with DBQ).
- **Unit tests** on reasoning-structure detection for each of the four reasoning skills — separate test corpus per skill showing structural vs. surface-level reasoning.
- **Unit tests** on phase-transition logic — given a session state and a new turn, does the tutor stay or advance?
- **Unit tests** on prompt-choice protocol — correct behavior with 1 prompt (skip), 3 prompts (run protocol), student indecision handling, timed-mode time pressure.
- **Calibration tests** — for each example in the calibration set, the tutor's actual output is judged against the "good turn" reference. Run as part of CI.
- **Integration test** — full LEQ session end-to-end, untimed. Verify phase progression, detector firing, evidence brainstorm depth, reasoning-skill coaching, conversation coherence.
- **Integration test** — timed-mode session (40 min). Verify coaching from minute 0, time-marker surfacing, compressed phase budget, auto-submit at minute 40.
- **Integration test** — prompt-choice session. Verify protocol runs, narrowing happens, phase machine enters after selection.
- **Integration test** — narrowed-scope sessions (thesis, evidence, reasoning, promptChoice, complexity).
- **Integration test** — evidence brainstorm with period-bank surfacing. Verify the tutor pulls from the bank without hallucinating, and that bank anchors are period-appropriate.
- **Manual QA** — Kevin walks through 5+ student-style LEQ sessions, scoring tutor turns against the calibration anchors.
- **Manual QA** — compare tutor behavior on the same prompt in LEQ mode vs. DBQ mode (if a prompt exists in both libraries). Verify the LEQ tutor doesn't accidentally run DBQ-style coaching (no document references, no sourcing coaching, no HIPP prompts).
- **Pedagogy review** — an APUSH teacher (UA professor, or someone from the Washington pilot) does a 1-hour read of representative tutor sessions before launch.
- **Regression corpus** — once real student sessions exist, mine for surprising tutor turns (good and bad) and add them to the calibration set.
- **A/B: evidence brainstorm depth.** Does the tutor pushing for 5+ evidence items in Phase 2 actually produce better essays than a lighter "name a few things" prompt? Test with pilot students.
## Rollout
Feature flag, shared with the parent spec (`ap_history_essay`). Default off. The LEQ tutor ships when the LEQ AssignmentType ships — but can ship after the DBQ tutor if sequencing demands it, since the LEQ surface is structurally simpler.
Pilot order: UA professor → Washington → Birmingham City, per the parent spec.
**Staged behavior within v1.** Same pattern as the DBQ tutor: ship the phase machine and detectors at v1, but keep the *complexity* coaching and *prompt-choice protocol* behind sub-flags until calibration data confirms reliability. Reasoning-skill coaching ships from day one — it's the LEQ's core differentiator and students need it immediately.
**Kill-switch.** Per-detector enable/disable, controllable by admin. If a detector starts misfiring in pilot, turn it off without a release.
**Fallback.** If the tutor's underlying model is unavailable, the screen renders the sidebar with a "tutor is offline — keep writing, your work is saved" state. The student can submit without tutor coaching; the GA still grades.
## Engineering handoff checklist
- [ ] Domain context covered
- [ ] File paths in `yawp-2.0` listed
- [ ] Data model implications spelled out, including backward-compat plan
- [ ] Voice and posture rules specified
- [ ] Phase machine specified
- [ ] Per-phase behavior specified
- [ ] Failure-mode detector table populated
- [ ] Reasoning-skill sentence patterns documented
- [ ] Prompt-choice protocol specified
- [ ] Calibration examples filled in (15+ — currently 10, with stubs for 5 more)
- [ ] Period bank approach decided (shared with DBQ — storage + ownership)
- [ ] Detector tuning thresholds set (needs labeled LEQ corpus)
- [ ] Edge cases enumerated
- [ ] Test plan written
- [ ] Rollout plan decidedRepo sync
No repo sync metadata recorded yet.