sideby 0.35.9 → 0.36.1

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 (68) hide show
  1. package/dist/build.json +1 -1
  2. package/dist/src/cli/commands.d.ts +12 -0
  3. package/dist/src/cli/commands.js +489 -6
  4. package/dist/src/cli/format.d.ts +12 -1
  5. package/dist/src/cli/format.js +23 -3
  6. package/dist/src/cli/json-schemas.js +166 -1
  7. package/dist/src/cli/main.js +18 -4
  8. package/dist/src/core/advisor.d.ts +187 -0
  9. package/dist/src/core/advisor.js +519 -0
  10. package/dist/src/core/browser-profiles.d.ts +16 -0
  11. package/dist/src/core/browser-profiles.js +45 -0
  12. package/dist/src/core/claude-settings-file.d.ts +14 -0
  13. package/dist/src/core/claude-settings-file.js +62 -23
  14. package/dist/src/core/cli-commands.js +25 -1
  15. package/dist/src/core/config.d.ts +29 -0
  16. package/dist/src/core/config.js +25 -0
  17. package/dist/src/core/handoff-select.d.ts +13 -2
  18. package/dist/src/core/handoff-select.js +6 -2
  19. package/dist/src/core/launch.d.ts +4 -0
  20. package/dist/src/core/launch.js +7 -0
  21. package/dist/src/core/limit-reset.d.ts +198 -0
  22. package/dist/src/core/limit-reset.js +299 -0
  23. package/dist/src/core/quota-fetch.d.ts +57 -2
  24. package/dist/src/core/quota-fetch.js +291 -13
  25. package/dist/src/core/quota-levels.d.ts +70 -0
  26. package/dist/src/core/quota-levels.js +80 -0
  27. package/dist/src/core/quota-store.d.ts +15 -1
  28. package/dist/src/core/quota-store.js +26 -1
  29. package/dist/src/core/same-login.d.ts +8 -0
  30. package/dist/src/core/same-login.js +39 -2
  31. package/dist/src/core/search-catalog.js +38 -0
  32. package/dist/src/families/claude/index.js +2 -0
  33. package/dist/src/families/codex/index.js +3 -1
  34. package/dist/src/families/codex/quota.d.ts +23 -1
  35. package/dist/src/families/codex/quota.js +122 -21
  36. package/dist/src/families/grok/quota-log.d.ts +1 -0
  37. package/dist/src/menubar/script.js +70 -18
  38. package/dist/src/menubar/snapshot.d.ts +33 -1
  39. package/dist/src/menubar/snapshot.js +79 -11
  40. package/dist/src/menubar/strings.d.ts +16 -0
  41. package/dist/src/menubar/strings.js +16 -0
  42. package/dist/src/panel/handler.d.ts +21 -0
  43. package/dist/src/panel/handler.js +134 -12
  44. package/dist/src/panel/i18n.d.ts +87 -0
  45. package/dist/src/panel/i18n.js +174 -0
  46. package/dist/src/panel/page-logic.d.ts +17 -0
  47. package/dist/src/panel/page-logic.js +23 -0
  48. package/dist/src/panel/page-script.js +442 -19
  49. package/dist/src/panel/page-styles.js +38 -2
  50. package/dist/src/plugins/loader.d.ts +2 -0
  51. package/dist/src/plugins/loader.js +27 -0
  52. package/dist/src/runtime.d.ts +65 -1
  53. package/dist/src/runtime.js +530 -9
  54. package/dist/src/types.d.ts +67 -0
  55. package/package.json +1 -1
  56. package/schemas/advisor.json +332 -0
  57. package/schemas/config.json +22 -0
  58. package/schemas/error.json +4 -0
  59. package/schemas/menubar-reset.json +93 -0
  60. package/schemas/menubar-snapshot.json +70 -2
  61. package/schemas/quota-reset.json +369 -0
  62. package/schemas/quota.json +30 -0
  63. package/schemas/update.json +4 -0
  64. package/skills/sideby/SKILL.md +6 -2
  65. package/skills/sideby/references/ai-tasks.md +1 -1
  66. package/skills/sideby/references/panel.md +14 -0
  67. package/skills/sideby/references/quota.md +27 -0
  68. package/skills/sideby/references/update.md +1 -1
