# 3. AI-Generated Study Plan — Test Cases

User Type: **Student**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: ai_study_plan.md — every feature, sub-feature, and rule covered

---

## Test Execution Policy
- Zero tolerance: any deviation from documented behavior = FAILED = bug
- Every bug is immediately logged/reported (Bug ID, feature, sub-feature, expected vs actual, severity) and fixed 100% before the group passes
- Feature group passes only at 100% test pass rate

## Coverage Matrix
| Feature | Sub-feature / Rule | Test IDs |
|---------|--------------------|----------|
| 3.1 Personalized Plan Creation | Personalized plan based on predicted score and target gap | TC-ST-06-03-001 |
| 3.1 Personalized Plan Creation | Prioritizes weak subjects and topics | TC-ST-06-03-002 |
| 3.1 Personalized Plan Creation | Balances study load across the time remaining | TC-ST-06-03-003 |
| 3.1 Personalized Plan Creation | Includes revision cycles | TC-ST-06-03-004 |
| 3.1 Personalized Plan Creation | Adapts to the Student's learning pace | TC-ST-06-03-005 |
| 3.1 Personalized Plan Creation | Plan view by day and by week | TC-ST-06-03-006 |
| 3.1 Personalized Plan Creation | Regenerate the plan when the prediction changes | TC-ST-06-03-007 |
| 3.1 Personalized Plan Creation | Plan event logging (generated, regenerated) | TC-ST-06-03-008 |
| 3.1 Personalized Plan Creation | Audit logging of the personalized plan creation | TC-ST-06-03-009 |
| 3.1 Personalized Plan Creation | Rule: The plan is generated from the predicted score and the target gap. | TC-ST-06-03-001 |
| 3.1 Personalized Plan Creation | Rule: Weak subjects and topics are prioritized in the plan. | TC-ST-06-03-002 |
| 3.1 Personalized Plan Creation | Rule: The study load is balanced across the time remaining. | TC-ST-06-03-003 |
| 3.1 Personalized Plan Creation | Rule: Revision cycles are included before the exam date. | TC-ST-06-03-004 |
| 3.1 Personalized Plan Creation | Rule: Plan events (generated, regenerated) are logged with the exam and the timestamp. | TC-ST-06-03-005 |
| 3.1 Personalized Plan Creation | Rule: The personalized plan creation is audit-logged with the account, the exam, and the timestamp. | TC-ST-06-03-006 |
| 3.2 Study Plan Components | Daily and weekly study targets | TC-ST-06-03-010 |
| 3.2 Study Plan Components | Specific topics to cover per day/week | TC-ST-06-03-011 |
| 3.2 Study Plan Components | Practice and revision blocks | TC-ST-06-03-012 |
| 3.2 Study Plan Components | Milestones within the plan | TC-ST-06-03-013 |
| 3.2 Study Plan Components | Mark a component complete | TC-ST-06-03-014 |
| 3.2 Study Plan Components | Component progress (done vs planned) | TC-ST-06-03-015 |
| 3.2 Study Plan Components | Components linked to the mapped topics | TC-ST-06-03-016 |
| 3.2 Study Plan Components | Component event logging (completed) | TC-ST-06-03-017 |
| 3.2 Study Plan Components | Audit logging of the study plan components | TC-ST-06-03-018 |
| 3.2 Study Plan Components | Rule: Daily and weekly targets are derived from the plan. | TC-ST-06-03-010 |
| 3.2 Study Plan Components | Rule: A component is linked to a mapped topic. | TC-ST-06-03-011 |
| 3.2 Study Plan Components | Rule: Marking a component complete updates the plan progress. | TC-ST-06-03-012 |
| 3.2 Study Plan Components | Rule: Milestones are checkpoints within the plan. | TC-ST-06-03-013 |
| 3.2 Study Plan Components | Rule: Component events (completed) are logged with the exam and the timestamp. | TC-ST-06-03-014 |
| 3.2 Study Plan Components | Rule: The study plan components is audit-logged with the account, the exam, and the timestamp. | TC-ST-06-03-015 |
| 3.3 Plan Adaptation and Check-ins | Plan adapts when the Student falls behind or ahead | TC-ST-06-03-019 |
| 3.3 Plan Adaptation and Check-ins | Check-in prompts to review progress | TC-ST-06-03-020 |
| 3.3 Plan Adaptation and Check-ins | Acknowledge a check-in | TC-ST-06-03-021 |
| 3.3 Plan Adaptation and Check-ins | Adjust the plan from a check-in | TC-ST-06-03-022 |
| 3.3 Plan Adaptation and Check-ins | Re-plan suggestion when behind | TC-ST-06-03-023 |
| 3.3 Plan Adaptation and Check-ins | Plan adherence metric (on-track vs behind) | TC-ST-06-03-024 |
| 3.3 Plan Adaptation and Check-ins | Check-in event logging (prompted, acknowledged, adjusted) | TC-ST-06-03-025 |
| 3.3 Plan Adaptation and Check-ins | Audit logging of the plan adaptation and check-ins | TC-ST-06-03-026 |
| 3.3 Plan Adaptation and Check-ins | Rule: The plan adapts when the Student falls behind or ahead of schedule. | TC-ST-06-03-019 |
| 3.3 Plan Adaptation and Check-ins | Rule: A check-in prompt is sent when adherence drops below the threshold. | TC-ST-06-03-020 |
| 3.3 Plan Adaptation and Check-ins | Rule: A re-plan suggestion is offered when the Student is behind. | TC-ST-06-03-021 |
| 3.3 Plan Adaptation and Check-ins | Rule: The adherence metric is on-track vs behind. | TC-ST-06-03-022 |
| 3.3 Plan Adaptation and Check-ins | Rule: Check-in events (prompted, acknowledged, adjusted) are logged with the exam and the timestamp. | TC-ST-06-03-023 |
| 3.3 Plan Adaptation and Check-ins | Rule: The plan adaptation and check-ins is audit-logged with the account, the exam, and the timestamp. | TC-ST-06-03-024 |

