|
| 1 | +// SPDX-License-Identifier: MPL-2.0 |
| 2 | +// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk> |
| 3 | += flat-mate Roadmap |
| 4 | +:author: Jonathan D.A. Jewell |
| 5 | +:revdate: 2026-06-11 |
| 6 | + |
| 7 | +== Current State |
| 8 | + |
| 9 | +flat-mate v1 is **Squad Audit**: an already-formed student group gets a |
| 10 | +harmony + feasibility audit, an auto-drafted house agreement, and a search |
| 11 | +brief to take to the listings market. flat-mate sits upstream of SpareRoom and |
| 12 | +hosts no listings. Authoritative spec: `docs/design/squad-audit-v1.adoc` |
| 13 | +(where code and that document disagree, the document wins). |
| 14 | + |
| 15 | +Engine v2 is a tested library at `packages/shared/src/matching/` (10 modules, |
| 16 | +5 test files, 35 unit tests passing). The apps (`apps/api`, `apps/web`, |
| 17 | +`apps/mobile`) are **not yet wired to it**; the legacy v0 swipe+listings stack |
| 18 | +remains in-tree marked LEGACY pending a quarantine decision. |
| 19 | + |
| 20 | +**Target wave: Jan–May 2027** London second-year wave; one university to seed; |
| 21 | +legal posture resolved by December 2026. |
| 22 | + |
| 23 | +**What we never promise:** a "stable matching" — the roommate market is |
| 24 | +non-bipartite, stable matchings typically do not exist at scale |
| 25 | +(Chin & Michelen 2026), couples make existence NP-complete, and households of |
| 26 | +3+ are hedonic games whose core stability is Σ₂ᵖ-complete to decide. Product |
| 27 | +copy and mechanism design must respect this. |
| 28 | + |
| 29 | +The roadmap below is sequenced by **liquidity**: each stage needs more |
| 30 | +marketplace participation than the one before it. |
| 31 | + |
| 32 | +== NOW -- done 2026-06-11 |
| 33 | + |
| 34 | +* [x] Squad Audit v1 design decision record (`docs/design/squad-audit-v1.adoc`) |
| 35 | +* [x] Matching engine v2 (`packages/shared/src/matching/`): directional |
| 36 | + behaviour/tolerance scoring, feasibility/harmony split with banded verdicts, |
| 37 | + `auditGroup` (pairwise matrix, budget intersection, dispersion detection, |
| 38 | + shared-space minimum forecast), conceal lattice T0/T1/T2 with |
| 39 | + `effectiveTier = min`, agreement + brief generators; 35 tests |
| 40 | +* [x] proven-epistemic reference core — the conceal/disclosure semantics |
| 41 | + mirror the formally verified Idris2 core in proven-servers |
| 42 | + (ADR: `proven-servers/docs/decisions/0002-add-proven-epistemic-disclosure-core.md`) |
| 43 | + |
| 44 | +== NEXT |
| 45 | + |
| 46 | +* [ ] Wire `apps/web` to `auditGroup` — audit-first UI (the apps currently do |
| 47 | + not call engine v2 at all) |
| 48 | +* [ ] Legacy v0 quarantine decision — swipe+listings stack |
| 49 | + (`domain.js`/`encoding.js`, `apps/api`, `apps/web`, `apps/mobile`): |
| 50 | + quarantine, rewrite, or remove |
| 51 | +* [ ] Privacy notice + retention schedule + verified VerisimDB erasure and |
| 52 | + subject-access-export story (Art. 25 obligations named in the design record) |
| 53 | +* [ ] ICO controller registration decision |
| 54 | + |
| 55 | +== THEN |
| 56 | + |
| 57 | +* [ ] Solo **top-up** discovery for groups with open slots — conceal tiers |
| 58 | + (built in v1) plus a consent lifecycle (Proposal -> mutual accept -> Match), |
| 59 | + restoring the mutuality property the v0 swipe domain had |
| 60 | +* [ ] **DA rounds** for solo-joins-household — the one theory-clean |
| 61 | + centralized mechanism (genuinely bipartite); one vacancy per household per |
| 62 | + round; couples via heuristic + blocking-pair verification, never a |
| 63 | + guarantee path |
| 64 | + |
| 65 | +== LATER |
| 66 | + |
| 67 | +* [ ] **Calibration flywheel** — anonymised outcome telemetry (moved in; |
| 68 | + 1-month / 3-month satisfaction); literature-seeded weights become fitted; |
| 69 | + one learning cycle per academic year |
| 70 | +* [ ] **Blocking-pair stability audit** over the discovery graph (advisory, |
| 71 | + private, bounded to pair deviations) |
| 72 | +* [ ] Borough/commute **prefilters** in candidate generation when discovery |
| 73 | + lands (London-only invariant stands; the audit flow is location-light) |
| 74 | + |
| 75 | +== Estate invariants (unchanged) |
| 76 | + |
| 77 | +VerisimDB sole persistence; London-first; Deno JS-first with the four-file TS |
| 78 | +carve-out in `apps/api` (see `.claude/CLAUDE.md`); MPL-2.0; mobile via Expo. |
0 commit comments