@@ -0,0 +1,299 @@
1
+ // Spending a Limit Reset (spec §3.40, ADR-0072): the record of each attempt and the lock that makes the Panel, the CLI
2
+ // and the menu take turns. Each confirmation is one operation with one idempotency key, kept in
3
+ // `<state>/quota/limit-reset/<operation>.json` before the request is sent, so a retry, also from another process,
4
+ // reuses the key until the Host gives a final outcome. The Runtime owns the flow; a Family only sends the request.
5
+ import { createHash, randomBytes, randomUUID } from 'node:crypto';
6
+ import { chmod, mkdir, readdir, readFile, rm } from 'node:fs/promises';
7
+ import { join } from 'node:path';
8
+ import { UserError } from './errors.js';
9
+ import { writeFileAtomic } from './fs-safe.js';
10
+ import { takeFileLock } from './lock.js';
11
+ /** A refused or unfinished spend. `operationId` names the operation to retry, when there is one. */
12
+ export class LimitResetError extends UserError {
13
+ operationId;
14
+ constructor(message, opts) {
15
+ super(message, { code: opts.code });
16
+ if (opts.operationId)
17
+ this.operationId = opts.operationId;
18
+ }
19
+ }
20
+ /** States a Host's answer ends an operation in. */
21
+ export const LIMIT_RESET_OUTCOMES = [
22
+ 'reset',
23
+ 'nothing-to-reset',
24
+ 'none-left',
25
+ 'already-done',
26
+ ];
27
+ const STATES = [
28
+ 'planned',
29
+ 'pending',
30
+ ...LIMIT_RESET_OUTCOMES,
31
+ 'not-sent',
32
+ 'stopped',
33
+ ];
34
+ /** A finished or never-confirmed record is removed this long after it was finished or made. */
35
+ export const RECORD_KEEP_MS = 24 * 3600_000;
36
+ const ID_RE = /^lr-[a-z0-9]{6,12}-[a-f0-9]{8}$/;
37
+ const HEX_RE = /^[a-f0-9]{32,64}$/;
38
+ const REF_RE = /^[a-z][a-z0-9-]{0,31}:[a-z0-9][a-z0-9-]{0,31}$/;
39
+ export const limitResetDir = (stateDir) => join(stateDir, 'quota', 'limit-reset');
40
+ /** Whether `id` has the shape of an operation id, so it is safe as a file name. */
41
+ export const isOperationId = (id) => typeof id === 'string' && ID_RE.test(id);
42
+ export function newOperationId() {
43
+ return `lr-${Date.now().toString(36)}-${randomBytes(4).toString('hex')}`;
44
+ }
45
+ /** Whether a Host answered this operation: a spend happened (`reset`, `already-done`) or the Host said why not. */
46
+ export const isOutcome = (s) => LIMIT_RESET_OUTCOMES.includes(s);
47
+ /** Whether the operation spent a Limit Reset. */
48
+ export const spent = (s) => s === 'reset' || s === 'already-done';
49
+ async function ensureDir(stateDir) {
50
+ const dir = limitResetDir(stateDir);
51
+ await mkdir(dir, { recursive: true, mode: 0o700 });
52
+ // mkdir's mode is reduced by the umask and leaves an existing folder as it is.
53
+ await chmod(dir, 0o700);
54
+ return dir;
55
+ }
56
+ const isTime = (v) => typeof v === 'string' && Number.isFinite(Date.parse(v));
57
+ const saltedDigest = (salt, key) => createHash('sha256')
58
+ .update(salt + key)
59
+ .digest('hex');
60
+ /** A new digest for the login whose comparison key is `key`, with a salt no other record has. */
61
+ export function newLoginDigest(key) {
62
+ const salt = randomBytes(16).toString('hex');
63
+ return { salt, digest: saltedDigest(salt, key) };
64
+ }
65
+ /**
66
+ * Whether `key`, the comparison key of the login that would send the request now, is the one `record` was made for.
67
+ * False when either is unknown: a record without a digest, or a login that cannot be read now (signed out, an
68
+ * unreadable sign-in). False always means "do not send".
69
+ */
70
+ export function loginUnchanged(record, key) {
71
+ return Boolean(key && record.login && saltedDigest(record.login.salt, key) === record.login.digest);
72
+ }
73
+ function parseRecord(text) {
74
+ let v;
75
+ try {
76
+ v = JSON.parse(text);
77
+ }
78
+ catch {
79
+ return null;
80
+ }
81
+ if (typeof v !== 'object' || v === null || v.version !== 1)
82
+ return null;
83
+ if (!isOperationId(v.operationId) || typeof v.idempotencyKey !== 'string' || !v.idempotencyKey)
84
+ return null;
85
+ if (!Array.isArray(v.accounts) || !v.accounts.length || !v.accounts.every((r) => REF_RE.test(String(r))))
86
+ return null;
87
+ if (!STATES.includes(v.state) || !isTime(v.createdAt))
88
+ return null;
89
+ const m = v.login;
90
+ const login = typeof m === 'object' && m !== null && HEX_RE.test(String(m.salt)) && HEX_RE.test(String(m.digest))
91
+ ? { salt: String(m.salt), digest: String(m.digest) }
92
+ : undefined;
93
+ return {
94
+ version: 1,
95
+ operationId: v.operationId,
96
+ accounts: [...v.accounts].sort(),
97
+ ...(login ? { login } : {}),
98
+ idempotencyKey: v.idempotencyKey,
99
+ state: v.state,
100
+ createdAt: v.createdAt,
101
+ attempts: Array.isArray(v.attempts) ? v.attempts.filter(isTime) : [],
102
+ ...(isTime(v.finishedAt) ? { finishedAt: v.finishedAt } : {}),
103
+ ...(isTime(v.quotaReadAt) ? { quotaReadAt: v.quotaReadAt } : {}),
104
+ };
105
+ }
106
+ /** Where the record of `operationId` is kept. */
107
+ export const limitResetFile = (stateDir, operationId) => join(limitResetDir(stateDir), `${operationId}.json`);
108
+ const errorCode = (err) => err?.code;
109
+ /**
110
+ * The file of `operationId`: its record, `missing` when there is no such file, or `unreadable` when the file is
111
+ * there but cannot be read or is not a record sideby wrote. The two are never mixed up: a file that cannot be read
112
+ * may be an unresolved spend.
113
+ */
114
+ async function loadRecord(stateDir, operationId) {
115
+ let text;
116
+ try {
117
+ text = await readFile(limitResetFile(stateDir, operationId), 'utf8');
118
+ }
119
+ catch (err) {
120
+ return errorCode(err) === 'ENOENT' ? 'missing' : 'unreadable';
121
+ }
122
+ const r = parseRecord(text);
123
+ return r && r.operationId === operationId ? r : 'unreadable';
124
+ }
125
+ /**
126
+ * Why nothing may be sent while `paths` (operation files, or the folder itself) cannot be read, and what to do.
127
+ * Names the paths, never their contents.
128
+ */
129
+ export function unreadableRecordsMessage(stateDir, paths) {
130
+ const [first, ...more] = paths;
131
+ const why = 'so it cannot tell whether an earlier attempt is still unresolved and will not use a limit reset';
132
+ if (first === limitResetDir(stateDir))
133
+ return `sideby cannot read the folder ${first}, where it keeps its limit reset operations, ${why}. Make it readable again (\`chmod 700 ${first}\`), then try again`;
134
+ return `sideby cannot read ${first}${more.length ? ` (and ${more.length} more beside it)` : ''}, the record of an earlier limit reset operation, ${why}. Make it readable again (\`chmod 600 ${first}\`); if the file is damaged, check the count on the vendor's own usage page first, then move the file away`;
135
+ }
136
+ /**
137
+ * The record of `operationId`, or null when there is none. Throws a `LimitResetError` (`records-unreadable`) when
138
+ * its file is there but cannot be read or is not a record sideby wrote.
139
+ */
140
+ export async function readLimitResetRecord(stateDir, operationId) {
141
+ if (!isOperationId(operationId))
142
+ return null;
143
+ const r = await loadRecord(stateDir, operationId);
144
+ if (r === 'unreadable')
145
+ throw new LimitResetError(`${unreadableRecordsMessage(stateDir, [limitResetFile(stateDir, operationId)])}. Nothing was sent`, { code: 'records-unreadable' });
146
+ return r === 'missing' ? null : r;
147
+ }
148
+ /** Keeps `record` (folder 700, file 600, written through a temp file and a rename). */
149
+ export async function writeLimitResetRecord(stateDir, record) {
150
+ const dir = await ensureDir(stateDir);
151
+ await writeFileAtomic(join(dir, `${record.operationId}.json`), `${JSON.stringify(record, null, 2)}\n`, 0o600);
152
+ }
153
+ /**
154
+ * A new operation for the Accounts of one login, not yet confirmed. `loginKey` is that login's comparison key; only
155
+ * its salted digest is kept.
156
+ */
157
+ export function newLimitResetRecord(accounts, now, loginKey) {
158
+ return {
159
+ version: 1,
160
+ operationId: newOperationId(),
161
+ accounts: [...accounts].sort(),
162
+ login: newLoginDigest(loginKey),
163
+ idempotencyKey: randomUUID(),
164
+ state: 'planned',
165
+ createdAt: now.toISOString(),
166
+ attempts: [],
167
+ };
168
+ }
169
+ /** Reads every operation file. A folder that is not there yet holds nothing; any other failure is `unreadable`. */
170
+ export async function scanLimitResetRecords(stateDir) {
171
+ const dir = limitResetDir(stateDir);
172
+ let names;
173
+ try {
174
+ names = await readdir(dir);
175
+ }
176
+ catch (err) {
177
+ return { records: [], unreadable: errorCode(err) === 'ENOENT' ? [] : [dir] };
178
+ }
179
+ const records = [];
180
+ const unreadable = [];
181
+ for (const n of names.sort()) {
182
+ if (!n.endsWith('.json') || !isOperationId(n.slice(0, -5)))
183
+ continue;
184
+ const r = await loadRecord(stateDir, n.slice(0, -5));
185
+ if (r === 'unreadable')
186
+ unreadable.push(join(dir, n));
187
+ else if (r !== 'missing')
188
+ records.push(r);
189
+ }
190
+ records.sort((a, b) => Date.parse(a.createdAt) - Date.parse(b.createdAt));
191
+ return { records, unreadable };
192
+ }
193
+ /**
194
+ * Every record that can be read, oldest first. For readers that spend nothing (pruning, Auto Handoff's look at
195
+ * confirmed spends); a spend goes through `scanLimitResetRecords`, which also tells what could not be read.
196
+ */
197
+ export async function listLimitResetRecords(stateDir) {
198
+ return (await scanLimitResetRecords(stateDir)).records;
199
+ }
200
+ /** Whether a plan was made too long ago to confirm: its numbers are a day old, and pruning may remove it. */
201
+ export const planExpired = (record, now) => now.getTime() - Date.parse(record.createdAt) >= RECORD_KEEP_MS;
202
+ /** Whether nobody needs `r` any more. Never an unresolved one. */
203
+ const removable = (r, now) => r.state === 'planned'
204
+ ? planExpired(r, now)
205
+ : r.state !== 'pending' && now.getTime() - Date.parse(r.finishedAt ?? r.createdAt) >= RECORD_KEEP_MS;
206
+ /**
207
+ * Removes records nobody needs any more: a finished one 24 hours after it finished, a plan nobody confirmed 24 hours
208
+ * after it was made. An unresolved one (`pending`) is never removed: only its own key may ask the Host again. Nor is
209
+ * a file that cannot be read: it may be one.
210
+ *
211
+ * A record is removed only under the spend lock of its Accounts, the one a confirmation holds from before it writes
212
+ * `pending` until it has its answer, and only after it was read again there: a plan confirmed since this looked is
213
+ * unresolved now, and its key must stay. A lock that is held is not waited for; the next pruning looks again.
214
+ * `seam` is for tests: it runs after a record was read as removable and before its lock is taken.
215
+ */
216
+ export async function pruneLimitResetRecords(stateDir, now, seam) {
217
+ for (const seen of await listLimitResetRecords(stateDir)) {
218
+ if (!removable(seen, now))
219
+ continue;
220
+ await seam?.afterRead?.(seen);
221
+ const release = await takeLimitResetLock(stateDir, seen.accounts, 0);
222
+ if (!release)
223
+ continue;
224
+ try {
225
+ const r = await loadRecord(stateDir, seen.operationId);
226
+ if (typeof r === 'object' && removable(r, now) && sameAccounts(r, seen.accounts))
227
+ await rm(limitResetFile(stateDir, r.operationId), { force: true }).catch(() => { });
228
+ }
229
+ finally {
230
+ await release();
231
+ }
232
+ }
233
+ }
234
+ /**
235
+ * The unresolved operation of a login, the oldest first; undefined when there is none. `loginKey` is the comparison
236
+ * key of the login that asks now: an operation made for that login comes first, whichever Accounts it names, so an
237
+ * Account that signed in as the login since finds it too. Then one that names one of `accounts`: it may be another
238
+ * login's by now, which `loginUnchanged` tells, but no new operation is made beside it.
239
+ */
240
+ export function unresolvedFor(records, accounts, loginKey) {
241
+ const open = records.filter((r) => r.state === 'pending');
242
+ return (open.find((r) => loginUnchanged(r, loginKey)) ??
243
+ open.find((r) => r.accounts.some((a) => accounts.includes(a))));
244
+ }
245
+ /**
246
+ * Whether a record's Accounts are exactly `accounts`: the group the operation was made for has not changed. Equal
247
+ * refs do not show that the login behind them is the same; `loginUnchanged` does.
248
+ */
249
+ export function sameAccounts(record, accounts) {
250
+ const now = [...accounts].sort();
251
+ return record.accounts.length === now.length && record.accounts.every((r, i) => r === now[i]);
252
+ }
253
+ /**
254
+ * Spends that went through and whose following Quota read is kept (ADR-0072, amending ADR-0060): the Accounts they
255
+ * were for and when that read landed. Auto Handoff may take such an Account back before its window's old reset time.
256
+ */
257
+ export async function confirmedSpends(stateDir) {
258
+ return (await listLimitResetRecords(stateDir)).flatMap((r) => spent(r.state) && r.quotaReadAt ? [{ accounts: r.accounts, quotaReadAt: r.quotaReadAt }] : []);
259
+ }
260
+ const LOCK = { staleMs: 30_000, beatMs: 5_000, maxMs: 180_000 };
261
+ /**
262
+ * The spend lock of one login, across processes: one lock file per Account of the Same Login, taken in sorted order
263
+ * so two takers never wait on each other. Null when another sideby keeps it for longer than `waitMs`.
264
+ */
265
+ export async function takeLimitResetLock(stateDir, accounts, waitMs) {
266
+ const dir = join(await ensureDir(stateDir), 'locks');
267
+ await mkdir(dir, { recursive: true, mode: 0o700 });
268
+ const held = [];
269
+ const release = async () => {
270
+ for (const r of held.reverse())
271
+ await r();
272
+ };
273
+ const deadline = Date.now() + waitMs;
274
+ for (const ref of [...new Set(accounts)].sort()) {
275
+ const lock = await takeFileLock(join(dir, `${ref.replace(':', '.')}.lock`), {
276
+ ...LOCK,
277
+ wait: { timeoutMs: Math.max(0, deadline - Date.now()), pollMs: 100 },
278
+ }).catch(() => null);
279
+ if (!lock) {
280
+ await release();
281
+ return null;
282
+ }
283
+ held.push(lock);
284
+ }
285
+ return release;
286
+ }
287
+ /** What each outcome means for the user, in plain words. */
288
+ export function outcomeMessage(outcome, ref) {
289
+ switch (outcome) {
290
+ case 'reset':
291
+ return `A limit reset was used for ${ref}.`;
292
+ case 'already-done':
293
+ return `This limit reset was already used for ${ref}; nothing more was spent.`;
294
+ case 'nothing-to-reset':
295
+ return `Nothing was spent: no limit of ${ref} can be reset right now.`;
296
+ case 'none-left':
297
+ return `Nothing was spent: ${ref} holds no limit reset.`;
298
+ }
299
+ }
@@ -6,15 +6,70 @@ import { type QuotaStoreEntry } from './quota-store.ts';
6
6
  * the kept answer only.
