Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
379 commits
Select commit Hold shift + click to select a range
366a464
style(server): format join completion tenant isolation tests
ricoroeder Nov 17, 2026
7b63a8c
feat(deps): upgrade the colyseus stack
ricoroeder Nov 17, 2026
6df7c40
chore(deps): refresh the colyseus lockfile
ricoroeder Nov 17, 2026
37ffb66
chore(deps): update vitest to version five point one
ricoroeder Nov 17, 2026
63da338
chore(deps): refresh the vitest lockfile
ricoroeder Nov 17, 2026
a7877be
chore(deps): declare vitest runners for npc and root
ricoroeder Nov 17, 2026
a399091
chore(deps): refresh the vitest runner lockfile
ricoroeder Nov 17, 2026
92afaf9
chore(deps): update livekit rtc-node to 1.2.2
ricoroeder Nov 17, 2026
9b43c1c
chore(deps): refresh the livekit rtc-node lockfile
ricoroeder Nov 17, 2026
1eee61d
test(e2e): cover map switching between two clients
ricoroeder Nov 17, 2026
546f8e5
chore(deps): update root tooling dependencies
ricoroeder Nov 17, 2026
c376007
chore(deps): refresh the root tooling dependency lockfile
ricoroeder Nov 17, 2026
97aa33c
chore(deps): update server runtime dependencies
ricoroeder Nov 17, 2026
328ea27
chore(deps): refresh the server runtime dependency lockfile
ricoroeder Nov 17, 2026
558f54d
chore(deps): update web client dependencies
ricoroeder Nov 17, 2026
bc9ee05
chore(deps): refresh the web client dependency lockfile
ricoroeder Nov 17, 2026
acaa4b2
style(server): format upload policy
ricoroeder Nov 17, 2026
50e72cc
chore(deps): add redis presence, driver and rate limit store
ricoroeder Nov 17, 2026
e5b3238
feat(server): share colyseus presence and room registry over redis
ricoroeder Nov 17, 2026
4a0d8ee
feat(server): share rate limit budgets across server processes
ricoroeder Nov 17, 2026
874ea6e
feat(server): share upload budgets across server processes
ricoroeder Nov 17, 2026
8c3fabb
feat(server): relay session cache invalidation across server processes
ricoroeder Nov 17, 2026
215ff12
feat(server): list rooms of every server process in admin views
ricoroeder Nov 17, 2026
8b59708
feat(server): keep the mobile gateway off in multi-process mode
ricoroeder Nov 17, 2026
aa5236e
test(server): cover two server processes sharing one world room
ricoroeder Nov 17, 2026
3099b45
docs: describe running several server processes
ricoroeder Nov 17, 2026
061942f
test(web): cover livekit token failure reason and status
ricoroeder Nov 17, 2026
b44c964
fix(web): preserve token error reason and status on livekit token fai…
ricoroeder Nov 17, 2026
d1448ab
test(web): cover livekit token failure message and abort timeout
ricoroeder Nov 17, 2026
d0b3716
fix(web): keep token error message and abort timeout on livekit token…
ricoroeder Nov 17, 2026
3e602b0
test(web): cover separate remote mic and screen-share audio elements
ricoroeder Nov 17, 2026
1fb1316
fix(web): keep remote mic and screen-share audio on separate elements
ricoroeder Nov 17, 2026
a017e14
test(web): cover user hint on capture failure
ricoroeder Nov 17, 2026
9b3f6a9
fix(web): show user hint when capture fails instead of silent reset
ricoroeder Nov 17, 2026
03ba02b
test(web): cover screenshare stop on background tab hide
ricoroeder Nov 17, 2026
3d40f59
fix(web): stop screenshare recapture on background tab hide
ricoroeder Nov 17, 2026
4c56da2
test(web): complete onboarding before av toggles in media-flow spec
ricoroeder Nov 18, 2026
90e6de9
feat(web): mark remote media elements with participant sid
ricoroeder Nov 18, 2026
328d1c3
test(web): map inbound media to participants via rendered elements
ricoroeder Nov 18, 2026
a8fb826
test(web): wait for settled microphone state in media-flow spec
ricoroeder Nov 18, 2026
9d70625
test(server): cover active world admission for media tokens
ricoroeder Nov 17, 2026
415feda
fix(server): bind media tokens to active world sessions
ricoroeder Nov 17, 2026
dbd6ad0
test(web): cover world admission wait before media connect
ricoroeder Nov 17, 2026
bf59fab
fix(web): wait for world admission before connecting media
ricoroeder Nov 17, 2026
935c3d6
test(npc): require explicit livekit grants for npc tokens
ricoroeder Nov 17, 2026
ae77e77
fix(npc): set every livekit grant explicitly for npc tokens
ricoroeder Nov 17, 2026
6ce613d
fix(web): keep zone permissions fail-closed across media reconnects
ricoroeder Nov 17, 2026
92f7be3
docs(server): describe npc handling of zone permissions accurately
ricoroeder Nov 17, 2026
0a2372c
refactor(npc): pin room connect options with a regression test
ricoroeder Nov 17, 2026
f669003
test(server): state the public and private rule of zone allow-lists
ricoroeder Nov 17, 2026
0e2fbc5
feat(npc-service): decode video files into raw frames with ffmpeg
ricoroeder Nov 17, 2026
b4acfca
feat(npc-service): publish npc video and screenshare from media files
ricoroeder Nov 17, 2026
235b408
fix(web): show translated network error instead of raw fetch message …
ricoroeder Nov 17, 2026
c9f3dc6
refactor(web): move public layout display rules into stylesheets with…
ricoroeder Nov 17, 2026
0056efc
fix(web): keep the public header inside the viewport just above the m…
ricoroeder Nov 17, 2026
2481301
fix(web): enlarge auth text link touch targets and let the step indic…
ricoroeder Nov 17, 2026
9d1c441
refactor(web): drop the unused landing bundle merge from brand overrides
ricoroeder Nov 17, 2026
63b04c8
fix(web): keep connection overlays inside narrow windows
ricoroeder Nov 17, 2026
2dabd61
fix(web): translate the avatar editor tab labels and unavailable marker
ricoroeder Nov 17, 2026
7a8259b
chore(compliance): register the full press start 2p font file
ricoroeder Nov 17, 2026
197f395
fix(web): render umlauts in the pixel font from the full font file
ricoroeder Nov 17, 2026
da64887
fix(web): rely on the translated login validation instead of native r…
ricoroeder Nov 17, 2026
2f5c964
fix(web): show avatar catalog load failures and translate its loading…
ricoroeder Nov 17, 2026
22462ff
fix(web): show a not found page for unknown hash routes
ricoroeder Nov 17, 2026
995cbb6
fix(web): drop the button role from draggable editor and modal headers
ricoroeder Nov 17, 2026
15c28d3
fix(web): label the editor color inputs
ricoroeder Nov 17, 2026
8540456
fix(web): name the member role selects
ricoroeder Nov 17, 2026
403ab8c
fix(web): raise the contrast of roster avatars and last seen text
ricoroeder Nov 17, 2026
37db650
fix(web): keep editor text readable in the light theme
ricoroeder Nov 17, 2026
21215d9
fix(web): use the darker accent for auth buttons and links
ricoroeder Nov 17, 2026
a8873a3
test(server): use the integration suffix for database-backed route tests
ricoroeder Nov 17, 2026
afaf5cd
test(scripts): cover the undeclared dependency check
ricoroeder Nov 17, 2026
e45e413
feat(scripts): add a check for undeclared workspace dependencies
ricoroeder Nov 17, 2026
5c0e0a5
fix(deps): declare packages the workspaces import directly
ricoroeder Nov 17, 2026
110d942
build(lint): run the undeclared dependency check in npm run lint
ricoroeder Nov 17, 2026
f7ba365
test(server): type route test doubles against their real interfaces
ricoroeder Nov 17, 2026
bd71237
test(server): fix type errors in matchmaking, ops and handler tests
ricoroeder Nov 17, 2026
3a18837
test(server): fix type errors in room lifecycle tests
ricoroeder Nov 17, 2026
6f1ef94
build(server): type-check server test files in npm run typecheck
ricoroeder Nov 17, 2026
b715fc5
test(server): exercise advisory locks against a real database
ricoroeder Nov 17, 2026
364f67a
test(web): remove the one-off legacy invite client spec
ricoroeder Nov 17, 2026
1a044cd
test(scripts): cover private package specifiers in manifests and lock…
ricoroeder Nov 17, 2026
bb6c01d
feat(scripts): reject private package specifiers in manifests and loc…
ricoroeder Nov 17, 2026
6c3834e
docs(agents): point to the source import policy
ricoroeder Nov 17, 2026
43041a5
refactor(web): split track manager helpers to meet the size budget
ricoroeder Nov 17, 2026
f6239b1
feat(scripts): reject organization repository specifiers outside the …
ricoroeder Nov 17, 2026
6159c15
docs(licensing): state that closed-source module content stays out of…
ricoroeder Nov 18, 2026
cc0dca3
test(server): expect matchmaking statuses for refused world joins
ricoroeder Nov 17, 2026
a6d3b3a
test(server): wait for the room state before reading the roster
ricoroeder Nov 17, 2026
f61bb0c
test(server): give the loadtest bot account a fixture avatar
ricoroeder Nov 17, 2026
479d025
feat(shared): add member asset protocol constants
ricoroeder Nov 17, 2026
87d61ba
feat(server): answer outdated desktop clients with 426 when enforced
ricoroeder Nov 17, 2026
6a8cfdd
feat(server): allow the asset protocol header in cross-origin requests
ricoroeder Nov 17, 2026
905834f
feat(server): refuse world joins from outdated desktop clients when e…
ricoroeder Nov 17, 2026
536ccd8
feat(server): validate member asset paths against known layouts
ricoroeder Nov 17, 2026
649dfc3
feat(server): authorize member asset requests per tenant
ricoroeder Nov 17, 2026
7ee7b5a
style(server): format npc media routes
ricoroeder Nov 17, 2026
60735c8
feat(web): show a clear update notice for outdated desktop clients
ricoroeder Nov 17, 2026
e1f135f
feat(web): add an authenticated member asset loader
ricoroeder Nov 17, 2026
1cfe295
feat(server): serve pack and npc media files only to members
ricoroeder Nov 17, 2026
c6e8c45
fix(server): reject encoded dot segments in member asset paths
ricoroeder Nov 17, 2026
498b826
fix(server): accept seeded pack slugs in member asset paths
ricoroeder Nov 17, 2026
cbdc977
test(server): pin that member assets never serve dot directories
ricoroeder Nov 17, 2026
6c85e30
feat(web): add shared loaders for protected images
ricoroeder Nov 17, 2026
7d18459
feat(web): drop loaded member assets on logout and reset
ricoroeder Nov 17, 2026
013225b
test(web): cover pack generation paths in the member asset adapter
ricoroeder Nov 17, 2026
144149d
docs(config): document the member asset switch
ricoroeder Nov 17, 2026
232f609
feat(web): load world tilesets and objects through member assets
ricoroeder Nov 17, 2026
0c52de5
feat(web): load editor previews through member assets
ricoroeder Nov 17, 2026
3c04f55
feat(web): show protected pack images in the interface
ricoroeder Nov 17, 2026
ac52aa3
feat(tools): load protected pack images in the admin tools
ricoroeder Nov 17, 2026
6f2f222
test(web): add end-to-end checks for protected member assets
ricoroeder Nov 17, 2026
439faf5
test(web): add end-to-end checks for conversation zone privacy
ricoroeder Nov 17, 2026
7d7a2b5
feat(web): load avatar spritesheets through member assets
ricoroeder Nov 17, 2026
baaa604
feat(server): mount the desktop gate and the legacy pack guard
ricoroeder Nov 17, 2026
c86ac3a
feat(server): mount the member asset routes behind tenant resolution
ricoroeder Nov 17, 2026
252b632
feat(server): describe member byte access in the pack visibility cont…
ricoroeder Nov 17, 2026
5a13408
fix(server): serve catalogue pack files only with a grant or as the p…
ricoroeder Nov 17, 2026
05578f8
test(server): cover the desktop update path exemption of the asset pr…
ricoroeder Nov 17, 2026
14df5b7
feat(web): pass the member asset loader to the enterprise pack store
ricoroeder Nov 17, 2026
6f04f27
feat(web): start the desktop update check when the server requires an…
ricoroeder Nov 17, 2026
91e4a90
style(web): format the verification pending view
ricoroeder Nov 17, 2026
439956c
test(auth): refetch verification when returning to the app
ricoroeder Nov 17, 2026
7b32231
fix(auth): refresh verification when returning to the app
ricoroeder Nov 17, 2026
cdde953
fix(auth): type verification error responses as unknown
ricoroeder Nov 17, 2026
136db05
test(web): cover the audio ducking capability gate
ricoroeder Nov 18, 2026
5b521f9
fix(web): show audio ducking only when the desktop reports support
ricoroeder Nov 18, 2026
1384af0
test(server): build compaction fixtures without the journal writer fl…
ricoroeder Nov 17, 2026
57a3856
test(server): write the account chain fixture directly in the rejecti…
ricoroeder Nov 17, 2026
020709e
test(server): load the startup check dependencies before the first case
ricoroeder Nov 17, 2026
f6b80c6
test(server): wait for the mobile stream handler instead of a fixed d…
ricoroeder Nov 17, 2026
aa45ac0
test(server): freeze the clock while checking the livekit token lifetime
ricoroeder Nov 17, 2026
0f1cfff
feat(server): expose ads consent config in public config
ricoroeder Nov 17, 2026
1c1a1bf
feat(web): keep ads consent config from public config
ricoroeder Nov 17, 2026
b7725b7
feat(web): pass ads attribution with the tenant signup
ricoroeder Nov 17, 2026
bcec0cd
test(web): cover the signup conversion report
ricoroeder Nov 17, 2026
3960a50
feat(web): place the ads consent settings link in the public footer
ricoroeder Nov 17, 2026
9d7b2e7
feat(web): mount the brand ads consent on public routes
ricoroeder Nov 17, 2026
1056525
fix(email): add ignore hint and small print to invitation email
ricoroeder Nov 17, 2026
024b038
test(email): cover ignore hint and small print in invitation email
ricoroeder Nov 17, 2026
eff6a68
feat(web): add a message for an ended subscription
ricoroeder Nov 17, 2026
fb31ef3
fix(web): report a trial start only for a trialing subscription
ricoroeder Nov 17, 2026
7e5ed01
fix(server): abort startup when the billing package breaks the loader…
ricoroeder Nov 17, 2026
47028d3
feat(server): take the deletion journal window from the backup copy l…
ricoroeder Nov 17, 2026
9f9a018
test(server): cover the deletion journal copy lifetime against the da…
ricoroeder Nov 17, 2026
3bef16c
fix(server): bind the tenant member lock ids as one array parameter
ricoroeder Nov 18, 2026
fbc0507
feat(server): add read and write scopes to personal api tokens
ricoroeder Nov 17, 2026
f7ac636
feat(server): enforce api token scopes in the auth helpers
ricoroeder Nov 17, 2026
5dc4d8d
feat(web): choose the api token scope when creating a token
ricoroeder Nov 17, 2026
4fa8c45
docs: describe api token scopes and session-only administration
ricoroeder Nov 17, 2026
0e97e49
test(tools): require the session for tools that call platform routes
ricoroeder Nov 18, 2026
56358d1
fix(tools): use the session for platform routes in the admin tools
ricoroeder Nov 18, 2026
8ff1a96
docs(tools): describe session-only access for the platform tools
ricoroeder Nov 18, 2026
6ca1522
refactor(web): move the exclusive runner out of the api token actions…
ricoroeder Nov 18, 2026
ba6a9d2
style(web): format the operator tools spec and type its base url
ricoroeder Nov 18, 2026
cd0e895
test(server): drop retries from the rate limit suites
ricoroeder Nov 17, 2026
4c36d03
test(web): fix type errors in the e2e specs
ricoroeder Nov 17, 2026
b8d05e5
build(web): type-check the e2e specs with the web typecheck
ricoroeder Nov 17, 2026
7039cc9
build(lint): count inline styles and their color literals in lint-stats
ricoroeder Nov 17, 2026
4ecc598
build(lint): run the style ratchet in lint and its tests in the gate …
ricoroeder Nov 17, 2026
db20eac
fix(test): hide dynamic surfaces with the snapshot stylesheet instead…
ricoroeder Nov 18, 2026
d9c8572
fix(test): fail the masking spec when the snapshot stylesheet hides k…
ricoroeder Nov 18, 2026
c0d6393
fix(web): propagate empty zone lists from the server refresh
ricoroeder Nov 17, 2026
f6a2f6d
test(web): cover editor persistence, objects and spawn end to end
ricoroeder Nov 17, 2026
adb0c70
test(web): cover zone presence and remote avatars with two clients
ricoroeder Nov 17, 2026
b446450
test(web): cover painted geometry, collision and large maps end to end
ricoroeder Nov 17, 2026
e97a605
test(web): cover editor access rules and template maps end to end
ricoroeder Nov 17, 2026
28553da
test(web): exercise the main camera across editor and map lifecycle
ricoroeder Nov 17, 2026
2ba4657
fix(server): require an editor role for map object writes
ricoroeder Nov 17, 2026
ed54f16
fix(server): remove a saved spawn when the editor state sends null
ricoroeder Nov 17, 2026
5d5249a
fix(web): persist the editor's spawn removal on save
ricoroeder Nov 17, 2026
f4908a2
fix(test): log in before reading the editor state in the camera e2e case
ricoroeder Nov 18, 2026
a96ba80
fix(test): release the held key in the map geometry e2e spec
ricoroeder Nov 18, 2026
bd75830
fix(test): remove the spawn an editor persistence e2e case added
ricoroeder Nov 18, 2026
3b5a50e
fix(test): start the spawn e2e case without a saved position
ricoroeder Nov 18, 2026
a7d1a77
fix(test): start the map geometry e2e cases from the map spawn
ricoroeder Nov 18, 2026
5022410
fix(test): keep the failing call site when an e2e baseline restore fails
ricoroeder Nov 18, 2026
be3c044
fix(test): wait for the game canvas in the camera e2e case
ricoroeder Nov 18, 2026
24f2ee7
fix(test): complete the seeded onboarding before the world e2e cases
ricoroeder Nov 18, 2026
088bf82
fix(test): place the e2e spawn on a walkable tile
ricoroeder Nov 18, 2026
0ae1009
fix(test): paint over the seeded floor and restore it in the floor e2…
ricoroeder Nov 18, 2026
36b3904
fix(test): wait for the running main scene in the camera e2e case
ricoroeder Nov 18, 2026
6b4ab03
test(web): place the hero at the server position on the first full state
ricoroeder Nov 18, 2026
43e6e90
fix(web): place the hero at the server position on the first full state
ricoroeder Nov 18, 2026
e78982d
test(web): keep an unknown position out of the unload save
ricoroeder Nov 18, 2026
47ddf11
fix(web): skip the position save while the client knows no position
ricoroeder Nov 18, 2026
cb0c42d
fix(test): start the map geometry movement cases on a known free tile
ricoroeder Nov 18, 2026
b2ddab2
test(world): cover authoritative move plausibility
ricoroeder Nov 18, 2026
7e5cd37
fix(world): reject implausible player movement
ricoroeder Nov 18, 2026
71b9366
test(server): accept the test stack slot database in the http fixture
ricoroeder Nov 18, 2026
f44ebd2
test(server): align the mail fixture with the mailpit configuration
ricoroeder Nov 16, 2026
17a1dce
test(server): set a sender for local mail fixture delivery
ricoroeder Nov 17, 2026
a927989
test(server): give the verification delivery probe isolated auth secrets
ricoroeder Nov 17, 2026
c83fa3f
fix(ops): reduce livekit log verbosity and rotate logs
ricoroeder Nov 17, 2026
0050c5b
test(server): verify safe contact delivery failure logs
ricoroeder Nov 17, 2026
fa1e599
fix(web): show fallback contact after delivery failure
ricoroeder Nov 17, 2026
c1ec6ff
test(web): bind the mail proof fixture to the test stack database port
ricoroeder Nov 18, 2026
ed1c94e
fix(web): bind the password label in the login form
ricoroeder Nov 18, 2026
5b78c16
test(web): wait for the invitation reload before reading the session
ricoroeder Nov 18, 2026
e610322
test(server): require the telemetry sdk headers in the cors preflight
ricoroeder Nov 18, 2026
052c457
fix(server): allow the telemetry sdk headers in the cors preflight
ricoroeder Nov 18, 2026
9d6b595
test(server): share one database guard across the database tests
ricoroeder Nov 18, 2026
e2c4975
test(server): fix type errors between the combined release packages
ricoroeder Nov 18, 2026
1067c69
refactor(server): move in-place asset retention into its own function
ricoroeder Nov 18, 2026
ae090bd
fix(web): remove the audio session ducking that never worked on macos
ricoroeder Nov 18, 2026
9ea0b23
fix(tools): load protected pack images with the session only
ricoroeder Nov 18, 2026
75d578f
refactor(server): check the livekit token session in its own function
ricoroeder Nov 18, 2026
432f6d5
refactor(server): move the deletion journal window settings into a mo…
ricoroeder Nov 18, 2026
96d4dcf
refactor(web): move new inline styles into stylesheet classes
ricoroeder Nov 18, 2026
fff10ca
fix(web): add the desktop preference texts and correct the ducking hint
ricoroeder Nov 18, 2026
e83b7a5
style: format the files that format:check reports
ricoroeder Nov 18, 2026
efee72f
fix(server): accept only asset paths as imported tileset images
ricoroeder Nov 18, 2026
46a94eb
test(server): check the public reset link in the mails a tenant admin…
ricoroeder Nov 18, 2026
cdb2517
test(server): set up the mail precondition in each mail-dependent test
ricoroeder Nov 18, 2026
a19f36b
fix(web): bound voice isolation init and fall back to raw microphone
ricoroeder Nov 18, 2026
e451f64
fix(web): apply voice isolation through the livekit track processor api
ricoroeder Nov 18, 2026
ac50ecd
test(web): wait for the microphone publish outcome in media-flow spec
ricoroeder Nov 18, 2026
09ea139
fix(compliance): rebind asset digests to the integrated files
ricoroeder Nov 18, 2026
3996564
fix(compliance): register the self-hosted inter and plus jakarta sans…
ricoroeder Nov 18, 2026
6a0bc6b
fix(compliance): pin the upstream revision of four furniture manifests
ricoroeder Nov 18, 2026
5eb7dfd
test(compliance): pin the reviewed masked documentation allowlist
ricoroeder Nov 18, 2026
f2b4d44
fix(compliance): register the regenerated atelier avatar sprites
ricoroeder Nov 18, 2026
59c3928
fix(compliance): restore the verbatim pm2 io license evidence
ricoroeder Nov 18, 2026
46f0511
fix(web): serve press start 2p only from the unmodified ttf
ricoroeder Nov 18, 2026
cb4aa9f
test(compliance): require the gate to review env example templates
ricoroeder Nov 18, 2026
2305d6a
feat(compliance): review env example templates in the license gate
ricoroeder Nov 18, 2026
b1c58d3
fix(env): clear credential placeholders and drop unread keys in the e…
ricoroeder Nov 18, 2026
11139fd
chore(compliance): bind the reviewed env example values
ricoroeder Nov 18, 2026
1316058
chore(docs): remove three readme images without confirmed provenance
ricoroeder Nov 19, 2026
d1f5ec4
feat(compliance): bind user license decisions to single lockfile records
ricoroeder Nov 19, 2026
8b82224
test(server): align tools password checks with the emptied template
ricoroeder Nov 19, 2026
4ce98a9
test(server): count the invite binding and the live email proof separ…
ricoroeder Nov 19, 2026
bfb7966
test(server): align database tests with token scopes, hashed invites …
ricoroeder Nov 19, 2026
e4d62f0
fix(server): check the caller role under the owner lock
ricoroeder Nov 19, 2026
6e7335f
test(server): expect the matchmaking status for refused session joins
ricoroeder Nov 19, 2026
0b0d173
test(server): wait for the room state before reading the seat map
ricoroeder Nov 19, 2026
079a77a
test(server): upload global asset packs with the operator session
ricoroeder Nov 19, 2026
a1e0c53
test(server): name the legacy seed admin placeholders in the seed suite
ricoroeder Nov 19, 2026
de00ea3
test(server): set up mail delivery in the account mail and reset suites
ricoroeder Nov 19, 2026
36d9eb7
test(server): compare the landed pose with the encoded client state
ricoroeder Nov 19, 2026
6be048d
test(server): settle the group announcement before refused bubble upd…
ricoroeder Nov 19, 2026
162b040
fix(server): reject text upload fields one byte over the limit
ricoroeder Nov 19, 2026
68bf1a9
fix(server): refuse a denied tenant in the upload guard with 403
ricoroeder Nov 19, 2026
a5d3aee
fix(server): answer malformed multipart bodies with 400
ricoroeder Nov 19, 2026
0b2881e
test(server): join the world before requesting media tokens
ricoroeder Nov 19, 2026
3fc8da4
test(server): settle the lock announcement before zone lock checks
ricoroeder Nov 19, 2026
83157c1
fix(server): ship prisma.config.ts in the runner image
ricoroeder Nov 19, 2026
1f34e14
ci: pass the database container and the websocket test port to the da…
ricoroeder Nov 20, 2026
b332bd6
fix(asset-lab): lint and type-check the style study with the atelier …
ricoroeder Nov 20, 2026
bad4733
style(asset-lab): format three atelier files with prettier
ricoroeder Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 0 additions & 13 deletions .budgetignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,3 @@ apps/server/src/api/routes/maps.paint.ts cohesive request flow, steps already e
# function per event.
apps/server/src/rooms/lifecycle/onJoin.completion.ts critical-path lifecycle, single coherent function
apps/server/src/rooms/lifecycle/onLeave.ts critical-path lifecycle, single coherent function

