Commit 359ccfb
Correct three clan comments that describe code that does not exist
ClanCapabilityProvider's CacheTtl doc justified its value with "the heal path
reconciles every server on a timer". WorkspaceHostedService heals at startup
and on ChannelDestroyed only; there is no timer. Say what actually bounds the
staleness: reconciles are event-driven and Invalidate, not expiry, is what
guarantees a transition is seen.
ClanMessageKeyParityTests claimed Features.Clans cannot see the internal
WorkspaceMessageKeys. It can — Features.Workspace grants it InternalsVisibleTo.
The constants are independent by choice, which is what makes the assertion
meaningful.
ClanMotdWriter claimed to re-check the permission because roles can change
between render and click. It reads the same cached snapshot the button was
rendered from, so a demotion the poller has not observed yet still gets
through. Describe what it does defend against: a forged component id and a
button clicked from scrollback.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent bf8fccb commit 359ccfb
3 files changed
Lines changed: 15 additions & 8 deletions
File tree
- src/RustPlusBot.Features.Clans
- State
- Writing
- tests/RustPlusBot.Features.Workspace.Tests/Messages
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
0 commit comments