Repo map¶
.
├─ README.md # Project summary (archive)
├─ run.py # Uvicorn entry for Railway web
├─ requirements.txt
├─ src/
│ ├─ endpoints/ # FastAPI app, forms, magic links
│ ├─ auth/ # Signed credentials cookie
│ ├─ kms/ # KMS + AES-GCM encrypt/decrypt
│ ├─ db/ # SQLAlchemy models + session
│ ├─ celery/ # Worker tasks + Beat schedule
│ ├─ celery_app.py # Celery app factory entry
│ ├─ mail/ # Resend (users) + Mailtrap (admin)
│ ├─ play/ # Playwright page objects + tests
│ ├─ storage/ # Optional Railway object bucket
│ ├─ signoff_timecard.py # Browser sign-off workflow
│ ├─ signoff_models.py # Dataclasses for automation results
│ ├─ config.py / utils.py
│ └─ env.example # Variable names only
└─ docs-site/ # This MkDocs site
| Path | Role |
|---|---|
src/endpoints/main.py |
All HTTP routes, middleware, credential submit |
src/auth/cookies.py |
30-minute signed session cookie |
src/kms/service.py |
KMSEncryptService / KMSDecryptService |
src/kms/crypto.py |
AES-GCM helpers |
src/celery/tasks.py |
signoff_user_timecard, enqueue_all_signoffs_if_needed |
src/play/pages/ |
Login, dashboard, employee, sign-off confirmation |
src/storage/bucket_service.py |
Screenshot upload to Railway storage |
test_celery_decrypt.py |
Manual decrypt smoke test (needs TEST_EMAIL) |
Note
Keep durable narrative in docs-site/docs/ so nav stays stable even if code moves.