Add Elorasmus: pairwise Elo ranking of CTU exchange schools #1

Open
agent wants to merge 9 commits from feat/elorasmus-app into main

9 commits

Author SHA1 Message Date
2e29248fd6 Add more school research; document podman-compose recreate
build_data.py no longer writes __pycache__. README/AGENTS: podman-compose needs
--force-recreate to replace a running container after a rebuild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gXkMmmRRKLSnY6vQN3
2026-11-12 20:56:59 +00:00
26804b32ae Add more school research; ignore Python caches
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gXkMmmRRKLSnY6vQN3
2026-11-12 20:55:42 +00:00
d26b262a90 Add container setup and docs
Dockerfile (pinned node:26.13.0-alpine3.24, non-root, no npm install) and
compose.yaml (loopback by default, read-only root fs, dropped capabilities,
healthcheck, named volume). Every setting is an env var, documented in
.env.example and README.md. AGENTS.md records project conventions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gXkMmmRRKLSnY6vQN3
2026-11-12 20:55:35 +00:00
3a56938172 Build the app data file from catalogue and research
build_data.py merges catalog, research, countries and funding into
public/data/schools.json, skipping research files that fail validation and
assigning each school its CTU money scheme (Erasmus+ group, Swiss, CTU stipend,
housing swap for UTEP/UVM).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gXkMmmRRKLSnY6vQN3
2026-11-12 20:55:35 +00:00
0951f34a9d Add mobile-first web UI
Compare (duel with row-by-row comparison and thumb-reach pick bar), Ranking,
Triage (keep/drop pass, problem schools first), school detail with sources and
notes, Settings. Picks go to a localStorage outbox first and sync in the
background, so nothing is lost on a flaky connection. Light/dark themes,
installable to the home screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gXkMmmRRKLSnY6vQN3
2026-11-12 20:55:35 +00:00
67f9b199ec Add HTTP server: event store, optional login, static files
Standard library only. Config from env vars, validated at startup. State is an
append-only events.jsonl (idempotent appends, torn-line tolerant) plus notes and
settings written atomically. Optional AUTH_PASSWORD login with signed HttpOnly
SameSite=Strict cookies and per-IP backoff. CSRF: JSON-only writes plus an
Origin check. Strict CSP, ETag + gzip, BASE_PATH support.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gXkMmmRRKLSnY6vQN3
2026-11-12 20:55:35 +00:00
226e5f46f8 Add Elo, pair selection and comparison metrics with tests
Ratings are replayed from an event log (undo = skip the target event). K decays
48 -> 16 over a school's first 15 games. Smart pairing favours rarely compared
schools, then close ratings, with 10% exploration and random sides. metrics.js
derives grant, out-of-pocket cost, language and subject fit and the duel rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gXkMmmRRKLSnY6vQN3
2026-11-12 20:55:35 +00:00
783c4d2f9a Add researched data for partner schools, countries and funding
Per-school files follow research/BRIEF.md and all pass validate_research.py.
countries.json: WGI/GPI stability, Czech MFA advisories, visas, health cover.
funding.json: Erasmus+ rates (latest published, 2026/27), CTU non-European
stipend, Swiss situation, CNB exchange rate, 2027/28 selection round.
Research for the remaining schools is still in progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gXkMmmRRKLSnY6vQN3
2026-11-12 20:55:35 +00:00
3980fbd62b Add CTU catalogue parser and research contract
parse_catalog.py turns a saved copy of the CTU Mobility catalogue (FEL, Master,
2027/28) into data/catalog.json: 186 agreements merged into 170 schools.
research/BRIEF.md is the contract for per-school research (JSON shape, scoring
anchors, source rules); validate_research.py enforces its structure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gXkMmmRRKLSnY6vQN3
2026-11-12 20:55:35 +00:00