| Dimension | Shared | Only in A | Only in B | Overlap |
|---|---|---|---|---|
| Sections | 0 | 3 | 4 | 0% |
| Commands | 1 | 2 | 6 | 11% |
| Section tags | 3 | 1 | 1 | 60% |
What each file covers
Sections
0 shared · 3 only in A · 4 only in B- − AI Service Test Instructions
- − Commands
- − Rules
- + GitHub Copilot Instructions
- + Always Follow
- + Stack And Commands
- + Workflow
Commands
1 shared · 2 only in A · 6 only in B- − python -m pytest tests/test_health.py
- − python -m pytest tests/test_consents.py
- + npm run lint:frontend
- + npm run typecheck:frontend
- + npm test --workspace frontend
- + npm --workspace frontend run build
- + python -m ruff check .
- + python -m mypy app
- python -m pytest
Section tags
3 shared · 1 only in A · 1 only in B- − do-not
- + lint-format
- test
- code-style
- agent-behaviour
Line diff
Aledon8/OpenLeukemia · ai-service/tests/CLAUDE.md
@@ −1 @@
1# AI Service Test Instructions
2
3## Commands
4
5Run from `ai-service/`:
6
7```sh
8python -m pytest
9python -m pytest tests/test_health.py
10python -m pytest tests/test_consents.py
11```
12
13## Rules
14
15- Keep tests focused on externally visible behavior and domain contracts.
16- Cover consent and privacy-sensitive behavior conservatively.
17- Prefer clear test names that describe the expected behavior.
18- Add regression tests when fixing bugs in API routes, schemas, or domain services.
19- If a test fails, fix the root cause and rerun the smallest failing test before broader checks.
20
Aledon8/OpenLeukemia · .github/copilot-instructions.md
@@ +1 @@
1# GitHub Copilot Instructions
2
3OpenLeukemia is a patient-centered leukemia data platform. It organizes medical data, tracks changes over time, extracts structured information from documents, and explains validated model outputs in plain language.
4
5## Always Follow
6
7- Preserve explicit consent, privacy-by-default behavior, and patient ownership of data.
8- Registration is not blanket consent.
9- AI output may summarize, extract, and explain; it must not diagnose, recommend treatment, or make urgent clinical judgments.
10- Treat LLM extraction as candidate data until validated or confirmed.
11- Prefer minimal, focused changes that match nearby code.
12- Do not introduce dependencies, API changes, schema changes, or consent-flow changes without clear need.
13- Add or update tests when behavior changes.
14- Run or recommend the relevant check after changes.
15
16## Stack And Commands
17
18- Frontend: React 19, TypeScript, Vite, Vitest, ESLint.
19- Platform: Supabase Auth, Postgres, Storage, RLS, Edge Functions.
20- AI service: Python 3.12, FastAPI, Pydantic, Uvicorn.
21- Frontend checks: `npm run lint:frontend`, `npm run typecheck:frontend`, `npm test --workspace frontend`, `npm --workspace frontend run build`.
22- AI-service checks from `ai-service/`: `python -m ruff check .`, `python -m pytest`, `python -m mypy app`.
23
24## Workflow
25
26- Read nearby files before editing and follow the existing pattern.
27- For multi-file or risky changes, identify touched files and verification steps before implementation.
28- Use artifacts as primary evidence: errors, logs, screenshots, issues, plans, and referenced files.
29- Verify work with tests, build, lint, typecheck, or visual comparison when practical.
30
@@ −1 +1 @@
1−# AI Service Test Instructions
1+# GitHub Copilot Instructions
22
3−## Commands
3+OpenLeukemia is a patient-centered leukemia data platform. It organizes medical data, tracks changes over time, extracts structured information from documents, and explains validated model outputs in plain language.
44
5−Run from `ai-service/`:
5+## Always Follow
66
7−```sh
8−python -m pytest
9−python -m pytest tests/test_health.py
10−python -m pytest tests/test_consents.py
11−```
7+- Preserve explicit consent, privacy-by-default behavior, and patient ownership of data.
8+- Registration is not blanket consent.
9+- AI output may summarize, extract, and explain; it must not diagnose, recommend treatment, or make urgent clinical judgments.
10+- Treat LLM extraction as candidate data until validated or confirmed.
11+- Prefer minimal, focused changes that match nearby code.
12+- Do not introduce dependencies, API changes, schema changes, or consent-flow changes without clear need.
13+- Add or update tests when behavior changes.
14+- Run or recommend the relevant check after changes.
1215
13−## Rules
16+## Stack And Commands
1417
15−- Keep tests focused on externally visible behavior and domain contracts.
16−- Cover consent and privacy-sensitive behavior conservatively.
17−- Prefer clear test names that describe the expected behavior.
18−- Add regression tests when fixing bugs in API routes, schemas, or domain services.
19−- If a test fails, fix the root cause and rerun the smallest failing test before broader checks.
18+- Frontend: React 19, TypeScript, Vite, Vitest, ESLint.
19+- Platform: Supabase Auth, Postgres, Storage, RLS, Edge Functions.
20+- AI service: Python 3.12, FastAPI, Pydantic, Uvicorn.
21+- Frontend checks: `npm run lint:frontend`, `npm run typecheck:frontend`, `npm test --workspace frontend`, `npm --workspace frontend run build`.
22+- AI-service checks from `ai-service/`: `python -m ruff check .`, `python -m pytest`, `python -m mypy app`.
23+
24+## Workflow
25+
26+- Read nearby files before editing and follow the existing pattern.
27+- For multi-file or risky changes, identify touched files and verification steps before implementation.
28+- Use artifacts as primary evidence: errors, logs, screenshots, issues, plans, and referenced files.
29+- Verify work with tests, build, lint, typecheck, or visual comparison when practical.
2030
