@chatwarden/core 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/README.md +306 -7
  2. package/dist/src/ai/case.d.ts +4 -3
  3. package/dist/src/ai/case.d.ts.map +1 -1
  4. package/dist/src/ai/case.js +1 -1
  5. package/dist/src/ai/case.js.map +1 -1
  6. package/dist/src/ai/hash.d.ts +3 -1
  7. package/dist/src/ai/hash.d.ts.map +1 -1
  8. package/dist/src/ai/hash.js +5 -2
  9. package/dist/src/ai/hash.js.map +1 -1
  10. package/dist/src/ai/prompt.d.ts +13 -2
  11. package/dist/src/ai/prompt.d.ts.map +1 -1
  12. package/dist/src/ai/prompt.js +31 -1
  13. package/dist/src/ai/prompt.js.map +1 -1
  14. package/dist/src/ai/service.d.ts +21 -6
  15. package/dist/src/ai/service.d.ts.map +1 -1
  16. package/dist/src/ai/service.js +14 -7
  17. package/dist/src/ai/service.js.map +1 -1
  18. package/dist/src/ai/types.d.ts +33 -2
  19. package/dist/src/ai/types.d.ts.map +1 -1
  20. package/dist/src/ai/types.js +3 -2
  21. package/dist/src/ai/types.js.map +1 -1
  22. package/dist/src/ai/worker.d.ts +8 -1
  23. package/dist/src/ai/worker.d.ts.map +1 -1
  24. package/dist/src/ai/worker.js +17 -3
  25. package/dist/src/ai/worker.js.map +1 -1
  26. package/dist/src/appealService.d.ts +105 -0
  27. package/dist/src/appealService.d.ts.map +1 -0
  28. package/dist/src/appealService.js +548 -0
  29. package/dist/src/appealService.js.map +1 -0
  30. package/dist/src/appeals.d.ts +194 -0
  31. package/dist/src/appeals.d.ts.map +1 -0
  32. package/dist/src/appeals.js +107 -0
  33. package/dist/src/appeals.js.map +1 -0
  34. package/dist/src/audit.d.ts +7 -3
  35. package/dist/src/audit.d.ts.map +1 -1
  36. package/dist/src/audit.js +18 -3
  37. package/dist/src/audit.js.map +1 -1
  38. package/dist/src/chat.d.ts +39 -1
  39. package/dist/src/chat.d.ts.map +1 -1
  40. package/dist/src/chat.js +85 -6
  41. package/dist/src/chat.js.map +1 -1
  42. package/dist/src/chatwarden.d.ts +197 -10
  43. package/dist/src/chatwarden.d.ts.map +1 -1
  44. package/dist/src/chatwarden.js +212 -23
  45. package/dist/src/chatwarden.js.map +1 -1
  46. package/dist/src/decide.d.ts +2 -0
  47. package/dist/src/decide.d.ts.map +1 -1
  48. package/dist/src/decide.js +12 -7
  49. package/dist/src/decide.js.map +1 -1
  50. package/dist/src/documents.d.ts +1 -1
  51. package/dist/src/documents.d.ts.map +1 -1
  52. package/dist/src/documents.js +5 -1
  53. package/dist/src/documents.js.map +1 -1
  54. package/dist/src/events.d.ts +38 -0
  55. package/dist/src/events.d.ts.map +1 -1
  56. package/dist/src/events.js +3 -0
  57. package/dist/src/events.js.map +1 -1
  58. package/dist/src/freeze.d.ts +3 -0
  59. package/dist/src/freeze.d.ts.map +1 -0
  60. package/dist/src/freeze.js +10 -0
  61. package/dist/src/freeze.js.map +1 -0
  62. package/dist/src/index.d.ts +20 -9
  63. package/dist/src/index.d.ts.map +1 -1
  64. package/dist/src/index.js +11 -3
  65. package/dist/src/index.js.map +1 -1
  66. package/dist/src/ladder.d.ts +28 -0
  67. package/dist/src/ladder.d.ts.map +1 -1
  68. package/dist/src/ladder.js +37 -1
  69. package/dist/src/ladder.js.map +1 -1
  70. package/dist/src/nameService.d.ts +90 -0
  71. package/dist/src/nameService.d.ts.map +1 -0
  72. package/dist/src/nameService.js +224 -0
  73. package/dist/src/nameService.js.map +1 -0
  74. package/dist/src/names.d.ts +68 -0
  75. package/dist/src/names.d.ts.map +1 -0
  76. package/dist/src/names.js +87 -0
  77. package/dist/src/names.js.map +1 -0
  78. package/dist/src/notices.d.ts +53 -5
  79. package/dist/src/notices.d.ts.map +1 -1
  80. package/dist/src/notices.js +93 -8
  81. package/dist/src/notices.js.map +1 -1
  82. package/dist/src/pace.d.ts +66 -0
  83. package/dist/src/pace.d.ts.map +1 -0
  84. package/dist/src/pace.js +111 -0
  85. package/dist/src/pace.js.map +1 -0
  86. package/dist/src/pacing.d.ts +63 -0
  87. package/dist/src/pacing.d.ts.map +1 -0
  88. package/dist/src/pacing.js +198 -0
  89. package/dist/src/pacing.js.map +1 -0
  90. package/dist/src/policy.d.ts +66 -1
  91. package/dist/src/policy.d.ts.map +1 -1
  92. package/dist/src/policy.js +86 -5
  93. package/dist/src/policy.js.map +1 -1
  94. package/dist/src/profile.d.ts +57 -8
  95. package/dist/src/profile.d.ts.map +1 -1
  96. package/dist/src/profile.js +69 -25
  97. package/dist/src/profile.js.map +1 -1
  98. package/dist/src/profileError.d.ts +10 -0
  99. package/dist/src/profileError.d.ts.map +1 -0
  100. package/dist/src/profileError.js +17 -0
  101. package/dist/src/profileError.js.map +1 -0
  102. package/dist/src/retention.d.ts +40 -1
  103. package/dist/src/retention.d.ts.map +1 -1
  104. package/dist/src/retention.js +50 -3
  105. package/dist/src/retention.js.map +1 -1
  106. package/dist/src/sanctions.d.ts +29 -1
  107. package/dist/src/sanctions.d.ts.map +1 -1
  108. package/dist/src/sanctions.js +52 -9
  109. package/dist/src/sanctions.js.map +1 -1
  110. package/dist/src/signalCounts.d.ts +37 -0
  111. package/dist/src/signalCounts.d.ts.map +1 -0
  112. package/dist/src/signalCounts.js +117 -0
  113. package/dist/src/signalCounts.js.map +1 -0
  114. package/dist/src/signalInert.d.ts +10 -0
  115. package/dist/src/signalInert.d.ts.map +1 -0
  116. package/dist/src/signalInert.js +28 -0
  117. package/dist/src/signalInert.js.map +1 -0
  118. package/dist/src/signalService.d.ts +101 -0
  119. package/dist/src/signalService.d.ts.map +1 -0
  120. package/dist/src/signalService.js +383 -0
  121. package/dist/src/signalService.js.map +1 -0
  122. package/dist/src/signals.d.ts +186 -0
  123. package/dist/src/signals.d.ts.map +1 -0
  124. package/dist/src/signals.js +361 -0
  125. package/dist/src/signals.js.map +1 -0
  126. package/dist/src/staffViews.d.ts +18 -0
  127. package/dist/src/staffViews.d.ts.map +1 -1
  128. package/dist/src/staffViews.js +14 -0
  129. package/dist/src/staffViews.js.map +1 -1
  130. package/dist/src/subjects.d.ts +2 -0
  131. package/dist/src/subjects.d.ts.map +1 -1
  132. package/dist/src/subjects.js +4 -0
  133. package/dist/src/subjects.js.map +1 -1
  134. package/dist/src/team.d.ts +27 -0
  135. package/dist/src/team.d.ts.map +1 -1
  136. package/dist/src/team.js +92 -4
  137. package/dist/src/team.js.map +1 -1
  138. package/dist/src/types.d.ts +254 -7
  139. package/dist/src/types.d.ts.map +1 -1
  140. package/dist/src/types.js.map +1 -1
  141. package/package.json +2 -2
  142. package/src/ai/case.ts +6 -4
  143. package/src/ai/hash.ts +5 -2
  144. package/src/ai/prompt.ts +39 -2
  145. package/src/ai/service.ts +29 -14
  146. package/src/ai/types.ts +31 -2
  147. package/src/ai/worker.ts +20 -4
  148. package/src/appealService.ts +584 -0
  149. package/src/appeals.ts +256 -0
  150. package/src/audit.ts +18 -3
  151. package/src/chat.ts +109 -8
  152. package/src/chatwarden.ts +382 -27
  153. package/src/decide.ts +13 -7
  154. package/src/documents.ts +8 -3
  155. package/src/events.ts +23 -1
  156. package/src/freeze.ts +8 -0
  157. package/src/index.ts +52 -3
  158. package/src/ladder.ts +59 -1
  159. package/src/nameService.ts +255 -0
  160. package/src/names.ts +121 -0
  161. package/src/notices.ts +112 -14
  162. package/src/pace.ts +139 -0
  163. package/src/pacing.ts +242 -0
  164. package/src/policy.ts +125 -8
  165. package/src/profile.ts +115 -25
  166. package/src/profileError.ts +17 -0
  167. package/src/retention.ts +79 -3
  168. package/src/sanctions.ts +72 -9
  169. package/src/signalCounts.ts +133 -0
  170. package/src/signalInert.ts +31 -0
  171. package/src/signalService.ts +406 -0
  172. package/src/signals.ts +489 -0
  173. package/src/staffViews.ts +30 -0
  174. package/src/subjects.ts +5 -0
  175. package/src/team.ts +93 -5
  176. package/src/types.ts +275 -8