## 3.1 Personalized Plan Creation

### TC-ST-06-03-001 — Personalized plan based on predicted score and target gap
**Type:** Positive
**Covers:** 3.1 → Personalized plan based on predicted score and target gap; Rule: The plan is generated from the predicted score and the target gap.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Personalized plan based on predicted score and target gap.
2. Observe the result and verify the full behavior: Personalized plan based on predicted score and target gap.
**Expected Result:** Personalized plan based on predicted score and target gap — delivered exactly as documented.
**Priority:** Critical

### TC-ST-06-03-002 — Prioritizes weak subjects and topics
**Type:** Edge
**Covers:** 3.1 → Prioritizes weak subjects and topics; Rule: Weak subjects and topics are prioritized in the plan.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Prioritizes weak subjects and topics.
2. Observe the result and verify the full behavior: Prioritizes weak subjects and topics.
**Expected Result:** Prioritizes weak subjects and topics — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-003 — Balances study load across the time remaining
**Type:** Positive
**Covers:** 3.1 → Balances study load across the time remaining; Rule: The study load is balanced across the time remaining.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Balances study load across the time remaining.
2. Observe the result and verify the full behavior: Balances study load across the time remaining.
**Expected Result:** Balances study load across the time remaining — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-004 — Includes revision cycles
**Type:** Positive
**Covers:** 3.1 → Includes revision cycles; Rule: Revision cycles are included before the exam date.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Includes revision cycles.
2. Observe the result and verify the full behavior: Includes revision cycles.
**Expected Result:** Includes revision cycles — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-005 — Adapts to the Student's learning pace
**Type:** Positive
**Covers:** 3.1 → Adapts to the Student's learning pace; Rule: Plan events (generated, regenerated) are logged with the exam and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Adapts to the Student's learning pace.
2. Observe the result and verify the full behavior: Adapts to the Student's learning pace.
**Expected Result:** Adapts to the Student's learning pace — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-006 — Plan view by day and by week
**Type:** Positive
**Covers:** 3.1 → Plan view by day and by week; Rule: The personalized plan creation is audit-logged with the account, the exam, and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Plan view by day and by week.
2. Observe the result and verify the full behavior: Plan view by day and by week.
**Expected Result:** Plan view by day and by week — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-007 — Regenerate the plan when the prediction changes
**Type:** Positive
**Covers:** 3.1 → Regenerate the plan when the prediction changes
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Regenerate the plan when the prediction changes.
2. Observe the result and verify the full behavior: Regenerate the plan when the prediction changes.
**Expected Result:** Regenerate the plan when the prediction changes — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-008 — Plan event logging (generated, regenerated)
**Type:** Positive
**Covers:** 3.1 → Plan event logging (generated, regenerated)
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Plan event logging (generated.
2. Observe the result and verify the full behavior: Plan event logging (generated, regenerated).
**Expected Result:** Plan event logging (generated, regenerated) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-009 — Audit logging of the personalized plan creation
**Type:** Positive
**Covers:** 3.1 → Audit logging of the personalized plan creation
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, perform the action associated with: Audit logging of the personalized plan creation.
2. Open the relevant activity / audit log and verify the event is recorded with the account, the action, and the timestamp.
**Expected Result:** The action is audit-logged — the account, the action, and the timestamp are recorded.
**Priority:** Critical

## 3.2 Study Plan Components

### TC-ST-06-03-010 — Daily and weekly study targets
**Type:** Positive
**Covers:** 3.2 → Daily and weekly study targets; Rule: Daily and weekly targets are derived from the plan.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Daily and weekly study targets.
2. Observe the result and verify the full behavior: Daily and weekly study targets.
**Expected Result:** Daily and weekly study targets — delivered exactly as documented.
**Priority:** Critical

### TC-ST-06-03-011 — Specific topics to cover per day/week
**Type:** Positive
**Covers:** 3.2 → Specific topics to cover per day/week; Rule: A component is linked to a mapped topic.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Specific topics to cover per day/week.
2. Observe the result and verify the full behavior: Specific topics to cover per day/week.
**Expected Result:** Specific topics to cover per day/week — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-012 — Practice and revision blocks
**Type:** Edge
**Covers:** 3.2 → Practice and revision blocks; Rule: Marking a component complete updates the plan progress.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Practice and revision blocks.
2. Observe the result and verify the full behavior: Practice and revision blocks.
**Expected Result:** Practice and revision blocks — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-013 — Milestones within the plan
**Type:** Positive
**Covers:** 3.2 → Milestones within the plan; Rule: Milestones are checkpoints within the plan.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Milestones within the plan.
2. Observe the result and verify the full behavior: Milestones within the plan.
**Expected Result:** Milestones within the plan — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-014 — Mark a component complete
**Type:** Positive
**Covers:** 3.2 → Mark a component complete; Rule: Component events (completed) are logged with the exam and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Mark a component complete.
2. Observe the result and verify the full behavior: Mark a component complete.
**Expected Result:** Mark a component complete — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-015 — Component progress (done vs planned)
**Type:** Positive
**Covers:** 3.2 → Component progress (done vs planned); Rule: The study plan components is audit-logged with the account, the exam, and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Component progress (done vs planned).
2. Observe the result and verify the full behavior: Component progress (done vs planned).
**Expected Result:** Component progress (done vs planned) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-016 — Components linked to the mapped topics
**Type:** Positive
**Covers:** 3.2 → Components linked to the mapped topics
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Components linked to the mapped topics.
2. Observe the result and verify the full behavior: Components linked to the mapped topics.
**Expected Result:** Components linked to the mapped topics — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-017 — Component event logging (completed)
**Type:** Positive
**Covers:** 3.2 → Component event logging (completed)
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Component event logging (completed).
2. Observe the result and verify the full behavior: Component event logging (completed).
**Expected Result:** Component event logging (completed) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-018 — Audit logging of the study plan components
**Type:** Positive
**Covers:** 3.2 → Audit logging of the study plan components
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, perform the action associated with: Audit logging of the study plan components.
2. Open the relevant activity / audit log and verify the event is recorded with the account, the action, and the timestamp.
**Expected Result:** The action is audit-logged — the account, the action, and the timestamp are recorded.
**Priority:** Critical

## 3.3 Plan Adaptation and Check-ins

### TC-ST-06-03-019 — Plan adapts when the Student falls behind or ahead
**Type:** Positive
**Covers:** 3.3 → Plan adapts when the Student falls behind or ahead; Rule: The plan adapts when the Student falls behind or ahead of schedule.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Plan adapts when the Student falls behind or ahead.
2. Observe the result and verify the full behavior: Plan adapts when the Student falls behind or ahead.
**Expected Result:** Plan adapts when the Student falls behind or ahead — delivered exactly as documented.
**Priority:** Critical

### TC-ST-06-03-020 — Check-in prompts to review progress
**Type:** Positive
**Covers:** 3.3 → Check-in prompts to review progress; Rule: A check-in prompt is sent when adherence drops below the threshold.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Check-in prompts to review progress.
2. Observe the result and verify the full behavior: Check-in prompts to review progress.
**Expected Result:** Check-in prompts to review progress — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-021 — Acknowledge a check-in
**Type:** Positive
**Covers:** 3.3 → Acknowledge a check-in; Rule: A re-plan suggestion is offered when the Student is behind.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Acknowledge a check-in.
2. Observe the result and verify the full behavior: Acknowledge a check-in.
**Expected Result:** Acknowledge a check-in — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-022 — Adjust the plan from a check-in
**Type:** Positive
**Covers:** 3.3 → Adjust the plan from a check-in; Rule: The adherence metric is on-track vs behind.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Adjust the plan from a check-in.
2. Observe the result and verify the full behavior: Adjust the plan from a check-in.
**Expected Result:** Adjust the plan from a check-in — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-023 — Re-plan suggestion when behind
**Type:** Positive
**Covers:** 3.3 → Re-plan suggestion when behind; Rule: Check-in events (prompted, acknowledged, adjusted) are logged with the exam and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Re-plan suggestion when behind.
2. Observe the result and verify the full behavior: Re-plan suggestion when behind.
**Expected Result:** Re-plan suggestion when behind — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-024 — Plan adherence metric (on-track vs behind)
**Type:** Positive
**Covers:** 3.3 → Plan adherence metric (on-track vs behind); Rule: The plan adaptation and check-ins is audit-logged with the account, the exam, and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Plan adherence metric (on-track vs behind).
2. Observe the result and verify the full behavior: Plan adherence metric (on-track vs behind).
**Expected Result:** Plan adherence metric (on-track vs behind) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-025 — Check-in event logging (prompted, acknowledged, adjusted)
**Type:** Positive
**Covers:** 3.3 → Check-in event logging (prompted, acknowledged, adjusted)
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Check-in event logging (prompted.
2. Observe the result and verify the full behavior: Check-in event logging (prompted, acknowledged, adjusted).
**Expected Result:** Check-in event logging (prompted, acknowledged, adjusted) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-03-026 — Audit logging of the plan adaptation and check-ins
**Type:** Positive
**Covers:** 3.3 → Audit logging of the plan adaptation and check-ins
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, perform the action associated with: Audit logging of the plan adaptation and check-ins.
2. Open the relevant activity / audit log and verify the event is recorded with the account, the action, and the timestamp.
**Expected Result:** The action is audit-logged — the account, the action, and the timestamp are recorded.
**Priority:** Critical