# Local audio/video track lifecycle state machine (mic + cam). One cohesive
# class whose methods all operate on the same shared mutable state — the
# desired/published/pending flags, the republish/release timers and the
# _micOp/_camOp serialization promises — under one disposal contract (every
# method guards on _disposed and chains on the op promises). The I/O seams
# (getUserMedia + publish/unpublish) are ALREADY extracted into
# microphonePublishing.ts and cameraPublishing.ts; what remains is the stateful
# orchestration, which cannot be split without exposing that private mutable
# state across module boundaries or duplicating the concurrency/disposal guards,
# fracturing the very serialization guarantees the class exists to provide.
# 828 LoC.
apps/web/src/av/core/TrackManager.ts av track lifecycle state machine, io seams already extracted
191 changes: 139 additions & 52 deletions .env.example

Large diffs are not rendered by default.

102 changes: 102 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,108 @@ jobs:
- run: npm -w @meetropolis/web run test
- run: npm -w @meetropolis/server run test

test-db:
name: Database tests (server)
runs-on: ubuntu-latest
# Points at a real, throwaway database instead of the workflow-wide dummy.
# The database tests only accept 127.0.0.1:35440 (see
# apps/server/test/fixtures/httpFixture.ts), so the service is published
# on that port.
env:
DATABASE_URL: 'postgresql://ci:ci@127.0.0.1:35440/ci'
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: ci
POSTGRES_PASSWORD: ci
POSTGRES_DB: ci
ports:
- 35440:5432
options: >-
--health-cmd "pg_isready -U ci -d ci"
--health-interval 5s
--health-timeout 5s
--health-retries 12
# Mail catcher for invites.integration.test.ts (SMTP 1025, HTTP API 8025).
# STARTTLS with a self-signed certificate generated at start, so the
# server exercises the same TLS path as against a real mail server.
mailpit:
image: axllent/mailpit:v1.32.0
env:
MP_SMTP_AUTH_ACCEPT_ANY: '1'
MP_SMTP_AUTH_ALLOW_INSECURE: '1'
MP_SMTP_TLS_CERT: sans:mailpit
MP_SMTP_TLS_KEY: sans:mailpit
ports:
- 1025:1025
- 8025:8025
# Test SFU for avAccessRevocation.integration.test.ts. Participants join
# over real WebRTC, so the RTC ports are published 1:1 and the node IP is
# the runner's loopback. devkey/secret are the public development keys,
# not a secret. The test pauses this container through `docker pause`.
livekit:
image: livekit/livekit-server:v1.13.11@sha256:25cd902de7cacbd5f1f779f6a6ac1eae20ba8f56b0935934ce6b0ab80d1e3d20
env:
LIVEKIT_CONFIG: |
port: 7880
bind_addresses: ["0.0.0.0"]
rtc:
tcp_port: 7881
udp_port: 7882
use_external_ip: false
node_ip: 127.0.0.1
keys:
devkey: secret
logging:
level: info
ports:
- 7880:7880
- 7881:7881
- 7882:7882/udp
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm
# Activate the packageManager pin from package.json (see note above).
- run: corepack enable
- run: npm ci
- run: npm -w @meetropolis/shared run build
- run: npm run generate
- name: prisma migrate deploy
working-directory: apps/server
run: npx prisma migrate deploy
# Neither image is guaranteed to ship a health check the runner waits
# for, so wait for both HTTP endpoints explicitly (at most 60 s each).
- name: Wait for Mailpit and the test SFU
run: |
for url in http://127.0.0.1:8025/api/v1/info http://127.0.0.1:7880/; do
for _ in $(seq 1 60); do
curl -fsS -o /dev/null "$url" && continue 2
sleep 1
done
echo "Service at $url did not become ready" >&2
exit 1
done
- name: npm -w @meetropolis/server run test:db
env:
MAILPIT_URL: http://127.0.0.1:8025
MAILPIT_SMTP_HOST: 127.0.0.1
MAILPIT_SMTP_PORT: '1025'
LIVEKIT_URL: ws://127.0.0.1:7880
LIVEKIT_API_KEY: devkey
LIVEKIT_API_SECRET: secret
TEST_SFU_CONTAINER: ${{ job.services.livekit.id }}
# worldAccess.outage.integration.test.ts pauses the test database
# through `docker pause`, like the SFU test above.
TEST_PG_CONTAINER: ${{ job.services.postgres.id }}
# wsUpgradeLimit.integration.test.ts starts the server on this port.
# It is not published by any service of this job.
WS_UPGRADE_TEST_PORT: '35441'
run: npm -w @meetropolis/server run test:db