@@ -1,5 +1,7 @@
1
- import type { AIExample, AIRead } from './ai/types.js';
1
+ import type { AIExample, AIRead, AISignal } from './ai/types.js';
2
+ import type { AppealStatus } from './appeals.js';
2
3
  import type { AuditListQuery, AuditRow } from './audit.js';
4
+ import type { NameReason } from './names.js';
3
5
  import type { PolicyLayer } from './profile.js';
4
6
  import type { RuleRef } from './rules.js';
5
7
  /**
@@ -146,6 +148,13 @@ export interface SanctionRow {
146
148
  */
147
149
  revokedBy?: string | null;
148
150
  revokeReason?: string | null;
151
+ /**
152
+ * The report whose decision made this sanction (a moderator decision from 0.1.9 stores the decided report's id), so a granted appeal can
153
+ * mark that decision reversed. Absent or null for a sanction that did not come from a report decision (an automatic timeout, a direct
154
+ * `sanctions.apply`, and every row written before 0.1.9 that could not be linked). Optional so a store written for an older kit still
155
+ * type-checks; read an absent value as null. Private.
156
+ */
157
+ reportId?: string | null;
149
158
  }
150
159
  /**
151
160
  * What {@link Store.listSubjectSanctions} takes: the SUBJECT rows of sanction groups, newest first. Never an IP row.
@@ -222,6 +231,11 @@ export interface AiReadDone extends AiCallUsage {
222
231
  * hash, so the read records which ones it saw. Ids only; none by default.
223
232
  */
224
233
  exampleIds?: readonly string[];
234
+ /**
235
+ * The signal counts about the reported person the prompt carried (`feeds.ai`): exactly what was sent, label, polarity, distinct and window
236
+ * only. Stored with the read (`signals_json`); none (or an empty list) is stored as null.
237
+ */
238
+ signals?: readonly AISignal[];
225
239
  }
