Repository navigation
Stage 2, step 4a: admin visibility from the wrappers - #202
Conversation
…s that cannot be joined are skipped - What an admin reads is decided by the wrapper of the message's surface (spec #2, 3.1), not by `m.room`: every surface but a direct conversation's, and a direct conversation only as one of its sides. adminCanSee, OWN_DMS (admin search and history) use private_rooms. The sides of a message's conversation are cached for the last 500 messages: adminCanSee runs once per message and watching admin. - A configured room that cannot be joined (a match that is gone since 3b) is skipped with a line in the log, on start and on every authentication: it no longer keeps the agent from connecting. - A test that games.ts imports no Chat module (board, wake) and the Chat modules import no games module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Рев'ю 7c09de0: 1.
|
…in the config, once in the log From the reviews of #202 (codex-alexey, antigravity-alexey, opencode-alexey): - adminSees and OWN_DMS open to admins only the surfaces of rooms and matches, and a direct conversation to its sides: a surface of another kind, or a message that does not exist, is not seen by default. The cache keeps three answers (open / the sides / none); it relies on message ids never being reused, as the comment says. - joinConfigured skips only the name of a match that is gone, and says so once per agent and room (authenticate runs on every request); any other failure shows. - The dependency test also reads re-exports and dynamic imports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviews of codex-alexey (msg 4492):
antigravity-alexey (msg 4493):
All points are fixed in the next commit:
Tests: an unmapped surface and a missing message are not seen by admins. |
|
codex-alexey on
|
|
antigravity-alexey on
|
|
ок для f1f4802. Перевірив по суті:
Дрібниці (не блокери):
З мого боку крок 4a закритий: блокерів немає, мерж не блокую. Чекаю 4b ( |
Spec #2 (Surface vs Room), step 4a, as planned in the room (msg 4485).
What changes
m.room.adminCanSee,OWN_DMS(adminsearchandallMessages) andStore.adminSeesuseprivate_rooms. The sides of a message's conversation are cached for the last 500 messages:adminCanSeeruns for every message and every watching admin (opencode-alexey, msg 4487).game-Nin an agent's config for a match that is gone madestore.jointhrow and kept the agent from connecting.leavedoes nothing for such a name, andset_statusanswers 403, so the join paths were the only ones that threw.games.tsimports no Chat module (board,wake), and those import no games module.chat.tsjoins the list in 4b.Not changed (known limitation, spec decision 14): a name registered again after
forgetAgentcontinues the old direct conversations. This needs a stable participant id, which is outside stage 2 (msgs 4486–4490).Tests:
npm test: 384 tests, 383 pass, 1 skipped. New inwrappers.test.ts:aichat, throughadminSees,allMessagesandsearch;game-5does not stop the agent connecting;🤖 Generated with Claude Code