build:
name: Build (web + server) — OSS-only smoke
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ coverage/
apps/web/test-results/
apps/web/playwright-report/
apps/web/blob-report/
# The visual baselines of the visual test suite stay local: the golden PNGs are
# generated per slot and must not end up in the history.
/apps/web/e2e/visual/__screenshots__/

# --- Local environment ---
.env
Expand Down
3 changes: 3 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#!/bin/sh
set -e

npx --no -- commitlint --edit "$1"
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#!/bin/sh
set -e

npx lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -e

exec "$(git rev-parse --show-toplevel)/scripts/pre-push.sh"
5 changes: 0 additions & 5 deletions .lintstagedrc.json

This file was deleted.

46 changes: 46 additions & 0 deletions .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import path from 'node:path';

const workspaces = [
{ directory: 'apps/web', name: '@meetropolis/web' },
// Database tests need DATABASE_URL and run through `npm run test:db`;
// the hook runs the server's unit test project only.
{ directory: 'apps/server', name: '@meetropolis/server', vitestArgs: ['--project', 'server'] },
{ directory: 'packages/shared', name: '@meetropolis/shared' },
];

const quote = (value) => `'${value.replaceAll("'", "'\\''")}'`;

const typescriptTasks = (files) => {
const root = process.cwd();
const stagedFiles = files.map((file) => {
const absolute = path.resolve(file);
return {
absolute,
relative: path.relative(root, absolute).split(path.sep).join('/'),
};
});
const filesArgument = stagedFiles.map(({ absolute }) => quote(absolute)).join(' ');
const tasks = [`eslint --fix ${filesArgument}`, `prettier --write ${filesArgument}`];

for (const workspace of workspaces) {
const workspaceFiles = stagedFiles.filter(({ relative }) => relative.startsWith(`${workspace.directory}/`));
if (workspaceFiles.length === 0) continue;

tasks.push(`npm -w ${workspace.name} run typecheck`);

const workspaceRoot = path.resolve(root, workspace.directory);
const relatedFiles = workspaceFiles
.map(({ absolute }) => quote(path.relative(workspaceRoot, absolute).split(path.sep).join('/')))
.join(' ');
const vitestArgs = (workspace.vitestArgs ?? []).map((arg) => ` ${arg}`).join('');
tasks.push(`npx vitest related --run --root ${quote(workspaceRoot)}${vitestArgs} ${relatedFiles}`);
}

return tasks;
};