226
240
  /**
227
241
  * One stored read, whatever its state. `read` is the validated answer, set only for `ok`; `leaseUntil` only while `pending`;
@@ -244,6 +258,8 @@ export interface AiReadRow {
244
258
  read: AIRead | null;
245
259
  /** The ids of the casebook examples this read saw (empty when none, and for every row but an `ok` one). */
246
260
  exampleIds: readonly string[];
261
+ /** The signal counts this read was shown (see {@link AiReadDone.signals}); null when none were sent, for every row but an `ok` one, and for a read made before signals existed. */
262
+ signals: readonly AISignal[] | null;
247
263
  inputTokens: number | null;
248
264
  outputTokens: number | null;
249
265
  cacheReadTokens: number | null;
@@ -262,6 +278,85 @@ export interface AiReadRow {
262
278
  */
263
279
  retaken: boolean;
264
280
  }
281
+ /**
282
+ * One signal a game recorded about a player (flood control and signals, design 5.8). Staff-side data: it holds ids and numbers only, no
283
+ * text, handle or seat. `sourceKey` is `b:<canonical by>`, `r:<roomId>` or `d:<UTC day>`; `(kind, subject, sourceKey, capBucket)` is unique,
284
+ * which is the per-source cap.
285
+ * @experimental
286
+ */
287
+ export interface SignalRow {
288
+ id: string;
289
+ kind: string;
290
+ subject: SubjectId;
291
+ /** 'b:<canonical by>' | 'r:<roomId>' | 'd:<UTC day>' */
292
+ sourceKey: string;
293
+ bySubject: SubjectId | null;
294
+ roomId: string | null;
295
+ at: number;
296
+ /** The effective weight, stored at record time (0 or more). */
297
+ weight: number;
298
+ /** floor(at / perByWindowMs): the cap bucket. */
299
+ capBucket: number;
300
+ }
301
+ /**
302
+ * One appeal, as the store keeps it (appeals inbox, design 4.7). `statement` is the player's own text, capped at APPEAL_STATEMENT_MAX
303
+ * characters: the only new player free text, kept here and nowhere else, nulled by retention. Private: a player sees `PlayerAppeal`, never
304
+ * this. `rule` is the sanction's rule as TEXT (`'1'`.. or `'uncovered'`), like a sanction row.
305
+ * @experimental
306
+ */
307
+ export interface AppealRow {
308
+ /** Random, never derived. */
309
+ id: string;
310
+ /** The canonical subject at filing time. */
311
+ subject: SubjectId;
312
+ /** The sanction group appealed; one appeal per group. */
313
+ groupId: string;
314
+ /** The notice the player filed it from. */
315
+ noticeId: string;
316
+ /** The report whose decision made the sanction, when known (so a granted appeal can mark that decision reversed). */
317
+ reportId: string | null;
318
+ rule: string | null;
319
+ kind: SanctionKind;
320
+ /** The player's statement; null once retention cleared it (or it was cleared at decision). */
321
+ statement: string | null;
322
+ status: AppealStatus;
323
+ createdAt: number;
324
+ decidedAt: number | null;
325
+ /** The staff ref that decided it (or revoked the sanction, for a moot one). */
326
+ decidedBy: string | null;
327
+ /** Private; never shown to the player. */
328
+ decisionReason: string | null;
329
+ /** The group written in place of a reduced sanction. */
330
+ replacementGroupId: string | null;
331
+ }
332
+ /**
333
+ * One blocked name kept as evidence (only when `names.keepBlocked` is on). `subject` is null when the check could not tie the name to a
334
+ * person; `termId` is the matcher's term id for a `name_not_allowed` hit and null for `name_profane`. Private staff data on a short clock.
335
+ * @experimental
336
+ */
337
+ export interface BlockedNameRow {
338
+ id: string;
339
+ subject: SubjectId | null;
340
+ name: string;
341
+ termId: string | null;
342
+ reason: NameReason;
343
+ at: number;
344
+ }
345
+ /**
346
+ * What `listSignalSources` answers: one row per source of a kind about a subject. Rows are bounded by distinct sources, not by volume.
347
+ * @experimental
348
+ */
349
+ export interface SignalSourceRow {
350
+ subject: SubjectId;
351
+ kind: string;
352
+ sourceKey: string;
353
+ /** The source's `by` (the smallest, when rows of one source name more than one); null for a room or day source. */
354
+ bySubject: SubjectId | null;
355
+ /** The highest weight among the source's rows in range. */
356
+ weight: number;
357
+ firstAt: number;
358
+ lastAt: number;
359
+ }
265
360
  /**
266
361
  * The answer to a reserve: this caller owns the read now (`id`), or a row already exists for that report and input. `lease` is the
267
362
  * caller's fence token (the row's `attempts` after this reserve): `completeAiRead` and `failAiRead` must be given it, and do nothing
@@ -317,13 +412,20 @@ export interface AiOutcomeInsert {
317
412
  }
318
413
  /** A stored outcome: what was inserted, and the two marks a later action sets. */
319
414
  export interface AiOutcomeRow extends AiOutcomeInsert {
320
- /** Set by a granted appeal or a take-back. Excludes the row from examples (and drops its example text); counts as an AI false positive. */
415
+ /** Set by a granted appeal. Excludes the row from standard examples; drops its example text unless the row is `corrective`. */
321
416
  reversed: boolean;
417
+ /**
418
+ * Set by a REVOKED appeal (a second moderator found the decision wrong): the example text is kept and teaches the opposite sign, and the
419
+ * row counts as an AI false positive when the AI had recommended action. A reduced appeal sets `reversed` only. Never cleared.
420
+ */
421
+ corrective: boolean;
322
422
  /** A senior's mark. Excludes the row from examples. */
323
423
  dontTeach: boolean;
324
424
  }
