Curriculum Audit & Repair
Detect and fix misaligned assignments — weekend dates, week mismatches, missing dates, and sequence breaks.
Overview
The Curriculum Audit tool scans all active (non-graded, non-cancelled) assignments for a student and flags issues that could cause assignments to appear on the wrong day or in the wrong order.
To access: From any teacher page, click Homeschool > Audit in the navigation bar, or go to curriculum-audit.html directly.
What it detects
| Issue Type | Description | Example |
|---|---|---|
| Weekend Dates | Assignments with a due date on Saturday or Sunday | Due Feb 16 (Presidents' Day gap) |
| Week Mismatch | Assignment's due date falls outside its assigned week's date range | Assigned to Week 5, but due date is in Week 8 |
| Missing Dates | Active assignments with no due date set | Status is "new" but due_date is NULL |
| Sequence Breaks | Assignments from the same resource appear out of order by date | Lesson 7 scheduled before Lesson 6 |
Running an Audit
- Open the Curriculum Audit page
- The audit runs automatically on page load
- Summary cards show counts for each issue type
- Detailed tables appear below for each issue category
To re-scan after making changes, click the Re-scan button in the top-right corner.
Fixing Issues
Weekend Date Fixes
- The audit suggests the next available weekday for each weekend assignment
- Review the suggested dates in the "Fix To" column
- Adjust any dates manually using the date picker if needed
- Select assignments to fix using checkboxes (or click "Accept All Suggested")
- Click Apply Selected Fixes
- Confirm the action in the popup dialog
Week Mismatch Fixes
For assignments where the due date doesn't match the assigned week, you can set a corrected date. The system will automatically recalculate the week assignment and day of week.
Missing Date Fixes
For assignments with no due date, pick an appropriate date using the date picker. The system validates that you choose a weekday within a school week.
Validation: The repair system rejects dates that fall on weekends or outside any school week. If a date is invalid, the date picker border turns red.
What Repair Does
When you apply a fix, the system updates three things for each assignment:
- due_date on student_assignments — the source of truth for scheduling
- week_id on assignments — recalculated from the new date's school week
- day_of_week on assignments — recalculated (1=Mon through 5=Fri)
All changes happen in a single database transaction. If any fix fails, all changes are rolled back.
Understanding Sequence Breaks
Sequence breaks are informational — they show where assignments from the same curriculum resource are scheduled out of their intended order. For example, if "Math Mammoth Ch.5 L.2" is dated before "Ch.5 L.1", that's a sequence break.
These are shown in a read-only table for review. To fix them, adjust the relevant due dates using the weekend or mismatch fix tools above.
Tips
- Run the audit after any bulk curriculum changes or imports
- Check the audit after holiday breaks to catch gap assignments
- The "Select All" checkbox makes bulk fixing quick
- After applying fixes, the page automatically re-scans to verify
- A green "All Clear" message appears when no issues remain