[relay] Relay: The league relay from Ludus, public under CPAL-1.0 #1

Merged
mnovak merged 1 commits from feature/relay into main 2026-11-23 02:03:58 +01:00
Owner

The league relay from Ludus, public under CPAL-1.0 (Mark's decision, 2026-11-23), so that its privacy promise can be checked: one table, six columns, no IP, no log.

  • relay/src and relay/test are byte-for-byte copies of Ludus's services/relay at 52d7a0c. The one file left out is test/deletable.test.ts, which checks Ludus's own layout.
  • schema/src/league.ts and result.ts are byte-for-byte copies of Ludus's packages/schema. schema/src/index.ts re-exports them as @ludus/schema, so not one import in the relay changed.
  • LICENSE is F:\Akce\domi-licence\LICENSE.template with {ORIGINAL_CODE} = LudusPublic and nothing else. It is LF with no BOM (sha256 0bc20113…f89a, equal to the substituted template). Every package.json says CPAL-1.0. The README carries the Exhibit B credit and the mirror note.

Self-review

  • Counts: pnpm -r typecheck clean (schema, relay). pnpm -r test: relay 5 files, 65 passed. Ludus runs the same tests plus deletable.
  • Copies are copies: a test in Ludus (its next PR) compares these files with Ludus's and fails on any difference. Until that test exists, the copy was made with cp from one commit and checked by the matching test count.
  • Findings:
    1. Two places can drift (minor): Ludus stays where the relay is developed. The drift test is the guard, and this README says which copy is the source.
    2. A self-hoster needs better-sqlite3's native build (nit): its prebuilt binary normally installs; the first install here failed once and passed on retry.
    3. No CI here yet (minor): the tests ran on this PC, at load from other sessions' builds, not timed.
  • Not verified: running relay/src/bin.ts against the Ludus player from this repository.
The league relay from Ludus, public under CPAL-1.0 (Mark's decision, 2026-11-23), so that its privacy promise can be checked: one table, six columns, no IP, no log. - `relay/src` and `relay/test` are byte-for-byte copies of Ludus's `services/relay` at `52d7a0c`. The one file left out is `test/deletable.test.ts`, which checks Ludus's own layout. - `schema/src/league.ts` and `result.ts` are byte-for-byte copies of Ludus's `packages/schema`. `schema/src/index.ts` re-exports them as `@ludus/schema`, so not one import in the relay changed. - LICENSE is `F:\Akce\domi-licence\LICENSE.template` with `{ORIGINAL_CODE}` = LudusPublic and nothing else. It is LF with no BOM (sha256 `0bc20113…f89a`, equal to the substituted template). Every `package.json` says `CPAL-1.0`. The README carries the Exhibit B credit and the mirror note. ## Self-review - **Counts**: `pnpm -r typecheck` clean (schema, relay). `pnpm -r test`: relay 5 files, **65 passed**. Ludus runs the same tests plus `deletable`. - **Copies are copies**: a test in Ludus (its next PR) compares these files with Ludus's and fails on any difference. Until that test exists, the copy was made with `cp` from one commit and checked by the matching test count. - **Findings**: 1. *Two places can drift* (minor): Ludus stays where the relay is developed. The drift test is the guard, and this README says which copy is the source. 2. *A self-hoster needs `better-sqlite3`'s native build* (nit): its prebuilt binary normally installs; the first install here failed once and passed on retry. 3. *No CI here yet* (minor): the tests ran on this PC, at load from other sessions' builds, not timed. - **Not verified**: running `relay/src/bin.ts` against the Ludus player from this repository.
mnovak added 1 commit 2026-11-23 02:03:34 +01:00
mnovak merged commit 6190a564c7 into main 2026-11-23 02:03:58 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/LudusPublic#1