7
7
  */
8
8
  export type QuotaFetchMode = 'wait' | 'background' | 'force' | 'never';
9
+ /**
10
+ * What decides which Account is asked first when several are due at once (spec §3.26): Pinned Accounts, then shown
11
+ * Accounts with a window at its warning level, then the most recently used, Hidden ones last.
12
+ */
13
+ export interface QuotaAskHint {
14
+ pinned?: boolean;
15
+ hidden?: boolean;
16
+ /** When the login was last used on this computer, in ms; the newer, the earlier it is asked. */
17
+ usedAt?: number;
18
+ /**
19
+ * The Family's local reading of this Account, when it has one (Claude Code's status line). While it is newer than
20
+ * `everyMinutes` and covers everything the kept answer holds, the Host is not asked (`localCovers`).
21
+ */
22
+ local?: QuotaResult | null;
23
+ /**
24
+ * Only an answer whose ask began at or after this real time (ms) will do, also when another reader is asking right
25
+ * now or kept its answer meanwhile: a read that must come after a change, such as a Limit Reset just spent
26
+ * (ADR-0072). When an answer was kept does not count: an ask that began before the change can be kept after it.
27
+ */
28
+ notBefore?: number;
29
+ /**
30
+ * What is kept for the other Accounts of this Account's Same Login, read when called. A reset instant one of them
31
+ * already asked for, or whose answer was taken after it, had its one extra ask (ADR-0073), whichever Account asks
32
+ * for the login now.
33
+ */
34
+ peers?: () => Promise<readonly (QuotaStoreEntry | null)[]>;
35
+ /**
36
+ * The real time (ms) a Limit Reset was last used for this login (ADR-0072), read when called. An answer whose ask
37
+ * began before it may hold the numbers from before, however late it arrives: it is not kept, and the Account stays
38
+ * due.
39
+ */
40
+ changedAt?: () => Promise<number | undefined>;
41
+ }
42
+ /**
43
+ * Whether a local reading stands in for a due ask (spec §3.26): it was taken within `everyMinutes`, after every
44
+ * window of the kept answer was read and after each of their reset times that has passed, and it shows every window
45
+ * the kept answer holds. A kept model-group window the local reading cannot see (Claude Code's status line has only
46
+ * the plan-wide ones), or a kept count of Limit Resets, still needs the Host. Never for a Family whose local records
47
+ * can replay old numbers (`localFallbackOnly`, Codex), nor before a first answer is kept.
48
+ */
49
+ export declare function localCovers(fq: Pick<QuotaFetch, 'everyMinutes' | 'localFallbackOnly'>, local: QuotaResult | null | undefined, kept: QuotaStoreEntry | null, now: Date): boolean;
9
50
  export declare const FETCH_TIMEOUT_MS = 20000;
