| Dimension | Shared | Only in A | Only in B | Overlap |
|---|---|---|---|---|
| Sections | 0 | 1 | 3 | 0% |
| Commands | 3 | 0 | 2 | 60% |
| Section tags | 3 | 0 | 1 | 75% |
What each file covers
Sections
0 shared · 1 only in A · 3 only in B- − AI Service Rules
- + AI Service Instructions
- + Commands
- + Rules
Commands
3 shared · 0 only in A · 2 only in B- + python -m uvicorn app.main:app --reload
- + mypy app
- python -m mypy app
- python -m ruff check .
- python -m pytest
Section tags
3 shared · 0 only in A · 1 only in B- + agent-behaviour
- test
- lint-format
- do-not
Line diff
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
Aledon8/OpenLeukemia · ai-service/CLAUDE.md
@@ +1 @@
1# AI Service Instructions
2
3This directory contains the FastAPI service for Python-native workloads: ML inference, document extraction, OCR or parsing workflows, model-facing APIs, and compute-heavy jobs.
4
5## Commands
6
7Run from `ai-service/`:
8
9```sh
10python -m uvicorn app.main:app --reload
11python -m ruff check .
12python -m pytest
13python -m mypy app
14```
15
16## Rules
17
18- Keep route handlers thin and focused on HTTP concerns.
19- Put reusable behavior in `app/domains/` services and schemas.
20- Use explicit Pydantic request and response models.
21- Preserve strict typing and keep `mypy app` clean.
22- Treat extraction results as candidate data until validated or confirmed.
23- Keep generated explanations non-diagnostic and patient-safe.
24- For endpoint changes, define the request/response contract and tests before broad implementation.
25
@@ −1 +1 @@
1−---
2−description: Python FastAPI AI-service rules
3−globs:
4− - "ai-service/**/*.py"
5−alwaysApply: false
6−---
1+# AI Service Instructions
72
8−# AI Service Rules
3+This directory contains the FastAPI service for Python-native workloads: ML inference, document extraction, OCR or parsing workflows, model-facing APIs, and compute-heavy jobs.
94
10−- Keep FastAPI route handlers thin; put reusable behavior in `app/domains`.
5+## Commands
6+
7+Run from `ai-service/`:
8+
9+```sh
10+python -m uvicorn app.main:app --reload
11+python -m ruff check .
12+python -m pytest
13+python -m mypy app
14+```
15+
16+## Rules
17+
18+- Keep route handlers thin and focused on HTTP concerns.
19+- Put reusable behavior in `app/domains/` services and schemas.
1120 - 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.
21+- Preserve strict typing and keep `mypy app` clean.
22+- Treat extraction results as candidate data until validated or confirmed.
23+- Keep generated explanations non-diagnostic and patient-safe.
24+- For endpoint changes, define the request/response contract and tests before broad implementation.
1625