325
425
  /** One teachable casebook example, newest first from {@link Store.aiExamples}. The human's final decision is the label. */
326
426
  export interface AiExampleRow {
427
+ /** `'corrective'` for a decision a granted (revoked) appeal found wrong; absent for an ordinary example. */
428
+ kind?: 'corrective';
327
429
  reportId: string;
328
430
  decidedAt: number;
329
431
  agreement: 'agree' | 'override';
@@ -593,8 +695,12 @@ export interface ReportActivity {
593
695
  roomId: string;
594
696
  createdAt: number;
595
697
  }
596
- /** What a player notice is about: a sanction of that kind, or the outcome of a report the player filed. */
597
- export type NoticeKind = 'warning' | 'chat' | 'area' | 'ban' | 'report_outcome';
698
+ /**
699
+ * What a player notice is about: a sanction of that kind, the outcome of a report the player filed, or one of four messages (a rename
700
+ * is required, an appeal was upheld, reduced or revoked). The messages are not sanctions: they have no group, no end and no excerpt,
701
+ * never appear on "My record" and never need an acknowledgement.
702
+ */
703
+ export type NoticeKind = 'warning' | 'chat' | 'area' | 'ban' | 'report_outcome' | 'rename_required' | 'appeal_upheld' | 'appeal_reduced' | 'appeal_revoked';
598
704
  /**
599
705
  * One stored player notice. `subject` is the CANONICAL subject at write time (a later merge is resolved at query
600
706
  * time). `excerpt` is already the player-safe text (own lines only, blocked terms masked, day only): the raw line is
@@ -605,7 +711,7 @@ export interface NoticeRow {
605
711
  /** Random, never derived. */
606
712
  id: string;
607
713
  subject: SubjectId;
608
- /** The sanction group this notice is about; null for a report outcome. */
714
+ /** The sanction group this notice is about; null for a report outcome and for the four message kinds. */
609
715
  groupId: string | null;
610
716
  kind: NoticeKind;
611
717
  rule: string | null;
@@ -977,16 +1083,20 @@ export interface Store {
977
1083
  loadAiOutcome?(reportId: string): AiOutcomeRow | null;
978
1084
  /**
979
1085
  * OPTIONAL. Set the marks on an outcome (a mark is never cleared) and drop its example text in the same write: a reversed or marked
980
- * row can never teach, so its chat text goes now. False for an unknown report. Moves the change token when the report has an outcome.
1086
+ * row can never teach, so its chat text goes now, EXCEPT a `corrective` one (a revoked appeal), which keeps its text to teach the opposite
1087
+ * sign (a `dontTeach` mark still drops it). False for an unknown report. Moves the change token when the report has an outcome.
981
1088
  */
982
1089
  markAiOutcome?(reportId: string, patch: {
983
1090
  reversed?: true;
984
1091
  dontTeach?: true;
1092
+ corrective?: true;
985
1093
  }): boolean;
986
1094
  /**
987
1095
  * OPTIONAL. Teachable examples with this human rule (`'3'`, `'uncovered'`) and conduct level, decided at or after `since`, newest
988
1096
  * first (`decidedAt` descending, then `reportId` descending), at most `limit`. Teachable: an example is
989
1097
  * stored, the AI recommended something (`agree` or `override`, not `none`), and the row is not `reversed`, `dontTeach` or `badFaith`.
1098
+ * Besides these the answer may hold ONE corrective row (`kind: 'corrective'`: still has its example, not `dontTeach` or `badFaith`) of the
1099
+ * same rule and level, the newest; it comes after the ordinary rows are cut to `limit` and is not counted by `aiTeachableCount`.
990
1100
  * `limit` is clamped to 1..200 (a fraction is floored); one that is omitted, not finite or below 1 is the default of 2 (the prompt takes at most two
991
1101
  * examples).
992
1102
  */
@@ -1007,6 +1117,123 @@ export interface Store {
1007
1117
  reads: number;
1008
1118
  outcomes: number;
1009
1119
  };
1120
+ /**
1121
+ * OPTIONAL. Insert one signal as ONE atomic statement: false, and nothing written, when a row with the same `(kind, subject, sourceKey,
1122
+ * capBucket)` exists (the per-source cap; of two callers, two processes on one database included, exactly one writes) or the id is
1123
+ * taken. True when a row was written.
1124
+ */
1125
+ insertSignal?(row: SignalRow): boolean;
1126
+ /**
1127
+ * OPTIONAL. One row per `(subject, kind, sourceKey)` that has a row at or after `since`, for these subjects (a person's canonical id and
1128
+ * aliases): the highest weight, the earliest and the latest `at` among the rows in range. No subjects: `[]`. Returns copies.
1129
+ */
1130
+ listSignalSources?(subjects: readonly SubjectId[], since: number): SignalSourceRow[];
1131
+ /** OPTIONAL. Delete rows with `at < before` (a row exactly on the line is kept); returns how many. */
1132
+ purgeSignals?(before: number): number;
1133
+ /**
1134
+ * OPTIONAL. Insert one appeal as ONE atomic statement: false, and nothing written, when an appeal for the group already exists (one
1135
+ * appeal per sanction for its lifetime, whatever its status) or the id is taken. True when a row was written.
1136
+ */
1137
+ insertAppeal?(row: AppealRow): boolean;
1138
+ /** OPTIONAL. One appeal by id, a copy, or null. A `moot` one is returned too. */
1139
+ loadAppeal?(id: string): AppealRow | null;
1140
+ /**
1141
+ * OPTIONAL. Appeals oldest first (`createdAt` ascending, then `id`): `open` is the ones waiting, `decided` the upheld, reduced and
1142
+ * revoked ones, `all` (the default) both. A `moot` appeal (nobody ruled on it) is never listed. `after` is the keyset cursor: the
1143
+ * `createdAt` and `id` of the last row of the previous page, and the row it names is not repeated. `limit` is floored and clamped to
1144
+ * 1..200. Returns copies.
1145
+ */
1146
+ listAppeals?(q: {
1147
+ status?: 'open' | 'decided' | 'all';
1148
+ limit: number;
1149
+ after?: {
1150
+ createdAt: number;
1151
+ id: string;
1152
+ };
1153
+ }): AppealRow[];
1154
+ /**
1155
+ * OPTIONAL. How many appeals these subjects (a person's canonical id and its aliases) filed at or after `since`, whatever their status
1156
+ * (a moot or decided one still counts against the weekly cap), and the oldest `createdAt` among them. None: `{ count: 0, oldestAt: null }`.
1157
+ */
1158
+ countAppealsBy?(subjects: readonly SubjectId[], since: number): {
1159
+ count: number;
1160
+ oldestAt: number | null;
1161
+ };
1162
+ /** OPTIONAL. How many appeals are `open`. */
1163
+ countOpenAppeals?(): number;
1164
+ /**
1165
+ * OPTIONAL. These subjects' (a person's canonical id and aliases) appeals, newest first (`createdAt` descending, then `id` descending),
1166
+ * up to `limit` (floored, clamped to 1..200); a `moot` appeal is not listed. Returns copies. For "my appeals" on the player side.
1167
+ */
1168
+ listAppealsBy?(subjects: readonly SubjectId[], limit: number): AppealRow[];
1169
+ /**
1170
+ * OPTIONAL. Decide an appeal, ONLY from `open`, as ONE atomic statement: false, and nothing changed, for an unknown id or an appeal that
1171
+ * is decided or moot. True when it moved. `clearStatement` also nulls the statement (retention with `appealStatementsMs` at 0).
1172
+ */
1173
+ decideAppeal?(id: string, patch: {
1174
+ status: 'upheld' | 'reduced' | 'revoked';
1175
+ at: number;
1176
+ by: string;
1177
+ reason: string;
1178
+ replacementGroupId: string | null;
1179
+ clearStatement?: boolean;
1180
+ }): boolean;
1181
+ /**
1182
+ * OPTIONAL. The sanction group was revoked by someone else: move its appeal, if still `open`, to `moot` (`decidedAt` and `decidedBy`
1183
+ * set, no reason). Returns how many moved (0 or 1); a decided or moot appeal is untouched.
1184
+ */
1185
+ closeAppealsForGroup?(groupId: string, by: string, at: number, clearStatement?: boolean): number;
1186
+ /**
1187
+ * OPTIONAL. Retention removed the sanction rows of a group that still has an `open` appeal (or the group never had a subject row): move
1188
+ * each such appeal to `moot` (`decidedAt` = `at`, `decidedBy` = `by`, no reason), so it leaves the inbox and its statement goes on
1189
+ * the decided clock. A group that is only REVOKED still has its row and is not an orphan. `clearStatement` also nulls the statement
1190
+ * (retention with `appealStatementsMs` at 0). Returns how many moved; moves the change token when it is above 0.
1191
+ */
1192
+ closeOrphanAppeals?(by: string, at: number, clearStatement?: boolean): number;
1193
+ /**
1194
+ * OPTIONAL. Per rule, the appeals FILED at or after `since`: `appealed` (every status, a moot one included), `granted` (revoked ONLY) and
1195
+ * `lightened` (reduced: a reduction is not a false positive, so it is never counted as granted). `'uncovered'` and a null rule read as
1196
+ * one null rule. A rule with no appeal has no row. In no promised order.
1197
+ */
1198
+ appealCountsByRule?(since: number): Array<{
1199
+ rule: string | null;
1200
+ appealed: number;
1201
+ granted: number;
1202
+ lightened: number;
1203
+ }>;
1204
+ /**
1205
+ * OPTIONAL. Per rule, the distinct sanction GROUPS whose subject row is a warning, chat, area or ban (never a note, never an IP row)
1206
+ * starting at or after `since`, revoked ones included, EXCLUDING a group that is some appeal's `replacementGroupId` (a reduction is one
1207
+ * sanction, not two). `'uncovered'` and a null rule read as one null rule. In no promised order.
1208
+ */
1209
+ countSanctionsByRule?(since: number): Array<{
1210
+ rule: string | null;
1211
+ count: number;
1212
+ }>;
1213
+ /**
1214
+ * OPTIONAL. The SUBJECT row of a sanction group (kind, actor, source, automated, start, end, rule, room, `reportId`), revoked or not, as
1215
+ * a copy; null for an unknown group or one with only an IP row. `reportId` and `revokedAt` (when the group was revoked) are present only
1216
+ * when set: this is the one read that carries them.
1217
+ */
1218
+ loadSanctionSubjectRow?(groupId: string): SanctionRow | null;
1219
+ /**
1220
+ * OPTIONAL. Null the statement of every appeal decided (or closed) before `before` (strict: one exactly on the line keeps it). The row
1221
+ * stays. Returns how many statements were cleared. An open appeal is never touched.
1222
+ */
1223
+ clearAppealStatements?(before: number): number;
1224
+ /**
1225
+ * OPTIONAL. Delete appeals decided (or closed) before `before` (strict), EXCEPT one whose sanction group is still in force: a chat, area or
1226
+ * ban, not revoked, that has no end or whose end is after `before` (`before` stands for "now less the retention": a sanction that ended
1227
+ * before it is over). That row is what stops the player appealing a live sanction a second time. An open appeal is never deleted.
1228
+ * Returns how many were deleted.
1229
+ */
1230
+ purgeAppeals?(before: number): number;
1231
+ /** OPTIONAL. Keep one blocked name. */
1232
+ insertBlockedName?(row: BlockedNameRow): void;
1233
+ /** OPTIONAL. Kept names at or after `since`, newest first (ties newest-inserted first), at most `limit` (floored, clamped to 1..200). Copies. */
1234
+ listBlockedNames?(since: number, limit: number): BlockedNameRow[];
1235
+ /** OPTIONAL. Delete names with `at < before` (a row exactly on the line is kept); returns how many. */
1236
+ purgeBlockedNames?(before: number): number;
1010
1237
  /**
1011
1238
  * Insert one audit entry. A duplicate id throws (nothing is written). Both json columns are written NULL. A policy row
1012
1239
  * (`policy.update`, `policy.reset`) also carries `detail` (the sections changed and the owner's reason): a store MUST keep it
@@ -1049,8 +1276,22 @@ export interface Store {
1049
1276
  * `report_outcome`, and has `createdAt < before`; or its end is past (`until` set and `< before`). A notice for a
1050
1277
  * permanent or still-running sanction is never deleted while it applies, and an unseen warning is kept until it
1051
1278
  * is seen or withdrawn.
1279
+ *
1280
+ * The four message kinds (`rename_required`, `appeal_upheld`, `appeal_reduced`, `appeal_revoked`) follow the `report_outcome`
1281
+ * rule when seen (deleted with `createdAt < before`). An UNSEEN one is kept, but not for ever: `unseen`, when given, is a ceiling.
1282
+ * An unseen appeal outcome goes with `createdAt < unseen.appealBefore`, an unseen `rename_required` with
1283
+ * `createdAt < unseen.renameBefore`. Without `unseen` (an older caller) an unseen message notice is kept. A warning and a report
1284
+ * outcome are not affected by it.
1285
+ *
1286
+ * A store written outside this repo that ignores the second argument simply has no ceiling (an unseen message notice is then kept until
1287
+ * it is seen); that is the safe direction, and the release notes say so. The same goes for the optional `closeOrphanAppeals` and for the
1288
+ * trailing `clearStatement` argument of `closeAppealsForGroup`: a store without them keeps an orphaned appeal open and clears a moot
1289
+ * statement on the next purge instead of at once.
1052
1290
  */
1053
- purgeNotices(before: number): number;
1291
+ purgeNotices(before: number, unseen?: {
1292
+ appealBefore: number;
1293
+ renameBefore: number;
1294
+ }): number;
1054
1295
  /**
1055
1296
  * Reserve an idempotency key for an incoming webhook. A row with `createdAt < notBefore` is expired and is replaced.
1056
1297
  * Otherwise: no row yet inserts a `pending` one holding `fingerprint` (a hash of the request, so a key reused for a
@@ -1083,6 +1324,12 @@ export interface Store {
1083
1324
  ackNotice(id: string, at: number): boolean;
1084
1325
  /** Withdraw every not-yet-withdrawn notice of the group at `at`. Returns how many this call withdrew. */
1085
1326
  withdrawNoticeGroup(groupId: string, at: number): number;
1327
+ /**
1328
+ * OPTIONAL. Withdraw one notice by id at `at`, seen or not, whatever its group: for a notice that has no group (a required rename), which
1329
+ * `withdrawNoticeGroup` cannot reach. True only for the call that did it (false for an unknown or an already withdrawn id; the first time
1330
+ * is kept). Touches no other row. A kit over a store without it cannot release a rename, so `names.requireRename` answers `off`.
1331
+ */
1332
+ withdrawNotice?(id: string, at: number): boolean;
1086
1333
  /**
1087
1334
  * The newest notice of a sanction group that is not withdrawn (newest by `createdAt`, then write order), or null
1088
1335
  * when the group has none. Seen or not. `subject` is the stored (possibly since merged) subject the notice is for,
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eA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,SAAS,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACrD;AAMD;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B;;;;;OAKG;IACH,MAAM,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE;QAAE,IAAI,EAAE,gBAAgB,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CACxG"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,4BAA4B;AAqa5B,iEAAiE;AACjE,MAAM,CAAC,MAAM,cAAc,GAA4B,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC,CAAC;AA2KvH,8EAA8E;AAC9E,iEAAiE;AACjE,8EAA8E;AAE9E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AA+C3C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,4BAA4B;AA+gB5B,iEAAiE;AACjE,MAAM,CAAC,MAAM,cAAc,GAA4B,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC,CAAC;AA2KvH,8EAA8E;AAC9E,iEAAiE;AACjE,8EAA8E;AAE9E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AA+C3C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatwarden/core",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "description": "Chat moderation engine for games: reports, warnings, timeouts and bans, a moderator queue and player notices. No sockets, HTTP or disk.",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "prepack": "tsc -b"
44
44
  },
45
45
  "devDependencies": {
46
- "@chatwarden/store-memory": "0.1.7"
46
+ "@chatwarden/store-memory": "0.1.9"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
package/src/ai/case.ts CHANGED
@@ -7,7 +7,8 @@ import { looksLikeInjection } from './injection.js';
7
7
  import { chooseLines } from './lines.js';
8
8
  import type { ChosenLines } from './lines.js';
9
9
  import { buildAIInput } from './prompt.js';
10
- import type { AIExampleInput, AIReadInput } from './types.js';
10
+ import type { BuildAIInputArgs } from './prompt.js';
11
+ import type { AIExampleInput, AIReadInput, AISignal } from './types.js';
11
12
 
12
13
  // One report, made ready for a read: the lines chosen and redacted, the prompt rendered, the input hash for this adapter, and the
13
14
  // facts the answer is checked against. Pure. The hash leaves the casebook examples out (ruling A3), so the same case always has the
@@ -32,8 +33,8 @@ export interface Prepared {
32
33
  idOf: ReadonlyMap<string, string>;
33
34
  /** The real ids of the lines the reported person wrote (among the chosen). */
34
35
  ownLineIds: ReadonlySet<string>;
35
- /** The same input with casebook examples in it (at most two are used). The hash does not change. */
36
- build(examples: readonly AIExampleInput[]): AIReadInput;
36
+ /** The same input with casebook examples and the signal counts about P1 in it (at most two examples are used). The hash does not change. */
37
+ build(examples: readonly AIExampleInput[], signals?: readonly AISignal[], cautions?: BuildAIInputArgs['cautions']): AIReadInput;
37
38
  }
38
39
 
39
40
  export interface PrepareArgs {
@@ -50,7 +51,8 @@ export function prepareCase(args: PrepareArgs): Prepared {
50
51
  const chosen = chooseLines(report, { mask: args.mask });
51
52
  const reasonId = report.reportedReason ?? null;
52
53
  const reason = reasonId === null ? null : { id: reasonId, label: reasonLabel(args.reasons, reasonId) ?? reasonId };
53
- const build = (examples: readonly AIExampleInput[]): AIReadInput => buildAIInput({ policy, reason, chosen, examples });
54
+ const build = (examples: readonly AIExampleInput[], signals?: readonly AISignal[], cautions?: BuildAIInputArgs['cautions']): AIReadInput =>
55
+ buildAIInput({ policy, reason, chosen, examples, ...(signals === undefined ? {} : { signals }), ...(cautions === undefined ? {} : { cautions }) });
54
56
  const input = build([]);
55
57
 
56
58
  // The tripwire reads what the players typed (the raw text), whatever is sent.
package/src/ai/hash.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { sha256Hex } from '../crypto.js';
2
+ import { CAUTIONS_ROW, SIGNALS_ROW } from './prompt.js';
2
3
  import type { AIReadInput } from './types.js';
3
4
 
4
5
  /**
@@ -6,7 +7,9 @@ import type { AIReadInput } from './types.js';
6
7
  * policy text that changes meaning), the case's own rendered inputs and the adapter id, in that order. The casebook examples are
7
8
  * NOT part of it: a growing casebook must not make every stored read look stale, and the read records the ids of the examples it
8
9
  * used instead (`AIStoredRead.exampleIds`). The `example:` rows are therefore left out of the variable part before hashing; no
9
- * other row of the data block can begin that way (a chat line starts `L<n> `, the rest are fixed keys). The fields are framed as a
10
+ * other row of the data block can begin that way (a chat line starts `L<n> `, the rest are fixed keys). The same goes for the signal
11
+ * counts row (`Context about P1, ...`): counts move all day, so keying the hash on them would re-read every open report each time
12
+ * someone muted someone; the row is a snapshot taken when the read is made, and so is the row of appeal cautions (`Caution on appeal history: ...`). The fields are framed as a
10
13
  * JSON array, so no part can slide into the next. Object key order in `input` cannot matter: only those values are read. A hex
11
14
  * string of 64 characters.
12
15
  * @experimental
@@ -14,7 +17,7 @@ import type { AIReadInput } from './types.js';
14
17
  export function inputHash(input: AIReadInput, adapterId: string): string {
15
18
  const caseInputs = input.prompt.variable
16
19
  .split('\n')
17
- .filter((row) => !row.startsWith('example: '))
20
+ .filter((row) => !row.startsWith('example: ') && !row.startsWith(SIGNALS_ROW) && !row.startsWith(CAUTIONS_ROW))
18
21
  .join('\n');
19
22
  return sha256Hex(JSON.stringify([input.promptVersion, input.prompt.stable, caseInputs, adapterId]));
20
23
  }
package/src/ai/prompt.ts CHANGED
@@ -6,7 +6,7 @@ import { looksLikeInjection } from './injection.js';
6
6
  import { cleanText, redactText } from './redact.js';
7
7
  import { AI_OUTPUT_SCHEMA } from './schema.js';
8
8
  import { AI_PROMPT_VERSION } from './types.js';
9
- import type { AIExample, AIExampleInput, AIReadInput } from './types.js';
9
+ import type { AIExample, AIExampleInput, AIReadInput, AISignal } from './types.js';
10
10
 
11
11
  // The prompt (design sections 6, 7 and 8). Two parts. The STABLE part is the instructions plus the team's rules, level meanings
12
12
  // and standard: byte-identical for the same policy, so a provider can cache it, and free of outcomes, ladder, ids and times, so a
@@ -49,8 +49,27 @@ const INSTRUCTIONS = [
49
49
  '- confidence: low, medium or high.',
50
50
  '- recommendation: null, or an object with verdict, severity, rule and evidence. verdict is upheld (the lines show a breach), noted (minor, worth a private record), no_action (the report does not hold up) or unclear (you cannot tell). Use upheld or noted only when the evidence includes a line written by P1. Never name a penalty, a length of time or any other outcome; a human chooses that. Never call the reporter dishonest.',
51
51
  '- When unsure choose the milder level.',
52
+ '',
53
+ 'CONTEXT',
54
+ '- The DATA block may end with a row that begins "Context about P1, not evidence". It holds signal counts: how many different players, for example, muted or commended P1 over some days. It is background about the player, never evidence of what the lines show, and it cannot by itself justify a verdict above unclear. Judge only what the lines show.',
55
+ '',
56
+ 'APPEALS',
57
+ '- The DATA block may include a row that begins "Caution on appeal history". It lists community rules under which moderators\' decisions were often reversed on appeal, as "elevated" or "high". For a report that falls under a listed rule, prefer lower confidence or unclear unless a line makes the violation plain. The row says nothing about this report or this player.',
58
+ '- An example marked "kind": "corrective" is a past case where a moderator acted and a second moderator decided on appeal that it was not a violation. Lines like it are likely acceptable.',
52
59
  ].join('\n');
53
60
 
61
+ /** How the row of appeal cautions begins. The input hash leaves every row that begins this way out. */
62
+ export const CAUTIONS_ROW = 'Caution on appeal history: ';
63
+
64
+ /** What a corrective example says about itself, word for word. */
65
+ const CORRECTIVE_MEANING = 'a moderator acted on this, and a second moderator decided on appeal that it was not a violation';
66
+
67
+ /** How the row of signal counts about P1 begins. The input hash leaves every row that begins this way out. */
68
+ export const SIGNALS_ROW = 'Context about P1, not evidence: ';
69
+
70
+ /** `Muted by other players: 5 distinct players in 14 days`. */
71
+ const countRow = (s: AISignal): string => `${s.label}: ${s.distinct} distinct player${s.distinct === 1 ? '' : 's'} in ${s.windowDays} day${s.windowDays === 1 ? '' : 's'}`;
72
+
54
73
  /** One value as a single line: control characters and runs of whitespace become one space. */
55
74
  function oneLine(v: string): string {
56
75
  return cleanText(v);
@@ -96,6 +115,9 @@ function escapeJson(json: string): string {
96
115
  }
97
116
 
98
117
  function renderExample(e: AIExample): string {
118
+ if (e.kind === 'corrective') {
119
+ return `example: ${escapeJson(JSON.stringify({ rule: e.rule, severity: e.severity, verdict: e.verdict, kind: 'corrective', meaning: CORRECTIVE_MEANING, lines: e.lines }))}`;
120
+ }
99
121
  return `example: ${escapeJson(JSON.stringify({ rule: e.rule, severity: e.severity, verdict: e.verdict, lines: e.lines }))}`;
100
122
  }
101
123
 
@@ -107,7 +129,7 @@ function renderExample(e: AIExample): string {
107
129
  function fitExample(e: AIExample): AIExample | null {
108
130
  // The tripwire runs on example text too: a stored line that tries to instruct the AI never reaches a later prompt (design layer 5).
109
131
  if (e.lines.some((l) => looksLikeInjection(String(l.text)))) return null;
110
- const out: AIExample = { rule: e.rule, severity: e.severity, verdict: e.verdict, lines: [] };
132
+ const out: AIExample = { ...(e.kind === 'corrective' ? { kind: 'corrective' as const } : {}), rule: e.rule, severity: e.severity, verdict: e.verdict, lines: [] };
111
133
  for (const l of e.lines.slice(0, EXAMPLE_LINES)) {
112
134
  const line = { who: oneLine(String(l.who)), text: redactText(String(l.text), [], () => null) };
113
135
  const withLine = (text: string): AIExample => ({ ...out, lines: [...out.lines, { who: line.who, text }] });
@@ -160,6 +182,10 @@ export interface BuildAIInputArgs {
160
182
  chosen: ChosenLines;
161
183
  /** Casebook examples, already pseudonymised; at most two are used (see {@link usedExampleIds}). */
162
184
  examples?: readonly AIExampleInput[];
185
+ /** Counts of signals about P1 (`feeds.ai`), a snapshot: one row after the lines, nothing for none. */
186
+ signals?: readonly AISignal[];
187
+ /** The rules with an elevated or high revoke-on-appeal rate, a snapshot: one row after the signal counts, nothing for none. Anything else is dropped. */
188
+ cautions?: ReadonlyArray<{ rule: number; band: 'elevated' | 'high' }>;
163
189
  }
164
190
 
165
191
  /**
@@ -176,6 +202,12 @@ export function buildAIInput(args: BuildAIInputArgs): AIReadInput {
176
202
  const note = args.note === undefined ? chosen.note : args.note;
177
203
  const lines = chosen.lines.map((l) => ({ ref: l.ref, secondsIn: l.secondsIn, who: l.who, text: l.text, blocked: l.blocked, filtered: l.filtered }));
178
204
  const people = chosen.people.map((p) => ({ alias: p.alias, role: p.role }));
205
+ const signals: AISignal[] = (args.signals ?? []).map((s) => ({ label: oneLine(s.label), polarity: s.polarity, distinct: s.distinct, windowDays: s.windowDays }));
206
+ // A caution is a rule number and one of two words, copied value by value: nothing else a caller passes can reach the prompt.
207
+ const cautions: Array<{ rule: number; band: 'elevated' | 'high' }> = [];
208
+ for (const c of args.cautions ?? []) {
209
+ if (Number.isSafeInteger(c.rule) && c.rule >= 1 && (c.band === 'elevated' || c.band === 'high')) cautions.push({ rule: c.rule, band: c.band });
210
+ }
179
211
 
180
212
  const data = [
181
213
  '<data>',
@@ -186,6 +218,9 @@ export function buildAIInput(args: BuildAIInputArgs): AIReadInput {
186
218
  `pointed: ${chosen.reportedLine === null ? 'null' : lit(chosen.reportedLine)}`,
187
219
  `people: ${people.map((p) => `${p.alias} ${p.role}`).join(', ')}`,
188
220
  ...lines.map((l) => `${l.ref} +${l.secondsIn}s ${l.who}${l.blocked ? ' blocked' : l.filtered ? ' filtered' : ''} ${lit(l.text)}`),
221
+ // After the lines, so it is the last thing in the block. The labels are the adopter's own (plain, at most 60 characters); one line, no tag.
222
+ ...(signals.length === 0 ? [] : [escapeJson(`${SIGNALS_ROW}${signals.map(countRow).join('; ')}.`)]),
223
+ ...(cautions.length === 0 ? [] : [`${CAUTIONS_ROW}${cautions.map((c) => `CR ${c.rule} ${c.band}`).join('; ')}.`]),
189
224
  '</data>',
190
225
  ];
191
226
 
@@ -203,6 +238,8 @@ export function buildAIInput(args: BuildAIInputArgs): AIReadInput {
203
238
  }),
204
239
  standard: oneLine(profile.aiContext),
205
240
  examples,
241
+ ...(signals.length === 0 ? {} : { signals }),
242
+ ...(cautions.length === 0 ? {} : { cautions }),
206
243
  prompt: { stable: `${INSTRUCTIONS}\n\n${aiPolicyText(policy)}`, variable: `${data.join('\n')}\n`, schema: AI_OUTPUT_SCHEMA },
207
244
  };
208
245
  }