51
+ /** Fetches that run at once: in this process, and across every sideby process on the machine. */
52
+ export declare const MAX_ASKS = 4;
53
+ /** Whether this process is asking the Account's Host right now (the Panel marks such a row as being read). */
54
+ export declare function quotaAsking(stateDir: string, family: string, name: string): boolean;
10
55
  /** Why fetching is off for `family`, or null when it is on (spec §3.26). */
11
56
  export declare function quotaCheckOff(family: string, config: {
12
57
  quota?: {
13
58
  check?: Record<string, boolean>;
14
59
  };
15
60
  }, env: Env): string | null;
16
- /** The kept answer for `account`, after asking again when `mode` and its age say so. */
17
- export declare function fetchedQuota(fq: QuotaFetch, account: Account, ctx: ReadContext, hostEnv: Env, mode: QuotaFetchMode): Promise<QuotaStoreEntry | null>;
61
+ /**
62
+ * The published reset instants of the kept answer that passed after it was taken and were not asked for yet
63
+ * (ADR-0073): windows that reset at the same instant count once, and so does an instant handled for another Account of
64
+ * the Same Login (`peers`). Empty without a kept answer.
65
+ */
66
+ export declare function passedResets(kept: QuotaStoreEntry | null, now: Date, peers?: readonly (QuotaStoreEntry | null)[]): string[];
67
+ /**
68
+ * The kept answer for `account`, after asking again when `mode` says so and it is due: older than `everyMinutes`, or
69
+ * one of its windows passed its published reset time since it was taken and that instant was not asked for yet
70
+ * (ADR-0073).
71
+ */
72
+ export declare function fetchedQuota(fq: QuotaFetch, account: Account, ctx: ReadContext, hostEnv: Env, mode: QuotaFetchMode, hint?: QuotaAskHint): Promise<QuotaStoreEntry | null>;
18
73
  /**
19
74
  * The Expired Login of a signed-in Subscription Account (ADR-0071), from what its Host wrote (`events`) and the kept
20
75
  * Quota answer: expired when the newest sign that the login expired is newer than every sign that it works (a