# MarkScheme — Full Agent Reference

> AI-powered Edexcel IAL Economics (WEC11–WEC14) answer grading and Assessment Objective (AO1–AO4) feedback platform.

## 1. Platform Overview

MarkScheme grades student responses against official Pearson Edexcel International A Level (IAL) Economics mark schemes and examiner reports. It achieves a 0.83-mark Mean Absolute Error (MAE) benchmark on calibrated classroom scripts (documented at `https://mark-scheme.com/testing`).

**Canonical Hosts:**
- `https://mark-scheme.com` — Public landing page, interactive answer composer, benchmark report (`/testing`), contact (`/contact`), legal policies, and agent discovery endpoints (`/llms.txt`, `/openapi.json`, `/.well-known/*`).
- `https://app.mark-scheme.com` — Student Workspace (`/` or `/dashboard`), AO Tracker (`/ao-tracker`), Teacher Workspace (`/teacher`), Login (`/login`), and Teacher REST proxy (`/api/teacher/*`).

**Disclaimer:** MarkScheme provides AI-generated revision feedback grounded in mark schemes. It is not an official Pearson Edexcel grade.

## 2. Supported Qualification & Papers

MarkScheme supports **Edexcel IAL Economics**:
- **WEC11 (Unit 1):** Markets in action (Questions `1`–`11`, `12a`–`12e`, `13`, `14`; sessions `Jan2019` through `June2026` / `June2026a`).
- **WEC12 (Unit 2):** Macroeconomic performance and policy (Questions `1`–`11`, `12a`–`12e`, `13`, `14`; sessions `June2019` through `June2026` / `June2026a`).
- **WEC13 (Unit 3):** Business behaviour (Questions `1`–`6`, `7a`–`7e`, `8`, `9`, `10`; sessions `Jan2020` through `Jan2026` / `Jan2026a`).
- **WEC14 (Unit 4):** Developments in the global economy (Questions `1`–`6`, `7a`–`7e`, `8`, `9`, `10`; sessions `Oct2020` through `June2026a`).

## 3. Assessment Objectives (AO1–AO4)

Every graded written answer is broken down across the four Edexcel Economics assessment objectives:
- **AO1 (Knowledge):** Definitions, economic concepts, formulas, and diagrams.
- **AO2 (Application):** Integration of data, extract evidence, and real-world/case context.
- **AO3 (Analysis):** Logical chains of reasoning (`cause -> mechanism -> effect`).
- **AO4 (Evaluation):** Judgement, short-run vs long-run trade-offs, magnitude, elasticity, and assumptions.

## 4. Upload & Grading Rules

- **Accepted formats:** Typed text, `.txt`, `.pdf`, `.jpg`/`.jpeg`, `.png` (up to 10 MB).
- **Source code guardrail:** Source code and developer script files (`.py`, `.js`, `.ts`, `.html`, `.json`, etc.) or code-like payloads are rejected client-side and server-side (`irrelevant_upload`) before incurring grading tokens or debiting credits.
- **Asynchrony:** Submissions upload to a presigned S3 URL (`GenerateUploadURL` Lambda), trigger asynchronous grading (`FeedbackFunction2`), and clients poll the results endpoint until grading completes.

## 5. Authentication & Workspaces

See `https://mark-scheme.com/auth.md` for full token details:
- **Teachers & Standard Students:** `Authorization: Bearer <Cognito-JWT>`
- **Managed Class Students:** `Authorization: Bearer STU_<session_token>` issued by `POST /api/teacher/signup` or teacher-generated credentials.
- **Teacher Credits:** Teachers receive a 10-credit allocation (`GET /api/teacher/credits`, `GET /api/teacher/overview`). Ad-hoc (`batch_id: "adhoc"`) and student-targeted teacher uploads debit 1 credit per graded script.

## 6. Key Endpoints Summary

Full machine-readable schemas are at `https://mark-scheme.com/openapi.json`:
- `GET /api/teacher/overview` — Teacher workspace profile, batches, and remaining credits.
- `GET /api/teacher/credits` — Current teacher credit balance.
- `GET /api/teacher/batches` & `POST /api/teacher/batches` — List or create class batches.
- `GET/POST /api/teacher/batches/{batch_id}/students` — Manage student roster (`POST .../bulk` supported).
- `GET/POST /api/teacher/batches/{batch_id}/assignments` — Create or list assignments.
- `GET/POST /api/teacher/batches/{batch_id}/submissions` — Link or list graded student submissions and teacher overrides.
- `GET /api/teacher/my-batches` & `GET /api/teacher/my-work/{batch_id}` — Student membership and graded feedback access.
- `POST https://hgbloxw6e7gq3y734xcia5cj640wyizo.lambda-url.us-east-1.on.aws/` — Request presigned S3 upload URL.
- `GET https://ufg5m3qhqcqkbbafbms4viaoma0ljbbf.lambda-url.us-east-1.on.aws/` — Poll grading results.
- `GET https://umvh3hmevahivrxlsotndp72ua0dllqk.lambda-url.us-east-1.on.aws/?doc_id={id}` — Retrieve/ask follow-up feedback context.

## 7. Policies & Support

- Privacy Policy: `https://mark-scheme.com/privacy-policy/`
- Terms of Service: `https://mark-scheme.com/terms-of-service/`
- Refund Policy: `https://mark-scheme.com/refund-policy/`
- Contact: `https://mark-scheme.com/contact`
