| Contract | Current status | Evidence | Validation |
|---|---|---|---|
| Bash runner creates runtime and starts FastAPI. | PASS | `run_documents_api.sh` | Manual run / future smoke test. |
| Backend serves hosted HTML. | PASS | `documents_api.py`, `GET /` | GET `/` returns HTML. |
| Backend accepts and saves files to dynamic `Documents` folder. | PASS backend | `POST /api/documents` | API smoke test with multipart file. |
| Hosted HTML sends selected files to backend. | NEEDS E2E | `uploadToBackend()` uses `fetch('/api/documents')`. | Playwright e2e after implementation. |