export default {
'*.{ts,tsx}': typescriptTasks,
'*.{js,mjs,cjs}': ['eslint --fix', 'prettier --write'],
'*.{json,md,yml,yaml,css,html}': ['prettier --write'],
};
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ apps/server/prisma/schema.composed.prisma

# Vendor / third-party assets
apps/web/public/
# Verbatim third-party license texts, bound by sha256 in compliance/dependency-evidence.json
compliance/licenses/
apps/web/src-tauri/

# Standalone HTML editors (haben eigenes inline-JS-Format, nicht prettier-tauglich)
Expand Down Expand Up @@ -46,3 +48,6 @@ build_output.txt
packages/brand/
packages/desktop/
packages/tenancy-enterprise/

# Local editor settings
.codex/
5 changes: 5 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"color-no-hex": true
}
}
7 changes: 7 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,13 @@ Do not add `@tauri-apps` imports anywhere in `apps/web/`. Tauri-specific
code belongs exclusively in the Desktop module, which is not part of
this distribution.

The machine-readable norm for these boundaries is the `sourceImports`
section of [`compliance/policy.json`](compliance/policy.json): protected
package roots, families and scopes, the only allowed loader imports and
the pinned files. `scripts/license-gate.mjs` enforces it on source imports
and on the dependency entries of every `package.json` and npm lockfile.
Change the policy file, not this list; on any difference the policy wins.

