{
  "system": "Senze Quality Assurance",
  "release": "Preview / functional demonstration. Not accredited, not endorsed by any school.",
  "purpose": "Massachusetts school platform: school directory, staff syllabus drafts, online homework with scoring, teacher marking, student view and family view.",
  "stack": {
    "framework": "TanStack Start (React 19, file-based routes, server functions)",
    "database": "Postgres with row level security on every application table",
    "auth": "Email + password and Google sign-in; no anonymous sign-up",
    "ai": "Server-side only text helper for drafting and explaining. It has no access to records."
  },
  "identity_rules": [
    "Staff sign-up is refused unless the email domain has already been approved for a school.",
    "The first staff member of a school becomes that school's approver; everyone else waits for approval.",
    "Student and guardian sign-up is refused unless the school has already added that exact email.",
    "There is no platform-wide administrator role that can read school records."
  ],
  "access_rules": [
    "Every table denies access by default; access is granted only by an explicit row level security policy.",
    "Staff reach rows only for a school where they are an approved member.",
    "A guardian reaches only rows for students the school linked to that guardian's email.",
    "A student reaches only their own submissions and may hand work in once.",
    "Question answer keys have no read policy for students or families; scoring happens on the server.",
    "The public school directory and the compliance reference are deliberately readable by anyone."
  ],
  "data_minimisation": [
    "Students are stored as first name plus last initial, never a full legal name.",
    "No student identifiers from a school information system are imported. FACTS is not connected.",
    "Sample records are flagged as samples and are the only records present before a school adds its own.",
    "There is no export or download of student, family or staff records anywhere in the application."
  ],
  "developer_boundary": [
    "A developer can build, change and publish the application.",
    "A developer cannot see staff, student or guardian names or emails through the application.",
    "A developer cannot open homework answers, marks or private syllabus drafts through the application.",
    "Whoever owns the hosting account can reach the database directly; this is stated openly rather than hidden."
  ],
  "known_limits": [
    "Password reset by email and a school approval queue screen are not built yet.",
    "Security-definer helper functions are executable by signed-in users because row level security needs them.",
    "No independent penetration test or accreditation review has been carried out."
  ],
  "review_invitation": "Reviewers are asked to challenge the access rules above and report anything that would let one school, one family or a developer reach another school's records."
}