| Dimension | Shared | Only in A | Only in B | Overlap |
|---|---|---|---|---|
| Sections | 0 | 1 | 1 | 0% |
| Commands | 0 | 0 | 3 | 0% |
| Section tags | 1 | 0 | 2 | 33% |
What each file covers
Sections
0 shared · 1 only in A · 1 only in B- − Supabase Rules
- + AI Service Rules
Commands
0 shared · 0 only in A · 3 only in B- + python -m mypy app
- + python -m ruff check .
- + python -m pytest
Section tags
1 shared · 0 only in A · 2 only in B- + test
- + lint-format
- do-not
Line diff
Aledon8/OpenLeukemia · .cursor/rules/supabase.mdc
@@ −1 @@
1---
2description: Supabase data, storage, and RLS rules
3globs:
4 - "supabase/**/*"
5alwaysApply: false
6---
7
8# Supabase Rules
9
10- Use Supabase for auth, CRUD, storage, consent records, RLS, and lightweight Edge Functions.
11- Keep heavy ML, OCR, extraction, parsing, and model workflows in `ai-service`.
12- Treat RLS as a primary protection layer.
13- Pair sensitive tables with narrow, auditable policies.
14- Plan affected data flows and access paths before schema or policy changes.
15
Aledon8/OpenLeukemia · .cursor/rules/ai-service.mdc
@@ +1 @@
1---
2description: Python FastAPI AI-service rules
3globs:
4 - "ai-service/**/*.py"
5alwaysApply: false
6---
7
8# AI Service Rules
9
10- Keep FastAPI route handlers thin; put reusable behavior in `app/domains`.
11- Use explicit Pydantic request and response models.
12- Preserve strict typing and keep `python -m mypy app` clean.
13- Use `response_model` for route outputs.
14- Treat extraction and model outputs as explainable signals or candidate data, not clinical decisions.
15- Run `python -m ruff check .` and relevant `python -m pytest` tests for Python changes.
16
@@ −1 +1 @@
11 ---
2−description: Supabase data, storage, and RLS rules
2+description: Python FastAPI AI-service rules
33 globs:
4− - "supabase/**/*"
4+ - "ai-service/**/*.py"
55 alwaysApply: false
66 ---
77
8−# Supabase Rules
8+# AI Service Rules
99
10−- Use Supabase for auth, CRUD, storage, consent records, RLS, and lightweight Edge Functions.
11−- Keep heavy ML, OCR, extraction, parsing, and model workflows in `ai-service`.
12−- Treat RLS as a primary protection layer.
13−- Pair sensitive tables with narrow, auditable policies.
14−- Plan affected data flows and access paths before schema or policy changes.
10+- Keep FastAPI route handlers thin; put reusable behavior in `app/domains`.
11+- Use explicit Pydantic request and response models.
12+- Preserve strict typing and keep `python -m mypy app` clean.
13+- Use `response_model` for route outputs.
14+- Treat extraction and model outputs as explainable signals or candidate data, not clinical decisions.
15+- Run `python -m ruff check .` and relevant `python -m pytest` tests for Python changes.
1516