---

## Security
Expand Down
64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Self-hosting without a mail provider: with `MANUAL_ACCOUNT_CONFIRMATION=true` a super admin can confirm pending accounts by hand (`GET /admin/pending-confirmations`, `POST /admin/users/:id/confirm-email`); pending confirmations expire after 7 days.

### Changed

- **Breaking (enterprise integration):** The tenant deletion callback in
`adminLoader` now requires `deletionProtocol: 'tenant-delete-v2'` with a
managed prepare/cleanup pair and an explicit internal retention plan and
deadline. Upgrade the host and enterprise module together; mismatched
versions reject deletion before any database DELETE statement with
`tenant_deletion_contract_required`. Without a valid internal plan the
deletion is rejected with `retention_journal_unavailable` (HTTP 409).
- **Breaking (self-hosting):** NPC media now resolve from one directory. Without `NPC_MEDIA_DIR` the server uses `/data/npc-media`, the same default as the npc service; before, uploads defaulted to `<server working directory>/../../npc-media` and static serving to a directory next to the build output. If you did not set `NPC_MEDIA_DIR`, set it to your existing media directory or move its contents to `/data/npc-media`. When the directory cannot be created, the server logs `npc_media.dir_unavailable` at startup.
- **Breaking (self-hosting):** Node.js 24.15 or newer below 25 is now required (`engines.node`). `npm ci --engine-strict` refuses older Node versions; `.nvmrc` stays `24` and resolves to the latest 24.x.
- **Breaking (self-hosting):** invitation, guest, email-verification, password-reset and welcome links are built only from `PUBLIC_BASE_URL`. The fallbacks to relative links, `BILLING_PUBLIC_URL` and the request origin or host are gone, and loopback bases need `PUBLIC_BASE_URL_ALLOW_LOOPBACK=true`. A missing or unusable value is logged at startup, and link requests fail with `public_base_url_missing`. The web client copies invitation links from the server instead of building them from the window origin.
- **Breaking (self-hosting):** Without a mail provider (`SMTP_HOST` and `SMTP_FROM` unset, no enterprise mail module), the console fallback does not count as delivery: verification requests, acceptance of an invitation by an unverified account and registration with an invitation code answer `503 EMAIL_DELIVERY_UNAVAILABLE`, and `POST /auth/forgot` answers `ok` without sending anything. A configured provider that fails to deliver a verification email also answers `503 EMAIL_DELIVERY_UNAVAILABLE`. No confirmation token is returned by any verification response; a password reset without mail works only through a super admin's `POST /admin/users/:id/reset-token`, which returns the link. Invitations still return their link for copying with `emailSent: false`, and creating a guest returns its magic link. Configure `SMTP_HOST` and `SMTP_FROM` before inviting users.
- **Breaking (API):** invitation routes no longer carry the invitation code in the URL path, so request, rate-limit and error logs never contain a still-valid code. Revoking and resending address the invitation by its id (`DELETE /invites/:id`, `POST /invites/:id/resend`), the public preview and the acceptance by an existing account take the code in the JSON body (`POST /public/invites/preview`, `POST /invites/accept`), and `GET /invites` returns `id` and `url` instead of `code`. Listing, revoking and resending are limited to tenant admins and owners. Clients that still call `DELETE /invites/<code>`, such as older desktop builds that bundle the previous web client, receive `404 not found`, and the invitation link those builds copy ends in `?invite=undefined`; they need the updated client. Invitations now expire after 7 days; open invitations created before the upgrade get 7 days from the migration. `POST /auth/register` with an invitation code is bound to the invited address and answers `400 invite_unavailable`, `400 invite_expired` or `403 invite_email_mismatch` instead of the previous messages. Invitations without an email address can no longer be redeemed (403 `invite_email_mismatch`) and have to be issued again.
- Web client: a terminal connection error (guest expiry, session
takeover, rejected authentication, outdated client, billing and limit
errors, and with the transcription module a missing consent) now leaves
LiveKit before the overlay appears. Before, the client kept publishing
and subscribing behind the overlay. AV resumes with the next join the
world accepts.
- Server: a world room now refuses a session of another tenant by default
(close code 4401, `tenant_mismatch`). Before, this needed
`ZONE_PRIVACY_TENANT_ENFORCE=true`; now only an explicit `false` admits
such a join, with a warning.
- Web client: disposing the AV manager (unmount, or the reset of a join
that failed after its room was set up) now leaves LiveKit before the
teardown, which therefore runs up to 5 s later. A leave that exceeds
Expand All @@ -31,6 +51,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
not support. Removing a member no longer asks twice, and logging out all
other devices reports its result inline instead of with `alert()`. ESLint
now rejects native `confirm`, `alert` and `prompt` in `apps/web`.
- World server: joining the world always requires a valid session, also
with `ZONE_PRIVACY_AUTH_ENFORCE` unset. A join without a session token
(desktop builds that predate the join token) is refused with 4401
`unauthorized`; the identity the client names is no longer accepted in
its place. `ZONE_PRIVACY_AUTH_ENFORCE` now only gates the client
zone-privacy version check.
- World server: a join whose verified tenant has no resolvable slug is
refused with 4401 `tenant_unresolved` instead of falling back to the
tenant slug the client sent.
- Server: access revocations use one presence channel, `access_revoked`
with `{ userId, origin }`, instead of one `access_revoked:<slug>`
channel per tenant, and each world room checks the user's sessions
against the tenant each session was verified for.
`broadcastAccessRevoked(userId)` no longer takes a tenant slug,
`accessRevokedChannel` and `disconnectPlayers` are removed, and
`revokeAccountAccess(userId, tenantSlugs)` is new.
- World server: `WorldRoom.onCreate` is async and waits for the
revocation subscription; when subscribing fails, the room is not
created.
- World server: open world sessions hold an access lease. The periodic
access check runs every 30 s (was 60 s) and renews it. A session that
cannot be re-verified ends after at most 120 s with the new code 4503
`access_unverified`, which the web client treats as a reconnect; native
clients should do the same. A guest ends exactly at its stored expiry.
`WORLD_ACCESS_SWEEP_MS` (default 30000) and `WORLD_ACCESS_LEASE_MS`
(default 120000, at least twice the sweep) tune both intervals.
- World server: a world session ends once its database session is gone
(logout, password reset, revoked sessions, or removal from another
tenant, which signs the user out everywhere), with 4401
`session_revoked`: at once on a revocation, otherwise at the next
access check.
- Server: HTTP log fields and metric labels now use route templates
instead of concrete request paths. Early `http.request` logs no longer
include a `path` field; unmatched requests use `<unmatched>`. This
changes values consumed by dashboards and log parsers.
- Server: personal API tokens now have a level chosen at creation
(`scope` in `POST /api-tokens`, default `read`). `read` tokens only use
safe methods (GET, HEAD and OPTIONS); `write` tokens may also change
data. Tokens granted before this change keep full access (migrated as
`write`). No token reaches passwords, email changes, account deletion,
sessions, token management, `/auth`, `/me`, `/users/me`, `/admin`,
`/debug` or platform administration: those need a signed-in browser
session, and a rejected token call answers like a missing token
(usually `401`).

### Fixed

Expand Down
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ packages/
npm -w @meetropolis/server run test
npm -w @meetropolis/web run test

# Server tests that need a database: set DATABASE_URL to a migrated,
# disposable test database first (see TEST_STRATEGY.md, "Database Tests")
npm -w @meetropolis/server run test:db

# Run specific test file
npm -w @meetropolis/web run test -- src/lib/geom.test.ts
```
Expand Down
Loading